Skip to content
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

fix(updatecli): reverse the logic used to determine if .ci/scripts/test-version.sh indicates there is a new version to which to update #263

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

v1v
Copy link
Member

@v1v v1v commented Aug 9, 2024

Use the reverse logic

and #264 was the outcome when running updatecli against this PR/branch

@v1v v1v self-assigned this Aug 9, 2024
@v1v v1v requested a review from a team August 9, 2024 08:55
@v1v v1v marked this pull request as ready for review August 9, 2024 08:55
Comment on lines +43 to 45
failwhen: false
spec:
command: bash .ci/scripts/test-version.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... updatecli behaviour is not exactly intuitive. That sourceid means "take the output from the elastic-apm-node "source" and append it to the "spec.command" command.

https://www.updatecli.io/docs/plugins/resource/shell/

💡 The source associated to this condition (the default source or through the key sourceID) is appended as the last argument to the command line unless the attribute disablesourceinput is set to true.

I guess we have to know that sourceid and sourceID are equivalent. Because if case did matter we'd get the same result here: a non-zero exit status from bash .ci/scripts/test-version.sh (no argument) or from bash .ci/scripts/test-version.sh 4.7.2. The job output of the updatecli run doesn't show sufficient details to know the difference: https://github.com/elastic/opbeans-node/actions/runs/10316486283/job/28558803311

@trentm trentm merged commit 14fd240 into main Aug 9, 2024
5 checks passed
@trentm trentm deleted the fix/validation branch August 9, 2024 17:01
@trentm trentm changed the title updatecli: use reverse fix(updatecli): reverse the logic used to determine if .ci/scripts/test-version.sh indicates there is a new version to which to update Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants