[Bug] Workbench session tests leave Untitled*.ipynb files behind after cleanup

Open
#512 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
jupyter-notebook, python
Domain
testing-qa

Research direction

Locate the Workbench session-cleanup fixture and inspect test_launch_jupyter and test_jupyterlab_extensions, where the leftover files are created. First trace how session teardown currently works and how VIP-created files could be identified without including pre-existing content. Done means teardown removes only files created during the test and the affected tests no longer leave Untitled*.ipynb files behind.

Written by the indexing model from the issue text.

Description

What happens: The Workbench session-cleanup fixture quits/removes the session, but files created inside a session during a test — most visibly JupyterLab Untitled*.ipynb notebooks from test_launch_jupyter / test_jupyterlab_extensions — remain in the test account's home directory. Over many runs these accumulate (16+ observed on a live deployment).

Why it matters: Test litter accrues in the shared test account, and stale leftover notebooks can pop dialogs (e.g. a lingering "Error Starting Kernel" modal) that intercept clicks in later runs — a latent source of flakiness.

Scope: Non-destructive cleanup of VIP-created files at session/test teardown (tag or track what the test creates and remove only that; must never touch pre-existing user content). Distinct from session cleanup (#467), which is about quitting sessions, not deleting files.

Not a blocker for #484 — surfaced during its live validation.

Dominant language
Python
Stars
9
Forks
1
Avg merge
15h 31m
Merged PRs (30d)
44

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/vip

All issues in posit-dev/vip

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.