-
Notifications
You must be signed in to change notification settings - Fork 567
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
Gracefully handle old pipelines where output commit is ALIAS and meta commit is AUTO #8485
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8485 +/- ##
===========================================
- Coverage 39.78% 2.36% -37.43%
===========================================
Files 455 365 -90
Lines 123023 107328 -15695
===========================================
- Hits 48950 2537 -46413
- Misses 64420 104446 +40026
+ Partials 9653 345 -9308
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -107,7 +107,8 @@ func (pj *pendingJob) load() error { | |||
return errors.EnsureStack(err) | |||
} | |||
// both commits must have succeeded - a validation error will only show up in the output | |||
if metaCI.Error == "" && outputCI.Error == "" { | |||
// the commit must also not be of type ALIAS, to ensure that we have a corresponding job | |||
if metaCI.Error == "" && outputCI.Error == "" && outputCI.Origin.Kind != pfs.OriginKind_ALIAS { |
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.
Do we want to add a log message around line 117 so we know which commit we picked as the base commit? Maybe it gets recorded elsewhere?
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.
good idea!
6f2e606
to
4f6f7e1
Compare
… commit is AUTO (#8485) Gracefully handle old pipelines where output commit is ALIAS and meta commit is AUTO
In #8116 we fixed an issue where ALIAS output commits would get created with corresponding AUTO meta commits. This didn't handle previously faulty DAGs. In this PR, we gracefully handle DAGs already containing the faulty structure.