Repository navigation
v0.9.3 to master #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.9.3 to master #458
Changes from 44 commits
a4c3a4c
3265227
ee1d41b
5063937
7d6b953
c7ba5f8
b18e621
2ce10ee
73a7f71
0296abc
11771ee
51509ff
554bc6b
7669b42
2288337
4d782da
c1c6294
80f288a
acc79ac
54c6219
562332c
2935a5d
f1b31d7
d6126c6
3d059d2
0f753f5
e4c1db6
e45631a
39625c5
56a54f1
36146bd
b376c8d
aa48a47
c37e8a5
94d1721
adc0911
b1d907b
c54e6b7
ff64448
a4b55af
05f0188
b9ee9fa
52133d1
80e9890
0846a61
028e213
e26aa31
a5a5bbd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,64 @@ | ||||||||||||||||||||||||||||||||||
| name: Tests | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||||||||
| - "v*-dev" | ||||||||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||
| CARGO_TERM_COLOR: always | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||
| test: | ||||||||||||||||||||||||||||||||||
| name: Test Suite | ||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||
| - name: Checkout code | ||||||||||||||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - name: Cache Cargo registry | ||||||||||||||||||||||||||||||||||
| uses: actions/cache@v4 | ||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||
| path: | | ||||||||||||||||||||||||||||||||||
| ~/.cargo/registry | ||||||||||||||||||||||||||||||||||
| ~/.cargo/git | ||||||||||||||||||||||||||||||||||
| target | ||||||||||||||||||||||||||||||||||
| key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | ||||||||||||||||||||||||||||||||||
| restore-keys: | | ||||||||||||||||||||||||||||||||||
| ${{ runner.os }}-cargo-test- | ||||||||||||||||||||||||||||||||||
| ${{ runner.os }}-cargo- | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - name: Install Rust toolchain | ||||||||||||||||||||||||||||||||||
| uses: actions-rs/toolchain@v1 | ||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||
| toolchain: stable | ||||||||||||||||||||||||||||||||||
| override: true | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+34
to
+38
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace deprecated The Apply this diff: - - name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ - name: Install Rust toolchain
+ uses: dtolnay/rust-toolchain@stable📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.8)35-35: the runner of "actions-rs/toolchain@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - name: Install system dependencies | ||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||
| sudo apt-get update | ||||||||||||||||||||||||||||||||||
| sudo apt-get install -y build-essential pkg-config clang cmake libsqlite3-dev | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - name: Install protoc | ||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||
| curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-x86_64.zip | ||||||||||||||||||||||||||||||||||
| sudo unzip -o protoc-25.2-linux-x86_64.zip -d /usr/local bin/protoc | ||||||||||||||||||||||||||||||||||
| sudo unzip -o protoc-25.2-linux-x86_64.zip -d /usr/local 'include/*' | ||||||||||||||||||||||||||||||||||
| rm -f protoc-25.2-linux-x86_64.zip | ||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||
| PROTOC: /usr/local/bin/protoc | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
Comment on lines
+40
to
+53
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Install unzip before using it; optionally export PROTOC at job scope.
- name: Install system dependencies
run: |
sudo apt-get update
- sudo apt-get install -y build-essential pkg-config clang cmake libsqlite3-dev
+ sudo apt-get install -y build-essential pkg-config clang cmake libsqlite3-dev unzipOptionally set at job env: env:
CARGO_TERM_COLOR: always
PROTOC: /usr/local/bin/protoc🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
| - name: Run tests | ||||||||||||||||||||||||||||||||||
| uses: actions-rs/cargo@v1 | ||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||
| command: test | ||||||||||||||||||||||||||||||||||
| args: --all-features --workspace | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - name: Run doc tests | ||||||||||||||||||||||||||||||||||
| uses: actions-rs/cargo@v1 | ||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||
| command: test | ||||||||||||||||||||||||||||||||||
| args: --doc --all-features --workspace | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+54
to
+64
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace deprecated The Apply this diff: - name: Run tests
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --all-features --workspace
+ run: cargo test --all-features --workspace
- name: Run doc tests
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --doc --all-features --workspace
+ run: cargo test --doc --all-features --workspace📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.8)55-55: the runner of "actions-rs/cargo@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 61-61: the runner of "actions-rs/cargo@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify grep flag behavior in error summarization step.
Line 136 uses
grep -m 200, which stops after 200 matches, not 200 lines. Depending on the log structure, this could truncate error output unexpectedly if there are many error/note lines. Confirm this aligns with intent; otherwise, consider removing the-mflag or increasing the limit if needed.🏁 Script executed:
Length of output: 46
Let me verify this with a more realistic test case that simulates a build log with multiple errors:
Let me test with a more realistic scenario with many Rust compilation errors:
Based on the verification, I can now generate the final rewritten comment. The review comment's concern is factually correct—grep -m NUM stops after NUM matching lines. The script confirmed this behavior. However, I should note that the workflow also has a fallback
tail -n 200command that captures the last 200 lines of the log, providing additional error context.Update the grep command to remove the
-m 200limit or document the truncation risk.The
-m 200flag stops after 200 matching lines, not 200 file lines. Given that dozens or hundreds of build errors can occur during refactoring, and each Rust error typically spans multiple matching lines (error declaration, location info, and notes), a single build could generate more than 200 matches, causing the error summary to truncate unexpectedly. Consider removing-m 200to capture all error patterns, or if truncation is intentional, add a comment explaining the limit.🤖 Prompt for AI Agents