Skip to content

🐛 Fixes e2e-playwright jupyterlab-large-file test#9022

Merged
mergify[bot] merged 10 commits intoITISFoundation:masterfrom
GitHK:pr-osparc-fix-e2e-jupyter-large-file
Apr 14, 2026
Merged

🐛 Fixes e2e-playwright jupyterlab-large-file test#9022
mergify[bot] merged 10 commits intoITISFoundation:masterfrom
GitHK:pr-osparc-fix-e2e-jupyter-large-file

Conversation

@GitHK
Copy link
Copy Markdown
Contributor

@GitHK GitHK commented Apr 13, 2026

What do these changes do?

Adjusted the e2e-playwright -> jupyterlab-large-file test.

  • When the file is bigger a pop-up with contents changed is displayed and it needs to be dismissed.
  • Also refactored a bit the test.
  • Adjusted timeouts (on average they are 4x the average test duration measured on AWS master)

Related issue/s

How to test

Dev-ops

@GitHK GitHK self-assigned this Apr 13, 2026
@GitHK GitHK added this to the Etna milestone Apr 13, 2026
@GitHK GitHK added bug buggy, it does not work as expected t:maintenance Some planned maintenance work labels Apr 13, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.36%. Comparing base (860b76f) to head (0cbb239).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9022      +/-   ##
==========================================
- Coverage   87.38%   87.36%   -0.02%     
==========================================
  Files        2054     2054              
  Lines       80712    80712              
  Branches     1443     1443              
==========================================
- Hits        70529    70518      -11     
- Misses       9774     9785      +11     
  Partials      409      409              
Flag Coverage Δ *Carryforward flag
integrationtests 64.13% <ø> (+0.03%) ⬆️
unittests 86.22% <ø> (ø) Carriedforward from d3860ec

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
pkg_aws_library 95.29% <ø> (ø)
pkg_celery_library 77.59% <ø> (ø)
pkg_dask_task_models_library 79.65% <ø> (ø)
pkg_models_library 92.57% <ø> (ø)
pkg_notifications_library 84.48% <ø> (ø)
pkg_postgres_database 89.29% <ø> (ø)
pkg_service_integration 72.81% <ø> (ø)
pkg_service_library 70.41% <ø> (ø)
pkg_settings_library 90.48% <ø> (ø)
pkg_simcore_sdk 85.79% <ø> (-0.06%) ⬇️
agent 93.26% <ø> (ø)
api_server 91.40% <ø> (ø)
autoscaling 95.48% <ø> (ø)
catalog 92.10% <ø> (ø)
clusters_keeper 98.59% <ø> (ø)
dask_sidecar 91.53% <ø> (ø)
datcore_adapter 97.95% <ø> (ø)
director 75.45% <ø> (ø)
director_v2 91.64% <ø> (-0.11%) ⬇️
dynamic_scheduler 95.77% <ø> (ø)
dynamic_sidecar 88.29% <ø> (ø)
efs_guardian 89.73% <ø> (ø)
invitations 90.93% <ø> (ø)
payments 92.87% <ø> (ø)
resource_usage_tracker 92.00% <ø> (ø)
storage 86.60% <ø> (ø)
webclient ∅ <ø> (∅)
webserver 86.79% <ø> (-0.01%) ⬇️

Continue to review full report in Codecov by Sentry.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Playwright E2E JupyterLab “large file” scenario to handle modal dialogs that can appear when editing/creating large files, and refactors the notebook-side workload to reduce runtime variance while increasing timeouts where needed.

Changes:

  • Added dialog-dismissal logic and switched cell completion waiting to a polling loop that can dismiss dialogs mid-execution.
  • Simplified the notebook workload to create a single large file, move only small files, and tightened the listing consistency check.
  • Updated per-phase timeouts to better match the new workload and large-file behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py Adds modal dialog dismissal and polling-based waiting for notebook phase completion markers.
tests/e2e-playwright/tests/jupyterlabs/_jupyter_cell_code.py Refactors the generated workload phases (1 large file, move small files) and adjusts timeouts and listing checks.

Comment thread tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py
Comment thread tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py Outdated
Comment thread tests/e2e-playwright/tests/jupyterlabs/_jupyter_cell_code.py Outdated
Comment thread tests/e2e-playwright/tests/jupyterlabs/_jupyter_cell_code.py
@GitHK GitHK requested a review from Copilot April 14, 2026 08:55
@GitHK GitHK changed the title 🐛 Fixes e2e-playwright jupyterlab-large-file 🐛 Fixes e2e-playwright jupyterlab-large-file test Apr 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the e2e-playwright JupyterLab “large file” flow to be more resilient by dismissing modal dialogs that appear during notebook execution, and refactors the notebook-injected workload to run faster/more reliably.

Changes:

  • Added dialog dismissal logic around cell execution to handle JupyterLab “file changed” (and similar) pop-ups.
  • Refactored the Jupyter cell workload to create a single large file and to move only small files.
  • Increased per-phase timeouts to better match observed runtimes in CI.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py Adds polling-based expect wrapper that periodically dismisses blocking JupyterLab dialogs.
tests/e2e-playwright/tests/jupyterlabs/_jupyter_cell_code.py Simplifies phases (1 large file; move small files) and updates phase timeouts.

Comment thread tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Playwright E2E JupyterLab “large file” scenario to reduce flakiness when JupyterLab shows a “file changed” modal dialog during notebook execution, and it rebalances the workload/timeouts used by the in-notebook workload phases.

Changes:

  • Added modal-dialog dismissal logic and a polling expect wrapper to keep execution progressing when dialogs appear.
  • Reduced the “large files” phase from multiple large files to a single large file and changed the move phase to only move small files.
  • Increased per-phase timeouts in the in-notebook phase list to better match observed runtimes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py Adds dialog dismissal + polling wait logic around output completion detection.
tests/e2e-playwright/tests/jupyterlabs/_jupyter_cell_code.py Simplifies workload phases (1 large file, move small files) and updates phase timeouts.

Comment thread tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py Outdated
Comment thread tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the JupyterLab large-file Playwright E2E scenario to be more robust when JupyterLab shows a “file changed” (or similar) modal dialog during notebook execution, and adjusts the workload/timeouts to better match observed CI runtimes.

Changes:

  • Add a polling-based “wait for marker” helper that periodically dismisses blocking JupyterLab dialogs while waiting for cell completion.
  • Reduce large-file creation from multiple parallel files to a single large file and move only small files to speed up the workflow.
  • Increase per-phase timeouts in the Jupyter-injected phase runner script.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py Adds dialog-dismiss logic and a polling expect wrapper to keep notebook execution unblocked.
tests/e2e-playwright/tests/jupyterlabs/_jupyter_cell_code.py Simplifies the “large file” phase and changes file-moving behavior; updates phase timeouts.

Comment thread tests/e2e-playwright/tests/jupyterlabs/helpers_jupyter_code.py
@GitHK GitHK marked this pull request as ready for review April 14, 2026 09:11
@GitHK GitHK added the 🤖-automerge marks PR as ready to be merged for Mergify label Apr 14, 2026
@GitHK
Copy link
Copy Markdown
Contributor Author

GitHK commented Apr 14, 2026

@Mergifyio queue

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 14, 2026

Merge Queue Status

🛑 Queue command has been cancelled

@mergify mergify Bot added the queued label Apr 14, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 14, 2026

Merge Queue Status

  • Entered queue2026-04-14 09:55 UTC · Rule: default
  • Checks skipped · PR is already up-to-date
  • Merged2026-04-14 09:56 UTC · at 0cbb239dee6ab08bf03b0c8875805225ac698fa9

This pull request spent 18 seconds in the queue, including 2 seconds running CI.

Required conditions to merge

@mergify mergify Bot merged commit 20fa746 into ITISFoundation:master Apr 14, 2026
151 of 153 checks passed
@mergify mergify Bot removed the queued label Apr 14, 2026
@GitHK GitHK deleted the pr-osparc-fix-e2e-jupyter-large-file branch April 14, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify bug buggy, it does not work as expected t:maintenance Some planned maintenance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants