-
Notifications
You must be signed in to change notification settings - Fork 183
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
Allow Multiple Invocations of archetype-sdk-tests-generate
within the same stage
#1598
Allow Multiple Invocations of archetype-sdk-tests-generate
within the same stage
#1598
Conversation
archetype-sdk-tests-generate
archetype-sdk-tests-generate
within the same stage
The following pipelines have been queued for testing: |
LGTM |
I have run into this problem before too, thanks for solving it! I wonder if we can avoid the requirement of another added parameter A couple ways I can think that would do this:
I'm fine with this as is but if we can find a decent way to avoid the parameter that would be ideal. Please add a comment above the |
@benbp I think the most reasonable here is probably just using the counter. I feel like we'd be backing ourselves into a corner where we inevitably want to use the same matrix, but can't due to that restriction. I'm going to try to use a counter variable in another job. If that works, I'll add that change. If it doesn't, I'll just merge this as-is (along with a comment :P) |
@scbedd if you have issues with the counter let me know and I can possibly help debug. Seems like you have to declare it in |
@benbp right on. That's honestly my biggest concern. if I can put a |
@benbp Ok. That original test wasn't running on the branch I thought it was. Doesn't look like this is possible with a runtime variable. This commit attempts to access the counter variable by accessing it in "run-time" mode. This is necessary as these counters are by their very definition run-time defined.
The issue is with The config.Name resolution works because it's available when the template is compiled. Unfortunately for us, all methods of accessing Error is
Going to revert to original method and add a comment. |
ab7d914
to
b555cd8
Compare
The following pipelines have been queued for testing: |
Hello @azure-sdk! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
/check-enforcer override |
This is a super useful template, but I need to run it twice!
See example PR over here
And example run of what I want in an example run here.
Without these changes, we run into "duplicate job id" when we attempt to run it in the same stage. Discussion for the
why
I want to run it twice in the same stage is also present on the linked PR.