Skip to content

fix(tests): expect the path reason for a FIFO root and a symlinked ZIP - #14242

Merged
morluto merged 1 commit into
mainfrom
fix/path-kind-test-expectations
Nov 24, 2026
Merged

morluto merged 1 commit into
mainfrom
fix/path-kind-test-expectations

Conversation

@morluto

@morluto morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

#14225 moved two path-kind refusals to ArtifactReaderFailure("path") at their producers, but their tests still expect "format" and fail on main:

  • tests/boundary/filesystem/artifactInventoryRegularRoot.test.ts ("rejects a FIFO artifact root without waiting for a writer"): openRootArtifact in src/resources/StableRootArtifact.ts maps NonRegularFileReadError to path.
  • tests/process-global/regularFileNoFollowFallback.test.ts: the ZIP source admission refuses a symlink opened without following as path.

Same root cause as #14238 (stale expectations after #14225). Both refusals are the caller's selection, so path (and the invalid_request projection) is correct; the producers are unchanged.

These are the "path-kind siblings" listed in #14225's follow-ups and #14239. Under #14239's model they are selection failures; the phase 2 work there will assert that kind directly.

Validation

npx vitest run on both files: 12 passed (both failed on main before the change).

#14225 moved both refusals to ArtifactReaderFailure("path") at their
producers (StableRootArtifact and the ZIP source admission). The two tests
still expected "format" and fail on main.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T01:43:08.292100Z
We couldn’t complete this review. Comment @codex review to try again.
9fdf5e3 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge; both test changes match the existing rejection behavior.

Summary

Updates two tests to expect "path" instead of "format" when the selected input is a FIFO root or a symlinked ZIP.

  • The FIFO and ZIP tests expect path errors for selected inputs.

Reviews (1) · Last reviewed commit: "fix(tests): expect the path reason for a..." · Reviewed by Greptile

@morluto
morluto merged commit 0af067d into main Nov 24, 2026
37 checks passed
@morluto
morluto deleted the fix/path-kind-test-expectations branch November 24, 2026 01:50
Plastic-time added a commit to Plastic-time/rea that referenced this pull request Nov 24, 2026
No conflicts. Brings in the main fix for the DirectoryArtifactReader non-file test (morluto#14242) that failed CI on the previous merge base.
@morluto morluto added area: tests Test suite and verification bug Something isn't working labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant