Skip to content

feat: detect auto-debug in the CI#2822

Merged
olblak merged 11 commits intoupdatecli:mainfrom
v1v:feature/support-debug-out-of-the-box
Oct 23, 2024
Merged

feat: detect auto-debug in the CI#2822
olblak merged 11 commits intoupdatecli:mainfrom
v1v:feature/support-debug-out-of-the-box

Conversation

@v1v
Copy link
Copy Markdown
Contributor

@v1v v1v commented Oct 14, 2024

Fix #2805

Test

To test this pull request, you can run the following commands:

$ cd pkg/plugins/utils/ci/
$ go test
make build

$ GITHUB_ACTION=foo ACTIONS_RUNNER_DEBUG=true dist/updatecli_darwin_arm64/updatecli diff 
CI pipeline detected in Debug Mode - hence enabling debug mode


+++++++++++
+ PREPARE +
+++++++++++

...

$ GITHUB_ACTION=foo ACTIONS_RUNNER_DEBUG=false dist/updatecli_darwin_arm64/updatecli diff


+++++++++++
+ PREPARE +
+++++++++++

Additional Information

Tradeoff

There is no support for Jenkins, as I cannot recall there is a way to use an env variable to set the debug level for Pipelines. Back in the day, I used https://github.com/elastic/apm-pipeline-library/blob/main/vars/log.groovy, but it was an opinionated approach.

Potential improvement

Support for Jenkins

@v1v v1v requested review from dduportal and olblak and removed request for olblak October 14, 2024 09:03
@v1v v1v self-assigned this Oct 14, 2024
@v1v v1v requested a review from olblak October 14, 2024 09:03
@olblak olblak added enhancement New feature or request github_actions Pull requests that update Github_actions code labels Oct 14, 2024
@olblak olblak modified the milestone: 0.86.0 Oct 17, 2024
Copy link
Copy Markdown
Contributor

@loispostula loispostula left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution

Comment thread cmd/root.go Outdated
@olblak olblak enabled auto-merge (squash) October 22, 2024 12:40
@olblak olblak merged commit 1a0456a into updatecli:main Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: honour CI debugging flags

3 participants