Skip to content

Commit e239fab

Browse files
committed
Merge branch 'master' into phoebe/procedure/rust-sdk
2 parents 1f085e4 + 08011a7 commit e239fab

139 files changed

Lines changed: 5597 additions & 1527 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ on:
1414
name: CI
1515

1616
concurrency:
17-
# When a PR number isn't available, the event won't be a `pull_request` event so it won't matter.
18-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
19-
# Only cancel when the event is a pull_request
20-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.inputs.pr_number || format('sha-%s', github.sha) }}
18+
cancel-in-progress: true
2119

2220
jobs:
2321
docker_smoketests:

.github/workflows/csharp-test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ on:
77
pull_request:
88

99
concurrency:
10-
# When a PR number isn't available, the event won't be a `pull_request` event so it won't matter.
11-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
12-
# Only cancel when the event is a pull_request
13-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || format('sha-%s', github.sha) }}
11+
cancel-in-progress: true
1412

1513
jobs:
1614
unity-testsuite:

.github/workflows/internal-tests.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,15 @@ permissions:
1010
contents: read
1111

1212
concurrency:
13-
# When a PR number isn't available, the event won't be a `pull_request` event so it won't matter.
14-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
15-
# Only cancel when the event is a pull_request
16-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || format('sha-%s', github.sha) }}
14+
cancel-in-progress: true
1715

1816
jobs:
1917
run-tests:
2018
# Skip if this is an external contribution. GitHub secrets will be empty, so the step would fail anyway.
2119
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }}
2220
runs-on: ubuntu-latest
2321
steps:
24-
- name: Print current ref and sha
25-
run: |
26-
echo "github.ref=${{ github.ref }}"
27-
echo "github.sha=${{ github.sha }}"
28-
2922
- name: Trigger and wait for Internal Tests
3023
uses: actions/github-script@v7
3124
with:
@@ -35,9 +28,15 @@ jobs:
3528
const targetRepo = 'SpacetimeDBPrivate';
3629
const workflowId = 'internal-tests.yml';
3730
const targetRef = 'master';
38-
const publicRef = context.sha;
31+
// Use the ref for pull requests because the head sha is brittle (github does some extra dance where it merges in master).
32+
const publicRef = (context.eventName === 'pull_request') ? context.payload.pull_request.head.ref : context.sha;
3933
const preDispatch = new Date().toISOString();
4034
35+
console.log("context.eventName =", context.eventName);
36+
console.log("context.ref =", context.ref);
37+
console.log("context.sha =", context.sha);
38+
console.log("Dispatch workflow with publicRef =", publicRef);
39+
4140
// Dispatch the workflow in the target repository
4241
await github.rest.actions.createWorkflowDispatch({
4342
owner: targetOwner,

.github/workflows/typescript-test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ on:
88
merge_group:
99

1010
concurrency:
11-
# When a PR number isn't available, the event won't be a `pull_request` event so it won't matter.
12-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
13-
# Only cancel when the event is a pull_request
14-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || format('sha-%s', github.sha) }}
12+
cancel-in-progress: true
1513

1614
jobs:
1715
build-and-test:

0 commit comments

Comments
 (0)