Updating prow job dryRun variable to be a bool again#238
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR reverts the ProwJob step’s dryRun pipeline field back to a simple boolean to unblock classic prow tests in Fairfax and align with the prow job executor’s --dry-run behavior.
Changes:
- Changed
ProwJobStep.DryRunfrom a structuredDryRunobject back tobool. - Updated the pipeline JSON schema so
ProwJob.dryRunis a boolean. - Updated pipeline/test fixtures to use
dryRun: true(and removed the old object form).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pipelines/types/testdata/zz_fixture_TestNewPipelineFromFile.yaml | Updates fixtures to reflect ProwJob.dryRun as a boolean and removes invalid {} usages. |
| pipelines/types/pipeline.schema.v1.json | Changes the ProwJob step schema for dryRun from object to boolean. |
| pipelines/types/common.go | Switches ProwJobStep.DryRun to bool and removes DryRun-variable dependency extraction. |
| pipelines/testdata/pipeline.yaml | Updates test pipeline to use dryRun: true for ProwJob steps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9e76cdf to
5db48c2
Compare
5db48c2 to
308e866
Compare
308e866 to
09422e2
Compare
b959a26 to
01e4398
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
pipelines/types/testdata/zz_fixture_TestNewPipelineFromFile.yaml:584
- The fixture shows
dryRunas aninputobject with empty required fields (name/resourceGroup/step: "") and includes twoe2e2validation steps. IfdryRunis meant to be an input, these empty strings violate the schema’sminLength: 1; if it’s meant to be a bool/value, the fixture shape is wrong. Regenerate the fixture after aligning thedryRuntype/schema and ensure each validation step name is unique.
- action: ProwJob
dryRun:
name: ""
resourceGroup: ""
step: ""
gatePromotion: "true"
identityFrom:
name: whatever
resourceGroup: regional
step: deploy
jobName: test-me
name: e2e2
tokenKeyvault: arohcpint-global.vault.azure.net
tokenSecret: prow-token
validation:
- Internal
- action: ProwJob
dryRun:
name: ""
resourceGroup: ""
step: ""
gatePromotion: "true"
identityFrom:
name: whatever
resourceGroup: regional
step: deploy
jobName: test-me
name: e2e2
tokenKeyvault: arohcpint-global.vault.azure.net
ab64e8f to
213f7bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Classic prow tests don't work in fairfax. Ev2 disallows adding execution constraints to validation steps, so I can't exclude them all together. The prow job executor tool already has a dryrun option. It just needs to be plumbed through. This change will require update-testdata to be run in sdp-pipelines but it should be otherwise compatible
Previous history on this in case this looks familiar: