Skip to content

Fix intermittent one-off dyno test failures from extra trailing newline#2115

Merged
edmorley merged 1 commit into
mainfrom
edmorley/fix-run-trailing-newline-flakiness
Jul 8, 2026
Merged

Fix intermittent one-off dyno test failures from extra trailing newline#2115
edmorley merged 1 commit into
mainfrom
edmorley/fix-run-trailing-newline-flakiness

Conversation

@edmorley

@edmorley edmorley commented Jul 8, 2026

Copy link
Copy Markdown
Member

The platform log stream that captures one-off dyno (app.run) output occasionally appends an extra trailing newline, which intermittently breaks exact-match (.to eq) output assertions. For example:
https://github.com/heroku/heroku-buildpack-python/actions/runs/28526498507/job/85081876325?pr=2110#step:5:589

This is the same flakiness that #2102 fixed for the profile.d/ scripts test. Reuses the existing normalize_trailing_newlines spec helper to absorb the spurious newline while still asserting on the rest of the output exactly, applying it to the seven app.run exact-match assertions.

GUS-W-23366753.

The platform log stream that captures one-off dyno (`app.run`) output
occasionally appends an extra trailing newline, which intermittently
breaks exact-match (`.to eq`) output assertions. For example:
https://github.com/heroku/heroku-buildpack-python/actions/runs/28526498507/job/85081876325?pr=2110#step:5:589

This is the same flakiness that #2102 fixed for the `profile.d/` scripts
test. Reuses the existing `normalize_trailing_newlines` spec helper to
absorb the spurious newline while still asserting on the rest of the
output exactly, applying it to the seven `app.run` exact-match
assertions.

GUS-W-23366753.
@edmorley edmorley self-assigned this Jul 8, 2026
@edmorley
edmorley marked this pull request as ready for review July 8, 2026 14:49
@edmorley
edmorley requested a review from a team as a code owner July 8, 2026 14:49
@edmorley
edmorley enabled auto-merge (squash) July 8, 2026 14:49
@edmorley
edmorley merged commit 8ef81fc into main Jul 8, 2026
8 of 9 checks passed
@edmorley
edmorley deleted the edmorley/fix-run-trailing-newline-flakiness branch July 8, 2026 18:46
@heroku-linguist heroku-linguist Bot mentioned this pull request Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants