Skip to content

Commit cf919b6

Browse files
LinZhihao-723davemarcoAVMatthewssitaowang1998junhaoliao
authored
Rust workflow filter (#21)
* feat(webui): Add drawer to display guided query and errors. (y-scope#1421) * docs: Add Slack community invite badge to home page README. (y-scope#1418) * refactor(clp-package): Simplify StrEnum and Path serialization via Annotated serializers. (y-scope#1417) Co-authored-by: Junhao Liao <[email protected]> Co-authored-by: Junhao Liao <[email protected]> * build(clp-package): Adopt uv + hatchling as the build and packaging backend for Python components (resolves y-scope#1396); Upgrade dependencies for Python components. (y-scope#1405) * chore(docker): Add `--link` flags to COPY/ADD operations for improved build performance (fixes y-scope#1408). (y-scope#1411) * fix(ci): Correctly update and restore cache of `lint:check-cpp-lint-static-full`'s generated files (fixes y-scope#1419): (y-scope#1430) - Save cache entries using unique key per entry. - Restore latest entries using key prefix. - Avoid using outputs from optionally-run `restore` task. * fix(clp-rust-utils): Use AWS SDK default configuration with latest behavior version for S3 client. (y-scope#1445) Co-authored-by: Junhao Liao <[email protected]> * refactor(clp-package): Remove unused `python-dotenv` dependency and related imports (fixes y-scope#1443). (y-scope#1444) * fix(webui): Submit queries that failed ANTLR validation to Presto. (y-scope#1450) * feat(clp-s): Explicitly reject unstructured log inputs during compression. (y-scope#1434) * feat(webui): Show query speed in native search status. (y-scope#1429) * fix(job-orchestration): Make `tag_ids` a required `list[int]` for compatibility with Spider compressor. (y-scope#1453) * feat(clp-mcp-server): Add log viewer links to query results for displaying in LLM output. (y-scope#1454) Co-authored-by: Junhao Liao <[email protected]> * feat(ci): Add tasks for checking and updating Rust lock file (`Cargo.lock`); Add check to GH workflow. (y-scope#1448) * feat(webui): Trigger submit action when pressing Enter on Monaco single line editor. (y-scope#1459) * Add filters. * Update cargo lock. --------- Co-authored-by: davemarco <[email protected]> Co-authored-by: Abigail Matthews <[email protected]> Co-authored-by: sitaowang1998 <[email protected]> Co-authored-by: Junhao Liao <[email protected]> Co-authored-by: Junhao Liao <[email protected]> Co-authored-by: kirkrodrigues <[email protected]> Co-authored-by: Devin Gibson <[email protected]> Co-authored-by: hoophalab <[email protected]> Co-authored-by: Huangshi Tian <[email protected]>
1 parent 221b064 commit cf919b6

File tree

74 files changed

+3852
-3277
lines changed

Some content is hidden

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

74 files changed

+3852
-3277
lines changed

.github/workflows/clp-artifact-build.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,10 @@ jobs:
463463
run: "chown $(id -u):$(id -g) -R ."
464464
shell: "bash"
465465

466-
# NOTE: We don't use the cache for scheduled runs so that they run lint:check-cpp-static-full
467-
# on all files.
466+
# NOTE: We don't restore the cache for `schedule` runs so that below,
467+
# `lint:check-cpp-static-full` runs on all files. If we don't do this periodically,
468+
# `lint:check-cpp-static-full` could miss issues in files that haven't changed but depend on
469+
# files which have changed.
468470
- if: "'schedule' != github.event_name"
469471
name: "Restore lint:check-cpp-static-full cache"
470472
id: "cache-restore-lint-check-cpp-static-full"
@@ -475,9 +477,10 @@ jobs:
475477
.task/checksum/utils-cpp-lint-clang-tidy-*
476478
build/lint-clang-tidy
477479
478-
# NOTE: We use a per-OS cache since different OSes may trigger different clang-tidy
479-
# violations.
480-
key: "main-branch-ubuntu-jammy-lint:check-cpp-static-full"
480+
# NOTE: This key must be kept in-sync with the key prefix in the `actions/cache/save` step
481+
# below (we can't use the output of the current step since `schedule` workflow runs don't
482+
# run this step).
483+
key: "lint:check-cpp-static-full-on-ubuntu-24.04"
481484

482485
- uses: "./.github/actions/run-on-image"
483486
env:
@@ -505,7 +508,15 @@ jobs:
505508
.task/checksum/lint-check-cpp-static-full
506509
.task/checksum/utils-cpp-lint-clang-tidy-*
507510
build/lint-clang-tidy
508-
key: "${{steps.cache-restore-lint-check-cpp-static-full.outputs.cache-primary-key}}"
511+
512+
# NOTE: This key prefix (without the hash) must be kept in-sync with the
513+
# `actions/cache/restore` step above.
514+
key: >-
515+
lint:check-cpp-static-full-on-ubuntu-24.04-${{hashFiles(
516+
'.task/checksum/lint-check-cpp-static-full',
517+
'.task/checksum/utils-cpp-lint-clang-tidy-*',
518+
'build/lint-clang-tidy/**/*'
519+
)}}
509520
510521
package-image:
511522
name: "package-image"

.github/workflows/clp-core-build-macos.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ jobs:
9494
--num-jobs $(getconf _NPROCESSORS_ONLN)
9595
--test-spec "~[Stopwatch]"
9696
97-
# NOTE: We don't use the cache for scheduled runs so that they run lint:check-cpp-static-full
98-
# on all files.
97+
# NOTE: We don't restore the cache for `schedule` runs so that below,
98+
# `lint:check-cpp-static-full` runs on all files. If we don't do this periodically,
99+
# `lint:check-cpp-static-full` could miss issues in files that haven't changed but depend on
100+
# files which have changed.
99101
- if: "'schedule' != github.event_name"
100102
name: "Restore lint:check-cpp-static-full cache"
101103
id: "cache-restore-lint-check-cpp-static-full"
@@ -106,9 +108,11 @@ jobs:
106108
.task/checksum/utils-cpp-lint-clang-tidy-*
107109
build/lint-clang-tidy
108110
109-
# NOTE: We use a per-OS cache since different OSes may trigger different clang-tidy
110-
# violations.
111-
key: "main-branch-${{matrix.os}}-lint:check-cpp-static-full"
111+
# NOTE: This key must be kept in-sync with the key prefix in the `actions/cache/save` step
112+
# below (we can't use the output of the current step since `schedule` workflow runs don't
113+
# run this step).
114+
key: "lint:check-cpp-static-full-on-${{matrix.os}}-with\
115+
-${{matrix.use_shared_libs == true && 'shared' || 'static'}}-libs"
112116

113117
# TODO: When enough files are passing clang-tidy, switch to a full pass on schedule only.
114118
# - run: >-
@@ -129,4 +133,14 @@ jobs:
129133
.task/checksum/lint-check-cpp-static-full
130134
.task/checksum/utils-cpp-lint-clang-tidy-*
131135
build/lint-clang-tidy
132-
key: "${{steps.cache-restore-lint-check-cpp-static-full.outputs.cache-primary-key}}"
136+
137+
# NOTE: This key prefix (without the hash) must be kept in-sync with the
138+
# `actions/cache/restore` step above.
139+
key: >-
140+
lint:check-cpp-static-full-on-${{matrix.os}}-with-${{
141+
matrix.use_shared_libs == true && 'shared' || 'static'
142+
}}-libs-${{hashFiles(
143+
'.task/checksum/lint-check-cpp-static-full',
144+
'.task/checksum/utils-cpp-lint-clang-tidy-*',
145+
'build/lint-clang-tidy/**/*'
146+
)}}

.github/workflows/clp-docs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,29 @@ name: "clp-docs"
22

33
on:
44
pull_request:
5+
paths:
6+
- ".cargo/**"
7+
- "Cargo.lock"
8+
- "Cargo.toml"
9+
- ".github/workflows/clp-rust-checks.yaml"
10+
- ".gitmodules"
11+
- "components/clp-rust-utils/**"
12+
- "components/log-ingestor/**"
13+
- "taskfile.yaml"
14+
- "taskfiles/**"
15+
- "tools/scripts/deps-download/**"
516
push:
17+
paths:
18+
- ".cargo/**"
19+
- "Cargo.lock"
20+
- "Cargo.toml"
21+
- ".github/workflows/clp-rust-checks.yaml"
22+
- ".gitmodules"
23+
- "components/clp-rust-utils/**"
24+
- "components/log-ingestor/**"
25+
- "taskfile.yaml"
26+
- "taskfiles/**"
27+
- "tools/scripts/deps-download/**"
628
schedule:
729
# Run daily at 00:15 UTC (the 15 is to avoid periods of high load)
830
- cron: "15 0 * * *"

.github/workflows/clp-rust-checks.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
shell: "bash"
3232
run: "npm install -g @go-task/[email protected]"
3333

34+
- name: "Validate lock files"
35+
shell: "bash"
36+
run: "task deps:lock:check-rust"
37+
3438
- name: "Lint"
3539
shell: "bash"
3640
run: "task lint:check-rust"

0 commit comments

Comments
 (0)