Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions:

jobs:
validate-changelog:
if: ${{ github.repository == 'vectordotdev/vector' }}
permissions:
contents: read
pull-requests: none
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_generated_vrl_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

run-check-generated-vrl-docs:
needs: changes
if: needs.changes.outputs.docs == 'true'
if: needs.changes.outputs.docs == 'true' && github.repository == 'vectordotdev/vector'
runs-on: ubuntu-24.04-8core
permissions:
contents: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-integration-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ jobs:
needs:
- prep-pr
- build-test-runner
if: github.repository == 'vectordotdev/vector'
runs-on: ubuntu-24.04-8core
timeout-minutes: 30
permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ permissions:

jobs:
CLAAssistant:
# Signatures are stored in DataDog/cla-signatures via an STS token only upstream can obtain.
if: ${{ github.repository == 'vectordotdev/vector' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write # Required to comment on PRs
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cleanup-ghcr-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions:

jobs:
cleanup-test-runner:
if: ${{ github.repository == 'vectordotdev/vector' }}
runs-on: ubuntu-24.04
permissions:
packages: write # Required to delete package versions from GHCR
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/component_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ permissions:

jobs:
check-component-features:
if: github.repository == 'vectordotdev/vector'
# use free tier on schedule and 8 core to expedite results on demand invocation
runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-24.04' || 'ubuntu-24.04-8core' }}
timeout-minutes: 180 # Usually takes 2h but this prevents it from hanging for an indefinite time
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ env:

jobs:
tests:
if: ${{ github.repository == 'vectordotdev/vector' }}
permissions:
contents: read
id-token: write
Expand All @@ -44,6 +45,7 @@ jobs:
vector-api: true

integration-tests:
if: ${{ github.repository == 'vectordotdev/vector' }}
permissions:
contents: read
packages: write
Expand All @@ -61,7 +63,7 @@ jobs:
needs:
- tests
- integration-tests
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && github.repository == 'vectordotdev/vector' }}
permissions:
contents: read
id-token: write
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ jobs:
test-deny:
runs-on: ubuntu-24.04
timeout-minutes: 30
if: ${{ always() && (github.event_name != 'pull_request' || needs.changes.outputs.deny == 'true') }}
if: &deny_gate >-
always() &&
(github.event_name != 'pull_request' || needs.changes.outputs.deny == 'true') &&
(github.event_name != 'schedule' || github.repository == 'vectordotdev/vector')
needs: [changes]
steps:
- name: Checkout branch
Expand All @@ -67,7 +70,7 @@ jobs:
test-deny-licenses:
runs-on: ubuntu-24.04
timeout-minutes: 30
if: ${{ always() && (github.event_name != 'pull_request' || needs.changes.outputs.deny == 'true') }}
if: *deny_gate
needs: [changes]
steps:
- name: Checkout branch
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ jobs:
(needs.changes.outputs.dependencies == 'true' ||
needs.changes.outputs.integration-yml == 'true' ||
needs.changes.outputs.int-tests-any == 'true' ||
needs.changes.outputs.e2e-tests-any == 'true')))
needs.changes.outputs.e2e-tests-any == 'true'))) &&
github.repository == 'vectordotdev/vector'
}}
uses: ./.github/workflows/build-test-runner.yml
with:
Expand All @@ -91,8 +92,12 @@ jobs:
- changes
- build-test-runner

if: ${{ always() && !failure() && !cancelled() && needs.build-test-runner.result == 'success' &&
(github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || inputs.run_all == true) }}
if: &integration_gate >-
always() && !failure() && !cancelled() &&
needs.build-test-runner.result == 'success' &&
(github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' ||
github.event_name == 'workflow_call' || inputs.run_all == true) &&
github.repository == 'vectordotdev/vector'
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -208,8 +213,7 @@ jobs:
needs:
- changes
- build-test-runner
if: ${{ always() && !failure() && !cancelled() && needs.build-test-runner.result == 'success' &&
(github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || inputs.run_all == true) }}
if: *integration_gate
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

run-test-integration-windows:
needs: changes
if: needs.changes.outputs.windows == 'true'
if: needs.changes.outputs.windows == 'true' && github.repository == 'vectordotdev/vector'
runs-on: windows-2025-8core
timeout-minutes: 60
steps:
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/k8s_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,14 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 45
needs: changes
# Run this job even if `changes` job is skipped
if: ${{ !failure() && !cancelled() && github.event_name != 'pull_request' && needs.changes.outputs.website_only != 'true' && needs.changes.outputs.k8s != 'false' }}
# Run this job even if `changes` job is skipped.
if: &run_k8s >-
!failure() && !cancelled() &&
github.event_name != 'pull_request' &&
needs.changes.outputs.website_only != 'true' &&
needs.changes.outputs.k8s != 'false' &&
(github.event_name != 'schedule' ||
github.repository == 'vectordotdev/vector')
env:
DISABLE_MOLD: true
steps:
Expand Down Expand Up @@ -105,8 +111,8 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 5
needs: changes
# Run this job even if `changes` job is skipped
if: ${{ !failure() && !cancelled() && github.event_name != 'pull_request' && needs.changes.outputs.website_only != 'true' && needs.changes.outputs.k8s != 'false' }}
# Run this job even if `changes` job is skipped.
if: *run_k8s
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand Down Expand Up @@ -250,7 +256,7 @@ jobs:
- build-x86_64-unknown-linux-gnu
- compute-k8s-test-plan
- test-e2e-kubernetes
if: always()
if: always() && (github.event_name != 'schedule' || github.repository == 'vectordotdev/vector')
env:
FAILED: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
Nightly:
if: ${{ github.repository == 'vectordotdev/vector' }}
permissions:
contents: write # Required to create/update releases and tags
packages: write # Required to push container images to GHCR
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:

build-linux-gnu-native:
name: Build Vector for ${{ matrix.target }} (native)
if: github.repository == 'vectordotdev/vector'
runs-on: ${{ matrix.runner }}
container:
image: almalinux:8@sha256:ca871b110064fe81bff0250ed5cc56fbb0a9840715f09811c33bbf9d72cef56c
Expand Down Expand Up @@ -136,6 +137,7 @@ jobs:

build-linux-cross:
name: Build Vector for ${{ matrix.target }}
if: github.repository == 'vectordotdev/vector'
runs-on: release-builder-linux
timeout-minutes: 60
needs: generate-publish-metadata
Expand Down Expand Up @@ -177,6 +179,7 @@ jobs:

build-apple-darwin-packages:
name: Build Vector for ${{ matrix.architecture }}-apple-darwin (.tar.gz)
if: github.repository == 'vectordotdev/vector'
runs-on: ${{ matrix.runner }}
timeout-minutes: 90
needs: generate-publish-metadata
Expand Down Expand Up @@ -225,6 +228,7 @@ jobs:

build-x86_64-pc-windows-msvc-packages:
name: Build Vector for x86_64-pc-windows-msvc (.zip)
if: github.repository == 'vectordotdev/vector'
runs-on: windows-2025-8core
timeout-minutes: 90
needs: generate-publish-metadata
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ env:

jobs:
resolve-inputs:
if: ${{ github.repository == 'vectordotdev/vector' }}
runs-on: ubuntu-24.04
outputs:
baseline-sha: ${{ steps.set_and_validate_shas.outputs.BASELINE_SHA }}
Expand Down Expand Up @@ -563,7 +564,7 @@ jobs:
name: Set final result
runs-on: ubuntu-latest
timeout-minutes: 5
if: always()
if: always() && github.repository == 'vectordotdev/vector'
needs:
- should-run-gate
- resolve-inputs
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permissions: read-all
jobs:
analysis:
name: Scorecard analysis
if: ${{ github.repository == 'vectordotdev/vector' }}
runs-on: ubuntu-24.04
permissions:
# Needed to upload the results to code-scanning dashboard.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ permissions:

jobs:
static-analysis:
# Requires Datadog OIDC credentials that aren't available on forks.
if: github.repository == 'vectordotdev/vector'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

check-clippy:
name: Check clippy
runs-on: ubuntu-24.04-8core
runs-on: ${{ github.repository == 'vectordotdev/vector' && 'ubuntu-24.04-8core' || 'ubuntu-24.04' }}
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.test-yml == 'true' }}
needs: changes
steps:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:

check-events:
name: Check events
runs-on: ubuntu-24.04-8core
runs-on: ${{ github.repository == 'vectordotdev/vector' && 'ubuntu-24.04-8core' || 'ubuntu-24.04' }}
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.test-yml == 'true' }}
needs: changes
steps:
Expand Down Expand Up @@ -124,7 +124,8 @@ jobs:
check-docs:
name: Check Cue docs
runs-on: ubuntu-24.04
if: ${{ needs.changes.outputs.cue == 'true' || needs.changes.outputs.test-yml == 'true' }}
# `make generate-vrl-docs` fetches GITHUB_SHA from vectordotdev/vector, which fails on forks.
if: ${{ github.repository == 'vectordotdev/vector' && (needs.changes.outputs.cue == 'true' || needs.changes.outputs.test-yml == 'true') }}
needs: changes
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -151,8 +152,9 @@ jobs:

check-generated-docs:
name: Check Generated Docs
runs-on: ubuntu-24.04-8core
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.component_docs == 'true' || needs.changes.outputs.test-yml == 'true' }}
runs-on: ${{ github.repository == 'vectordotdev/vector' && 'ubuntu-24.04-8core' || 'ubuntu-24.04' }}
# `make generate-vrl-docs` fetches GITHUB_SHA from vectordotdev/vector, which fails on forks.
if: ${{ github.repository == 'vectordotdev/vector' && (needs.changes.outputs.source == 'true' || needs.changes.outputs.component_docs == 'true' || needs.changes.outputs.test-yml == 'true') }}
needs: changes
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -168,7 +170,7 @@ jobs:

test-vrl:
name: VRL - Linux
runs-on: ubuntu-24.04-8core
runs-on: ${{ github.repository == 'vectordotdev/vector' && 'ubuntu-24.04-8core' || 'ubuntu-24.04' }}
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.cue == 'true' || needs.changes.outputs.test-yml == 'true' }}
needs: changes
steps:
Expand All @@ -183,7 +185,7 @@ jobs:

build-vrl-playground:
name: Build VRL Playground
runs-on: ubuntu-24.04-8core
runs-on: ${{ github.repository == 'vectordotdev/vector' && 'ubuntu-24.04-8core' || 'ubuntu-24.04' }}
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.dependencies == 'true' || needs.changes.outputs.test-yml == 'true' }}
needs: changes
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ env:
jobs:
tests:
name: Tests
if: github.repository == 'vectordotdev/vector'
runs-on: ubuntu-24.04-8core
permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions:

jobs:
test-windows:
if: github.repository == 'vectordotdev/vector'
runs-on: windows-2025-8core
timeout-minutes: 60
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/warm-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ concurrency:
jobs:
warm:
name: Warm shared workspace cache
if: github.repository == 'vectordotdev/vector'
runs-on: ubuntu-24.04-8core
timeout-minutes: 90
steps:
Expand Down
2 changes: 1 addition & 1 deletion src/sinks/azure_logs_ingestion/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn validate_accepts_valid_config() {

#[test]
fn validate_rejects_invalid_path_segments() {
// A space in either path segment makes the request path unparseable, so
// A space in either path segment makes the request path unparsable, so
// validation must fail rather than panicking at build time.
let config: AzureLogsIngestionConfig = serde_yaml::from_str(indoc::indoc! {r#"
endpoint: "https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com"
Expand Down
Loading