Skip to content

duckdb: fix unittest progress output exceeding Hydra log limit - #579992

Open
jonasgloning wants to merge 2 commits into
NixOS:stagingfrom
jonasgloning:duckdb-log-limit
Open

jonasgloning wants to merge 2 commits into
NixOS:stagingfrom
jonasgloning:duckdb-log-limit

Conversation

@jonasgloning

Copy link
Copy Markdown

Things done

Resolves #570642

The unittest progress reporter reads the terminal width from an uninitialised struct. So every progress line can be padded with tens of thousands of spaces exceeding Hydra's log limit.
This PR backports the upstream fix and drops the x86_64 workaround.

@nixpkgs-ci nixpkgs-ci Bot added the 12.first-time contribution This PR is the author's first one; please be gentle! label Oct 28, 2026
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. labels Oct 28, 2026
@jonasgloning
jonasgloning changed the base branch from master to staging October 28, 2026 10:36
@nixpkgs-ci nixpkgs-ci Bot closed this Oct 28, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Oct 28, 2026
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@jonasgloning
jonasgloning marked this pull request as draft October 28, 2026 10:38
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Oct 28, 2026
@jonasgloning
jonasgloning marked this pull request as ready for review October 28, 2026 10:40
@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed stale reviews from themself October 28, 2026 10:46

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Oct 28, 2026
# Fix uninitialized terminal width in the unittest progress reporter.
# It padded every progress line to a garbage width when stdin is not a TTY and
# blew up the build log past Hydra's limit.
# Patch is upstream for DuckDB >2.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonasgloning , you note this is already resolved upstream at >=2.0. If that's the case would you defer this PR to

or not?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch is on main and on track to land in the bug fix release after 2.0, so 2.0.1 mid-November. So the patch is still a prerequisite for 2.0.0 afaik.
That was intended as a strictly larger sign; I should have worded this more clearly!

@cameronraysmith cameronraysmith mentioned this pull request Oct 28, 2026
4 of 13 tasks
Comment on lines 85 to 89
]
++ lib.optionals stdenv.cc.isGNU [
# causes massive amounts of logs, exceeding hydra's limits on some platforms
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-Wno-sfinae-incomplete")
];

@whispersofthedawn whispersofthedawn Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
];

feel free to drop this, then; i added this in an attempt to fix this issue, but this seems to have been the wrong solution. this pr seems like a much more correct solution (though i have no opinion on upgrade vs patch).

edit: i mean the entire isGNU + CMAKE_CXX_FLAGS block, github is rendering this wrong.

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

Labels

10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: duckdb, aarch64 on hydra: log limit exceeded

3 participants