Skip to content

Conversation

@smilkuri
Copy link
Contributor

@smilkuri smilkuri commented Jul 7, 2025

Issue

Internal JS-5881

Description

Modified deleteStaleChangesets() to only delete changesets older than 5 minutes to prevent deletion of changesets that are actively being processed by other test processes.

Testing

CI


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@smilkuri smilkuri requested a review from a team as a code owner July 7, 2025 15:00
changeset.StatusReason ===
`The submitted information didn't contain changes. Submit different information to create a change set.`
`The submitted information didn't contain changes. Submit different information to create a change set.` &&
changeset.creationDate < new Date(Date.now() - 5 * 60 * 1000)
Copy link
Contributor

@kuhe kuhe Jul 7, 2025

Choose a reason for hiding this comment

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

is creationDate guaranteed to be a Date?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haven't confirmed it, let me check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smilkuri smilkuri merged commit 2d376dc into main Jul 7, 2025
6 checks passed
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 22, 2025
@smilkuri smilkuri deleted the changeset-race-condition branch September 5, 2025 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants