Skip to content

fix(e2e): stream stale-resource listing/deletion, raise cleanup timeout - #1287

Open
shsteimer wants to merge 1 commit into
mainfrom
cleanup
Open

fix(e2e): stream stale-resource listing/deletion, raise cleanup timeout#1287
shsteimer wants to merge 1 commit into
mainfrom
cleanup

Conversation

@shsteimer

@shsteimer shsteimer commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Cleanup job consistently timed out because listOldTestResources listed every page before any deletes ran, all inside the default 30s test timeout. It's now an async generator that yields items as pages are fetched, so deletes overlap with listing; test timeout raised to 5min and retries scoped down to 1 for this test.

Description

noticed this job was consistently failing and backlog was growing

Related Issue

Motivation and Context

also seems like this may impact the frequent and consistent failures with PR playright tests timing out. cautiously hoping this better cleanup will help with that.

How Has This Been Tested?

ran https://github.com/adobe/da-live/actions/runs/33434325504 which deleted many files.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Cleanup job consistently timed out because listOldTestResources listed
every page before any deletes ran, all inside the default 30s test
timeout. It's now an async generator that yields items as pages are
fetched, so deletes overlap with listing; test timeout raised to 5min
and retries scoped down to 1 for this test.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Aug 31, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

// only execute this test on chromium
return;
}
test.setTimeout(5 * 60 * 1000);

@shsteimer shsteimer Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not sure this is really needed with other change, but also not sure it hurts anything. It should give any long action a bit more breathing room to finish the cleanup, and should be safe since the gh action already has a 30 min timeout, it was just individual test timeout of 30s causing the failures.

Comment thread test/e2e/package.json
"test:all": "playwright test --project=chromium --project=firefox --project=webkit --grep-invert \"Delete multiple old pages\"",
"test:nonauth": "SKIP_AUTH=true playwright test --project=chromium tests/*.spec.js --grep-invert \"Delete multiple old pages\"",
"test:cleanup": "playwright test --project=chromium tests/delete.spec.js --grep \"Delete multiple old pages\"",
"test:cleanup": "playwright test --project=chromium tests/delete.spec.js --grep \"Delete multiple old pages\" --retries=1",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

when they did fail, retries also failed on the pre-conditions, hence reducing to not retry since that will always fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant