Skip to content
Merged
Show file tree
Hide file tree
Changes from 116 commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
7c4be90
Add generation of cue files from vrl Function
thomasqueirozb Feb 5, 2026
d028ae8
Use __mock_return_values_for_tests to show mocked examples
thomasqueirozb Feb 5, 2026
73d9585
Handle kind::any
thomasqueirozb Feb 6, 2026
ea36b23
Replace generate-component-docs with generate-docs
thomasqueirozb Feb 6, 2026
58fa9ab
Bump VRL
thomasqueirozb Feb 7, 2026
4f02f21
chore(vrl): Bump vrl and add return_kind to functions
thomasqueirozb Feb 7, 2026
d5c6ce5
Merge branch 'function-return' into automatic-vrl-documentation
thomasqueirozb Feb 7, 2026
4cc7bb4
Enable all features for vector-vrl-functions
thomasqueirozb Feb 8, 2026
a571dac
Add stubs and implement new params
thomasqueirozb Feb 8, 2026
ad740b0
Bump vrl and unstub pure
thomasqueirozb Feb 9, 2026
f6431ae
Bump vrl and unstub notices
thomasqueirozb Feb 9, 2026
8c42a0a
Trim strings
thomasqueirozb Feb 9, 2026
f0c2b92
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Feb 12, 2026
b5553de
chore(vrl): Bump VRL and implement category for functions
thomasqueirozb Feb 12, 2026
55e557b
Merge branch 'function-category' into automatic-vrl-documentation
thomasqueirozb Feb 12, 2026
e4d921a
Use .category()
thomasqueirozb Feb 12, 2026
74e4020
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Feb 13, 2026
cc66ebe
chore(vrl): bump VRL and use Parameter builder
thomasqueirozb Feb 18, 2026
4b8797e
Add .enum_variants to aggregate_vector_metrics
thomasqueirozb Feb 18, 2026
f2a3ddf
Add missing import
thomasqueirozb Feb 18, 2026
06eb975
Merge branch 'parameter-enum-variant' into automatic-vrl-documentation
thomasqueirozb Feb 19, 2026
44cacba
Add support for enum_variants
thomasqueirozb Feb 19, 2026
443e765
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Feb 19, 2026
2504f35
Add Raises block to remap rendering
thomasqueirozb Feb 19, 2026
c157925
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Feb 23, 2026
decc387
Bump vrl
thomasqueirozb Feb 23, 2026
142b3d3
Fix clippy
thomasqueirozb Feb 23, 2026
c4b4600
Install protoc when compiling vdev
thomasqueirozb Feb 23, 2026
5f0ef54
Add generated files
thomasqueirozb Feb 23, 2026
ad2a14b
Format json using 4 spaces instead of 2
thomasqueirozb Feb 23, 2026
cc139f5
Ignore VRL generated docs from cue fmt
thomasqueirozb Feb 23, 2026
ad035c8
Revert "Format json using 4 spaces instead of 2"
thomasqueirozb Feb 23, 2026
ee95f01
Push newline at the end of generated json
thomasqueirozb Feb 23, 2026
92eefbc
Bump VRL
thomasqueirozb Feb 24, 2026
76cd0c9
Add preserve_order to keep doc generation consistent
thomasqueirozb Feb 24, 2026
0782eab
Render input
thomasqueirozb Feb 24, 2026
1fad561
Regenerate docs
thomasqueirozb Feb 24, 2026
d6cbadc
Use IndexMap to preserve enum ordering
thomasqueirozb Feb 24, 2026
b51bc76
Regenerate docs with enum ordering
thomasqueirozb Feb 24, 2026
5cf0e1c
Fix cue schema
thomasqueirozb Feb 24, 2026
fd24c6d
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Feb 24, 2026
3335605
Remove .log when rendering VRL examples' input
thomasqueirozb Feb 24, 2026
2c5806f
Fix clippy
thomasqueirozb Feb 24, 2026
2b21351
Format cue
thomasqueirozb Feb 24, 2026
23cde3c
Add base64 encoded letters to spellcheck ignore
thomasqueirozb Feb 24, 2026
c43139e
Add all unrecognized words to expect.txt
thomasqueirozb Feb 24, 2026
21fc3bb
Update input to json value
thomasqueirozb Feb 26, 2026
a75174c
Use branch VRL and use VRL generation code
thomasqueirozb Feb 27, 2026
fd207fc
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Feb 27, 2026
809dff0
Bump branch sha
thomasqueirozb Feb 27, 2026
6f78059
Add generate-vrl-docs to check-docs
thomasqueirozb Feb 27, 2026
2f50f33
Add amplify.yml
thomasqueirozb Feb 27, 2026
8800155
Use __doc_paths
thomasqueirozb Feb 27, 2026
bda75b4
Bump version
thomasqueirozb Mar 2, 2026
1131838
Merge branch 'master' into automatic-vrl-documentation-website
thomasqueirozb Mar 2, 2026
0d73b57
Update licenses
thomasqueirozb Mar 2, 2026
93bb576
Use . appRoot
thomasqueirozb Mar 2, 2026
2d6ec0d
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Mar 2, 2026
b608329
Bump VRL
thomasqueirozb Mar 2, 2026
21a1d6d
Generate docs to docs/generated
thomasqueirozb Mar 2, 2026
d8f8a1b
Generate docs
thomasqueirozb Mar 2, 2026
caf1416
Rename vrl-docs to vector-vrl-docs
thomasqueirozb Mar 2, 2026
51b7e3e
Generate Vector VRL and VRL docs using make generate-vrl-docs
thomasqueirozb Mar 2, 2026
906dc73
Revert to prod amplify.yml
thomasqueirozb Mar 2, 2026
21e510f
Add VECTOR_SHA override
thomasqueirozb Mar 2, 2026
3a2cefc
Download latest vdev in amplify.yml
thomasqueirozb Mar 2, 2026
0a32b72
Install vdev from source
thomasqueirozb Mar 2, 2026
213fab8
All in one compilation/copy
thomasqueirozb Mar 2, 2026
426e8e8
Add check_type_only: false
thomasqueirozb Mar 2, 2026
2b834fc
Compile debug instead of release
thomasqueirozb Mar 2, 2026
4667060
Format
thomasqueirozb Mar 2, 2026
9c73c36
Fix check-docs check
thomasqueirozb Mar 2, 2026
2c1fd11
Revert changes to expect.txt
thomasqueirozb Mar 3, 2026
89d6bff
Update changes.yml
thomasqueirozb Mar 3, 2026
f1d8c15
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Mar 4, 2026
eb7f152
Add sticky comment workflow
thomasqueirozb Mar 4, 2026
5298e2b
Update docs/generated/README.md
thomasqueirozb Mar 5, 2026
115ac9e
Merge branch 'master' into automatic-vrl-documentation-website
thomasqueirozb Mar 5, 2026
896918e
Regenerate docs
thomasqueirozb Mar 5, 2026
2278d41
Make check-generated-vrl-docs always run
thomasqueirozb Mar 5, 2026
7a6e863
Use needs.*.result and check for failure/cancelled
thomasqueirozb Mar 5, 2026
6807bdb
Revert "Regenerate docs"
thomasqueirozb Mar 5, 2026
cc1d474
Use --vector-sha inside CI to ensure docs freshness
thomasqueirozb Mar 5, 2026
236a5fb
Revert "Use --vector-sha inside CI to ensure docs freshness"
thomasqueirozb Mar 5, 2026
88c939e
Add --vector-sha to generate-vector-vrl-docs step
thomasqueirozb Mar 5, 2026
4d5946c
Revert "Add --vector-sha to generate-vector-vrl-docs step"
thomasqueirozb Mar 5, 2026
cd72f69
Use --vector-sha when deploying the website
thomasqueirozb Mar 5, 2026
1551c8d
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Mar 5, 2026
384f672
Fix non CI make generate-vrl-docs
thomasqueirozb Mar 5, 2026
17b31a7
Move sparse_checkout_docs to vdev/src/utils/git.rs
thomasqueirozb Mar 5, 2026
72fc2c2
Recompile vdev when there are changes to 'lib/vector-vrl/**'
thomasqueirozb Mar 5, 2026
1d97612
chore(dev): move VRL-specific crates under lib/vector-vrl/ (#24854)
thomasqueirozb Mar 5, 2026
e9baf68
Update generated VRL docs
github-actions[bot] Mar 5, 2026
50f2f7d
Merge remote-tracking branch 'origin/master' into automatic-vrl-docum…
thomasqueirozb Mar 5, 2026
538ff1e
Format
thomasqueirozb Mar 5, 2026
a33f181
Remove `_*_explainer`s
thomasqueirozb Mar 5, 2026
be69781
Fix generated docs filters
thomasqueirozb Mar 5, 2026
8b0273d
Add test doc change
thomasqueirozb Mar 5, 2026
6e359f7
Update generated VRL docs
github-actions[bot] Mar 5, 2026
f6517da
Revert "Update generated VRL docs"
thomasqueirozb Mar 5, 2026
a445e03
Reapply "Update generated VRL docs"
thomasqueirozb Mar 5, 2026
5b1f2e0
Delete amplify.yml
thomasqueirozb Mar 5, 2026
0c5950a
Revert "Reapply "Update generated VRL docs""
thomasqueirozb Mar 5, 2026
4dc4230
Update generated VRL docs
github-actions[bot] Mar 5, 2026
ddce726
remove Hello from source code once and for all
thomasqueirozb Mar 5, 2026
534fd17
Optimize setup action
thomasqueirozb Mar 5, 2026
f88e6cf
Update generated VRL docs
github-actions[bot] Mar 5, 2026
951650e
Fix potential head_ref injection
thomasqueirozb Mar 5, 2026
3854fcd
Update generated VRL docs
github-actions[bot] Mar 5, 2026
d64e8f5
GHA trigger
thomasqueirozb Mar 6, 2026
d90e33b
Fail check when out of date
thomasqueirozb Mar 6, 2026
e90035f
Update generated VRL docs
github-actions[bot] Mar 6, 2026
19871fa
ci-test: add foo-bar to find_enrichment_table_records example
thomasqueirozb Mar 6, 2026
2320bb5
ci-test: make docs incorrect
thomasqueirozb Mar 6, 2026
ce1ea59
Update generated VRL docs
github-actions[bot] Mar 6, 2026
ef6308a
Update vdev cache keys
thomasqueirozb Mar 6, 2026
c313398
Update generated VRL docs
github-actions[bot] Mar 6, 2026
50c436c
Revert mock changes
thomasqueirozb Mar 6, 2026
2feff79
Update generated VRL docs
github-actions[bot] Mar 6, 2026
28b46ff
GHA trigger
thomasqueirozb Mar 6, 2026
031e565
Update warning comment
thomasqueirozb Mar 6, 2026
8910b3d
Merge branch 'master' into automatic-vrl-documentation-website
thomasqueirozb Mar 6, 2026
9565d14
Merge branch 'master' into automatic-vrl-documentation-website
thomasqueirozb Mar 7, 2026
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
12 changes: 10 additions & 2 deletions .github/actions/install-vdev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ runs:
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.cargo/bin/vdev
key: ${{ runner.os }}-vdev-${{ hashFiles('vdev/**', 'Cargo.toml', 'Cargo.lock') }}
# ** WARNING - IMPORTANT **
# If updating the key, make sure to also update other usages of the key in this file
# and also in .github/actions/setup/action.yml
# ** WARNING - IMPORTANT **
key: ${{ runner.os }}-vdev-${{ hashFiles('vdev/**', 'lib/vector-vrl/**', 'Cargo.toml', 'Cargo.lock') }}
restore-keys: |
${{ runner.os }}-vdev-

Expand All @@ -36,7 +40,11 @@ runs:
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.cargo/bin/vdev
key: ${{ runner.os }}-vdev-${{ hashFiles('vdev/**', 'Cargo.toml', 'Cargo.lock') }}
# ** WARNING - IMPORTANT **
# If updating the key, make sure to also update other usages of the key in this file
# and also in .github/actions/setup/action.yml
# ** WARNING - IMPORTANT **
key: ${{ runner.os }}-vdev-${{ hashFiles('vdev/**', 'lib/vector-vrl/**', 'Cargo.toml', 'Cargo.lock') }}

- name: Set VDEV environment variable
shell: bash
Expand Down
8 changes: 6 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ runs:
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.cargo/bin/vdev
key: ${{ runner.os }}-vdev-${{ hashFiles('vdev/**', 'Cargo.toml', 'Cargo.lock') }}
# ** WARNING - IMPORTANT **
# If updating the key, make sure to also update other usages of the key in this file
# and also in .github/actions/install-vdev/action.yml
# ** WARNING - IMPORTANT **
key: ${{ runner.os }}-vdev-${{ hashFiles('vdev/**', 'lib/vector-vrl/**', 'Cargo.toml', 'Cargo.lock') }}
restore-keys: |
${{ runner.os }}-vdev-
lookup-only: true
Expand Down Expand Up @@ -211,7 +215,7 @@ runs:
EOF

- name: Install protoc
if: ${{ inputs.protoc == 'true' }}
if: ${{ inputs.protoc == 'true' || env.VDEV_NEEDS_COMPILE == 'true' }}
shell: bash
run: |
echo "Installing protoc"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ jobs:
component_docs:
- 'scripts/generate-component-docs.rb'
- "vdev/**"
- 'website/cue/**/base/**.cue'
- 'website/cue/**/*.cue'
- 'docs/generated/**'
# If changes to the VRL sha is made the combined generated cue file will change which
# may cause issues
- 'Cargo.lock'
- ".github/workflows/changes.yml"
markdown:
- '**/**.md'
Expand Down
135 changes: 135 additions & 0 deletions .github/workflows/check_generated_vrl_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
name: Check Generated VRL Docs Freshness

on:
pull_request:
merge_group:
types: [checks_requested]
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

env:
COMMIT_MESSAGE: "Update generated VRL docs"
COMMIT_AUTHOR: "github-actions[bot]"

permissions:
contents: read

jobs:
changes:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docs:
- "lib/vector-vrl/**"
- "vdev/**"
- "Cargo.lock"
- ".github/workflows/check_generated_vrl_docs.yml"

run-check-generated-vrl-docs:
needs: changes
if: needs.changes.outputs.docs == 'true'
runs-on: ubuntu-24.04-8core
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- uses: ./.github/actions/setup
with:
vdev: true
mold: false
cargo-cache: false

- name: Regenerate VRL docs
run: make generate-vector-vrl-docs

- name: Check for changes
id: check
run: |
git add docs/generated/
if git diff --cached --quiet; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
fi

- name: Check last commit
if: steps.check.outputs.changed == 'true'
id: last-commit
run: |
MSG=$(git log -1 --pretty=%s)
AUTHOR=$(git log -1 --pretty=%an)
if [ "$MSG" = "$COMMIT_MESSAGE" ] && [ "$AUTHOR" = "$COMMIT_AUTHOR" ]; then
echo "is-auto=true" >> "$GITHUB_OUTPUT"
else
echo "is-auto=false" >> "$GITHUB_OUTPUT"
fi

- name: Commit and push
if: >
steps.check.outputs.changed == 'true'
&& steps.last-commit.outputs.is-auto != 'true'
&& github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository
id: push
continue-on-error: true
env:
HEAD_REF: ${{ github.head_ref }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "$COMMIT_MESSAGE"
git push origin HEAD:refs/heads/$HEAD_REF

- name: Save PR number for comment workflow
if: >
steps.check.outputs.changed == 'true'
&& steps.last-commit.outputs.is-auto != 'true'
&& github.event_name == 'pull_request'
&& steps.push.outcome != 'success'
run: |
mkdir -p /tmp/docs-check
echo "${{ github.event.pull_request.number }}" > /tmp/docs-check/pr-number

- name: Upload PR metadata
if: >
steps.check.outputs.changed == 'true'
&& steps.last-commit.outputs.is-auto != 'true'
&& github.event_name == 'pull_request'
&& steps.push.outcome != 'success'
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: vrl-docs-check-pr
path: /tmp/docs-check/pr-number

- name: Fail if docs are out of date
if: steps.check.outputs.changed == 'true'
run: |
echo "docs/generated/ is out of date. Regenerate with: make generate-vector-vrl-docs"
exit 1

check-generated-vrl-docs:
if: always()
runs-on: ubuntu-latest
needs: run-check-generated-vrl-docs
steps:
- run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
echo "One or more jobs failed or were cancelled"
exit 1
fi
62 changes: 62 additions & 0 deletions .github/workflows/check_generated_vrl_docs_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Comment on PR (Generated VRL Docs)

on:
workflow_run:
workflows: ["Check Generated VRL Docs Freshness"]
types:
- completed

permissions:
contents: read

jobs:
comment:
runs-on: ubuntu-latest
if: >
github.event.workflow_run.conclusion == 'failure'
&& github.event.workflow_run.event == 'pull_request'
permissions:
pull-requests: write
steps:
- name: Download PR metadata
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: vrl-docs-check-pr
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}

- name: Comment on PR
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const fs = require('fs');
const prNumber = parseInt(fs.readFileSync('pr-number', 'utf8').trim(), 10);
if (isNaN(prNumber)) {
core.setFailed('Invalid PR number');
return;
}

const marker = '<!-- generated-vrl-docs-check -->';
const body = marker + '\nThe `docs/generated/` folder is out of date but I was unable to push the fix automatically.\n\nPlease run the following and commit the result:\n\n```\nmake generate-vector-vrl-docs\n```';

const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
});
const existing = comments.find(c => c.body.startsWith(marker));
if (existing) {
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: existing.id,
body,
});
} else {
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body,
});
}
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ jobs:
markdownlint: true
- run: make check-markdown

check-component-docs:
name: Check Component Docs
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' }}
needs: changes
Expand All @@ -163,7 +163,7 @@ jobs:
protoc: true
cue: true
libsasl2: true
- run: make check-component-docs
- run: make check-generated-docs

check-rust-docs:
name: Check Rust Docs
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
- check-licenses
- check-docs
- check-markdown
- check-component-docs
- check-generated-docs
- check-rust-docs
- test-vrl
- build-vrl-playground
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ echo "Running pre-push checks..."
make check-licenses
make check-fmt
make check-clippy
make check-component-docs
make check-generated-docs

# Some other checks that in our experience rarely fail on PRs.
make check-deny
Expand Down Expand Up @@ -292,7 +292,7 @@ cargo vdev check events
cargo vdev check licenses
# Vector's documentation for each component is generated from the comments attached to the Component structs and members.
# Running this ensures that the generated docs are up to date.
make check-component-docs
make check-generated-docs
# Generate the code documentation for the Vector project.
# Run this to ensure the docs can be generated without errors (warnings are acceptable at the minute).
cd rust-doc && make docs
Expand Down
16 changes: 14 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ regex-automata,https://github.com/rust-lang/regex/tree/master/regex-automata,MIT
regex-filtered,https://github.com/ua-parser/uap-rust,BSD-3-Clause,The regex-filtered Authors
regex-lite,https://github.com/rust-lang/regex,MIT OR Apache-2.0,"The Rust Project Developers, Andrew Gallant <jamslam@gmail.com>"
regex-syntax,https://github.com/rust-lang/regex/tree/master/regex-syntax,MIT OR Apache-2.0,"The Rust Project Developers, Andrew Gallant <jamslam@gmail.com>"
relative-path,https://github.com/udoprog/relative-path,MIT OR Apache-2.0,John-John Tedro <udoprog@tedro.se>
rend,https://github.com/djkoloski/rend,MIT,David Koloski <djkoloski@gmail.com>
reqwest,https://github.com/seanmonstar/reqwest,MIT OR Apache-2.0,Sean McArthur <sean@seanmonstar.com>
reqwest-middleware,https://github.com/TrueLayer/reqwest-middleware,MIT OR Apache-2.0,Rodrigo Gryzinski <rodrigo.gryzinski@truelayer.com>
Expand Down
Loading
Loading