Skip to content

Commit d28f8fa

Browse files
chore: update the changelog (incl past releases) (#9538)
**Description** This PR updates the changelog, including repairing past release sections.
1 parent 20d2832 commit d28f8fa

10 files changed

Lines changed: 423 additions & 79 deletions
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Check File Changes
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
skip-extensions:
7+
description: Space-separated list of file extensions that should skip tests
8+
required: false
9+
type: string
10+
default: md mdc txt rst png jpg jpeg gif svg ico pdf
11+
outputs:
12+
should-skip:
13+
description: Whether the workflow should skip (only skippable files changed)
14+
value: ${{ jobs.check-changes.outputs.should-skip }}
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
check-changes:
21+
runs-on: ubuntu-latest
22+
outputs:
23+
should-skip: ${{ steps.check.outputs.should-skip }}
24+
steps:
25+
- uses: actions/checkout@v5
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Check if only skippable files changed
30+
id: check
31+
run: |
32+
# Use input parameter or default
33+
SKIP_EXTENSIONS="${{ inputs.skip-extensions }}"
34+
35+
if [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
36+
echo "Triggered by schedule or manual dispatch, running full tests"
37+
echo "should-skip=false" >> $GITHUB_OUTPUT
38+
exit 0
39+
fi
40+
41+
# Get the list of changed files
42+
git fetch origin ${{ github.base_ref }}
43+
CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
44+
45+
# Check if we have any changes
46+
if [ -z "$CHANGED_FILES" ]; then
47+
echo "No files changed, running tests"
48+
echo "should-skip=false" >> $GITHUB_OUTPUT
49+
exit 0
50+
fi
51+
52+
# Build regex pattern from extensions (e.g., \.(md|txt|png)$)
53+
PATTERN=$(echo "$SKIP_EXTENSIONS" | sed 's/ /|/g')
54+
REGEX="\.($PATTERN)$"
55+
56+
# Check if all changes match skippable extensions
57+
NON_SKIPPABLE_FILES=$(echo "$CHANGED_FILES" | grep -Ev "$REGEX" || true)
58+
59+
if [ -z "$NON_SKIPPABLE_FILES" ]; then
60+
echo "Only skippable files changed (extensions: $SKIP_EXTENSIONS), skipping tests"
61+
echo "should-skip=true" >> $GITHUB_OUTPUT
62+
else
63+
echo "Non-skippable files changed, running tests"
64+
echo "should-skip=false" >> $GITHUB_OUTPUT
65+
fi
66+
67+
skip-job:
68+
needs: check-changes
69+
if: needs.check-changes.outputs.should-skip == 'true'
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Skip tests
73+
run: echo "Only documentation/assets changed, skipping tests"

.github/workflows/ci-dgraph-core-tests.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ name: ci-dgraph-core-tests
22

33
on:
44
pull_request:
5-
paths:
6-
- "!**/*.md"
7-
- "**/*.go"
8-
- "**/go.mod"
9-
- "**/*.yml"
10-
- "**/*.json"
11-
- "**/Dockerfile"
12-
- "**/Makefile"
135
types:
146
- opened
157
- reopened
@@ -25,40 +17,53 @@ permissions:
2517
contents: read
2618

2719
jobs:
20+
check-changes:
21+
uses: ./.github/workflows/check-changes.yml
22+
2823
dgraph-core-tests:
29-
if: github.event.pull_request.draft == false
24+
needs: check-changes
25+
if:
26+
github.event.pull_request.draft == false && needs.check-changes.outputs.should-skip != 'true'
3027
runs-on: blacksmith-8vcpu-ubuntu-2404
3128
timeout-minutes: 60
3229
steps:
3330
- uses: actions/checkout@v5
31+
3432
- name: Set up Go
3533
uses: actions/setup-go@v6
3634
with:
3735
go-version-file: go.mod
36+
3837
- name: Install protobuf-compiler
3938
run: sudo apt update && sudo apt install -y protobuf-compiler
39+
4040
- name: Install gotestsum
4141
run: go install gotest.tools/gotestsum@latest
42+
4243
- name: Check protobuf
4344
run: |
4445
cd ./protos
4546
go mod tidy
4647
make regenerate
4748
git diff -b --exit-code -- .
49+
4850
- name: Make Linux Build and Docker Image
4951
run: make docker-image
52+
5053
- name: Build Test Binary
5154
run: |
5255
#!/bin/bash
5356
# build the test binary
5457
cd t; go build .
58+
5559
- name: Clean Up Environment
5660
run: |
5761
#!/bin/bash
5862
# clean cache
5963
go clean -testcache
6064
# clean up docker containers before test execution
6165
cd t; ./t -r
66+
6267
- name: Run Core Tests
6368
run: |
6469
#!/bin/bash

.github/workflows/ci-dgraph-fuzz.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ name: ci-dgraph-fuzz
22

33
on:
44
pull_request:
5-
paths:
6-
- "**/*.go"
7-
- "**/go.mod"
8-
- "**/*.yml"
9-
- "**/*.json"
10-
- "**/Dockerfile"
11-
- "**/Makefile"
125
types:
136
- opened
147
- reopened
@@ -22,16 +15,23 @@ permissions:
2215
contents: read
2316

2417
jobs:
18+
check-changes:
19+
uses: ./.github/workflows/check-changes.yml
20+
2521
fuzz-test:
26-
if: github.event.pull_request.draft == false
22+
needs: check-changes
23+
if:
24+
github.event.pull_request.draft == false && needs.check-changes.outputs.should-skip != 'true'
2725
runs-on: blacksmith-4vcpu-ubuntu-2404
2826
timeout-minutes: 10
2927
steps:
3028
- uses: actions/checkout@v5
29+
3130
- name: Set up Go
3231
uses: actions/setup-go@v6
3332
with:
3433
go-version-file: go.mod
34+
3535
- name: Run fuzz tests
3636
run: |
3737
#!/bin/bash

.github/workflows/ci-dgraph-integration2-tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ name: ci-dgraph-integration2-tests
22

33
on:
44
pull_request:
5-
paths:
6-
- "!**/*.md"
7-
- "**/*.go"
8-
- "**/go.mod"
9-
- "**/*.yml"
10-
- "**/*.json"
11-
- "**/Dockerfile"
12-
- "**/Makefile"
135
types:
146
- opened
157
- reopened
@@ -23,25 +15,33 @@ permissions:
2315
contents: read
2416

2517
jobs:
18+
check-changes:
19+
uses: ./.github/workflows/check-changes.yml
20+
2621
dgraph-integration2-tests:
27-
if: github.event.pull_request.draft == false
22+
needs: check-changes
23+
if:
24+
github.event.pull_request.draft == false && needs.check-changes.outputs.should-skip != 'true'
2825
runs-on: blacksmith-16vcpu-ubuntu-2404
2926
timeout-minutes: 90
3027
steps:
3128
- uses: actions/checkout@v5
3229
with:
3330
fetch-depth: 0
31+
3432
- name: Set up Go
3533
uses: actions/setup-go@v6
3634
with:
3735
go-version-file: go.mod
3836
- name: Make Linux Build and Docker Image
3937
run: make docker-image
38+
4039
- name: Clean Up Environment
4140
run: |
4241
#!/bin/bash
4342
# clean cache
4443
go clean -testcache
44+
4545
- name: Run Integration2 Tests
4646
run: |
4747
#!/bin/bash

.github/workflows/ci-dgraph-ldbc-tests.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ name: ci-dgraph-ldbc-tests
22

33
on:
44
pull_request:
5-
paths:
6-
- "!**/*.md"
7-
- "**/*.go"
8-
- "**/go.mod"
9-
- "**/*.yml"
10-
- "**/*.json"
11-
- "**/Dockerfile"
12-
- "**/Makefile"
135
types:
146
- opened
157
- reopened
@@ -23,33 +15,44 @@ permissions:
2315
contents: read
2416

2517
jobs:
18+
check-changes:
19+
uses: ./.github/workflows/check-changes.yml
20+
2621
dgraph-ldbc-tests:
27-
if: github.event.pull_request.draft == false
22+
needs: check-changes
23+
if:
24+
github.event.pull_request.draft == false && needs.check-changes.outputs.should-skip != 'true'
2825
runs-on: blacksmith-4vcpu-ubuntu-2404
2926
timeout-minutes: 10
3027
steps:
3128
- name: Checkout Dgraph
3229
uses: actions/checkout@v5
30+
3331
- name: Set up Go
3432
uses: actions/setup-go@v6
3533
with:
3634
go-version-file: go.mod
35+
3736
- name: Make Linux Build and Docker Image
3837
run: make docker-image
38+
3939
- name: Install gotestsum
4040
run: go install gotest.tools/gotestsum@latest
41+
4142
- name: Build Test Binary
4243
run: |
4344
#!/bin/bash
4445
# build the test binary
4546
cd t; go build .
47+
4648
- name: Clean Up Environment
4749
run: |
4850
#!/bin/bash
4951
# clean cache
5052
go clean -testcache
5153
# clean up docker containers before test execution
5254
cd t; ./t -r
55+
5356
- name: Run LDBC Tests
5457
run: |
5558
#!/bin/bash

.github/workflows/ci-dgraph-load-tests.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ name: ci-dgraph-load-tests
22

33
on:
44
pull_request:
5-
paths:
6-
- "!**/*.md"
7-
- "**/*.go"
8-
- "**/go.mod"
9-
- "**/*.yml"
10-
- "**/*.json"
11-
- "**/Dockerfile"
12-
- "**/Makefile"
135
types:
146
- opened
157
- reopened
@@ -23,32 +15,43 @@ permissions:
2315
contents: read
2416

2517
jobs:
18+
check-changes:
19+
uses: ./.github/workflows/check-changes.yml
20+
2621
dgraph-load-tests:
27-
if: github.event.pull_request.draft == false
22+
needs: check-changes
23+
if:
24+
github.event.pull_request.draft == false && needs.check-changes.outputs.should-skip != 'true'
2825
runs-on: blacksmith-4vcpu-ubuntu-2404
2926
timeout-minutes: 30
3027
steps:
3128
- uses: actions/checkout@v5
29+
3230
- name: Set up Go
3331
uses: actions/setup-go@v6
3432
with:
3533
go-version-file: go.mod
34+
3635
- name: Make Linux Build and Docker Image
3736
run: make docker-image # this internally builds dgraph binary
37+
3838
- name: Install gotestsum
3939
run: go install gotest.tools/gotestsum@latest
40+
4041
- name: Build Test Binary
4142
run: |
4243
#!/bin/bash
4344
# build the test binary
4445
cd t; go build .
46+
4547
- name: Clean Up Environment
4648
run: |
4749
#!/bin/bash
4850
# clean cache
4951
go clean -testcache
5052
# clean up docker containers before test execution
5153
cd t; ./t -r
54+
5255
- name: Run Load Tests
5356
run: |
5457
#!/bin/bash

0 commit comments

Comments
 (0)