-
Notifications
You must be signed in to change notification settings - Fork 343
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
selftests: drop job-api test variant that may exceed sqlite3's own limits #6074
selftests: drop job-api test variant that may exceed sqlite3's own limits #6074
Conversation
The number based naming of the job-api related suites do not provide clear information on what it is about. This uses a more meaningful name for them. Signed-off-by: Cleber Rosa <[email protected]>
…mits The sqlite3 module (and actually, even the non-python binary with the same name), have "interesting" limitations when it comes to the database path. When the test that creates the journal file, and checks for it, runs as part of an RPM build, the extra directories (/buildir/...) exceed the path size limit. While it would be possible to check if the "logdir" path, plus the name of the journal database path, would eventually exceed the sqlite3 limits, this logic would be exclusive for one test variant. IMO it does not justify adding such logic to keep a test that has considerably low value. Signed-off-by: Cleber Rosa <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6074 +/- ##
==========================================
- Coverage 54.47% 54.32% -0.16%
==========================================
Files 202 202
Lines 21892 21892
==========================================
- Hits 11925 11892 -33
- Misses 9967 10000 +33 ☔ View full report in Codecov by Sentry. |
Hi @clebergnu, can you please add a reference to the failure? I wasn't able to find any CI failure which would be caused by sqlite3 limitations. Thank you. |
/packit copr-build |
This is one example of the limitation causing a failure during an RPM build:
|
During RPM builds on Fedora 42 (really rawhide at this time), the RPM package dependency system provides MarkupSafe > 3.0.0 (currently 3.0.2). So, we remove the pinning, or else, the build would fail due to a version requirement conflict. Signed-off-by: Cleber Rosa <[email protected]>
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.
Hi @clebergnu, thank you for provided example, the previous changes LGTM. But I think that the last commit b80f298 is not related to this PR, am I right?
It's not... but it was necessary to include it to prove that the CI can be fixed by this (inclusive). I can send them in separate PRs, but, I would advise against it because we'd still have CI failures on both cases. |
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.
No problem, thanks for the explanation.
The sqlite3 module (and actually, even the non-python binary with the same name), have "interesting" limitations when it comes to the database path.
When the test that creates the journal file, and checks for it, runs as part of an RPM build, the extra directories (/buildir/...) exceed the path size limit.
While it would be possible to check if the "logdir" path, plus the name of the journal database path, would eventually exceed the sqlite3 limits, this logic would be exclusive for one test variant.
IMO it does not justify adding such logic to keep a test that has considerably low value.