Skip to content

tests: remove jira-wrapper artifact-location fallback (#2136) - #2138

Merged
jwbron merged 1 commit into
mainfrom
egg/2136-jira-wrapper-test-cleanup
Apr 27, 2026
Merged

tests: remove jira-wrapper artifact-location fallback (#2136)#2138
jwbron merged 1 commit into
mainfrom
egg/2136-jira-wrapper-test-cleanup

Conversation

@jwbron

@jwbron jwbron commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Drops the dead .egg-state/agent-outputs/1556-sandbox-scripts-jira fallback in tests/sandbox/test_jira_wrapper.py. With patterns: drop sandbox/scripts wholesale block, enforce via reviewer_security (#2133) #2135 merged, new wrappers land at sandbox/scripts/jira directly and the artifact location can never appear.
  • Removes the docstring paragraph describing the canonical-vs-artifact dance, the _ARTIFACT constant, and the fallback branch in _locate_wrapper(); simplifies the skip message accordingly.

Closes #2136.

Test plan

  • pytest tests/sandbox/test_jira_wrapper.py — 19/19 passed locally
  • Confirmed no remaining references to _ARTIFACT or 1556-sandbox-scripts-jira in the file

The fallback in `tests/sandbox/test_jira_wrapper.py` was scaffolding
for the pre-#2135 workaround when `sandbox/scripts/` was blocked from
agent writes. With #2135 merged, new wrappers land at the canonical
path directly and the artifact location is permanently dead code.

Drops the docstring paragraph, the `_ARTIFACT` constant, and the
fallback branch in `_locate_wrapper()`; simplifies the skip message.

@egg-reviewer egg-reviewer Bot 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.

Approve. Clean dead-code removal.

Verified:

  • sandbox/scripts/jira exists at the canonical path (executable, current).
  • .egg-state/agent-outputs/1556-sandbox-scripts-jira does not exist; the fallback path is unreachable.
  • #2135 merged 2026-04-27, so the rationale for the artifact-fallback dance ("until a role with push rights for sandbox/scripts/ lands it at the canonical path") no longer holds.
  • No other references to 1556-sandbox-scripts-jira or _ARTIFACT remain anywhere in tests/, sandbox/, docs/, shared/, orchestrator/, or gateway/ (the two _READ_PEER_ARTIFACT_SCHEMA hits in sandbox/egg_agent_tools/tools/brc.py are unrelated BRC schema names).
  • pytest tests/sandbox/test_jira_wrapper.py → 19/19 passed locally.

The diff is exactly what the description claims: docstring paragraph, _ARTIFACT constant, fallback if branch, and the dual-path skip message all gone; skip message simplified to reference _CANONICAL only. Nothing else touched.

— Authored by egg

@james-in-a-box

Copy link
Copy Markdown
Contributor

egg review completed. View run logs

@jwbron
jwbron merged commit 686e138 into main Apr 27, 2026
21 checks passed
james-in-a-box Bot pushed a commit that referenced this pull request Apr 28, 2026
The fallback in `tests/sandbox/test_jira_wrapper.py` was scaffolding
for the pre-#2135 workaround when `sandbox/scripts/` was blocked from
agent writes. With #2135 merged, new wrappers land at the canonical
path directly and the artifact location is permanently dead code.

Drops the docstring paragraph, the `_ARTIFACT` constant, and the
fallback branch in `_locate_wrapper()`; simplifies the skip message.
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.

tests: remove jira-wrapper artifact-location fallback (post-#2135 cleanup)

1 participant