This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
CI pool generation using snapshotPool is not respecting maxAllocation value #1416
Labels
analysis
To be decided on how to solution/fix
Describe the bug
When using the snapshot pool to generate CI pool, it keeps generating new scratch org in CI pool and not respecting the value of maxAllocation in the CI Pool.
For example, we have 5 available scratch orgs in CI pool and max allocation is also 5. So when we run the CI generation workflow again, it should not generate any new orgs. But when we add snapshotPool tag in the config, it keeps generating 5 new orgs each times and increases to 10,15,20,.... as many times it runs. If we remove snapshotPool tag in the config, this behaviour does not occur.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After running the CI pool generation job, it keeps generating new scratch orgs.
For example, if you run CI job 3 times, the number of scratch org will be 15 and not 5 as mentioned in maxAllocation in CI pool config.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform Details (please complete the following information):
Additional context
Run sfp pool:list after running CI job multiple times with a known tag and devhub alias, like
sfpowerscripts should print out a list of scratch orgs in the pool more than maxAllocation capacity. Similarly to:
The text was updated successfully, but these errors were encountered: