Skip to content

test(e2e): follow source remove exit 1 and GitCode MR error on main - #2114

Closed
jeff-r2026 wants to merge 1 commit into
mainfrom
chore/fork-issue-audit-run-93ceb4
Closed

jeff-r2026 wants to merge 1 commit into
mainfrom
chore/fork-issue-audit-run-93ceb4

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

main has been red on the E2E jobs since da482cb0 (CI run 45741367519): three E2E cases still expect behaviour that #2041 and #2074 changed on purpose. Every open PR inherits the same two failing fork-safe E2E jobs. This PR updates the tests only; no runtime code changes.

Failing case Cause Change
source-manifest-isolation-e2e › keeps installation ownership separate (both variants) #2041 makes source remove of a source that is already gone exit 1 the last remove expects exit 1 and the same Source "shared" not found. message
e2e/import-from-mr-workflow › names the step that failed… #2074 adds GitCode to the unsupported MR URL message match Only GitHub, TGit, GitLab and GitCode are supported
e2e/e2e (GitHub provider, remote fixture) › source add + list + remove deriveSourceName names https://github.com/anthropics/skills.git after its owner, anthropics; the test removed skills, which only passed while a missing source exited 0. The retry then failed with Source "anthropics" already exists use anthropics as the source name

Test Plan

On Linux (Node 20), branch rebased on da482cb0:

  • npm ci && npm run build && npm run typecheck: pass
  • npx vitest run --config vitest.e2e.config.ts src/__tests__/source-manifest-isolation-e2e.test.ts src/__tests__/e2e/import-from-mr-workflow.test.ts: 2 files, 10 tests passed (they fail on da482cb0 as in CI run 45741367519)
  • I did not run the remote-fixture case locally because it needs the CI token. The source name comes from deriveSourceName (src/source.ts:1412, which returns the first path segment), and the main CI log shows Source "anthropics" already exists on the retry.

Tests-only change, so no real-CLI record is needed.

🤖 Generated with Claude Code

#2041 made `source remove` of a missing source exit 1 and #2074 added
GitCode to the unsupported MR URL message. Three E2E cases still expected
the old behaviour and have kept main's E2E jobs red since da482cb:

- source-manifest-isolation: the final remove of an already-removed
  source now expects exit 1 with the same message.
- import-from-mr-workflow: match the message that names GitCode.
- e2e remote roundtrip: the source added from anthropics/skills is named
  after its owner ("anthropics"), not "skills"; the old name only passed
  because removing a missing source used to exit 0.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Code Erosion Report

Informational — never blocks the merge. scb-check==0.2.0 SlopCodeBench metrics; method & caveats in docs/dev/ci-code-erosion.md.

Metric Value Human band Agent band Reading
Verbosity* 0.041 0.15 0.33 human
Erosion 0.701 0.31 0.68 agent
Cognitive erosion 0.865 – – –

Scanned 653 files / 142647 SLOC · high-CC functions 1117/14635

* On TypeScript, verbosity is partial and the bands are Python-calibrated.

Rule hits (TS verbosity layer)

Standalone ast-grep, separate from the number above.

Rule Hits
unnecessary-else-after-return 71
empty-catch-block 6

77 distinct lines flagged across src/.

@jeff-r2026

Copy link
Copy Markdown
Collaborator Author

Closing: this PR conflicts with main and has had no updates since its last commit (2026-11-18/22/27). If it is still needed, please rebase onto the latest main and reopen.

@jeff-r2026 jeff-r2026 closed this Nov 27, 2026
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