Skip to content

test: drop incorrect schema-hint assertion on --input file-path error#1235

Merged
patrikbraborec merged 1 commit into
masterfrom
fix/input-path-error-schema-hint
Jun 29, 2026
Merged

test: drop incorrect schema-hint assertion on --input file-path error#1235
patrikbraborec merged 1 commit into
masterfrom
fix/input-path-error-schema-hint

Conversation

@patrikbraborec

@patrikbraborec patrikbraborec commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the CI test failure introduced in #1212.

The --input file-path error in getInputOverride ("Providing a JSON file path in the --input flag is not supported. Use the --input-file= flag instead") is a usage error, so the schema-discovery hint intentionally does not apply to it — it only makes sense for the parse-error and object-shape-error cases. The test, however, asserted the hint was present for the file-path case and failed on CI.

Change

Update the test to assert the schema hint is absent for the file-path error. No source change — the existing behavior is correct.

Testing

pnpm exec vitest run test/local/lib/resolve-input.test.ts
# 4 passed

pnpm run lint && pnpm run format && pnpm run build all pass. The only failures in the full local suite are the pre-existing, environment-dependent [python] Actor-execution tests, unrelated to this change.

Closes #1234

🤖 Generated with Claude Code

…error

The --input file-path error ("use --input-file instead") is a usage
error, not a schema problem, so the schema-discovery hint intentionally
does not apply there. The test added in #1212 wrongly asserted the hint
was present, failing on CI. Update the test to assert the hint is
absent for this case.

Closes #1234

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@patrikbraborec patrikbraborec force-pushed the fix/input-path-error-schema-hint branch from 98010af to f54a224 Compare June 29, 2026 11:38
@patrikbraborec patrikbraborec changed the title fix(call): append schema hint to --input file-path error fix(call): drop incorrect schema-hint assertion on --input file-path error Jun 29, 2026

@l2ysho l2ysho 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.

👍 Just nit, I would use ci or test or chore (probably this is the one) prefix in commit title instead of fix. fix would be part of changelog (no need to bother user with this change)

@patrikbraborec patrikbraborec changed the title fix(call): drop incorrect schema-hint assertion on --input file-path error test: drop incorrect schema-hint assertion on --input file-path error Jun 29, 2026
@patrikbraborec patrikbraborec merged commit 613a590 into master Jun 29, 2026
24 checks passed
@patrikbraborec patrikbraborec deleted the fix/input-path-error-schema-hint branch June 29, 2026 12:42
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.

apify call: CI test wrongly asserts schema hint on --input file-path usage error

3 participants