Skip to content

fix: remaining strong box file - #1255

Merged
KazuCocoa merged 3 commits into
masterfrom
fix-strongbox
Sep 10, 2026
Merged

fix: remaining strong box file#1255
KazuCocoa merged 3 commits into
masterfrom
fix-strongbox

Conversation

@KazuCocoa

@KazuCocoa KazuCocoa commented Sep 9, 2026

Copy link
Copy Markdown
Member

Fixes appium/appium-xcuitest-driver#2970

Loads the persisted version before considering the legacy marker, preventing repeated cleanup.

Comment thread lib/webdriveragent.ts Outdated
}
// Migrate the legacy marker only when no version has been persisted yet.
// TODO: Replace the hardcoded version used for migration from the legacy timestamp file.
recentModuleVersion = '5.0.0';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

since this was created as temporary from the very beginning, maybe it's time to remove it now for good?

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new logic (and tests) reads Strongbox state via .value without an explicit read(), which can leave the persisted version undefined and reintroduce repeated cleanup/migration behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR addresses repeated WebDriverAgent cleanup by ensuring the previously persisted module version is consulted before falling back to the legacy “timestamp marker” migration path (per appium-xcuitest-driver#2970).

Changes:

  • Updates WebDriverAgent#_cleanupProjectIfFresh() to create a Strongbox item up front and use it to determine whether cleanup/migration is needed.
  • Adds unit tests covering persistence, legacy-marker migration, invalid persisted values, and retry-after-failure behavior.
File summaries
File Description
lib/webdriveragent.ts Adjusts cleanup decision logic to prefer a persisted Strongbox version over the legacy marker path.
test/unit/wda-cleanup.spec.ts Adds test coverage for Strongbox-backed persistence/migration behavior across multiple agent instances.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/webdriveragent.ts
Comment thread test/unit/wda-cleanup.spec.ts
@KazuCocoa
KazuCocoa merged commit f5f7004 into master Sep 10, 2026
61 of 66 checks passed
@KazuCocoa
KazuCocoa deleted the fix-strongbox branch September 10, 2026 04:37
github-actions Bot pushed a commit that referenced this pull request Sep 10, 2026
## [16.12.7](v16.12.6...v16.12.7) (2026-09-10)

### Bug Fixes

* remaining strong box file ([#1255](#1255)) ([f5f7004](f5f7004))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 16.12.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WDA project cleanup + cold rebuild runs on every session when a legacy upgrade.time file is present

3 participants