Skip to content

ci: add nix build, lint, and test workflow - #327

Closed
rebizzz wants to merge 1 commit into
noctalia-dev:mainfrom
rebizzz:ci/nix-workflow
Closed

rebizzz wants to merge 1 commit into
noctalia-dev:mainfrom
rebizzz:ci/nix-workflow

Conversation

@rebizzz

@rebizzz rebizzz commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a GitHub Actions CI workflow to run nix flake checks, C++ formatting, workflow tests, packaging, unit tests, and the 231 headless harness checks on pushes and PRs.

Also adds an aligned udmabuf allocator in src/server/allocator.cpp for software rendering (WLR_RENDERER_FORCE_SOFTWARE=1). When running headless with Mesa llvmpipe, unaligned buffer strides (e.g. non-multiple-of-4 widths like 650 or 1170) caused #GP / SIGSEGV crashes on row 1 due to 16-byte aligned SIMD instructions (vmovdqa), and unpadded heights caused 4-row SIMD reads past the buffer end. Aligning stride to 64 bytes and padding allocation height to 64 rows fixes this.

Motivation

Automate build, lint, and test validation on PRs and pushes to main so regressions get caught before merge.

Type of Change

  • Bug fix
  • Build / packaging

Testing

  • nix flake check and nix fmt -- --ci
  • just format and just test-workflows
  • nix build .#default
  • just test (99/99 passed)
  • just check (all 231 harness checks passed in headless software rendering)

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • This change fits SCOPE.md, or its scope was agreed in an issue or on Discord first.
  • I read and followed the relevant guidance in CONTRIBUTING.md.
  • I ran just format, or this PR has no C++ changes.
  • I ran the relevant build, test, lint, or verification commands, or explained why they were not run.
  • I functionally verified compositor behavior where automated checks are insufficient.
  • I self-reviewed the changes.
  • I checked for new warnings or errors.
  • I updated docs/ and examples/config.toml, or this PR does not change user-facing configuration or behavior.
  • I used canonical names for config keys, IPC actions, paths, and identifiers.

@rebizzz
rebizzz force-pushed the ci/nix-workflow branch 4 times, most recently from d0b984d to d7add9d Compare September 27, 2026 16:49
@rebizzz
rebizzz marked this pull request as draft September 27, 2026 16:57
Add GitHub Actions workflow for Nix build, lint, and test jobs.
Also provide an aligned udmabuf allocator in headless software rendering
mode to align row strides and pad buffer heights for Mesa llvmpipe SIMD rasterization.
@rebizzz
rebizzz marked this pull request as ready for review September 27, 2026 23:42
@ItsLemmy

Copy link
Copy Markdown
Member

@samiser

@Ly-sec

Ly-sec commented Sep 28, 2026

Copy link
Copy Markdown
Member

Thanks for putting this together and for investigating the software-rendering allocator issue @rebizzz .
We recently added separate glibc and musl CI workflows, so the CI portion of this PR now overlaps with work already on the latest main branch.
We are still interested in the allocator changes, but we would like to review them separately. Could you please open a new PR based on the latest main branch containing only the allocator implementation and its relevant tests or verification? Keeping it separate will make the behavioral change and its regression coverage much easier to review.

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.

3 participants