Skip to content

chore: test new runners#2062

Open
olebel wants to merge 6 commits intomainfrom
ob/runner
Open

chore: test new runners#2062
olebel wants to merge 6 commits intomainfrom
ob/runner

Conversation

@olebel
Copy link
Copy Markdown
Collaborator

@olebel olebel commented Apr 14, 2026

Description

!!! Do not merge. Testing GH runners !!!

Notes:

  • disabling actions/setup-go cache saves few minutes each run, on hosted runners as cache pull speed is slow (~5-6Mb/s)
  • build tends to write files with root ownership. It requires to cleanup build folder before running job.

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

@olebel olebel requested a review from a team as a code owner April 14, 2026 23:04
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 14, 2026

Walkthrough

Changed CI runners and added workspace cleanup steps; added a go-cache input to a composite GitHub Action and wired it into actions/setup-go; minor comment whitespace tweak; two gRPC query handlers switched from status.Errorf to status.Error for NotFound errors.

Changes

Cohort / File(s) Summary
GitHub Actions Workflows
.github/workflows/tests.yaml
build-bins and tests jobs: runs-on changed to core-runner; added initial workspace-clean steps (sudo rm -rf ./* and sudo rm -rf ./.??* with `
Composite Action
.github/actions/setup-ubuntu/action.yaml
Added input go-cache (default 'false') and replaced actions/setup-go@v5 config check-latest: truecache: "${{ inputs.go-cache }}".
gRPC Query Handlers
x/deployment/keeper/grpc_query.go, x/market/keeper/grpc_query.go
Replaced status.Errorf(codes.NotFound, err.Error()) with status.Error(codes.NotFound, err.Error()) for NotFound error returns; no other logic changes.
Comment-only change
app/config.go
Whitespace-only comment edit (// accounts, fees.// accounts, fees.). No functional impact.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐇 I nibbled the runners, swept the CI hall,

tucked a tiny cache flag in for all.
I straightened a comment, whispered "ship it" with cheer,
and hopped off with carrots for each passing gear. 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: test new runners' accurately reflects the main changes which involve reconfiguring CI runners and related setup steps.
Description check ✅ Passed The description is directly related to the changeset, explaining the rationale for runner configuration changes and cache handling.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ob/runner

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.github/workflows/tests.yaml (1)

21-24: Harden cleanup to anchor deletion to ${GITHUB_WORKSPACE}.

The current glob-based sudo rm -rf works, but it's safer to anchor deletion to ${GITHUB_WORKSPACE} so an unexpected working-directory change can't broaden the removal scope. This pattern appears in multiple workflow files and should be updated consistently.

Safer cleanup variant
       - name: Cleanup build folder
         run: |
-          sudo rm -rf ./* || true
-          sudo rm -rf ./.??* || true
+          test -n "${GITHUB_WORKSPACE:-}" && test -d "${GITHUB_WORKSPACE}"
+          sudo rm -rf -- "${GITHUB_WORKSPACE:?}/"* \
+                        "${GITHUB_WORKSPACE:?}"/.[!.]* \
+                        "${GITHUB_WORKSPACE:?}"/..?* || true
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/tests.yaml around lines 21 - 24, The "Cleanup build
folder" step uses unanchored globs (rm -rf ./* and ./.??*) which can delete
outside the intended directory if the working dir changes; update this step to
perform removals anchored to the workspace variable (use ${GITHUB_WORKSPACE:?}
as the base) so both normal and dotfiles are removed from ${GITHUB_WORKSPACE}
only, and apply the same change to the other workflow cleanup occurrences to
ensure consistent, safe deletion.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/tests.yaml:
- Around line 21-24: The "Cleanup build folder" step uses unanchored globs (rm
-rf ./* and ./.??*) which can delete outside the intended directory if the
working dir changes; update this step to perform removals anchored to the
workspace variable (use ${GITHUB_WORKSPACE:?} as the base) so both normal and
dotfiles are removed from ${GITHUB_WORKSPACE} only, and apply the same change to
the other workflow cleanup occurrences to ensure consistent, safe deletion.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ce202099-3d6a-4fc8-8f10-43ead66dc43c

📥 Commits

Reviewing files that changed from the base of the PR and between 229cc46 and bad4db9.

📒 Files selected for processing (3)
  • .github/workflows/tests.yaml
  • x/deployment/keeper/grpc_query.go
  • x/market/keeper/grpc_query.go
✅ Files skipped from review due to trivial changes (2)
  • x/market/keeper/grpc_query.go
  • x/deployment/keeper/grpc_query.go

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/actions/setup-ubuntu/action.yaml:
- Around line 3-7: Change the inputs.go-cache default from 'false' to 'true' in
the action definition so actions/setup-go module cache restore/save is enabled
by default; update the inputs block for the go-cache input (symbol: go-cache,
key: default) to 'true' and ensure no other behavior relies on the current false
default (leave required/description unchanged).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 358863df-6b4d-440e-a7ea-3888d13dbc6a

📥 Commits

Reviewing files that changed from the base of the PR and between bad4db9 and e08eff8.

📒 Files selected for processing (2)
  • .github/actions/setup-ubuntu/action.yaml
  • .github/workflows/tests.yaml

Comment thread .github/actions/setup-ubuntu/action.yaml
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/tests.yaml:
- Around line 21-24: The cleanup step named "Cleanup build folder" currently
masks failures by appending "|| true" to the rm commands (sudo rm -rf ./* ||
true and sudo rm -rf ./.??* || true); remove the "|| true" and replace the
brittle suppression with a safe existence check or a find-based removal so
failures surface — e.g. wrap removals in conditionals (if [ -e ./* ] || [ -e
./.??* ]; then sudo rm -rf ./* ./.??*; fi) or use a tolerant deletion like find
. -maxdepth 1 -mindepth 1 -exec sudo rm -rf {} +; apply the same change to the
other occurrence (the second pair of rm commands) so cleanup fails fast instead
of being silently ignored.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 415672a4-33ae-4550-8fdf-e14176ce3cb7

📥 Commits

Reviewing files that changed from the base of the PR and between e08eff8 and 7c9d5ce.

📒 Files selected for processing (1)
  • .github/workflows/tests.yaml

Comment on lines +21 to +24
- name: Cleanup build folder
run: |
sudo rm -rf ./* || true
sudo rm -rf ./.??* || true
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Don’t suppress cleanup failures with || true.

Line 23/24 and Line 51/52 currently mask cleanup errors. That can silently keep stale state on persistent runners and reintroduce flaky builds.

Safer fail-fast cleanup
-      - name: Cleanup build folder
-        run: |
-          sudo rm -rf ./* || true
-          sudo rm -rf ./.??* || true
+      - name: Cleanup build folder
+        run: |
+          sudo find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +

Also applies to: 49-52

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/tests.yaml around lines 21 - 24, The cleanup step named
"Cleanup build folder" currently masks failures by appending "|| true" to the rm
commands (sudo rm -rf ./* || true and sudo rm -rf ./.??* || true); remove the
"|| true" and replace the brittle suppression with a safe existence check or a
find-based removal so failures surface — e.g. wrap removals in conditionals (if
[ -e ./* ] || [ -e ./.??* ]; then sudo rm -rf ./* ./.??*; fi) or use a tolerant
deletion like find . -maxdepth 1 -mindepth 1 -exec sudo rm -rf {} +; apply the
same change to the other occurrence (the second pair of rm commands) so cleanup
fails fast instead of being silently ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant