Skip to content

ci: remove setup job and fix debug flag propagation#4813

Open
walldiss wants to merge 1 commit intocelestiaorg:mainfrom
walldiss:ci/remove-setup-job
Open

ci: remove setup job and fix debug flag propagation#4813
walldiss wants to merge 1 commit intocelestiaorg:mainfrom
walldiss:ci/remove-setup-job

Conversation

@walldiss
Copy link
Member

@walldiss walldiss commented Mar 2, 2026

Summary

  • Removes the setup job from go-ci.yml
  • Removes needs: [setup] from all downstream jobs, allowing them to start immediately when triggered
  • Replaces the broken ${{ needs.setup.outputs.debug }} expression with ${{ runner.debug == '1' && 'true' || 'false' }} evaluated inline in each step

Bug fixed

The setup job had two bugs that made it a no-op:

  1. Debug output was written to $GITHUB_ENV instead of $GITHUB_OUTPUT, so steps.debug.outputs.debug was always empty
  2. runner.debug is '1' when enabled, not 'true', so the condition == "true" never matched

The debug flag was silently doing nothing. This PR fixes it while also removing the job startup overhead (~30s saved from all downstream jobs no longer waiting on setup).

The setup job was broken: it wrote to $GITHUB_ENV instead of
$GITHUB_OUTPUT, so the debug flag never reached other jobs.
It also compared runner.debug to "true" when the actual value
is "1". Remove the job entirely and evaluate runner.debug inline
in each step that needs it, removing ~30s of startup latency from
all downstream jobs.
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.

1 participant