Skip to content

Parallel tests #3664

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

Merged
merged 8 commits into from
Jun 29, 2021
Merged

Parallel tests #3664

merged 8 commits into from
Jun 29, 2021

Conversation

code-asher
Copy link
Member

I recommend reviewing by commit (and reading the commit messages).

Setting as a draft until I'm sure the tests pass in CI.

Checklist

  • updated CHANGELOG.md

@codecov
Copy link

codecov bot commented Jun 24, 2021

Codecov Report

Merging #3664 (172560b) into main (4a47ce7) will increase coverage by 0.25%.
The diff coverage is 92.85%.

❗ Current head 172560b differs from pull request most recent head 2238d73. Consider uploading reports for the commit 2238d73 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3664      +/-   ##
==========================================
+ Coverage   59.87%   60.13%   +0.25%     
==========================================
  Files          35       35              
  Lines        1797     1811      +14     
  Branches      364      365       +1     
==========================================
+ Hits         1076     1089      +13     
- Misses        605      606       +1     
  Partials      116      116              
Impacted Files Coverage Δ
src/node/util.ts 70.98% <92.85%> (+1.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a47ce7...2238d73. Read the comment docs.

@code-asher code-asher force-pushed the parallel-tests branch 9 times, most recently from 7e0753e to 020d41a Compare June 25, 2021 17:07
@code-asher code-asher marked this pull request as ready for review June 25, 2021 18:34
@code-asher code-asher requested a review from a team as a code owner June 25, 2021 18:34
@code-asher code-asher force-pushed the parallel-tests branch 3 times, most recently from 387a342 to 268dc84 Compare June 25, 2021 19:50
Copy link

@oxy oxy left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jsjoeio jsjoeio added the testing Anything related to testing label Jun 28, 2021
@jsjoeio jsjoeio added this to the 3.11.0 milestone Jun 28, 2021
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

Fantastic work man 👏

I think there are a few places we need to add async/await but everything else looks good!

@code-asher code-asher requested a review from jsjoeio June 28, 2021 18:49
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

Nice work man! This is huge. 🎉

The workspaces also have settings to prevent the welcome page from
appearing.
This should simplify testing new utils a bit.
This way it can be used by the tests when spawning code-server on a
random port to look for the address.
This uses the current dev build by default but can be overidden with
CODE_SERVER_TEST_ENTRY (for example to test a release or some other
version).

Each instance has a separate state directory. This should make
parallelization work.

This also means you are no longer required to specify the password and
address yourself (or the extension directory once we add a test
extension). `yarn test:e2e` should just work as-is.

Lastly, it means the tests are no longer subject to yarn watch randomly
restarting.
My thinking is that this may reduce the cognitive overhead for
developers writing new test suites.

This also allows us to perform different setup steps (like ensuring the
editor is visible when authenticated).
I figure login is already tested so we can skip this and just use the
cookie.
It seems a dialog sometimes appears asking if you want to lose
changes (even though we have no changes; it seems based on timers in
some way). Playwright defaults to dismissing them (so quickly you might
not even see them) so accepting instead fixes navigation to the logout
page getting canceled.
@code-asher code-asher merged commit f92cbb7 into coder:main Jun 29, 2021
@code-asher code-asher deleted the parallel-tests branch June 29, 2021 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants