-
Notifications
You must be signed in to change notification settings - Fork 49
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
/packit retest-failed
and /packit rebuild-failed
don't work as expected
#1375
Comments
It looks like it restarts everything for I hit that here: https://github.com/packit/specfile/pull/25/checks?check_run_id=5656718240 |
Do you mean the EDIT: Now I can see... you ment the And.. we have an issue #1307 to support Also (I wonder if this is still somehow related to |
Yes, sorry about the bad text for that, but I really meant
I don't think so. Maybe I mixed that with something else (multi-job scenario, identifiers,...) but still think it triggered everything... |
Oh you are right... again I tested it only for testing farm... It works... but for builds everything is restarted :/ |
Add option to filter builds/test from comment by a given statuses Just to add to code more reusability - if we may want to filter models by their different statuses in some CommentEvent - you can now filter them by a given statuses. And also the main point of this PR - I added some logs so I can see which targets passed to targets_override in logs because I am clueless when debugging #1375 :D RELEASE NOTES BEGIN  RELEASE NOTES END Reviewed-by: Laura Barcziová <None>
Fix rebuild-failed Previously /packit rebuild-failed searched in DB for models with matching commit sha and project name. Searching by project name is redundant and it seems like project names in copr and repo's project names can differ (somehow) so result of searching is sometimes empty list. Related to #1375 RELEASE NOTES BEGIN  RELEASE NOTES END Reviewed-by: Matej Focko <None> Reviewed-by: Tomas Tomecek <[email protected]>
Filter most recent targets for /packit rebuild-retest-failed we want to search for most recent copr/tf models in DB. Currently we search only for models which matches commit sha. But what if some builds fails and after /packit rebuild-failed all builds succeeds? we still have that failed model connected to commit sha so after another rebuild-failed we rebuild the previously failed build even if the latest build for corresponding target passed. aditional functionality of filtering the most recent targets from iterable of models should solve this issue Related to #1375 and maybe finally closes it? :D RELEASE NOTES BEGIN  RELEASE NOTES END Reviewed-by: Laura Barcziová <None> Reviewed-by: None <None> Reviewed-by: Tomas Tomecek <[email protected]>
closed with #1479 |
Expected behavior is to restart/rebuild only failed tests/builds.
Currently these commands:
rebuild-failed
restarts everything - should restart only failed buildsretest-failed
restarts every tests - should restart only failed tests.everything seems to working fine to this point. *_targets_override fills up with correct targets to rebuild/retest. Something after that might be broken.
TODO:
The text was updated successfully, but these errors were encountered: