Skip to content

ci: add liveness test#81

Merged
julienrbrt merged 6 commits intomainfrom
julien/ci
May 7, 2025
Merged

ci: add liveness test#81
julienrbrt merged 6 commits intomainfrom
julien/ci

Conversation

@julienrbrt
Copy link
Copy Markdown
Member

@julienrbrt julienrbrt commented May 6, 2025

this thing is 100% AI for now. i'll tweak it as I improve it

  • always tests main rollkit
  • always replace go-execution-abci to head of pr / branch

Summary by CodeRabbit

  • Chores
    • Added a new integration test workflow to automate testing of the Rollkit chain startup and block production.
    • Removed YAML linting from the lint workflow, maintaining only Go and Markdown linting.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 6, 2025

Walkthrough

A new GitHub Actions workflow for Rollkit integration testing was added, automating end-to-end validation of chain startup and block production. Additionally, the lint workflow was modified to remove the yamllint job, leaving only Go and Markdown linting active.

Changes

File(s) Change Summary
.github/workflows/integration_test.yml Added a new workflow for Rollkit integration testing, automating chain setup, execution, and validation.
.github/workflows/lint.yml Removed the yamllint job, retaining only golangci-lint and markdown-lint jobs.

Sequence Diagram(s)

sequenceDiagram
    participant GitHub Actions
    participant Ubuntu Runner
    participant Rollkit Repo
    participant Ignite CLI
    participant Local DA Node
    participant GM Chain

    GitHub Actions->>Ubuntu Runner: Trigger workflow (push/PR/dispatch)
    Ubuntu Runner->>Rollkit Repo: Checkout repo
    Ubuntu Runner->>Ubuntu Runner: Setup Go environment
    Ubuntu Runner->>Ubuntu Runner: Install Ignite CLI
    Ubuntu Runner->>Rollkit Repo: Clone Rollkit
    Ubuntu Runner->>Local DA Node: Start DA node (background)
    Ubuntu Runner->>Ignite CLI: Scaffold new blockchain
    Ubuntu Runner->>Rollkit Repo: Install Rollkit app
    Ubuntu Runner->>Ignite CLI: Add Rollkit integration
    Ubuntu Runner->>GM Chain: Build and initialize chain
    Ubuntu Runner->>GM Chain: Replace module, tidy, rebuild
    Ubuntu Runner->>GM Chain: Start chain (background)
    Ubuntu Runner->>GM Chain: Poll logs, wait for 5 blocks
    GM Chain-->>Ubuntu Runner: Log output
    Ubuntu Runner->>Local DA Node: Kill process (on completion/failure)
    Ubuntu Runner->>GM Chain: Kill process (on completion/failure)
Loading

Suggested reviewers

  • tuxcanfly
  • randygrok

Poem

A bunny hops through CI’s land,
New tests for Rollkit, swift and grand!
Linting’s lighter, yamllint’s gone,
Chains and blocks keep hopping on.
Logs are counted, blocks arrive—
In workflows, code and carrots thrive!
🥕✨


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@julienrbrt julienrbrt marked this pull request as ready for review May 7, 2025 11:58
Comment thread .github/workflows/integration_test.yml Outdated
Copy link
Copy Markdown
Contributor

@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

🧹 Nitpick comments (5)
.github/workflows/integration_test.yml (5)

32-42: Add Health Check for Local DA Node

Relying on sleep may not guarantee the DA node is ready. Consider polling a known port or health endpoint:

 run: |
   go run . &
   echo "DA_PID=$!" >> $GITHUB_ENV
-  sleep 3
+  # wait for DA to listen on port 26657 (timeout after 15s)
+  timeout=15
+  until nc -z localhost 26657 || [ $timeout -le 0 ]; do
+    sleep 1
+    timeout=$((timeout-1))
+  done
+  if [ $timeout -le 0 ]; then
+    echo "Local DA did not start in time"
+    exit 1
+  fi

This ensures the DA is actually ready before proceeding.


62-79: Resolve TODO for Rollkit Module Replacement

The commented-out go mod edit -replace for github.com/rollkit/rollkit should be finalized to ensure reproducibility. You can leverage the PR’s SHA:

- # go mod edit -replace github.com/rollkit/rollkit=github.com/rollkit/rollkit@main
+ go mod edit -replace github.com/rollkit/rollkit=github.com/rollkit/rollkit@${{ github.sha }}

This removes the TODO and pins the module to the exact head of the branch.


83-113: Enhance Block Detection with Structured Parsing

Grep’ing for "Block executed successfully" can miss log variations. Since JSON logging is enabled, consider using jq to count events more reliably:

- BLOCKS_FOUND=$(grep -c "Block executed successfully" chain.log || true)
+ BLOCKS_FOUND=$(jq -r 'select(.msg=="Block executed successfully")' chain.log | wc -l || echo 0)

This approach ensures you only count valid block events.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 102-102: trailing spaces

(trailing-spaces)


[error] 109-109: trailing spaces

(trailing-spaces)


124-135: Graceful Process Termination

Using kill -9 forces immediate termination. For a cleaner shutdown, send SIGTERM first and then SIGKILL if necessary:

- kill -9 $CHAIN_PID || true
+ kill $CHAIN_PID || true
+ sleep 1
+ kill -9 $CHAIN_PID || true

Apply the same pattern for DA_PID.


100-109: Remove Trailing Spaces

Lines 102 and 109 have trailing whitespace, which triggers YAML lint errors. Please strip them:

-            ATTEMPT=$((ATTEMPT+1)) 
+            ATTEMPT=$((ATTEMPT+1))
...
-            fi 
+            fi
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 102-102: trailing spaces

(trailing-spaces)


[error] 109-109: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4abb42a and bd2215f.

📒 Files selected for processing (2)
  • .github/workflows/integration_test.yml (1 hunks)
  • .github/workflows/lint.yml (0 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/lint.yml
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/integration_test.yml

[error] 102-102: trailing spaces

(trailing-spaces)


[error] 109-109: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Test with Rollkit Chain
🔇 Additional comments (4)
.github/workflows/integration_test.yml (4)

1-9: CI Trigger Configuration Looks Solid

The workflow triggers on pushes and pull requests targeting main, as well as manual dispatch, aligning well with the goal of always testing the main branch. No adjustments needed here.


17-20: Ensure Full Git History for Go Modules

Using actions/checkout@v4 with fetch-depth: 0 correctly pulls the full repository history, which is necessary for module replacements via go mod edit. Nice catch.


21-26: Go Setup with Caching is Correct

actions/setup-go@v5 with go-version-file and cache: true optimizes both version pinning and dependency caching. This is best practice.


44-60: Scaffolding and Chain Preparation Steps Are Clear

The steps to scaffold the chain, install the Rollkit app at a specific commit, build, and initialize are well-ordered and correctly pinned. No concerns here.

Comment thread .github/workflows/integration_test.yml
@julienrbrt julienrbrt requested review from randygrok and tac0turtle May 7, 2025 12:20
Copy link
Copy Markdown
Contributor

@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

♻️ Duplicate comments (2)
.github/workflows/integration_test.yml (2)

29-29: ⚠️ Potential issue

Fix the Ignite CLI install URL
The trailing “!” in the URL will cause a 404 and break the CI.

- curl -sSL https://get.ignite.com/cli! | bash
+ curl -sSL https://get.ignite.com/cli | bash

27-30: 🛠️ Refactor suggestion

Pin Ignite CLI version or use the official GitHub Action
Installing without a version risks unexpected breakages. Consider one of the following:

  1. Pin to a release:
- name: Install Ignite CLI
- run: |
-   curl -sSL https://get.ignite.com/cli | bash
+ uses: ignite-core/cli-action@v1
+ with:
+   version: '1.24.0'
  1. Or specify the version in the curl URL:
- curl -sSL https://get.ignite.com/cli | bash
+ curl -sSL https://get.ignite.com/cli@v1.24.0 | bash
🧹 Nitpick comments (1)
.github/workflows/integration_test.yml (1)

102-102: Remove trailing spaces
YAML lint reports trailing spaces on these blank lines—please delete them to clean up the workflow.

-             # (line 102 has only spaces)
-            
...
-            # (line 109 has only spaces)
-            

Also applies to: 109-109

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 102-102: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bd2215f and 6f2149d.

📒 Files selected for processing (1)
  • .github/workflows/integration_test.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/integration_test.yml

[error] 102-102: trailing spaces

(trailing-spaces)


[error] 109-109: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Test with Rollkit Chain

Comment thread .github/workflows/integration_test.yml
Copy link
Copy Markdown
Contributor

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

what is the reasoning to have this in ci vs a script to run locally too?

@julienrbrt
Copy link
Copy Markdown
Member Author

what is the reasoning to have this in ci vs a script to run locally too?

I do not want the script to mess with my local environment.
There's little command to use once you have a chain to develop locally, while on CI it needs to be done each time.
To run this locally you can always use act: act -j rollkit-test

Copy link
Copy Markdown
Contributor

@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

♻️ Duplicate comments (1)
.github/workflows/integration_test.yml (1)

57-75: 🛠️ Refactor suggestion

Please resolve the commented TODO for rollkit replacement
Line 67 leaves a placeholder for replacing github.com/rollkit/rollkit with a specific commit. For reproducibility, either remove this TODO or update it, for example:

- # TODO(@julienrbrt) this should be replaced with a specific commit hash
- # go mod edit -replace github.com/rollkit/rollkit=github.com/rollkit/rollkit@v0.14.2-...
+ go mod edit -replace github.com/rollkit/rollkit=github.com/rollkit/rollkit@${GITHUB_SHA}
🧹 Nitpick comments (5)
.github/workflows/integration_test.yml (5)

11-17: Optional: add concurrency control to cancel in-flight jobs
To avoid redundant runs when multiple commits land in quick succession, consider adding:

  rollkit-test:
    concurrency:
      group: integration-test-${{ github.ref }}
      cancel-in-progress: true

This will conserve runner resources by cancelling previous tests on the same ref.


29-32: Optional: use the official Ignite CLI GitHub Action
Piping from curl works, but the ignite-core/cli-action provides a cleaner, faster install:

- uses: ignite-core/cli-action@latest

This avoids network pipes and ensures the latest CLI is available.


33-43: Optional: add a readiness check for the Local DA
Relying on sleep 3 may be fragile if startup varies. Consider polling a health endpoint (e.g., HTTP on localhost:26657) or checking the port with nc to confirm the DA is ready before proceeding.


101-101: Remove trailing spaces
Line 101 contains trailing whitespace, which causes YAML lint errors. Please trim it.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 101-101: trailing spaces

(trailing-spaces)


108-108: Remove trailing spaces
Line 108 contains trailing whitespace, which causes YAML lint errors. Please trim it.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 108-108: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6f2149d and b69dfd1.

📒 Files selected for processing (1)
  • .github/workflows/integration_test.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/integration_test.yml (1)
Learnt from: julienrbrt
PR: rollkit/go-execution-abci#81
File: .github/workflows/integration_test.yml:28-30
Timestamp: 2025-05-07T12:20:24.267Z
Learning: For the rollkit/go-execution-abci repository, the maintainer prefers using the latest version of Ignite CLI rather than pinning to a specific version during the current development phase. Version tags will be added later when Rollkit has a tag.
🪛 YAMLlint (1.35.1)
.github/workflows/integration_test.yml

[error] 101-101: trailing spaces

(trailing-spaces)


[error] 108-108: trailing spaces

(trailing-spaces)

🔇 Additional comments (3)
.github/workflows/integration_test.yml (3)

1-9: Workflow triggers look correct
Triggers on pushes, pull requests to main, and manual dispatch; aligns with the CI objective to ensure liveness tests run consistently.


19-28: Checkout & Go setup is solid
Using actions/checkout@v4 with full history and actions/setup-go@v5 with caching enabled ensures reproducible builds.


45-56: Chain scaffolding and app installation look good
Scaffolding with --no-module/--skip-git and installing the pinned rollkit app commit ensures deterministic integration tests.

Comment thread .github/workflows/integration_test.yml
Comment thread .github/workflows/integration_test.yml Outdated
@julienrbrt julienrbrt requested a review from tac0turtle May 7, 2025 13:04
@julienrbrt julienrbrt enabled auto-merge (squash) May 7, 2025 13:16
Comment thread .github/workflows/integration_test.yml Outdated
Comment thread .github/workflows/integration_test.yml Outdated
Copy link
Copy Markdown
Contributor

@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

🧹 Nitpick comments (5)
.github/workflows/integration_test.yml (5)

1-8: Add concurrency control to prevent overlapping runs
Without a concurrency group, rapid successive pushes can queue up multiple integration tests on the same branch, consuming runner capacity and potentially running stale code. Consider adding a concurrency block:

name: Rollkit Integration Test
+ concurrency:
+   group: Rollkit-Integration-Test-${{ github.ref }}
+   cancel-in-progress: true

29-32: Refine Ignite CLI install invocation
The current command pins to a specific version and includes an extraneous !, which may lead to confusion. To align with the maintainer’s preference for always using the latest Ignite CLI and remove the typo, replace with:

- curl -sSL https://get.ignite.com/cli@v28.10.0! | bash
+ curl -sSL https://get.ignite.com/cli | bash

33-44: Harden the Local DA startup script
Adding strict error handling and a cleanup trap will make failures easier to debug and ensure the DA process is always killed on exit:

 run: |
-  # clone rollkit repository
+  set -euxo pipefail
+  trap '[[ -n "${DA_PID}" ]] && kill -9 "$DA_PID"' EXIT
+  # clone rollkit repository

82-90: Enhance Chain startup with strict mode
To catch errors early when starting the chain, add set -euxo pipefail at the top of this run block:

 run: |
-  cd gm
+  set -euxo pipefail
+  cd gm

101-102: Remove trailing whitespace to satisfy YAML lint
Lines 101, 102, and 108 contain trailing spaces that trigger yamllint errors. Please delete the extra spaces at the ends of these blank lines.

Also applies to: 108-108

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 101-101: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b69dfd1 and 71d9842.

📒 Files selected for processing (2)
  • .github/workflows/integration_test.yml (1 hunks)
  • .github/workflows/lint.yml (0 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/lint.yml
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/integration_test.yml (1)
Learnt from: julienrbrt
PR: rollkit/go-execution-abci#81
File: .github/workflows/integration_test.yml:28-30
Timestamp: 2025-05-07T12:20:24.267Z
Learning: For the rollkit/go-execution-abci repository, the maintainer prefers using the latest version of Ignite CLI rather than pinning to a specific version during the current development phase. Version tags will be added later when Rollkit has a tag.
🪛 YAMLlint (1.35.1)
.github/workflows/integration_test.yml

[error] 101-101: trailing spaces

(trailing-spaces)


[error] 108-108: trailing spaces

(trailing-spaces)

🔇 Additional comments (3)
.github/workflows/integration_test.yml (3)

19-27: Checkout and Go setup look solid
Using fetch-depth: 0 is necessary for module replacements, and caching with setup-go @ v5 is configured correctly.


45-56: Scaffold Rollkit Chain step is correct
The commands to scaffold the chain, install the app, and add Rollkit integration follow best practices and require no changes.


122-134: Cleanup step looks good
The final if: always() block correctly ensures both the chain and DA processes are killed on exit.

Comment thread .github/workflows/integration_test.yml
Comment thread .github/workflows/integration_test.yml
Copy link
Copy Markdown
Contributor

@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

♻️ Duplicate comments (1)
.github/workflows/integration_test.yml (1)

84-123: 🛠️ Refactor suggestion

Improve CI job error handling and cleanup

Adding set -euxo pipefail and a trap in this block will ensure early failure on errors and cleanup of background processes without relying solely on the final step:

 run: |
+   set -euxo pipefail
+   trap '[[ -n "${CHAIN_PID}" ]] && kill -9 $CHAIN_PID; [[ -n "${DA_PID}" ]] && kill -9 $DA_PID' EXIT
    cd gm
    gmd start --rollkit.node.aggregator --log_format=json > chain.log 2>&1 &
    CHAIN_PID=$!
    echo "CHAIN_PID=$CHAIN_PID" >> $GITHUB_ENV
    ...

This duplicates a suggestion made earlier but remains unaddressed.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 103-103: trailing spaces

(trailing-spaces)


[error] 110-110: trailing spaces

(trailing-spaces)

🧹 Nitpick comments (4)
.github/workflows/integration_test.yml (4)

33-43: Enhance robustness of the Local DA startup

Consider adding set -euxo pipefail at the start of this script block to fail fast on errors, and trap cleanup to ensure the DA process is killed if any step fails:

 run: |
+   set -euxo pipefail
+   trap '[[ -n "${DA_PID}" ]] && kill -9 $DA_PID' EXIT
    git clone https://github.com/rollkit/rollkit --depth 1
    cd rollkit/da/cmd/local-da
    go run . &
    echo "DA_PID=$!" >> $GITHUB_ENV
    sleep 3

57-71: Resolve the TODO and simplify Rollkit module replacement

The TODO comment should be removed once a stable tag or commit is used. You can also avoid relying on jq by using Go’s templating for go list:

-          # TODO(@julienrbrt) this should be replaced with a specific commit hash
-          go get github.com/rollkit/rollkit@main
-          UPGRADED_ROLLKIT=$(go list -m -json github.com/rollkit/rollkit | jq -r .Version)
+          # pin to latest Rollkit version after tagging
+          go get github.com/rollkit/rollkit@main
+          UPGRADED_ROLLKIT=$(go list -m -f "{{.Version}}" github.com/rollkit/rollkit)
           go mod edit -replace github.com/rollkit/rollkit=github.com/rollkit/rollkit@$UPGRADED_ROLLKIT

100-120: Remove trailing spaces

YAMLlint reports trailing spaces around lines 103 and 110. Please remove any extra spaces at the ends of these lines to satisfy yamllint:

-            ATTEMPT=$((ATTEMPT+1)) 
+            ATTEMPT=$((ATTEMPT+1))
...
-            BLOCKS_FOUND=$(grep -c "Block executed successfully" chain.log || true) 
+            BLOCKS_FOUND=$(grep -c "Block executed successfully" chain.log || true)
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 103-103: trailing spaces

(trailing-spaces)


[error] 110-110: trailing spaces

(trailing-spaces)


1-8: Consider adding a concurrency group

To prevent overlapping runs of this workflow on the same branch or ref, you can add:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

right under the workflow name.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 71d9842 and f80569d.

📒 Files selected for processing (1)
  • .github/workflows/integration_test.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
.github/workflows/integration_test.yml (1)
Learnt from: julienrbrt
PR: rollkit/go-execution-abci#81
File: .github/workflows/integration_test.yml:28-30
Timestamp: 2025-05-07T12:20:24.267Z
Learning: For the rollkit/go-execution-abci repository, the maintainer prefers using the latest version of Ignite CLI rather than pinning to a specific version during the current development phase. Version tags will be added later when Rollkit has a tag.
🪛 YAMLlint (1.35.1)
.github/workflows/integration_test.yml

[error] 103-103: trailing spaces

(trailing-spaces)


[error] 110-110: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: test / Run Unit Tests
  • GitHub Check: Test with Rollkit Chain

Comment thread .github/workflows/integration_test.yml
Copy link
Copy Markdown
Contributor

@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

♻️ Duplicate comments (2)
.github/workflows/integration_test.yml (2)

67-70: Resolve the TODO for Rollkit version pinning
A TODO comment remains on pinning the Rollkit dependency:

# TODO(@julienrbrt) this should be replaced with a specific commit hash
go get github.com/rollkit/rollkit@main

Please either remove the TODO or update it to reflect the intended stability guarantee (e.g., specific tag/commit).


29-31: 🛠️ Refactor suggestion

Fix Ignite CLI installation command and version handling
The install URL currently includes both a pinned version (@v28.10.0) and a trailing exclamation mark, which will break the curl command. Per the maintainer’s preference, it’s better to install the latest CLI.

-          curl -sSL https://get.ignite.com/cli@v28.10.0! | bash
+          curl -sSL https://get.ignite.com/cli | bash
🧹 Nitpick comments (2)
.github/workflows/integration_test.yml (2)

85-91: Improve error detection when starting the chain
Similarly, you should enable errexit/pipefail at the top of this script block to catch failures early. For example:

       run: |
+        set -euxo pipefail
         cd gm
         # start the chain and send output to a log file
         gmd start --rollkit.node.aggregator --log_format=json > chain.log 2>&1 &
         CHAIN_PID=$!
         echo "CHAIN_PID=$CHAIN_PID" >> $GITHUB_ENV

This ensures that any failures in gmd start or directory changes will stop the workflow immediately.


102-104: Remove trailing whitespace
YAMLlint flagged trailing spaces on these lines. Trailing whitespace can lead to lint errors or misparsed YAML:

-            sleep 2 
+            sleep 2
...
-            BLOCKS_FOUND=$(grep -c "Block executed successfully" chain.log || true) 
+            BLOCKS_FOUND=$(grep -c "Block executed successfully" chain.log || true)

Also applies to: 110-114

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 103-103: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f80569d and 6a5e3a2.

📒 Files selected for processing (1)
  • .github/workflows/integration_test.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/integration_test.yml

[error] 103-103: trailing spaces

(trailing-spaces)


[error] 110-110: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Test with Rollkit Chain

Comment thread .github/workflows/integration_test.yml
@julienrbrt julienrbrt merged commit 1937e0e into main May 7, 2025
10 checks passed
@julienrbrt julienrbrt deleted the julien/ci branch May 7, 2025 18:17
@coderabbitai coderabbitai Bot mentioned this pull request Jul 16, 2025
chatton pushed a commit that referenced this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants