Repository navigation
spec(port): railway_null_startcmd as .t27 - #6240
Merged
Merged
Conversation
…ailway_null_startcmd.t27 (Closes #6213) Ports the two decisions in the original: the argument count check (argc < 3 is a usage failure) and the result verdict (a non-zero curl exit or an "errors" field in the response is a failure). The curl/argv plumbing stays an undefined main. Checked with t27c from this tree and Zig 0.16.0: typecheck OK, spec-status IMPLEMENTED, gen 61 lines with no "not yet implemented", test-report 8/8, 0 BLOCKED. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6213
Adds
specs/port/trinity/src/cli/railway_null_startcmd.t27, the port ofsrc/cli/railway_null_startcmd.zig(gHashTag/trinity at 8afec86b8da9). One file, nothing else.Ported decisions:
decide_args(argc): fewer than 3 arguments (program, service id, token) is a usage failure.decide_result(curl_exit_code, stdout_has_errors_field): a non-zero curl exit or an"errors"field in the response is a failure, because Railway rejects a mutation with HTTP 200 and an errors array.mainis kept under its name with anundefined;body (argv, GraphQL body, curl, printing).Checks, run from this branch with
t27cbuilt from the same tree and Zig 0.16.0:t27c typecheck: OK (0 errors, 0 warnings)t27c spec-status: IMPLEMENTEDt27c gen: 61 lines, 0 xnot yet implementedt27c test-report: 8 tests, 8 pass, 0 BLOCKEDgrep -cE '^\s*(pub )?fn (main)\(': 1Not checked: the seal in
.trinity/seals/and conformance vectors (the issue does not ask for them); CI result is pending.🤖 Generated with Claude Code