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

Fix CI, run lint, reduce end-to-end tests flakiness #417

Merged
merged 32 commits into from
Aug 11, 2023

Conversation

andrii-i
Copy link
Collaborator

@andrii-i andrii-i commented Aug 9, 2023

  • Fixes CI by pinning jupyterlab version for end-to-end tests and snapshot update jobs
  • Fixes Reduce E2E snapshot flakiness #413 by always setting create_time to 1 (Jan 1, 1970 12:00 AM)
  • Fixes run lint in CI #399. Lint problems will now result in a build CI workflow failure. See this run for an example of a failed CI run
Screenshot 2023-08-10 at 7 34 11 PM

@andrii-i andrii-i added the bug Something isn't working label Aug 9, 2023
@andrii-i andrii-i changed the title Reduce end-to-end tests flakiness Fix CI, reduce end-to-end tests flakiness Aug 9, 2023
@andrii-i andrii-i mentioned this pull request Aug 9, 2023
@andrii-i andrii-i marked this pull request as ready for review August 9, 2023 20:11
@andrii-i andrii-i changed the title Fix CI, reduce end-to-end tests flakiness Fix CI, run lint, reduce end-to-end tests flakiness Aug 9, 2023
@andrii-i andrii-i added maintenance Maintenance/CI tasks Testing labels Aug 9, 2023
@dlqqq dlqqq self-requested a review August 9, 2023 20:30
.github/workflows/build.yml Outdated Show resolved Hide resolved
ui-tests/tests/jupyter_scheduler.spec.ts Outdated Show resolved Hide resolved
@andrii-i andrii-i requested a review from dlqqq August 11, 2023 01:52
Copy link
Collaborator

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

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

Awesome work! Very happy we are able to remove the mask on the ListJobs view.

@dlqqq dlqqq merged commit 1e6f460 into jupyter-server:main Aug 11, 2023
6 checks passed
@andrii-i andrii-i deleted the reduce_e2e_flake branch August 11, 2023 23:49
andrii-i added a commit to andrii-i/jupyter-scheduler that referenced this pull request Aug 15, 2023
* add macos tests

* add locally-generated snapshots

* check if filebrowser is already open before opening it

* add actual snapshoy from CI

* Update Playwright Snapshots

* use notebook toolbar, mask bttns on the right

* correct selector

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* run lint

* Update Playwright Snapshots

* timestampLocator -> timestamp

* wait until fonts are ready before taking a snapshot

* add maxDiffPixels

* Revert "wait until fonts are ready before taking a snapshot"

This reverts commit 9554559.

* pin jupyterlab version for e2e tests and snapshots

* remove macos tests

* rename relevant job to end-to-end test

* remove darwin/macos snapshots

* specify jupyterlab version correctly

* run lint

* add jlpm install to Lint the extension step

* remove ubuntu postfix from test report

* Make e2e tests a separate file

* add build steps

* pin version of jupyterlab in e2e test file

* introduce modifyListResponse, remove maxDiffPixels

* modifyListResponse -> setJobList

* set expected URL

* always set create_time to 1

* update list view snapshot

* run check option for lint

* run lint locally

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
andrii-i added a commit that referenced this pull request Aug 15, 2023
* modify the commit for 1.x

* Fix CI, run lint, reduce end-to-end tests flakiness (#417)

* add macos tests

* add locally-generated snapshots

* check if filebrowser is already open before opening it

* add actual snapshoy from CI

* Update Playwright Snapshots

* use notebook toolbar, mask bttns on the right

* correct selector

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* run lint

* Update Playwright Snapshots

* timestampLocator -> timestamp

* wait until fonts are ready before taking a snapshot

* add maxDiffPixels

* Revert "wait until fonts are ready before taking a snapshot"

This reverts commit 9554559.

* pin jupyterlab version for e2e tests and snapshots

* remove macos tests

* rename relevant job to end-to-end test

* remove darwin/macos snapshots

* specify jupyterlab version correctly

* run lint

* add jlpm install to Lint the extension step

* remove ubuntu postfix from test report

* Make e2e tests a separate file

* add build steps

* pin version of jupyterlab in e2e test file

* introduce modifyListResponse, remove maxDiffPixels

* modifyListResponse -> setJobList

* set expected URL

* always set create_time to 1

* update list view snapshot

* run check option for lint

* run lint locally

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* fix install chromium command

* remove playwrght from dev dependencies

* fix comma

* Roll back 402 changes

* roll back changes to build.yml

* run lint

* update snapshots

* remove integration step

* reinstate d423ede

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance Maintenance/CI tasks Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce E2E snapshot flakiness run lint in CI
2 participants