this actually speeds up tests quite a bit (preventing a 30s timeout when
the fixture is actually reused several times in a test session).
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDJNL04a84dba6a17: tests: make the kafka_server_base fixture a function scoped one
Diff Detail
- Repository
- rDJNL Journal infrastructure
- Branch
- no_flush
- Lint
Lint Skipped - Unit
Unit Tests Skipped - Build Status
Buildable 32444 Build 50813: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 50812: arc lint + arc unit
Event Timeline
Build has FAILED
Patch application report for D8697 (id=31409)
Rebasing onto 1f1b03cfbd...
Current branch diff-target is up to date.
Changes applied before test
commit eaf6c57a8407851d27f4acd94bd8bd01bc003841 Author: David Douard <david.douard@sdfa3.org> Date: Tue Oct 18 12:03:58 2022 +0200 tests: make the kafka_server_base fixture a function scoped one this actually speeds up tests quite a bit (preventing a 30s timeout when the fixture is actually reused several times in a test session).
Link to build: https://jenkins.softwareheritage.org/job/DJNL/job/tests-on-diff/222/
See console output for more information: https://jenkins.softwareheritage.org/job/DJNL/job/tests-on-diff/222/console
Build is green
Patch application report for D8697 (id=31498)
Rebasing onto 2c6d9e05ec...
Current branch diff-target is up to date.
Changes applied before test
commit 04a84dba6a175a509d6f8d4ccde1441b8e352858 Author: David Douard <david.douard@sdfa3.org> Date: Tue Oct 18 12:03:58 2022 +0200 tests: make the kafka_server_base fixture a function scoped one this actually speeds up tests quite a bit (preventing a 30s timeout when the fixture is actually reused several times in a test session).
See https://jenkins.softwareheritage.org/job/DJNL/job/tests-on-diff/226/ for more details.
I don't see the difference comparing the master build or the diff build times but wny not ;)
Yeah, I'm a bit surprised too that this would decrease overall test times, and seems like a latent bug, but this at least doesn't seem to /increase/ test times in this module, so it's probably fine?
on my laptop, it goes from:
~/swh-journal$ git checkout origin/master ~/swh-journal$ pytest swh [...] = 53 passed in 196.44s (0:03:16) =
(it varies a bit but stays in the ball bark of 3mn), to
~/swh-journal$ git checkout 04a84dba6a175a509d6f8d4ccde1441b8e352858 ~/swh-journal$ pytest swh [...] = 53 passed in 129.94s (0:02:09) =
Not sure why it's not the same on jenkins...