Skip to content

Fix trycmd keygen snapshots to accept non-UTC timezone offsets#604

Merged
str4d merged 1 commit intostr4d:mainfrom
jeffs:issue562-test-timezone
Apr 7, 2026
Merged

Fix trycmd keygen snapshots to accept non-UTC timezone offsets#604
str4d merged 1 commit intostr4d:mainfrom
jeffs:issue562-test-timezone

Conversation

@jeffs
Copy link
Copy Markdown
Contributor

@jeffs jeffs commented Mar 8, 2026

Summary

  • Remove the literal trailing Z from trycmd timestamp patterns in gen-stdout.toml and gen-output.out/key.txt
  • rage-keygen uses chrono::Local::now(), which produces timezone offsets like -05:00 on non-UTC systems; the [..] wildcard now matches both Z and offset suffixes

Fixes #562

The timestamp pattern ended with a literal Z, which only matches UTC.
Since rage-keygen uses Local::now(), non-UTC systems produce offsets
like -05:00, causing test failures. Remove the trailing Z so the
wildcard matches any timezone suffix.

Fixes str4d#562
Copy link
Copy Markdown
Owner

@str4d str4d left a comment

Choose a reason for hiding this comment

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

Yeah, this will do; I don't care enough about this specific test to require it to pin UTC.

utACK 6b09705. Thanks!

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.48%. Comparing base (d191201) to head (6b09705).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
+ Coverage   55.39%   55.48%   +0.09%     
==========================================
  Files          42       42              
  Lines        4363     4363              
==========================================
+ Hits         2417     2421       +4     
+ Misses       1946     1942       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@str4d str4d merged commit dfb60a5 into str4d:main Apr 7, 2026
12 checks passed
@jeffs jeffs deleted the issue562-test-timezone branch April 7, 2026 02:53
@str4d str4d added this to the rage 0.12.0 milestone Apr 7, 2026
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.

gen-stdout.toml and gen-output.toml:teardown tests failed

2 participants