Skip to content

ci: fix ACTIONS_STEP_DEBUG not working#8517

Merged
zirain merged 3 commits intoenvoyproxy:mainfrom
zirain:fix/ACTIONS_STEP_DEBUG
Mar 18, 2026
Merged

ci: fix ACTIONS_STEP_DEBUG not working#8517
zirain merged 3 commits intoenvoyproxy:mainfrom
zirain:fix/ACTIONS_STEP_DEBUG

Conversation

@zirain
Copy link
Copy Markdown
Member

@zirain zirain commented Mar 13, 2026

xref: https://docs.github.com/en/actions/how-tos/monitor-workflows/enable-debug-logging?search-overlay-input=jobs#enabling-step-debug-logging

You can also use the runner.debug context to conditionally run steps only when debug logging is enabled. For more information

set ACTIONS_STEP_DEBUG env if runner.debug is 1

@zirain zirain requested a review from a team as a code owner March 13, 2026 06:01
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 13, 2026

Deploy Preview for cerulean-figolla-1f9435 canceled.

Name Link
🔨 Latest commit 78b84f6
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69ba53a4f27134000801243f

@zhaohuabing
Copy link
Copy Markdown
Member

Hi @zirain do you have a chance to test this works when manually run a flow with enable debugging is checked?

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.14%. Comparing base (db1c3ce) to head (78b84f6).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8517      +/-   ##
==========================================
- Coverage   74.17%   74.14%   -0.04%     
==========================================
  Files         242      242              
  Lines       37609    37669      +60     
==========================================
+ Hits        27895    27928      +33     
- Misses       7773     7787      +14     
- Partials     1941     1954      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zirain
Copy link
Copy Markdown
Member Author

zirain commented Mar 13, 2026

Hi @zirain do you have a chance to test this works when manually run a flow with enable debugging is checked?

before: https://github.com/envoyproxy/gateway/actions/runs/23038429771/job/66912666163
after: https://github.com/envoyproxy/gateway/actions/runs/23038429771/job/66919086755

@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Mar 14, 2026

how is ACTIONS_STEP_DEBUG related to ENABLE_COLLECT_AND_DUMP

@zirain
Copy link
Copy Markdown
Member Author

zirain commented Mar 15, 2026

how is ACTIONS_STEP_DEBUG related to ENABLE_COLLECT_AND_DUMP

'ACTIONS_STEP_DEBUG' is used to manually open the debug log of github CI and rename it to 'ENABLE_COLLECT_AND_DUMP' to avoid misunderstanding.

@zirain zirain force-pushed the fix/ACTIONS_STEP_DEBUG branch 2 times, most recently from 056f3b2 to bac57eb Compare March 18, 2026 02:59
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain force-pushed the fix/ACTIONS_STEP_DEBUG branch from bac57eb to 324648b Compare March 18, 2026 03:00
@zirain
Copy link
Copy Markdown
Member Author

zirain commented Mar 18, 2026

@arkodg @zhaohuabing I simply this change, just set ACTIONS_STEP_DEBUG when runner.debug is 1.

@zhaohuabing
Copy link
Copy Markdown
Member

Do we need to rename ACTIONS_STEP_DEBUG to ENABLE_COLLECT_AND_DUMP in test/e2e/tests/utils.go?

@zirain
Copy link
Copy Markdown
Member Author

zirain commented Mar 18, 2026

Do we need to rename ACTIONS_STEP_DEBUG to ENABLE_COLLECT_AND_DUMP in test/e2e/tests/utils.go?

we could do that if needed in the future.

zirain added 2 commits March 18, 2026 15:23
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain merged commit 99e6513 into envoyproxy:main Mar 18, 2026
67 of 72 checks passed
@zirain zirain deleted the fix/ACTIONS_STEP_DEBUG branch March 18, 2026 11:47
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