Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] avoid codebase mixup in display tests #11959

Merged
merged 9 commits into from
Feb 3, 2025

Conversation

kLabz
Copy link
Contributor

@kLabz kLabz commented Jan 29, 2025

Issue: our display tests run with the whole tests/display/src folder as classpath, and in some weird cases some modules from our display test codebase gets included there (#11958 is an example of something that is pulling it) and causes "random" CI failures like https://github.com/HaxeFoundation/haxe/actions/runs/13027188761/job/36338795090?pr=11957 or #8556.

Solution: isolate actual code from the display test from the test codebase / "framework"


This is actually not enough, as there is another issue that I dodged for now to at least avoid those random CI failures.

Issue is with display/references, that will look in modules seen by classpath exploration (so here, std; used to also include a bunch of things from our tests, too) for modules that have identifiers with matching name (so #5172's i, #6405's e and cases.Super's super are obvious problems here) and type them, even if they're not compatible with current context (display tests are cross, and thus not compatible with haxe.macro and sys.thread packages, for example).

Why this only happens with some particular builds is beyond me atm.

@kLabz kLabz force-pushed the display_tests_avoid_codebase_mixup branch from e203158 to b7b1a70 Compare January 29, 2025 21:39
@skial skial mentioned this pull request Jan 30, 2025
1 task
@kLabz kLabz force-pushed the display_tests_avoid_codebase_mixup branch 10 times, most recently from 34321e8 to aa459e4 Compare January 30, 2025 16:28
@kLabz kLabz marked this pull request as draft January 30, 2025 16:34
@kLabz
Copy link
Contributor Author

kLabz commented Feb 3, 2025

I'd like to go ahead with this (well, after restoring CI and 11957) for now to get rid of the random failures, and resume investigation later (after preview at least), if that's ok for you @Simn

@Simn
Copy link
Member

Simn commented Feb 3, 2025

I have no objections.

@kLabz kLabz force-pushed the display_tests_avoid_codebase_mixup branch from 02e6e55 to fee4755 Compare February 3, 2025 19:20
@kLabz kLabz marked this pull request as ready for review February 3, 2025 19:20
@kLabz kLabz merged commit 3c7f97e into development Feb 3, 2025
116 checks passed
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