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
Pipeline jobs running before material check when triggered by another pipeline #10885
Comments
This issue has been automatically marked as stale because it has not had activity in the last 90 days. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. |
Issue Type
Summary
We've noticed an issue and been able to replicate it in dev, where pipelines can run before a git material check finishes causing them to run with outdated code. This seems to be limited to pipelines that are triggered by other pipelines.
Basic environment details
22.2.0
17.0.4
20.04
Steps to Reproduce
# Note it's possible this may be somewhat intermittent if your material check happens to be very fast. If not reproduced repeat a few times from step 5.
Expected Results
A pipeline triggered by any source, including another pipeline, should wait for all materials to be checked before sending a job to an agent. In the server log that should look similar to this manual run where the MaterialUpdateListener pulls in modifications before the BuildAssignmentService assigns the job.
Actual Results
The pipeline BuildAssignmentService runs before the MaterialUpdateListener pulls in modifications causing this run to be behind.
Two examples, first is dev where the entire (very short) pipeline finished before the material check was complete, the second in prod where just the first stage had started before the material check.
Possible Fix
I've not looked at the source, but if this is reproducible by others, my assumption would be that a piece of code is initiating a material check, but not waiting for it. If thats the case we just need to make that check blocking so that other code does not proceed until the check is complete.
Logs
Let me know if anything outside of images provided would be useful.
The text was updated successfully, but these errors were encountered: