Conversation
Bumps [js-cookie](https://github.com/js-cookie/js-cookie) from 3.0.5 to 3.0.7. - [Release notes](https://github.com/js-cookie/js-cookie/releases) - [Commits](js-cookie/js-cookie@v3.0.5...v3.0.7) --- updated-dependencies: - dependency-name: js-cookie dependency-version: 3.0.7 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [js-cookie](https://github.com/js-cookie/js-cookie) from 3.0.5 to 3.0.7. - [Release notes](https://github.com/js-cookie/js-cookie/releases) - [Commits](js-cookie/js-cookie@v3.0.5...v3.0.7) --- updated-dependencies: - dependency-name: js-cookie dependency-version: 3.0.7 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Adds the parent store's auto-increment id to each store-app entry returned by the authenticated /store-apps endpoint. The id is already exposed by GET /regions/ (regions[].id) but consumers of /store-apps had no way to identify the parent store other than by name. Adding it here lets clients pin to a specific store without having to resolve names that may collide or be renamed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bumps [axios](https://github.com/axios/axios) from 1.15.2 to 1.16.0. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.15.2...v1.16.0) --- updated-dependencies: - dependency-name: axios dependency-version: 1.16.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.9.0 to 5.0.0. - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](actions/dependency-review-action@2031cfc...a1d282b) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes in this release:
3ce79ee chore(deps): bump actions/dependency-review-action from 4.9.0 to 5.0.0
b7e64d9 chore(deps-dev): bump axios from 1.15.2 to 1.16.0
f59c6ca chore: bump deps
faaf256 chore: remove purged status
9b2d337 Fix retry flow to re-enter deploy lifecycle
ef966b3 chore: delete instance button
3f51ea7 fix: order purge lifecycle ordinals
00c3f5c fix: address purge review feedback
182fbc1 feat: expose store.id on GET /store-apps/
2ac4b4e chore: add purge state
4430813 chore: add retry failed instance
c7d10fd fix: prevent stuck instances from blocking pre-warm pool refill
4867625 chore(deps): bump js-cookie from 3.0.5 to 3.0.7
675ec9e chore(deps): bump js-cookie from 3.0.5 to 3.0.7
Greptile Summary
This release introduces a full Lagoon project purge lifecycle — PENDING_PURGE → PURGE_RUNNING → REMOVED (soft-delete) — backed by a new
ProcessProjectPurgeJob,DispatchProjectPurgeJobsCommandcron,LagoonProjectPurgeService, and a suite of Filament admin actions (delete instance, force full delete, retry purge). It also addsMarkStuckInstancesFailedCommandto detect instances stuck in intermediate statuses and a fix to the pre-warm pool count that excluded failed instances from the refill check.removed_at,purge_eligible_at,force_purge_requested_at,purge_attempts,purge_last_attempted_at,purge_failure_reason,deleted_at) are added via migration; thePolydockAppInstancemodel gainsSoftDeletesand the newstagePurgeStatusesgroup.TrashedFilter.MarkStuckInstancesFailedCommandcovers the create/deploy/claim stages but leavesPURGE_RUNNINGwithout automatic resolution.Confidence Score: 3/5
The force-purge path can enter a rapid, unthrottled retry loop that will exhaust the attempt cap in minutes rather than days when Lagoon environments are still being torn down.
The interaction between ProcessProjectPurgeJob's StillHasEnvironments branch (which drops back to REMOVED) and the listener's REMOVED shortcut (which immediately re-dispatches PENDING_PURGE when force_purge_requested_at is set) defeats the poll-interval backoff. This is most likely to trigger in the common case where a forced delete is issued while environments exist — exactly the scenario the UI describes as normal. Everything else in the release — the dispatcher command, the purge service, the migration backfill, the stuck-instance command, and the API change — looks well-structured and safe.
app/Listeners/ProcessPolydockAppInstanceStatusChange.php and app/Jobs/ProcessPolydockAppInstanceJobs/Purge/ProcessProjectPurgeJob.php — the interaction between the REMOVED listener case and the StillHasEnvironments/Failed job results needs a backoff guard or a cleared force_purge flag before the drop-back-to-REMOVED.
Important Files Changed
Sequence Diagram
sequenceDiagram participant Admin participant Listener as StatusChange Listener participant Queue participant Job as ProcessProjectPurgeJob participant Lagoon Admin->>Listener: "setStatus(PENDING_PRE_REMOVE) + force_purge_requested_at=now" Note over Listener: Remove pipeline runs normally... Listener->>Queue: dispatch PreRemoveJob → RemoveJob → PostRemoveJob Queue->>Listener: setStatus(REMOVED) Listener->>Listener: "force_purge_requested_at != null?" Listener->>Listener: setStatus(PENDING_PURGE) Listener->>Queue: dispatch ProcessProjectPurgeJob Queue->>Job: handle() Job->>Job: setStatus(PURGE_RUNNING), purge_attempts++ Job->>Lagoon: getProjectByName() Lagoon-->>Job: project with environments Job->>Lagoon: deleteProjectEnvironmentByName() x N Job->>Job: return StillHasEnvironments Job->>Listener: setStatus(REMOVED) triggers event Note over Listener,Job: force_purge_requested_at still set! Listener->>Listener: "force_purge_requested_at != null?" Listener->>Listener: setStatus(PENDING_PURGE) immediately Listener->>Queue: dispatch ProcessProjectPurgeJob AGAIN (no backoff) Note over Queue,Lagoon: Loop continues until environments gone OR purge_attempts >= maxAttempts alt Normal path via DispatchProjectPurgeJobsCommand Note over Listener: No force_purge_requested_at Job->>Job: setStatus(REMOVED) — no listener shortcut Note over Queue: Dispatcher cron waits purge_poll_interval_minutes Queue->>Job: dispatch with backoff endComments Outside Diff (1)
app/Console/Commands/MarkStuckInstancesFailedCommand.php, line 175-178 (link)PURGE_RUNNINGinstances are not covered by stuck-instance detectionintermediateStatuses()delegates tounallocatedInProgressStatuses(), which only covers theNEW, create, deploy, and claim stages.PURGE_RUNNINGis deliberately excluded from that list (it isn't pool-related), so any instance that gets stuck mid-purge will never be automatically transitioned toPURGE_FAILEDby this command. There is no matching entry inresolveFailedStatus()either, so ifPURGE_RUNNINGwere ever included it would throw a\LogicException. A stuckPURGE_RUNNINGinstance requires manual admin intervention or an explicit cron.Reviews (1): Last reviewed commit: "chore(deps-dev): bump axios from 1.15.2 ..." | Re-trigger Greptile