Skip to content

Commit 800a366

Browse files
committed
skip delete to debug
1 parent 111c65f commit 800a366

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
fail-fast: false
5454
matrix:
5555
package:
56-
- "@stackattack/astro-static-site"
57-
- "@stackattack/vite-static-site-example"
56+
# - "@stackattack/astro-static-site"
57+
# - "@stackattack/vite-static-site-example"
5858
- "@stackattack/ecs-api-example"
5959
permissions:
6060
id-token: write
@@ -80,6 +80,7 @@ jobs:
8080
- run: pnpm --filter ${{ matrix.package }} test
8181
env:
8282
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
83+
SKIP_DELETE: "1"
8384

8485
publish:
8586
needs: [gate, integration-tests]

packages/testing/src/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,39 @@ export async function runIntegrationTest<T extends string>({
7070
stacks.push([sourceStack, stack]);
7171
}
7272

73+
let step = "";
74+
let targetStack = "";
7375
try {
7476
if (!deleteOnly) {
7577
for (const [sourceStack, stack] of stacks) {
78+
targetStack = stack.name;
79+
step = "unprotecting existing resources";
7680
await unprotectAll(stack);
7781

82+
step = "creating";
7883
console.log("Creating", stack.name);
7984
await stack.up();
8085

86+
step = "refreshing";
8187
await stack.refresh();
8288

89+
step = "confirming no drift";
8390
await stack.preview({ expectNoChanges: true });
8491

8592
if (validate) {
93+
step = "validating";
8694
console.log("Validating", stack.name);
8795
await validate(stack, sourceStack);
8896
console.log("Validation succeeded for", stack.name);
8997
}
9098
}
9199
}
100+
} catch (error) {
101+
console.error(
102+
`Error on step "${step}" for "${targetStack}": ${error}`,
103+
(error as Error).stack,
104+
);
105+
throw error;
92106
} finally {
93107
if (!skipDelete) {
94108
for (const [, stack] of stacks.reverse()) {

0 commit comments

Comments
 (0)