-
Notifications
You must be signed in to change notification settings - Fork 32
Required Fixes for Workflows and Docs #602
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
Conversation
… Action (refresh policy list)
…} release, and attach artifacts
…n} release, and attach artifacts
…d Go cache, capture logs, and upload docker.log
WalkthroughUpdates to CI/CD workflows enhance the hourly build process with Go module caching, structured logging, and error handling, while the release workflow transitions from individual binaries to platform-specific ZIP archives. Documentation and manifest files support these automation changes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/cli-gw-build-hourly.yml (1)
154-274: CRITICAL: Remove duplicate workflow definition.The entire workflow is duplicated starting at line 154, creating duplicate
name,on, andjobskeys. This is a YAML syntax error that will cause the workflow to fail or produce unexpected behavior.Only one workflow definition should remain. The first version (lines 1-153) appears more robust with explicit error handling and exit codes.
Based on static analysis hints.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.github/workflows/cli-gw-build-hourly.yml.github/workflows/cli-release.ymlcli/src/tests/resources/simple-policy-manifest.yamldocs/cli/quick-start-guide.md
🧰 Additional context used
🪛 actionlint (1.7.9)
.github/workflows/cli-gw-build-hourly.yml
154-154: key "name" is duplicated in workflow. previously defined at line:1,col:1
(syntax-check)
156-156: key "on" is duplicated in workflow. previously defined at line:3,col:1
(syntax-check)
161-161: key "jobs" is duplicated in workflow. previously defined at line:8,col:1
(syntax-check)
🪛 markdownlint-cli2 (0.18.1)
docs/cli/quick-start-guide.md
7-7: Unordered list indentation
Expected: 2; Actual: 1
(MD007, ul-indent)
7-7: Hard tabs
Column: 1
(MD010, no-hard-tabs)
9-9: Hard tabs
Column: 1
(MD010, no-hard-tabs)
10-10: Hard tabs
Column: 1
(MD010, no-hard-tabs)
11-11: Hard tabs
Column: 1
(MD010, no-hard-tabs)
13-13: Unordered list indentation
Expected: 2; Actual: 1
(MD007, ul-indent)
13-13: Hard tabs
Column: 1
(MD010, no-hard-tabs)
15-15: Hard tabs
Column: 1
(MD010, no-hard-tabs)
🪛 YAMLlint (1.37.1)
.github/workflows/cli-gw-build-hourly.yml
[error] 154-154: duplication of key "name" in mapping
(key-duplicates)
[error] 156-156: duplication of key "on" in mapping
(key-duplicates)
[error] 161-161: duplication of key "jobs" in mapping
(key-duplicates)
🔇 Additional comments (6)
cli/src/tests/resources/simple-policy-manifest.yaml (1)
1-5: LGTM! Clear documentation of manifest purpose.The added comments and explicit
policies:key improve the manifest's readability and make its role in the periodic testing workflow clear..github/workflows/cli-release.yml (2)
53-107: LGTM! Robust platform-specific packaging logic.The new packaging approach correctly:
- Uses
set -euo pipefailfor proper error handling- Creates platform-specific ZIPs with top-level directories
- Handles missing binaries gracefully with placeholder files
- Preserves executable permissions for Unix binaries
- Cleans up temporary files and raw binaries
157-161: LGTM! Workflow artifact upload enhances traceability.Uploading the release ZIPs as workflow artifacts provides a convenient way to access and verify the packaged binaries directly from the workflow run.
.github/workflows/cli-gw-build-hourly.yml (3)
22-30: LGTM! Go module caching improves build performance.The added Go module cache step will significantly speed up subsequent workflow runs by reusing downloaded dependencies and build artifacts.
88-114: LGTM! Comprehensive smoke test with proper log handling.The smoke test step correctly:
- Sets up required environment variables
- Creates log directories before execution
- Handles missing binaries gracefully
- Captures both stdout/stderr and docker.log
- Provides clear error messages with log references
116-153: LGTM! Structured artifact upload ensures logs are always available.The placeholder creation and individual log uploads ensure that artifacts are consistently available for debugging, even when steps fail early or produce no output.
$Subject
Summary by CodeRabbit
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.