-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1570] Speed up CI #690
[#1570] Speed up CI #690
Conversation
There are two issues with running our tests in parallel:
|
Codecov Report
@@ Coverage Diff @@
## develop #690 +/- ##
===========================================
- Coverage 96.31% 93.58% -2.74%
===========================================
Files 699 697 -2
Lines 24670 24595 -75
===========================================
- Hits 23762 23016 -746
- Misses 908 1579 +671
... and 19 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
8120eca
to
e9a4692
Compare
6272330
to
29cd3f9
Compare
95697a0
to
2b7ea87
Compare
src/open_inwoner/conf/test.py
Outdated
if len(sys.argv) > 1 and sys.argv[1] == "test": | ||
logging.disable(logging.CRITICAL) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is what we want. Supposedly we still want to see something when a real problem occurs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it so we keep logs for level >= ERROR
@@ -1,3 +1,5 @@ | |||
from unittest import skip | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recomment to remove instead of skip these tests if they're no longer necessary
2b7ea87
to
a504070
Compare
a504070
to
b141004
Compare
8c3987a
to
e0e5870
Compare
@@ -1,106 +0,0 @@ | |||
from django.contrib.gis.geos import Point |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a specific reason we had to let these go?
If the amount of migrations is an issue we could look into squashing the migrations. IIRC it also had some complications with data migrations.
src/open_inwoner/conf/ci.py
Outdated
@@ -13,7 +13,7 @@ | |||
{ | |||
"django": { | |||
"handlers": ["django"], | |||
"level": "WARNING", | |||
"level": "ERROR", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having doubts about the logging levels.
Maybe we should move that to another issue en get the config changes and parallel test merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
turn off fsync for Postgres update actions in workflow
- the functionality will be re-implemented later on via a test matrix in GH actions
e0e5870
to
b9654a7
Compare
b9654a7
to
99046b3
Compare
Various tweaks to speed up the tests: