Skip to content

fix(analyze): warn before GNU date fallback#6879

Open
nanookclaw wants to merge 2 commits into
canonical:mainfrom
nanookclaw:fix/analyze-date-warning
Open

fix(analyze): warn before GNU date fallback#6879
nanookclaw wants to merge 2 commits into
canonical:mainfrom
nanookclaw:fix/analyze-date-warning

Conversation

@nanookclaw
Copy link
Copy Markdown

@nanookclaw nanookclaw commented May 12, 2026

Summary

Adds a transitional warning when cloud-init analyze dump falls back to GNU date/gdate for timestamp parsing. The warning includes the unrecognized timestamp format and the selected binary so maintainers can collect formats that still need native Python support before removing the shell-out path.

The no-GNU-date behavior is unchanged: unsupported formats still raise ValueError when neither date nor gdate is available.

Fixes #4357.

Testing

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -q tests/unittests/analyze/test_dump.py
  • git diff --check

Plain pytest in this environment auto-loads a missing external plugin (evalcraft), so I disabled plugin autoload for the focused test run.

Signed-off-by: Nanook <nanookclaw@users.noreply.github.com>
Signed-off-by: Nanook <nanookclaw@users.noreply.github.com>
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.

Don't Depend on GNU Date

1 participant