Skip to content

Add workflow to check determinism#1164

Merged
MarkCallow merged 39 commits intomainfrom
check_determinism
May 5, 2026
Merged

Add workflow to check determinism#1164
MarkCallow merged 39 commits intomainfrom
check_determinism

Conversation

@MarkCallow
Copy link
Copy Markdown
Collaborator

@MarkCallow MarkCallow commented May 4, 2026

A manually dispatched workflow to that runs the CTS, set to require exact matches to golden files, on macOS, Ubuntu and Windows using arm64 and x86_86 processors, with ktx and libktx compiled with clang and gcc and, in addition, on macOS AppleClang and on Windows ClangCL and msvc.

Of necessity to avoid a build failure on the macos-15-intel runner, update the version of zstd included in external/basis_universal/zstd.

The failure arose due to a combination of three factors: zstd_errors.h was not in external/basis_universal/zstd but in other_Include which is marked as a system directory; macos-15-intel has a newer version installed in /usr/local/include which omits declaration of a function libktx uses; the AppleClang version on that runner was searching /usr/local/include before directories specified with -isystem, in what looks like a bug. The updated version, from basis_universal 2.0, declares the function that libktx uses in zstd.h. Furthermore it includes zstd_errors.h in the same directory nullifying the -isystem and conflicting version problems.

MarkCallow added 30 commits May 2, 2026 16:05
Update CTS ref for updated golden files.

This avoids a bug in macOS 15 era AppleClang where it searches system
includes before directories specified with -isystem. This became a
problem when some Actions runners had a different version of zstd
installed in /usr/local/include.
Comment out additions to help debug.
@MarkCallow MarkCallow merged commit bc8d0c2 into main May 5, 2026
49 of 65 checks passed
@MarkCallow MarkCallow deleted the check_determinism branch May 5, 2026 06:01
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.

1 participant