-
Notifications
You must be signed in to change notification settings - Fork 207
ci(l1): add cleanup step to daily snapsync workflow #6131
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
Changes from 1 commit
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 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -86,6 +86,12 @@ jobs: | |||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||
| echo "timestamp=$EPOCHSECONDS" >> "$GITHUB_OUTPUT" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Cleanup stale Docker and Kurtosis resources | ||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||
| kurtosis clean -a || true | ||||||||||||||||||||||||||
| docker network prune -f | ||||||||||||||||||||||||||
| docker image prune -f | ||||||||||||||||||||||||||
|
Comment on lines
+89
to
+93
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. Consider adding error logging for the cleanup step to help diagnose if cleanup fails
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: .github/workflows/daily_snapsync.yaml
Line: 89:93
Comment:
Consider adding error logging for the cleanup step to help diagnose if cleanup fails
```suggestion
- name: Cleanup stale Docker and Kurtosis resources
run: |
echo "Starting cleanup of stale resources..."
kurtosis clean -a || echo "Warning: kurtosis clean failed"
docker network prune -f || echo "Error: docker network prune failed"
docker image prune -f || echo "Error: docker image prune failed"
echo "Cleanup completed"
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.
Comment on lines
+89
to
+93
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Run Snapsync Test | ||||||||||||||||||||||||||
| uses: ./.github/actions/snapsync-run | ||||||||||||||||||||||||||
| id: snapsync | ||||||||||||||||||||||||||
|
|
@@ -127,6 +133,12 @@ jobs: | |||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||
| echo "timestamp=$EPOCHSECONDS" >> "$GITHUB_OUTPUT" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Cleanup stale Docker and Kurtosis resources | ||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||
| kurtosis clean -a || true | ||||||||||||||||||||||||||
| docker network prune -f | ||||||||||||||||||||||||||
| docker image prune -f | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Run Snapsync Test | ||||||||||||||||||||||||||
| uses: ./.github/actions/snapsync-run | ||||||||||||||||||||||||||
| id: snapsync | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
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.
Consider adding
docker volume prune -fto also clean up unused volumes, which can accumulate from Kurtosis enclavesNote: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI