Skip to content

Conversation

tolbrino
Copy link
Contributor

@tolbrino tolbrino commented May 20, 2025

  • Fixed upload of log files to GCP for every smoke test suite
  • Fixed permission problem in flake update GHA workflow
  • Fixed missing Git checkout in cleanup GHA workflow
  • Fixed protocol config to allow 3.x nodes in Rotsee and Dufour networks, also removed obsolete Monte Rosa network

@tolbrino tolbrino added this to the 3.0.0 milestone May 20, 2025
@tolbrino tolbrino self-assigned this May 20, 2025
Copy link
Contributor

coderabbitai bot commented May 20, 2025

📝 Walkthrough

"""

Walkthrough

The workflows were updated to simplify test execution commands and consolidate log compression and upload steps in the test jobs. The cleanup workflow added an explicit repository checkout step with credential persistence disabled. The update-flake-lock workflow modified cron trigger quoting and elevated repository content permissions from read to write. Additionally, protocol configuration JSON was updated by removing the "monte_rosa" network and expanding version ranges for "dufour" and "rotsee" networks.

Changes

File(s) Change Summary
.github/workflows/tests.yaml Simplified unit test command; merged compress and upload test log steps into one running in /tmp; removed separate upload action.
.github/workflows/cleanup.yaml Added explicit repository checkout step with persist-credentials: false; changed boolean inputs from single to double quotes.
.github/workflows/update-flake-lock.yaml Changed cron trigger quotes from single to double; elevated contents permission from read to write.
hopr/hopr-lib/data/protocol-config.json Removed "monte_rosa" network under "xdai" chain; changed "version_range" for "dufour" and "rotsee" from wildcard "2.*" to semantic range ">=2.0.0, <4.0.0".

Sequence Diagram(s)

sequenceDiagram
    participant Workflow
    participant TestJob
    participant LogHandler
    participant GCloudStorage

    Workflow->>TestJob: Run unit tests (single-line command)
    Workflow->>TestJob: Run smoke tests
    TestJob->>LogHandler: Copy logs to unique /tmp directory and compress
    LogHandler->>GCloudStorage: Upload compressed logs using gcloud storage cp
Loading

Possibly related PRs

  • ci: Fix flake lock action #7000: Modified .github/workflows/update-flake-lock.yaml with workflow trigger and permission changes, related to this PR's update-flake-lock workflow modifications.

Suggested labels

devops

Suggested reviewers

  • Teebor-Choka
    """

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2135e8c and c7fac9b.

📒 Files selected for processing (1)
  • hopr/hopr-lib/data/protocol-config.json (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • hopr/hopr-lib/data/protocol-config.json
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: tests-smoke-hopli
  • GitHub Check: tests-unit-nightly
  • GitHub Check: tests-unit
  • GitHub Check: hoprd / docker
  • GitHub Check: hopli / docker
  • GitHub Check: Linter
  • GitHub Check: zizmor
  • GitHub Check: Cargo Audit

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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

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.

@tolbrino tolbrino marked this pull request as ready for review May 20, 2025 07:24
@Copilot Copilot AI review requested due to automatic review settings May 20, 2025 07:24
@tolbrino tolbrino enabled auto-merge May 20, 2025 07:24
@github-actions github-actions bot added the toolchain Developer and product happiness label May 20, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request aims to fix the log upload process in the CI workflow.

  • Simplifies the unit test execution command by converting a multi-line command block into a single-line command.
  • Introduces a new step to dynamically compute the temporary folder path and updates the upload step to utilize this computed path in two different jobs.

Copy link
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: 0

🔭 Outside diff range comments (1)
.github/workflows/tests.yaml (1)

234-248: ⚠️ Potential issue

Inconsistent consumption of dynamic tmp path in tests-smoke-hopli

The find-tmp-path step (lines 234–239) computes a relative tmp-path, but the very next "Upload test logs" step (lines 240–248) still references the hardcoded /tmp/. As a result, the dynamic path is never used. Please update it to:

-          path: /tmp/
+          path: ${{ steps.find-tmp-path.outputs.tmp-path }}
🧹 Nitpick comments (1)
.github/workflows/tests.yaml (1)

234-239: Consider refactoring duplicated find-tmp-path logic

The same find-tmp-path step is added in both smoke test jobs. To reduce duplication and simplify future updates, you might extract this into a reusable GitHub Actions composite step or call a common workflow.

Also applies to: 345-350

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3117a1b and 535d78c.

📒 Files selected for processing (1)
  • .github/workflows/tests.yaml (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: tests-smoke-hopli
  • GitHub Check: tests-unit
🔇 Additional comments (3)
.github/workflows/tests.yaml (3)

57-59: Validate simplified unit test invocation

Ensure that nix build -L .#hopr-test still executes the unit tests and fails the job on test errors as expected, since the previous multi-line shell block may have handled exit codes or log collection differently.


345-350: Dynamic relative path for temp directory in tests-smoke is correct

The new find-tmp-path step accurately computes a relative path to /tmp and sets it as tmp-path, improving portability and avoiding hardcoded paths.


351-356: Upload test logs via computed tmp-path in tests-smoke

Switching the path in the "Upload test logs" step to use steps.find-tmp-path.outputs.tmp-path ensures the correct directory is uploaded. Looks good!

@Teebor-Choka
Copy link
Contributor

@tolbrino tolbrino added this pull request to the merge queue May 20, 2025
Merged via the queue into master with commit ce732b4 May 20, 2025
29 of 31 checks passed
@tolbrino tolbrino deleted the tb/202505-fix-log-upload branch May 20, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate:hopr-lib toolchain Developer and product happiness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants