Skip to content

Refactor render tests - #12436

Merged
stepankuzmin merged 10 commits into
aidan/windows-cifrom
refactor-render-tests
Dec 9, 2022
Merged

stepankuzmin merged 10 commits into
aidan/windows-cifrom
refactor-render-tests

Conversation

@stepankuzmin

@stepankuzmin stepankuzmin commented Dec 5, 2022 •

Copy link
Copy Markdown
Contributor
  • Decomposes and slightly improves the runTest function in test/integration/lib/render.js
  • Slightly improves test/integration/lib/server.js
  • Increases render test timeout from the 20s to 30s

After multiple runs, I can't reproduce the flakiness for dynamic-filter/symbols/line/, but some tests still fail sometimes due to the timeout/missing tiles.

Launch Checklist

  • briefly describe the changes in this PR
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'
  • add an entry inside this element for inclusion in the mapbox-gl-js changelog: <changelog></changelog>

@stepankuzmin stepankuzmin added the skip changelog Used for PRs that do not need a changelog entry label Dec 7, 2022
@stepankuzmin
stepankuzmin marked this pull request as ready for review December 7, 2022 14:06
@stepankuzmin
stepankuzmin requested a review from a team as a code owner December 7, 2022 14:06
Comment thread test/integration/lib/render.js Resolved

@SnailBones SnailBones left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work Stepan!

Do you have any idea how this impacts flaky tests in general? If not, let's keep an eye on flakiness after merging this to see if there's a considerably decrease and whether we can close out more of the issues in #11732!

@stepankuzmin
stepankuzmin force-pushed the refactor-render-tests branch from 103a55b to 287f5e2 Compare December 8, 2022 14:47
@stepankuzmin

Copy link
Copy Markdown
Contributor Author

No flakiness in render-tests/dynamic-filter/symbols/line/ for multiple consequential runs, but some tests are still might fail due to the missing tiles (i.e., Fetch failed) /cc @SnailBones

@stepankuzmin
stepankuzmin merged commit 35ed124 into aidan/windows-ci Dec 9, 2022
@stepankuzmin
stepankuzmin deleted the refactor-render-tests branch December 9, 2022 16:50
SnailBones added a commit that referenced this pull request Dec 13, 2022
* Build + render tests in windows

* Fixing issues with render tests running on Windows

* Adding prepare-windows script

* Adding prepare-windows to workflow

* Installing chrome

* Manually installing chrome

* Take 2

* fix

* Take 3

* Take 4

* Fix typo

* Switching check for Chrome

* Consolodating windows prepare script

* Adding checkout and restore cache

* Updating to latest version of browser-tools

* Add testing for firefox on Linux

* Adding missing prepare

* Fix indent

* Add test-render-firefox command

* Modifying alloweds so firefox tests pass

* Running tests on Chrome MacOS

* Removing cache

* Updating alloweds

* Updating incorrect test

* Adding overflow:scroll to test html to allow viewing difs with large images that were previously offscreen

* Updating allowed to pass tests failing on windows with no perceptible difference due to antialiasing

* Removing extra 0

* Regenerating expected for collision-pitched-wrapped

* Fixing changed alloweds

* Specifying browser in windows run

* Adding windows test ignores

* Fix broken test runs

* Adding firefox ignore file and rearranging test ignores

* Moving test triggering crash to skip

* Increasing timeout on Windows and Mac

* Fixing failures on windows

* Bumping time out and some windows alloweds

* Increasing browser_disconnect_timeout

* Increasing timeouts

* Increasing windows timeout to 45s

* Adding timing out tests to Windows ignore

* Adding MacOS ignores on CI

* Fix lint

* Raising alloweds to allow slightly flaky globe tests to pass on Windows

* Raising allowed on 10 tests to pass in MacOS on CI

* Adjusting timeout in tape() call

* Test: removing setting chrome flags to disable angle on CI

* Changing chrome flags to use llvmpipe driver on Linux instead of on CI

* Forcing gl on MacOS CI

* Moving tests from windows skip to TODO

* Adding check for valid angle option and using metal on Mac CI

* Updating CI MacOS to 12.5.1

* Test: Using swiftshader on MacOS

* Adding windows ignores to mac

* Always calling --disable-backgrounding-occluded-windows on Chrome

* Simplifying testing scripts

* Upping timeout to 1m for windows

* Adding prepare as dependency to windows and macos tests

Co-authored-by: Karim Naaji <[email protected]>

* Undoing too-high alloweds

* Raising allowed on one test for slight antialiasing difference

* Removing debug tile visualization and allowed from globe transition tests

* Updating existing render tests run names to include linux-chrome

* Changing timeout on windows from 60s to 90s

* Removing windows specific bug from Mac ignore

* Increasing allowed to account for antialiasing with two globe transition tests

* Adding -dev suffix to tests, removing prepare requirement from virtual machines

* Adding documentation

* Adding new test runs as dependencies for deploying benchmarks and release

* Adding timout to firefox to reduce flakiness

* Fix lint

* Bumping allowed to allow test to pass on macos

* Upping browser timeout

* Bumping windows timeout

* Adding links to issues

* Adding yarn cache dir for debugging

* Updating yarn cache location

* Adding fallback cache keys for partial cache restore

* Adding frozen lockfile to install, changing cache to just node modules

* Testing caching yarn cache instead of node_modules

* Removing exact cache check in windows run

* Full directory of cache on Windows

* Bumping browser timeout to 60

* Bumping windows timeout by 30s

* Changing windows to use seperate cache

* Bumping browser disconnect timeout to 90s

* Experiment: add linux yarn cache to mac

* Adding seperate mac cache

* Fixing inconsistent cache directories

* Renaming caches

* Removing caching from windows

* Attempt at parallelism on Windows

* Change syntax to windows cmd and attempt adding parallelism to mac

* Adding echos for debugging

* Changing echo to cat

* Removing cat

* Fixing globe

* Testing parallel runs  on linux

* Setting up render tests to accept a list of directories in arguments

* More robust argument parsing

* Attempt to change windows variable syntax to powershell

* Fix lint

* Try pipe in windows to solve command line too long error

* Attempt at writing and reading test list from file

* Fix typo

* Adding debug artifact

* Fix typo in debug path

* Changing encoding to utf8

* Splitting on regex to work in windows

* Converting Windows to posix paths

* Changing to utf8NoBOM

* Fix posix coversion

* Revert "Changing to utf8NoBOM"

This reverts commit 0cb12f9.

* Attempt at removing BOM

* Updating heatmap expecteds

* Try writing test list file for macos parallelization  too

* Adding trim to remove newline at file end being read as extra test

* Splitting mac run by timing

* Removing console.logs

* Refactor render tests (#12436)

* Clean up directory parsing code

* Removing test list artifacts added for debugging

* Adding flaky tests to brawser-specific ignores

* Adding one more test to mac ignore

* Adding one more test to macos skip

Co-authored-by: Karim Naaji <[email protected]>
Co-authored-by: Stepan Kuzmin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog Used for PRs that do not need a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants