Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Fix CI workflow to run tests #250

Merged
merged 3 commits into from
Jan 10, 2022
Merged

Fix CI workflow to run tests #250

merged 3 commits into from
Jan 10, 2022

Conversation

aht007
Copy link
Contributor

@aht007 aht007 commented Dec 30, 2021

JIRA ISSUE: BOM-3119

Description

While shifting CI to GitHub Actions there was a syntax issue in the workflow which caused the tests command to be ignored and hence tests were not running. This PR solves that issue and also splits the workflows according to their use case.

@aht007 aht007 force-pushed the aht/BOM-1139-FIX-CI-WORKFLOW branch 4 times, most recently from 7166338 to 1266b7a Compare January 5, 2022 09:24
@@ -45,7 +47,7 @@ test-js: ## run tests using npm
-./node_modules/gulp/bin/gulp.js test

test-python: clean ## run tests using pytest and generate coverage report
$(TOX)pytest
$(TOX)pytest --ignore=testserver/test/acceptance
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring acceptance tests here because they will be run separately with bokchoy

branches:
- master
pull_request:
branches:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can just remove the branches option

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this causes duplicate checks on PRs

.github/workflows/js-tests.yml Show resolved Hide resolved
.github/workflows/js-tests.yml Outdated Show resolved Hide resolved
.github/workflows/python-tests.yml Outdated Show resolved Hide resolved
.github/workflows/python-tests.yml Outdated Show resolved Hide resolved
.github/workflows/quality-checks.yml Outdated Show resolved Hide resolved
@@ -85,7 +85,7 @@
'rest_framework.throttling.UserRateThrottle',
),
'DEFAULT_THROTTLE_RATES': {
'user': '10/sec',
'user': '100/sec',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did we update this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests were failing with pytest and @awais786 bhai suggested that we should increase the throttle rate... Those tests passed after this change

@aht007 aht007 requested a review from mraarif January 6, 2022 07:54
@aht007 aht007 force-pushed the aht/BOM-1139-FIX-CI-WORKFLOW branch from 5ba9be4 to 659c786 Compare January 6, 2022 09:02
@codecov
Copy link

codecov bot commented Jan 6, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@0515ea4). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head e38de90 differs from pull request most recent head b65e57c. Consider uploading reports for the commit b65e57c to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             master   #250   +/-   ##
=======================================
  Coverage          ?      0           
=======================================
  Files             ?      0           
  Lines             ?      0           
  Branches          ?      0           
=======================================
  Hits              ?      0           
  Misses            ?      0           
  Partials          ?      0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0515ea4...b65e57c. Read the comment docs.

.github/workflows/bok-choy-tests.yml Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@aht007 aht007 force-pushed the aht/BOM-1139-FIX-CI-WORKFLOW branch 4 times, most recently from 915d5c9 to b65e57c Compare January 10, 2022 08:50
@aht007 aht007 merged commit b43343b into master Jan 10, 2022
@aht007 aht007 deleted the aht/BOM-1139-FIX-CI-WORKFLOW branch January 10, 2022 09:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants