Skip to content

Commit

Permalink
QE-16322 cucu repo move (#517)
Browse files Browse the repository at this point in the history
- chore - move repo GH org locations
- chore - remove sonarqube
  • Loading branch information
ddl-cedricyoung authored Aug 13, 2024
1 parent f1a33da commit 5ba8b40
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 65 deletions.
53 changes: 0 additions & 53 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ workflows:
browser: firefox
requires:
- pre-commit
- sonarqube:
context:
- sonarqube_scan_context
- repo-standards-docker-login-readonly
requires:
- test-chrome
- test-edge
- test-firefox

jobs:
pre-commit:
Expand Down Expand Up @@ -152,48 +144,3 @@ jobs:
path: report.tgz
- store_test_results:
path: junit_results

sonarqube:
docker:
- image: quay.io/domino/sdlc-sonarqube-executor-docker:0
environment:
PYENV_VERSION: <<pipeline.parameters.python_version>>
auth:
username: $QUAY_READONLY_USER
password: $QUAY_READONLY_PASSWORD
resource_class: medium

steps:
- checkout
- attach_workspace:
at: /tmp/ws
- run:
name: Run sonar-scanner
command: |
set -exuo pipefail
export SONAR_SCANNER_OPTS="-Xmx2048m"
SONAR_CMD="eval /home/circleci/build/sonar/bin/sonar-scanner \
-Dsonar.host.url=${SONARQUBE_HOST_URL} \
-Dsonar.login=${SONARQUBE_TOKEN}"
# Check if there is an open pull request
if [[ -n ${CIRCLE_PULL_REQUEST:-} ]]; then
pr=$(echo https://api.github.com/repos/${CIRCLE_PULL_REQUEST:19} | sed "s/\/pull\//\/pulls\//")
base_branch=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" $pr | jq -r '.base.ref')
SONAR_CMD+=" \
-Dsonar.pullrequest.key=${CIRCLE_PULL_REQUEST##*/} \
-Dsonar.pullrequest.branch=${CIRCLE_BRANCH} \
-Dsonar.pullrequest.base=${base_branch}"
else
SONAR_CMD+=" \
-Dsonar.branch.name=${CIRCLE_BRANCH}"
fi
if [[ -d "/tmp/ws" && $(ls -A /tmp/ws/coverage-*.xml 2> /dev/null) ]]; then
FILES=\"$(ls -A /tmp/ws/coverage-*.xml | paste -sd, -)\"
SONAR_CMD="${SONAR_CMD} -Dsonar.python.coverage.reportPaths=${FILES}"
fi
echo "Running sonarqube analysis... $SONAR_CMD"
$SONAR_CMD
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Ownership updated by devprod
* @cerebrotech/eng-automation
* @dominodatalab/eng-automation
6 changes: 3 additions & 3 deletions .github/workflows/create_a_new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- id: release_if_needed
name: Release on version change merged
env:
GITHUB_TOKEN: ${{ secrets.DOMINO_BUILDS_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
run: |
version=$(sed -n "s/^version *= *\"\(.*\)\"/\1/p" pyproject.toml)
latest_release=$(gh api /repos/cerebrotech/cucu/releases/latest --jq '.tag_name')
latest_release=$(gh api /repos/dominodatalab/cucu/releases/latest --jq '.tag_name')
if [[ $version != $latest_release ]]; then
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
/repos/cerebrotech/cucu/releases \
/repos/dominodatalab/cucu/releases \
-f tag_name=$version \
-f name="v$version" \
-F draft=false \
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project closely adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.203.0
- chore - move repo GH org locations
- chore - remove sonarqube

## 0.202.0
- add - wait step to saving values from any table cells to a variable

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
End-to-end testing framework that uses [gherkin](https://cucumber.io/docs/gherkin/)
to drive various underlying tools/frameworks to create real world testing scenarios.

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/cerebrotech/cucu/tree/main.svg?style=svg&circle-token=81eb2db26e4d6529e8cbb1319fe0f50a992bb50e)](https://dl.circleci.com/status-badge/redirect/gh/cerebrotech/cucu/tree/main)

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/dominodatalab/cucu/tree/main.svg?style=svg&circle-token=CCIPRJ_FnyZPtQ9odT5vmGW3CmZNU_bf0cfd776a09729ca4225a2860d9b59c4dae88af)](https://dl.circleci.com/status-badge/redirect/gh/dominodatalab/cucu/tree/main)

## Why cucu?
1. Cucu avoids unnecessary abstractions (i.e. no Page Objects!) while keeping scenarios readable.
Expand Down Expand Up @@ -66,7 +65,7 @@ _Get your repo setup using cucu as a test framework_
1. install and start Docker if you haven't already
2. add cucu your `requirements.txt` to get from GH by label (use current label number)
```
git+ssh://[email protected]/cerebrotech/[email protected]#egg=cucu
git+ssh://[email protected]/dominodatalab/[email protected]#egg=cucu
```
3. install it
```bash
Expand Down
4 changes: 2 additions & 2 deletions cortex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ info:
x-cortex-git:
github:
alias: cortex
repository: cerebrotech/cucu
repository: dominodatalab/cucu
x-cortex-circle-ci:
projects:
- projectSlug: github/cerebrotech/cucu
- projectSlug: github/dominodatalab/cucu
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tool.poetry]
name = "cucu"
version = "0.202.0"
version = "0.203.0"
license = "MIT"
description = "Easy BDD web testing"
authors = ["Domino Data Lab <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/cerebrotech/cucu"
repository = "https://github.com/cerebrotech/cucu"
homepage = "https://github.com/dominodatalab/cucu"
repository = "https://github.com/dominodatalab/cucu"
keywords = ["cucumber", "selenium"]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit 5ba8b40

Please sign in to comment.