Skip to content

Fix nightly cassert issue dedup and regression.diffs glob expansion - #8791

Draft
ibrahim halatci (ihalatci) wants to merge 1 commit into
mainfrom
ihalatci-cassert-workflow-issue-dedup
Draft

Fix nightly cassert issue dedup and regression.diffs glob expansion#8791
ibrahim halatci (ihalatci) wants to merge 1 commit into
mainfrom
ihalatci-cassert-workflow-issue-dedup

Conversation

@ihalatci

Copy link
Copy Markdown
Contributor

One nightly cassert flake was spawning a new issue every night. Five issues (#8749, #8768, #8769,
#8775, #8776) were opened across six days for what turned out to be five root causes surfacing in
varying combinations, all on the same commit.

Cause

The de-duplication keyed on the exact sorted set of failing job names. Those names are
PG-major-qualified, so a run failing regress on PG16 and a run failing regress on PG17 produce
disjoint key sets and are treated as unrelated. Any night-to-night variation in which PG major
happened to lose the race therefore created a fresh issue.

Fix

Keep a single rolling open issue per label. Subsequent failures append a comment to it instead of
opening a new one.

  • The newest matching issue is selected via reduce((a, b) => b.number > a.number ? b : a).
  • .filter(i => !i.pull_request) is required — the search endpoint returns pull requests alongside
    issues, and without this the workflow can latch onto a PR.
  • Title is normalised to Nightly cassert failures (since <date>).

Also fixes an unquoted echo -E $diffs at .github/actions/save_logs_and_results/action.yml:32,
where the shell was glob-expanding the list of regression.diffs paths.

+21/−40.

Effect

Tonight's nightly appends to the existing consolidated tracker rather than opening a sixth issue.

Refs #8776

The notify job deduped on the exact sorted set of failing job names. Because
the jobs that fail alongside a flaky test differ every night, one recurring
flake (single_node_enterprise) opened three separate issues (#8749, #8775,
#8776) whose job-name sets did not even overlap. Keep a single rolling open
issue per label and append each night's failures to it instead.

Also quote $diffs in the "Publish regression.diffs" step. The unquoted echo
glob-expanded the * characters in the diff content against the repo root and
injected a stray repository directory listing into the published diff (seen in
#8768).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.69%. Comparing base (52663ed) to head (dfac8b3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8791      +/-   ##
==========================================
- Coverage   88.70%   88.69%   -0.02%     
==========================================
  Files         289      289              
  Lines       64889    64890       +1     
  Branches     8181     8181              
==========================================
- Hits        57559    57553       -6     
- Misses       4967     4971       +4     
- Partials     2363     2366       +3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants