Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/e2e/delete-stale-changesets.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ exports.deleteStaleChangesets = async (client, stackName) => {
if (
changeset.Status === "FAILED" &&
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.

) {
console.log("Deleting stale changeset", changeset.ChangeSetId);
await new Promise((r) => setTimeout(r, 200));
Expand Down
Loading