Skip to content

Remove constants orphaned by #4059 and unused proxy env var names - #4675

Merged
nikola-jokic merged 1 commit into
actions:masterfrom
Okabe-Junya:Okabe-Junya/refactor/remove-orphaned-constants
Sep 22, 2026
Merged

nikola-jokic merged 1 commit into
actions:masterfrom
Okabe-Junya:Okabe-Junya/refactor/remove-orphaned-constants

Conversation

@Okabe-Junya

@Okabe-Junya Okabe-Junya commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

What

SSIA (general house-keeping)

Why

#4059 replaced the "too many pod failures -> mark failed" branch with the backoff/maxFailures recreate mechanism and left the ReasonTooManyPodFailures reason constant behind with no remaining references.

The proxy env var name constants were never referenced by production code, which sets these env vars from string literals directly, so the test references were switched to the same literals instead of introducing the constants into production code.

@Okabe-Junya
Okabe-Junya marked this pull request as ready for review September 22, 2026 07:05
Copilot AI lite review requested due to automatic review settings September 22, 2026 07:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

This pull request removes unused constants and aligns proxy environment variable tests with production literals.

Changes:

  • Replaces proxy constant references with literal names in tests.
  • Removes unused proxy and ReasonTooManyPodFailures constants.
File Changes
controllers/​actions.github.com/​ephemeralrunner_controller_test.go Uses literal proxy environment variable names.
controllers/​actions.github.com/​constants.go Removes orphaned constants.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nikola-jokic
nikola-jokic merged commit 390ceb0 into actions:master Sep 22, 2026
28 checks passed
@Okabe-Junya
Okabe-Junya deleted the Okabe-Junya/refactor/remove-orphaned-constants branch September 22, 2026 15:32
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.

3 participants