TestProxy with a switch to start#18466
Conversation
|
This pull request is protected by Check Enforcer. What is Check Enforcer?Check Enforcer helps ensure all pull requests are covered by at least one check-run (typically an Azure Pipeline). When all check-runs associated with this pull request pass then Check Enforcer itself will pass. Why am I getting this message?You are getting this message because Check Enforcer did not detect any check-runs being associated with this pull request within five minutes. This may indicate that your pull request is not covered by any pipelines and so Check Enforcer is correctly blocking the pull request being merged. What should I do now?If the check-enforcer check-run is not passing and all other check-runs associated with this PR are passing (excluding license-cla) then you could try telling Check Enforcer to evaluate your pull request again. You can do this by adding a comment to this pull request as follows: What if I am onboarding a new service?Often, new services do not have validation pipelines associated with them, in order to bootstrap pipelines for a new service, you can issue the following command as a pull request comment: |
Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
| - name: ServiceDirectory | ||
| type: string | ||
| default: not-specified | ||
| - name: TestProxy |
There was a problem hiding this comment.
down below we call into ci.yml. We need to add additional parameter so the call looks like this:
- template: /eng/pipelines/templates/jobs/ci.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
TestProxy: ${{ parameterse.TestProxy }}
Artifacts: ${{ parameters.Artifacts }}
There was a problem hiding this comment.
Parameters are compile-time constants. 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.
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.
Does it look good now?
| - name: ServiceDirectory | ||
| type: string | ||
| default: not-specified | ||
| - name: TestProxy |
There was a problem hiding this comment.
you are not passing this parameter ci.yml. We need to pass this parameter down to test.yml template. Here ci.yml
There was a problem hiding this comment.
Does it look good now?
There was a problem hiding this comment.
yeah. seems reasonable. now let's see what breaks 👍
…/HarshaNalluru/azure-sdk-for-js into harshan/issue/unleash-test-proxy
type: boolean
default: false
|
Yayy! Running fine. 🎉 |
| - ${{ if eq(parameters.TestProxy, true) }}: | ||
| - pwsh: | | ||
| # ambitious_azsdk_test_proxy is the hardcoded container name used | ||
| # by the test proxy startup script | ||
| docker logs ambitious_azsdk_test_proxy | ||
| displayName: 'Dump Test Proxy logs' | ||
| condition: succeededOrFailed() | ||
|
|
There was a problem hiding this comment.
| - ${{ if eq(parameters.TestProxy, true) }}: | |
| - pwsh: | | |
| # ambitious_azsdk_test_proxy is the hardcoded container name used | |
| # by the test proxy startup script | |
| docker logs ambitious_azsdk_test_proxy | |
| displayName: 'Dump Test Proxy logs' | |
| condition: succeededOrFailed() | |
Also removing this @scbedd
Do you have an alternative for this?
Doing similar to what has been done in GO.