Skip to content

fix(ip): fix CI failures in fuzz test and bash comparison tests#139

Merged
thieman merged 1 commit intomainfrom
thieman/fix-ip-ci-failures
Mar 23, 2026
Merged

fix(ip): fix CI failures in fuzz test and bash comparison tests#139
thieman merged 1 commit intomainfrom
thieman/fix-ip-ci-failures

Conversation

@thieman
Copy link
Copy Markdown
Collaborator

@thieman thieman commented Mar 23, 2026

Summary

Fixes two CI failures introduced alongside the ip route show/get implementation (#135):

  • Fuzz (ip) failure: FuzzIPSubcommand incorrectly only allowed exit codes 0 and 1, but ip route <unknown> legitimately exits with 255 (matching real iproute2 behavior). Updated the allowed exit codes and added regression corpus entry ffdc891dc1bd740f (route 0).
  • Test against Bash (Docker) failures: route_unknown_subcmd and get_uppercase scenarios were missing skip_assert_against_bash: true. Since ip is a rshell builtin not present in bash, running these against bash returns exit 127 with "ip: command not found" instead of the expected rshell error.

Test plan

  • Fuzz (ip) CI job passes (corpus entry ffdc891dc1bd740f now accepted with exit 255)
  • Test against Bash (Docker) CI job passes (both ip route error scenarios skip bash assertion)

🤖 Generated with Claude Code

- FuzzIPSubcommand: allow exit code 255 (legitimate for ip route unknown
  subcommands, matching iproute2 behavior) and add regression corpus entry
  for "route 0" (ffdc891dc1bd740f)
- route_unknown_subcmd, get_uppercase scenarios: add skip_assert_against_bash
  since ip is a rshell builtin not present in bash (bash returns 127)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@thieman thieman marked this pull request as ready for review March 23, 2026 14:02
@thieman thieman added this pull request to the merge queue Mar 23, 2026
Merged via the queue into main with commit 4becaf0 Mar 23, 2026
34 checks passed
@thieman thieman deleted the thieman/fix-ip-ci-failures branch March 23, 2026 16:33
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.

2 participants