-
Notifications
You must be signed in to change notification settings - Fork 292
pj-rehearse: support handcrafted jobs with UNRESOLVED_CONFIG #1430
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
pj-rehearse: support handcrafted jobs with UNRESOLVED_CONFIG #1430
Conversation
ed85b3d to
69f48da
Compare
|
/hold cancel |
69f48da to
93635ca
Compare
|
We have a lot of jobs that use environment variables in the target and/or the Both the |
@AlexNPavel I was thinking about how to handle this best and I'd like to avoid getting into some weird middle state where we would substitute variables "somewhat like kube but not quite". E.g. then we'd need to handle also cases where something is first e.g. substituted in |
f7dced2 to
c6a1d8c
Compare
|
@stevekuznetsov addressed, PTAL |
c6a1d8c to
db71907
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, stevekuznetsov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold
Builds on #1429
This is a thing of beauty! The tests needed to be completely rewritten (there were no real tests for the inlining functionality not working over the CM references -- removed in #1249 ), and the method was refactored - it is probably easier to review as new code than looking at the diff.
There is an annoying gotcha in that our code avoids resolving whole ci-op configs, but it resolves only the test relevant for the job, which is impossible to detect for handcrafted jobs in other way than looking at the
) so I decided to go for the more targeted approach of inspecting
--target=XXXparameter. Other option was to implement a "if no matching test was found, resolve all present, but that changes the behavior more significantly, and breaks multiple integration tests (which are a pinnacle of engineering themselves--target.Fixes: DPTP-1685