Skip to content

fix(aws-python-scheduled-cron): resume the live test now that Python logs show in output - #836

Merged
czubocha merged 1 commit into
v4from
branch/dreamy-lamport-709whe-python-cron
Nov 25, 2026
Merged

czubocha merged 1 commit into
v4from
branch/dreamy-lamport-709whe-python-cron

Conversation

@czubocha

Copy link
Copy Markdown
Contributor

Serverless Framework 4.47.0 shows messages logged with Python's logging module in serverless invoke --log and serverless logs output (serverless/serverless#14137). The aws-python-scheduled-cron example was quarantined because its invoke check looks for such a message. This resumes its live test.

Changes

  • aws-python-scheduled-cron/example.json: remove test.quarantine. The check is unchanged.
  • aws-python-scheduled-cron/README.md: Deploy output refreshed from the last run after the README was finished (package size 3.6 kB); Try it now shows the real serverless invoke --log and serverless logs output from a run on 4.47.0.

Onboarding example: only README.md and example.json changed. npm run docs regenerated nothing else (npm run check-docs clean).

Test plan

AWS us-east-1, released CLI.

Live test on the final tree (node scripts/test-example.mjs aws-python-scheduled-cron):

[version] Serverless ϟ Framework 4.47.0
[check] Your cron function ran at 20:51:23.317693
[remove] ✔ Service aws-python-scheduled-cron has been successfully removed (54s)
PASS aws-python-scheduled-cron 4.47.0 177s

Stage exljysdj3gq. An earlier run before the README edits also passed (PASS aws-python-scheduled-cron 4.47.0 187s, stage exl5rg7tjf9).

Negative control, same check with --framework-version 4.46.0 (stage exla52kcwun): the log line reads undefined, and the run stops at the check step:

[check] checks[0] invoke: serverless invoke -f rateHandler: output does not contain "Your cron function ran at"; ...
FAIL aws-python-scheduled-cron 4.46.0 179s

README followed by hand from a copy (stages pycronrd1, pycronrd2): deploy, invoke --log, logs, invoke local and remove behaved as the page shows.

Leftovers: aws cloudformation list-stacks (active states) and aws logs describe-log-groups --log-group-name-prefix /aws/lambda/aws-python-scheduled-cron return nothing after all runs.

Static: npm test 323/323 pass; npm run validate 0 errors; npm run check-docs clean.


Generated by Claude Code

…logs show in output

Serverless Framework 4.47.0 shows messages logged with Python's logging module in serverless invoke --log and serverless logs output, so the example's invoke check passes again. Remove the quarantine and show the invoke and logs output from a real run in the README.
@czubocha
czubocha merged commit cf773e1 into v4 Nov 25, 2026
3 checks passed
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.

1 participant