Skip to content

fix(tests): drop --profile from cron create options test (missed in #43956 revert) - #43978

Closed
teknium1 wants to merge 1 commit into
mainfrom
fix/cron-test-profile-revert
Closed

fix(tests): drop --profile from cron create options test (missed in #43956 revert)#43978
teknium1 wants to merge 1 commit into
mainfrom
fix/cron-test-profile-revert

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Fixes the red test (2) shard on main: PR #43956 (revert of cron per-job profile support) removed the --profile flag from the cron parser but missed test_cron_create_options, which still passes --profile work and fails with SystemExit: 2.

Changes

  • tests/hermes_cli/test_subcommands_cron.py: drop --profile work arg and ns.profile assertion

Validation

Before After
test_subcommands_cron.py 1 failed (SystemExit: 2) 6/6 pass
main CI test (2) shard red since #43956 unblocked

Infographic

infographic

PR #43956 reverted cron per-job profile support and removed the
--profile flag from the parser, but missed this test, leaving main's
test (2) shard red (SystemExit: 2, unrecognized arguments).
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: fix/cron-test-profile-revert vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 10668 on HEAD, 10668 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 5579 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P2 Medium — degraded but workaround exists comp/cron Cron scheduler and job management duplicate This issue or pull request already exists labels Jun 11, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #43974 — byte-for-byte identical diff (same author, opened ~8 min earlier) restoring the same green CI on the cron --profile revert. Consolidating on #43974.

@teknium1

Copy link
Copy Markdown
Contributor Author

Superseded by 975edd4 on main (same fix, file since renamed to test_cron_parser_builder.py). Duplicate of #43974 as well.

@teknium1 teknium1 closed this Jun 11, 2026
@teknium1
teknium1 deleted the fix/cron-test-profile-revert branch June 11, 2026 05:56

@tonydwb tonydwb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

Verdict: Approved

Looks Good

  • Test fix: removes --profile assertions from test_cron_create_options. The --profile option was removed from cron create in PR #43956 but the test assertion was missed. Clean revert of stale assertions.

No Issues Found

  • Straightforward test cleanup.

Reviewed by Hermes Agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants