Skip to content

Fix the undefined warnings name in smoke cache reporting #365

Open

Description

@Jammy2211

The smoke workflow loses its cache report even when the job stays green. On freshly fetched PyAutoHeart main at f83ff16, executing the cache-stats step’s Python heredoc in a fresh interpreter fails before it can measure any cache.

File "<stdin>", line 6, in <module>
NameError: name 'warnings' is not defined.

The step has a copied SyntaxWarning filter and does not parse workspace scripts. The earlier scanner step imports warnings and uses its filter.

Repair plan

  1. Remove the copied filter in the cache-stats step of .github/workflows/smoke-tests.yml.
  2. Extend tests/test_workflow_wiring.py to compile workflow stdin Python blocks and check undefined names. Verify the regression against the original block and run the repaired cache step in a temporary directory to check the report.
  3. Run the affected tests, targeted smoke, tenant firewall and independent review before opening the repair PR.

Suggested branch feature/smoke-cache-stats-warnings-nameerror. The source prompt is draft/bug/health_fixes/smoke_cache_stats_warnings_nameerror.md in PyAutoMind.

Shift sequencing question

PyAutoMind main records a live claim on PyAutoHeart for #364, and the shift lists its worker as running. Should the next shift resume this repair after that claim clears, or should the two tasks receive an explicit coordination override for separate worktrees?

Activity

  1. Jammy2211 commented on Nov 23, 2026

    @Jammy2211
    ContributorAuthor

    Resume the cache-statistics repair once the existing PyAutoHeart #364 claim clears through the approved PR merge.

  2. Jammy2211 commented on Nov 24, 2026

    @Jammy2211
    ContributorAuthor

    Q28’s prerequisite cleared when #366 merged and closed #364. On fresh Heart main at 817362c3, the cache-statistics Python block still exits 1 at line 6 with NameError: name 'warnings' is not defined.

    Mind now records a different active PyAutoHeart claim for #368. Its PR #369 is open and awaiting human merge. It changes the health writeback workflow, helper and tests. The planned repair here touches the smoke workflow and its wiring tests. The start-library conflict guard covers the whole repository.

    Should this repair resume after #369 merges and its claim clears, or do you authorize separate worktrees for #365 and #368 while #369 is open?

  3. Jammy2211 commented on Nov 24, 2026

    @Jammy2211
    ContributorAuthor

    resume after 369 merges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions