Skip to content

fix(tests): drop --profile assertions missed by cron profile revert - #43974

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

fix(tests): drop --profile assertions missed by cron profile revert#43974
teknium1 wants to merge 1 commit into
mainfrom
fix/cron-profile-test-revert

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Restores green CI on main: PR #43956 (revert of cron per-job profile support) removed the --profile flag from hermes cron create but left test_cron_create_options still passing --profile work to the parser, so every run since fails with SystemExit: 2 — unrecognized arguments: --profile work.

Changes

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

Validation

Before After
tests/hermes_cli/test_subcommands_cron.py 1 failed, 5 passed 6 passed
main CI (run 27322395835) red on this test n/a — fix pending

Infographic

Stale test assertion swept infographic

PR #43956 removed the cron per-job --profile flag but left
test_cron_create_options passing '--profile work' to the parser,
breaking main's CI (unrecognized arguments: --profile work).
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: fix/cron-profile-test-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: 10653 on HEAD, 10653 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 5564 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 labels Jun 11, 2026
@teknium1

Copy link
Copy Markdown
Contributor Author

Superseded: the --profile cleanup landed on main via the cron parser extraction (test file renamed to test_cron_parser_builder.py with the stale assertions already removed). Closing as redundant.

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

@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 a prior revert but the test assertion was missed.

Note

  • PR #43978 also proposes the same change. One of these should be closed as duplicate.

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 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