Skip to content

Commit ed601dc

Browse files
authored
Merge branch 'master' into source_okta
2 parents 52cc701 + 6417a85 commit ed601dc

File tree

258 files changed

+3922
-1805
lines changed

Some content is hidden

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

258 files changed

+3922
-1805
lines changed

.github/actions/spelling/allow.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ Softbank
461461
Sogou
462462
solarwinds
463463
Soref
464+
sortedset
464465
splunk
465466
ssh
466467
staticuser
@@ -524,6 +525,7 @@ XSALSA
524525
yandex
525526
Yarvik
526527
Yifang
528+
zadd
527529
zeek
528530
zookeeper
529531
Zopo
@@ -533,3 +535,10 @@ ZTE
533535
Zync
534536
envsubst
535537
jimmystewpot
538+
esensar
539+
jchap-pnnl
540+
jhbigler-pnnl
541+
jlambatl
542+
jorgehermo9
543+
notchairmk
544+
yjagdale

.github/workflows/changes.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ on:
126126
e2e-opentelemetry-logs:
127127
value: ${{ jobs.e2e_tests.outputs.opentelemetry-logs }}
128128
env:
129-
BASE_REF: ${{ inputs.base_ref || (github.event_name == 'merge_group' && github.event.merge_group.base_ref) || github.event.pull_request.base.ref }}
130-
HEAD_REF: ${{ inputs.head_ref || (github.event_name == 'merge_group' && github.event.merge_group.head_ref) || github.event.pull_request.head.ref }}
129+
BASE_SHA: ${{ inputs.base_ref || (github.event_name == 'merge_group' && github.event.merge_group.base_sha) || github.event.pull_request.base.sha }}
130+
HEAD_SHA: ${{ inputs.head_ref || (github.event_name == 'merge_group' && github.event.merge_group.head_sha) || github.event.pull_request.head.sha }}
131131

132132
jobs:
133133
# Detects changes that are not specific to integration tests
@@ -151,8 +151,8 @@ jobs:
151151
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
152152
id: filter
153153
with:
154-
base: ${{ env.BASE_REF }}
155-
ref: ${{ env.HEAD_REF }}
154+
base: ${{ env.BASE_SHA }}
155+
ref: ${{ env.HEAD_SHA }}
156156
filters: |
157157
source:
158158
- ".github/workflows/test.yml"
@@ -201,7 +201,6 @@ jobs:
201201
website:
202202
- "website/**"
203203
not_website:
204-
- "**"
205204
- "!website/**"
206205
207206
# Detects changes that are specific to integration tests
@@ -258,8 +257,8 @@ jobs:
258257
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
259258
id: filter
260259
with:
261-
base: ${{ env.BASE_REF }}
262-
ref: ${{ env.HEAD_REF }}
260+
base: ${{ env.BASE_SHA }}
261+
ref: ${{ env.HEAD_SHA }}
263262
filters: int_test_filters.yaml
264263

265264
# This JSON hack was introduced because GitHub Actions does not support dynamic expressions in the
@@ -336,6 +335,6 @@ jobs:
336335
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
337336
id: filter
338337
with:
339-
base: ${{ env.BASE_REF }}
340-
ref: ${{ env.HEAD_REF }}
338+
base: ${{ env.BASE_SHA }}
339+
ref: ${{ env.HEAD_SHA }}
341340
filters: int_test_filters.yaml

.github/workflows/ci-integration-review.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
- e2e-tests
162162
if: always() && (startsWith(github.event.review.body, '/ci-run-integration') || contains(github.event.review.body, '/ci-run-all'))
163163
env:
164-
FAILED: ${{ contains(needs.*.result, 'failure') }}
164+
FAILED: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
165165
steps:
166166
- name: Generate authentication token
167167
id: generate_token
@@ -186,10 +186,11 @@ jobs:
186186
token: ${{ secrets.GITHUB_TOKEN }}
187187
status: 'success'
188188

189-
- run: |
190-
echo "failed=${{ env.FAILED }}"
191-
if [[ "$FAILED" == "true" ]] ; then
189+
- name: Check all jobs status
190+
run: |
191+
if [[ "${{ env.FAILED }}" == "true" ]]; then
192+
echo "One or more jobs failed or were cancelled"
192193
exit 1
193194
else
194-
exit 0
195+
echo "All jobs completed successfully"
195196
fi

.github/workflows/e2e.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,12 @@ jobs:
117117
timeout-minutes: 5
118118
if: always()
119119
needs: e2e-tests
120-
env:
121-
FAILED: ${{ contains(needs.*.result, 'failure') }}
122120
steps:
123-
- run: |
124-
echo "failed=${{ env.FAILED }}"
125-
if [[ "$FAILED" == "true" ]] ; then
121+
- name: Check all jobs status
122+
run: |
123+
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
124+
echo "One or more jobs failed or were cancelled"
126125
exit 1
127126
else
128-
exit 0
127+
echo "All jobs completed successfully"
129128
fi

.github/workflows/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
password: ${{ secrets.CI_DOCKER_PASSWORD }}
5151
- name: Extract metadata (tags, labels) for Docker
5252
id: meta
53-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
53+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
5454
with:
5555
images: timberio/vector-dev
5656
flavor: |

.github/workflows/integration.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ jobs:
104104
should_run=false
105105
fi
106106
107+
if [[ "${{ needs.changes.outputs.website_only }}" == "true" ]]; then
108+
echo "Skipping ${{ matrix.service }} test since only website changes were detected"
109+
exit 0
110+
fi
111+
107112
# Check if any of the three conditions is true
108113
if [[ "${{ github.event_name }}" == "merge_group" || \
109114
"${{ github.event_name }}" == "workflow_dispatch" || \
@@ -121,17 +126,14 @@ jobs:
121126
integration-test-suite:
122127
name: Integration Test Suite
123128
runs-on: ubuntu-24.04
124-
timeout-minutes: 5
125129
if: always()
126130
needs:
127131
- integration-tests
128-
env:
129-
FAILED: ${{ contains(needs.*.result, 'failure') }}
130132
steps:
131133
- run: |
132-
echo "failed=${{ env.FAILED }}"
133-
if [[ "$FAILED" == "true" ]] ; then
134+
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
135+
echo "One or more jobs failed or were cancelled"
134136
exit 1
135137
else
136-
exit 0
138+
echo "All jobs completed successfully"
137139
fi

.github/workflows/k8s_e2e.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ jobs:
245245
- test-e2e-kubernetes
246246
if: always()
247247
env:
248-
FAILED: ${{ contains(needs.*.result, 'failure') }}
248+
FAILED: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
249249
steps:
250250
- name: (PR review) Get PR branch
251251
if: github.event_name == 'pull_request_review' && env.FAILED != 'true'
@@ -260,10 +260,11 @@ jobs:
260260
token: ${{ secrets.GITHUB_TOKEN }}
261261
status: 'success'
262262

263-
- run: |
264-
echo "failed=${{ env.FAILED }}"
265-
if [[ "$FAILED" == "true" ]] ; then
263+
- name: Check all jobs status
264+
run: |
265+
if [[ "${{ env.FAILED }}" == "true" ]]; then
266+
echo "One or more jobs failed or were cancelled"
266267
exit 1
267268
else
268-
exit 0
269+
echo "All jobs completed successfully"
269270
fi

.github/workflows/master_merge_queue.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,12 @@ jobs:
114114
- unit-mac
115115
- unit-windows
116116
- install-sh
117-
env:
118-
FAILED: ${{ contains(needs.*.result, 'failure') }}
119117
steps:
120-
- name: exit
118+
- name: Check all jobs status
121119
run: |
122-
echo "failed=${{ env.FAILED }}"
123-
if [[ "$FAILED" == "true" ]] ; then
120+
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
121+
echo "One or more jobs failed or were cancelled"
124122
exit 1
125123
else
126-
exit 0
124+
echo "All jobs completed successfully"
127125
fi

.github/workflows/preview_site_trigger.yml

Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,62 +7,44 @@ jobs:
77
runs-on: ubuntu-24.04
88
timeout-minutes: 5
99
# Only run for PRs with 'website' in the branch name
10-
if: ${{ contains(github.head_ref, 'website') && contains(github.head_ref, '-') }}
10+
if: ${{ contains(github.head_ref, 'website') }}
1111
steps:
12-
- name: Echo approval
12+
# Validate branch name
13+
- name: Validate branch name and set output
14+
id: validate
1315
run: |
14-
echo "Workflow has been allowed to run for PR ${{ github.event.number }}. Setting artifacts and then continuing workflow runs"
15-
16-
# Use GitHub Action to safely validate and store PR information
16+
BRANCH="${{ github.head_ref }}"
17+
if [[ ! "$BRANCH" =~ ^[a-zA-Z0-9_-]+$ ]]; then
18+
echo "valid=false" >> $GITHUB_OUTPUT
19+
else
20+
echo "valid=true" >> $GITHUB_OUTPUT
21+
fi
22+
23+
# Save PR information (only if branch is valid)
1724
- name: Validate and save PR information
25+
if: steps.validate.outputs.valid == 'true'
1826
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1927
with:
2028
script: |
2129
const fs = require('fs').promises;
2230
const path = require('path');
2331
const crypto = require('crypto');
32+
const prNumber = context.payload.number;
33+
const branchName = context.payload.pull_request.head.ref;
2434
25-
async function createAndValidateArtifact() {
26-
try {
27-
// Create directory for artifact
28-
await fs.mkdir('./pr', { recursive: true });
29-
30-
// Get PR number and validate
31-
const prNumber = context.payload.number;
32-
if (typeof prNumber !== 'number' || !Number.isInteger(prNumber) || prNumber <= 0) {
33-
core.setFailed(`Invalid PR number: ${prNumber}`);
34-
return;
35-
}
36-
37-
// Get branch name and validate
38-
const branchName = context.payload.pull_request.head.ref;
39-
// Validate branch name (only allow alphanumeric, dash, and underscore)
40-
const branchNameRegex = /^[a-zA-Z0-9_\-]+$/;
41-
if (!branchNameRegex.test(branchName)) {
42-
core.setFailed(`Invalid branch name detected: ${branchName}`);
43-
return;
44-
}
45-
46-
// Write validated information to files
47-
await fs.writeFile('./pr/number', prNumber.toString());
48-
await fs.writeFile('./pr/branch', branchName);
49-
50-
// Log success
51-
core.info(`Successfully validated and saved PR #${prNumber} with branch ${branchName}`);
35+
await fs.mkdir('./pr', { recursive: true });
36+
await fs.writeFile('./pr/number', prNumber.toString());
37+
await fs.writeFile('./pr/branch', branchName);
5238
53-
// Create hash signature of the data
54-
const numberHash = crypto.createHash('sha256').update(prNumber.toString()).digest('hex');
55-
const branchHash = crypto.createHash('sha256').update(branchName).digest('hex');
56-
await fs.writeFile('./pr/integrity', `${numberHash}:${branchHash}`);
57-
} catch (error) {
58-
core.setFailed(`An error occurred: ${error.message}`);
59-
}
60-
}
39+
const numberHash = crypto.createHash('sha256').update(prNumber.toString()).digest('hex');
40+
const branchHash = crypto.createHash('sha256').update(branchName).digest('hex');
41+
await fs.writeFile('./pr/integrity', `${numberHash}:${branchHash}`);
6142
62-
createAndValidateArtifact();
43+
core.info(`Saved PR #${prNumber} and branch ${branchName}`);
6344
64-
# Upload the artifact using latest version
45+
# Upload the artifact using latest version (only if branch is valid)
6546
- name: Upload PR information artifact
47+
if: steps.validate.outputs.valid == 'true'
6648
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6749
with:
6850
name: pr

.github/workflows/regression.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,6 @@ jobs:
544544
- submit-job
545545
- detect-regression
546546
- analyze-experiment
547-
env:
548-
FAILED: ${{ contains(needs.*.result, 'failure') }}
549547
steps:
550548
- name: Download capture-artifacts
551549
continue-on-error: true
@@ -563,11 +561,11 @@ jobs:
563561
echo "Did not find ${REPORT_MD} file."
564562
fi
565563
566-
- name: exit
564+
- name: Check all jobs status
567565
run: |
568-
echo "failed=${{ env.FAILED }}"
569-
if [[ "$FAILED" == "true" ]] ; then
566+
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
567+
echo "One or more jobs failed or were cancelled"
570568
exit 1
571569
else
572-
exit 0
570+
echo "All jobs completed successfully"
573571
fi

0 commit comments

Comments
 (0)