Skip to content

Add CLI route definitions and regression tests#759

Merged
jsnmrs merged 5 commits intomainfrom
cron
Feb 3, 2026
Merged

Add CLI route definitions and regression tests#759
jsnmrs merged 5 commits intomainfrom
cron

Conversation

@jsnmrs
Copy link
Owner

@jsnmrs jsnmrs commented Feb 3, 2026

Summary

  • Add explicit $routes->cli() definitions for all cron-accessible routes to prevent CLI access failures when HTTP methods are restricted
  • Create regression tests to verify CLI routes match crontab definitions
  • Add fin clicheck command to validate CLI routes at runtime
  • Fix CLI route validation false positives when log content contains "404"
  • Remove deprecated aggro/watch from crontab
  • Consolidate and simplify Docksal commands

Test plan

  • Run fin test to verify all checks pass
  • Verify fin clicheck validates all CLI routes
  • Confirm cron jobs execute correctly

Add explicit $routes->cli() definitions for aggro/news, aggro/vimeo,
aggro/youtube, and aggro/duration to prevent CLI access failures when
HTTP methods are restricted (e.g., changing $routes->add() to
$routes->get()).

Changes:
- Add 6 CLI route definitions to Routes.php
- Create CliRouteRegressionTest to verify all crontab routes have
  corresponding $routes->cli() definitions
- Create PhpVersionConsistencyTest to ensure PHP version matches
  across .crontab, deploy.yml, docksal.env, and composer.json
- Create fin clicheck command to validate CLI routes at runtime
- Add fin clicheck to test pipeline
- Remove deprecated aggro/watch from crontab (no route exists)
- Check for CI4 404 page HTML pattern instead of matching "404" anywhere
  in output, which caused false failures when log content contained "404"
- Add CLI routes for aggro/log and aggro/log-error
- Show debug output when CLI route validation fails
@jsnmrs jsnmrs added the patch label Feb 3, 2026
@jsnmrs jsnmrs merged commit 0cd8fe5 into main Feb 3, 2026
2 checks passed
@jsnmrs jsnmrs deleted the cron branch February 3, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant