-
Notifications
You must be signed in to change notification settings - Fork 1.4k
TestProxy with a switch to start #18466
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
Changes from all commits
c5a466f
81eca06
c962930
7688ff5
766edb7
3936a02
f4306ab
94b63df
2c4deff
fde3d97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,9 @@ parameters: | |
| - name: ServiceDirectory | ||
| type: string | ||
| default: not-specified | ||
| - name: TestProxy | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you are not passing this parameter ci.yml. We need to pass this parameter down to test.yml template. Here ci.yml
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it look good now?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah. seems reasonable. now let's see what breaks 👍 |
||
| type: boolean | ||
| default: false | ||
| - name: IncludeRelease | ||
| type: boolean | ||
| default: true | ||
|
|
@@ -42,7 +45,8 @@ stages: | |
| jobs: | ||
| - template: /eng/pipelines/templates/jobs/ci.yml | ||
| parameters: | ||
| ServiceDirectory: ${{ parameters.ServiceDirectory }} | ||
| ServiceDirectory: ${{ parameters.ServiceDirectory }} | ||
| TestProxy: ${{ parameters.TestProxy }} | ||
| Artifacts: ${{ parameters.Artifacts }} | ||
| ${{ if eq(parameters.ServiceDirectory, 'template') }}: | ||
| TestPipeline: true | ||
|
|
@@ -66,6 +70,7 @@ stages: | |
| parameters: | ||
| DependsOn: Build | ||
| ServiceDirectory: ${{ parameters.ServiceDirectory }} | ||
| TestProxy: ${{ parameters.TestProxy }} | ||
| Artifacts: ${{ parameters.Artifacts }} | ||
| ${{ if eq(parameters.ServiceDirectory, 'template') }}: | ||
| TestPipeline: true | ||
|
|
||
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.
down below we call into
ci.yml. We need to add additional parameter so the call looks like this: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.
Parameters are
compile-timeconstants. So technically it'll work if we miss adding it to each level of templates, but it'll be super confusing to debug. Better to pass all the way through.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.
IN
jobs/ci.yml, we need to add the parameter (and then pass it to ci.tests.yml -> tests.yml)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.
Does it look good now?
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.
Yes! At least, I think so :)