Skip to content

fix(tests): check omp's parsed manifest with an isolated link - #2045

Merged
tmchow merged 1 commit into
mainfrom
fix/omp-native-install-dry-run
Nov 9, 2026
Merged

tmchow merged 1 commit into
mainfrom
fix/omp-native-install-dry-run

Conversation

@tmchow

@tmchow tmchow commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

The omp native-install smoke test passes again on omp 18.18 and later. It now checks the name and manifest that omp parses from package.json#pi through a real omp plugin link into a throwaway home directory.

Starting with omp 18.18, omp install --dry-run --json <local path> returns only {dryRun, action: "link", path} and never reads package.json, so the test's name and manifest assertions failed on any machine with a current omp. CI runners have no omp, so CI skipped the test and missed the failure. The link runs with HOME, PI_CODING_AGENT_DIR, and the XDG_*_HOME dirs pointed at a temp directory that is removed afterwards. That keeps it out of the user's real ~/.omp (omp honors the XDG dirs on Linux). The assertions are unchanged.

Validation

  • bun test tests/omp-native-install.test.ts passes on omp 18.18.5. The existing ~/.omp/plugins/node_modules/compound-engineering symlink was unchanged after the run.
  • bun run test --changed-since=d293bf4bc (3981 pass, 0 fail), typecheck, release:validate, plugin:validate pass.

Security Disclosure

No security-relevant changes. The test now runs a real omp plugin link instead of a dry run, confined to a temporary HOME, agent dir, and XDG dirs that it deletes afterwards.

Agent Disclosure

  • Model: Claude Code · claude-opus-5-5

omp 18.18+ answers `install --dry-run` for a local path without reading
package.json, so the smoke test's name and manifest checks failed. The
test now runs a real `omp plugin link` into a throwaway HOME and agent
dir, which still reports the parsed name and manifest.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T21:46:56.982363Z a19473b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tmchow
tmchow merged commit 7e05090 into main Nov 9, 2026
10 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 9, 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