Skip to content

Draft: fix: broken tests#1543

Open
jficz wants to merge 24 commits into
raphamorim:mainfrom
jficz:fix_tests
Open

Draft: fix: broken tests#1543
jficz wants to merge 24 commits into
raphamorim:mainfrom
jficz:fix_tests

Conversation

@jficz
Copy link
Copy Markdown

@jficz jficz commented Apr 20, 2026

Problem introduced in #1535

Fixes #1544

raphamorim and others added 17 commits April 18, 2026 10:26
Switch `set_system_backdrop` from the Windows 11 22H2+ DWM backdrop
attribute (`DWMWA_SYSTEMBACKDROP_TYPE`) to the legacy `SetWindow
CompositionAttribute` path with `ACCENT_ENABLE_BLURBEHIND`. The DWM
path requires Windows 11 build 22523+; the legacy path works on
Windows 10 v1809+ and every Windows 11 build, giving a consistent
blur across all supported Windows versions.

Dynamic-loads `SetWindowCompositionAttribute` from user32.dll via
`GetProcAddress`; the symbol isn't in the public SDK. Falls back to
a no-op when the function isn't present.

Uses `AccentFlags = 2` (undocumented "use gradient color") so the
tint renders properly — matches Tauri's `window-vibrancy` crate.
Without it, blur ignores the gradient color and picks a washed-out
default.

Co-authored-by: NSPC911 <NSPC911@users.noreply.github.com>
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/f20dc5d' (2026-03-01)
  → 'github:hercules-ci/flake-parts/3107b77' (2026-04-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'github:nix-community/nixpkgs.lib/c185c7a' (2026-03-01)
  → 'github:nix-community/nixpkgs.lib/333c4e0' (2026-03-29)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b40629e' (2026-03-18)
  → 'github:NixOS/nixpkgs/4bd9165' (2026-04-14)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/c807e83' (2026-03-21)
  → 'github:oxalica/rust-overlay/e611106' (2026-04-18)
* docs: add documentation to test_poll.rs

* chore: remove test_echo_server.rs (fully commented out, no functional tests)

* chore: remove test_close_on_drop.rs (fully commented out, no functional tests)

* chore: remove test_double_register.rs (fully commented out, no functional tests)

* chore: remove test_broken_pipe.rs (uses deprecated corcovado::deprecated module that no longer exists)
@jficz jficz changed the title fix: broken tests fix: broken tests on linux Apr 20, 2026
@jficz
Copy link
Copy Markdown
Author

jficz commented Apr 20, 2026

I don't really understand the broken test on mac build...

never mind, took me a while to realize what the test really did 🤦

@jficz jficz changed the title fix: broken tests on linux fix: broken tests Apr 20, 2026
@jficz
Copy link
Copy Markdown
Author

jficz commented Apr 21, 2026

@raphamorim what happened to PR #1535? the commit is still on master but the PR is gone and so is, apparently, the user who created it... It's ... weird

@jficz jficz changed the title fix: broken tests Draft: fix: broken tests Apr 21, 2026
@jficz
Copy link
Copy Markdown
Author

jficz commented Apr 21, 2026

switching to Draft as the PR which removed the affected tests looks a bit suspicious

@jficz jficz marked this pull request as draft April 21, 2026 11:15
@raphamorim
Copy link
Copy Markdown
Owner

hmm weird for real, i reset the main just in case

@raphamorim raphamorim marked this pull request as ready for review April 22, 2026 12:34
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.

bug: tests broken on current master

2 participants