-
Notifications
You must be signed in to change notification settings - Fork 1
Deploy validation fails because of wrong version sorting #42
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 8000 ”, 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
Comments
Hey friend. I looked at your issue and I really appreciate you digging in. Can you please try using my test branch |
Looks great, here's a run with debug enabled, now the list is sorted as expected:
|
Cool. If you'd like to use this for a little bit, I would like to see if you're good on it for a little while before merging. If you could reply on Monday next week letting me know that all's still well, I can merge this change. |
I'll let you know on Monday for sure! Thanks for taking care of it |
Hi! We found some issues when using the action on different Arc projects. If failed very frequently, however the package was deployed when we accessed Deployer. Upon further investigation we found this:
The root problem seems to be the sort on the getCurrentVersions
The javascript sort converts all elements to string for the sorting and makes the order weird in this case. Some examples from activating debug:
In that case, the new version (20) appears in the middle of the array and this condition is never fufiled:
Fix:
We think that adding the correct sorting should fix it as we have tested in our forked version of the action:
return lambdas.map(({ Version }) => parseInt(Version)).sort((a, b) => a - b)
After this change, this is what we see when debugging the step:
The text was updated successfully, but these errors were encountered: