-
Notifications
You must be signed in to change notification settings - Fork 204
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
Allow client to restart a build for a jobgroup #1651
Conversation
* Allow to reuse logic to create similar API route * Add more comments, simplify code structure
Codecov Report
@@ Coverage Diff @@
## master #1651 +/- ##
==========================================
+ Coverage 83.16% 88.85% +5.68%
==========================================
Files 132 132
Lines 9452 9458 +6
==========================================
+ Hits 7861 8404 +543
+ Misses 1591 1054 -537
Continue to review full report at Codecov.
|
I think |
As @coolo says in the ticket, we misunderstood the problem. I think the generic verb 'trigger' used in the issue lead to the confusion (at least for me). Seems like 'Spawning jobs for a build filtered by job group' was mean and not 'Restart jobs ...'. I created a separate PR for the first commit. If you like the refactoring, increased test coverage and the 'test overview' API route, you can still merge this PR. But to solve the issue, I'll have to switch the approach. I've read the documentation @okurz mentioned and I think the approach of @foursixnine makes sense. Alternatively, the |
I would go for POST to isos accepts a _GROUP paramter filtering the created jobs before scheduling them. |
Thanks for merging. Unfortunately we now have the commit 'Update documentation about isos post in client help' two times in the history. |
I noticed, but it's fortunately the same documentation :) |
commit 04373a1 Merge: eec584f 31926a8 Author: Stephan Kulow <stephan@kulow.org> AuthorDate: Thu May 17 11:58:59 2018 +0200 Commit: GitHub <noreply@github.com> CommitDate: Thu May 17 11:58:59 2018 +0200 Merge pull request #1651 from Martchus/restart_filtered_jobs Allow client to restart a build for a jobgroup
See https://progress.opensuse.org/issues/33892
It would work like this:
That should already cover AC1:
Not sure how to deal with jobs which are already running/scheduled. That's what currently happens:
So jobs which are already running or are scheduled should be excluded?
Not sure what that means.
Since @foursixnine mentioned that multi-machine tests might be problematic, I assume we can't just rely on the scheduler to figure this?