Skip to content

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Dec 20, 2025

  1. Avoid hacking GNU testsuite to force-run tests for missing utils. ./configure might might adjust tests. Ideally, we should pass the tests without any hacks.
  2. Drop obsolete spell-checker: ignore
  3. tmp run runcon-compute.sh by false binary as a workaround (not an actual fix).

@oech3 oech3 changed the title build-gnu.sh: Remove a hack to force-enable tests & some fix build-gnu.sh: Remove a hack to force-enable tests & tmp run runcon-compute by false symlink Dec 20, 2025
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@oech3
Copy link
Contributor Author

oech3 commented Dec 20, 2025

Updating to check caches...

@github-actions
Copy link

GNU testsuite comparison:

Note: The gnu test tests/basenc/bounded-memory is now being skipped but was previously passing.

renovate bot and others added 7 commits December 20, 2025 23:31
* feat: dynamically adjust merge batch size based on file descriptor limits

- Add `effective_merge_batch_size()` function to calculate batch size considering fd soft limit, with minimums and safety margins.
- Generalize fd limit handling from Linux-only to Unix systems using `fd_soft_limit()`.
- Update merge logic to use dynamic batch size instead of fixed `settings.merge_batch_size` to prevent fd exhaustion.

* fix(sort): update rlimit fetching to use fd_soft_limit with error handling

Replace direct call to get_rlimit()? with fd_soft_limit(), adding a check for None value to return a usage error if rlimit cannot be fetched. This improves robustness on Linux by ensuring proper error handling when retrieving the file descriptor soft limit.

* refactor(sort): restrict nix::libc and fd_soft_limit to Linux

Update conditional compilation attributes from #[cfg(unix)] to #[cfg(target_os = "linux")]
for the nix::libc import and fd_soft_limit function implementations, ensuring these
features are only enabled on Linux systems to improve portability and avoid issues
on other Unix-like platforms.

* refactor: improve thread management and replace unsafe libc calls

Replace unsafe libc::getrlimit calls in fd_soft_limit with safe nix crate usage.
Update Rayon thread configuration to use ThreadPoolBuilder instead of environment variables for better control.
Add documentation comment to effective_merge_batch_size function for clarity.

* refactor(linux): improve error handling in fd_soft_limit function

Extract the rlimit fetching logic into a separate `get_rlimit` function that returns `UResult<usize>` and properly handles errors with `UUsageError`, instead of silently returning `None` on failure or infinity. This provides better error reporting for resource limit issues on Linux platforms.

* refactor(sort): reorder imports in get_rlimit for consistency

Reordered the nix::sys::resource imports to group constants first (RLIM_INFINITY), then types (Resource), and finally functions (getrlimit), improving code readability and adhering to import style guidelines.
@oech3 oech3 closed this Dec 20, 2025
@oech3 oech3 deleted the patch-2 branch December 20, 2025 14:34
@oech3 oech3 restored the patch-2 branch December 20, 2025 14:34
@oech3
Copy link
Contributor Author

oech3 commented Dec 20, 2025

Broken PR...

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