Skip to content

bug: fail when old test result artifacts cannot be cleared #657

Backlog

Description

@yeongseon

scripts/report_results.py::reset_results_dir calls shutil.rmtree(resolved, ignore_errors=True) and then mkdir(..., exist_ok=True). If deletion fails (for example a permissions error on a previous JUnit file), the directory can still contain old results even though reset returns successfully. That contradicts the helper's guarantee that stale files never pass for this run's evidence.

Treat an absent directory as normal, but fail with an actionable error when an existing results directory cannot be fully cleared. Preserve the existing protected-directory checks. Add offline tests for a missing directory, a successful reset and a mocked removal failure with a stale artifact; ensure the failure is not silently accepted. No live CUBRID is needed.

Activity

  1. added
    bug
    status: needs triage
    on Nov 29, 2026
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

    buggood first issueneeds triagestatus: needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions