Skip to content

Conversation

hopr-bot
Copy link
Collaborator

@hopr-bot hopr-bot commented Jan 14, 2025

This Pull requests contains all the required changes needed before releasing a new version.

  • Check that there is an entry in releases.json for the new release name.

    • If the release will run in its own network ($RELEASENAME == $NETWORK) then a new entry in hopr/hopr-lib/data/protocol-config.json should be created for the network.
    • If the release will run in a multinetwork network like dufour then update the file hopr/hopr-lib/data/protocol-config.json for the dufour entry to accept the new version_range of the new release.
  • Change all occurences of the last release name to the new release name within documentation files and Docker files. Don't touch the protocol-config.json and releases.json files in this step.

  • Check the milestone contents and that all items are closed. And there is no missing issue or PR to be included.

  • If the release will run in a new network then, check that the entry networks in contracts-addresses.json, contains its own network

     "new_network": {
       "boost_contract_address": "",
       "channels_contract_address": "",
       "environment_type": "production",
       "indexer_start_block_number": 0,
       "network_registry_contract_address": "",
       "network_registry_proxy_contract_address": "",
       "stake_contract_address": "",
       "stake_season": 7,
       "token_contract_address": "",
       "xhopr_contract_address": ""
     }
    

    NOTE: Don't include the deployment of HoprChannels, because this will be re-deployed anyway by the CD system.
    Changes should be committed locally.

  • Assess that all CI checks have passed successfully and wait for the docker images builds to finish.

  • Check that binary x86_64-linux works correctly by setting up a node on that architecture and operative system

  • Check that binary aarch64-linux works correctly by setting up a node on that architecture and operative system

  • Check that binary aarch64-darwin works correctly by setting up a node on that architecture and operative system

  • Check that binary x86_64-darwin works correctly by setting up a node on that architecture and operative system

  • Create a new baseline for load testing following Load testing guide.

  • Get the approval from at least 2 members

@hopr-bot hopr-bot added binary:aarch64-linux Build aarch64-linux binary binary:aarch64-darwin Build aarch64-darwin binary binary:armv7l-linux binary:x86_64-darwin Build x86_64-darwin binary binary:x86_64-linux Build x86_64-linux binary component:hopli load_tests release labels Jan 14, 2025
@hopr-bot hopr-bot requested a review from a team January 14, 2025 12:17
Copy link
Contributor

coderabbitai bot commented Jan 14, 2025

📝 Walkthrough

Walkthrough

This release (version 2.2.0-rc.1) introduces significant improvements to the system's reliability and functionality. The key highlight is the implementation of packet acknowledgment for every packet, which enhances communication reliability. The release addresses multiple bug fixes across various components, including issues with alias records, message sending, and pipeline build processes. It also includes improvements to API compatibility, session management, logging, and introduces new configuration options and endpoints.

Changes

File/Path Change Summary
docs/changelog/changelog-2.2.0-rc.1.md Documented new features and bug fixes for version 2.2.0-rc.1.
.github/workflows/close-release.yaml Removed saint-louis from release_name choices.
.github/workflows/publish-release.yaml Changed from_tag default value from saint-louis to singapore.
.processes/release.md Corrected spelling from "Processs" to "Process" and simplified promotion process description.
README.md Updated installation instructions to reflect release version change from saint-louis to singapore.
deploy/compose/.env-secrets.sample Added new configuration entry METRICS_PUSH_KEY.
deploy/compose/README.md Added instruction for setting METRICS_PUSH_KEY for Prometheus Pushgateway.
deploy/compose/docker-compose.yml Removed HOPRD_API_PORT from metricspusher service configuration.
deploy/compose/prometheus/metricspusher.sh Added validation for METRICS_PUSH_KEY and updated metrics push method for authentication.
releases.json Added new entry for release singapore with versioning details.
scripts/deploy-rotsee-nodes.sh Updated CONTAINER_NAME from hoprd-node-rotsee-saint-louis to hoprd-node-rotsee-singapore.
scripts/merge-back.sh Removed usage example for saint-louis from the usage function.

Possibly related PRs

  • Open release 2.2.0-rc.1 #6252: The changes in this PR relate to the new release version 2.2.0-rc.1, which aligns with the main PR's focus on the 2.2.0 release, indicating a direct connection in terms of versioning and release management.
  • Update readme on docker compose #6554: This PR updates the README to enhance documentation related to Docker Compose, which is relevant to the main PR's changes that include improvements to usability and configuration options, particularly in the context of the new release.

Suggested labels

dependencies, toolchain

Suggested reviewers

  • Teebor-Choka

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.

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. (Beta)
  • @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.

@github-actions github-actions bot added the documentation anything regarding docs label Jan 14, 2025
@hopr-bot hopr-bot marked this pull request as ready for review January 14, 2025 12:18
@hopr-bot hopr-bot enabled auto-merge January 14, 2025 12:18
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: 1

🧹 Nitpick comments (2)
docs/changelog/changelog-2.2.0-rc.1.md (2)

5-5: Consider adding more detailed descriptions for significant changes.

Some changelog entries would benefit from additional context to help users understand their impact. For example:

  • "Acknowledge every packet" - What was the previous behavior and what benefits does this change bring?
  • "Invalid alias record entry attempt after hoprd node start" - What was the issue and its impact?

Also applies to: 9-23


62-62: Fix formatting inconsistencies in changelog entries.

Please address the following formatting issues:

  • Line 62: Add hyphen for compound adjective "backwards-compatible"
  • Line 93: Add hyphen for "environment-var-based"
  • Line 110: Use "an" instead of "a" before "instrumentation"

Also applies to: 93-93, 110-110

🧰 Tools
🪛 LanguageTool

[uncategorized] ~62-~62: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ... metrics to prime them - #6655 - Return backwards compatible configuration with 2.1.x versions - #66...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 3ce9f4b and a8388bd.

📒 Files selected for processing (1)
  • docs/changelog/changelog-2.2.0-rc.1.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/changelog/changelog-2.2.0-rc.1.md

[uncategorized] ~62-~62: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ... metrics to prime them - #6655 - Return backwards compatible configuration with 2.1.x versions - #66...

(EN_COMPOUND_ADJECTIVE_INTERNAL)


[uncategorized] ~93-~93: This expression is usually spelled with a hyphen.
Context: ...for the additional optional environment var based configuration - #6576 - api: Add swagge...

(BASED_HYPHEN)


[misspelling] ~110-~110: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ...ng probability SC address - #6513 - Add a instrumentation build for the tokio run...

(EN_A_VS_AN)


[inconsistency] ~124-~124: A new year has begun. Did you mean “2025-08-16”?
Context: ...aint Louis - #6456 - Dependency updates 2024-08-16 - #6435 - Introduce UDP session listene...

(DATE_NEW_YEAR)

⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: hoprd-x86_64-darwin / binary
  • GitHub Check: hoprd-aarch64-darwin / binary
  • GitHub Check: hopli-x86_64-darwin / binary
  • GitHub Check: hopli-aarch64-darwin / binary
  • GitHub Check: tests-unit
  • GitHub Check: tests-smoke-websocket
  • GitHub Check: tests-smart-contracts
  • GitHub Check: tests-unit-nightly
🔇 Additional comments (1)
docs/changelog/changelog-2.2.0-rc.1.md (1)

34-35: Verify backward compatibility testing with 2.1.x versions.

Multiple entries indicate backward compatibility changes with 2.1.x versions. Please ensure that:

  1. All compatibility changes have been thoroughly tested
  2. The compatibility matrix is documented
  3. Any breaking changes are clearly highlighted

Also applies to: 62-62, 95-95

@hopr-bot hopr-bot added this pull request to the merge queue Jan 14, 2025
@ausias-armesto ausias-armesto removed this pull request from the merge queue due to a manual request Jan 14, 2025
@github-actions github-actions bot added the toolchain Developer and product happiness label Jan 14, 2025
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: 1

🧹 Nitpick comments (4)
deploy/compose/.env-secrets.sample (1)

9-10: LGTM! Consider enhancing the documentation.

The addition of METRICS_PUSH_KEY is well-structured and properly documented.

Consider adding a comment referencing the Bitwarden secret name, similar to the script:

 # User and password to access Prometheus Pushgateway.
+# Get from Bitwarden secret 'Prometheus Pushgateway Hoprd Node'
 METRICS_PUSH_KEY=
deploy/compose/prometheus/metricspusher.sh (1)

31-31: Consider validating the METRICS_PUSH_KEY format.

The script should validate that the key follows the expected format (user:password) before using it with curl.

Add this validation after the existing check:

 if [ -z "${METRICS_PUSH_KEY}" ]; then
   echo "Error: METRICS_PUSH_KEY is not set. Get from Bitwarden secret 'Prometheus Pushgateway Hoprd Node'"
   exit 1
 fi
+if ! echo "${METRICS_PUSH_KEY}" | grep -q '^[^:]\+:[^:]\+$'; then
+  echo "Error: METRICS_PUSH_KEY must be in the format 'user:password'"
+  exit 1
+fi
README.md (2)

Line range hint 201-201: Fix typo in About section.

There's a typo in the word "modiyfing" which should be "modifying".

-The HOPR project produces multiple artifacts that allow running, maintaining and modiyfing the HOPR node.
+The HOPR project produces multiple artifacts that allow running, maintaining and modifying the HOPR node.

97-97: Consider removing dollar signs from command examples.

The dollar sign prefix in command examples can interfere with copy-paste functionality. Consider removing them for better user experience.

-$ docker pull europe-west3-docker.pkg.dev/hoprassociation/docker-images/hoprd:singapore
+docker pull europe-west3-docker.pkg.dev/hoprassociation/docker-images/hoprd:singapore
🧰 Tools
🪛 Markdownlint (0.37.0)

97-97: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a8388bd and 454397e.

📒 Files selected for processing (11)
  • .github/workflows/close-release.yaml (0 hunks)
  • .github/workflows/publish-release.yaml (1 hunks)
  • .processes/release.md (1 hunks)
  • README.md (2 hunks)
  • deploy/compose/.env-secrets.sample (1 hunks)
  • deploy/compose/README.md (1 hunks)
  • deploy/compose/docker-compose.yml (0 hunks)
  • deploy/compose/prometheus/metricspusher.sh (2 hunks)
  • releases.json (1 hunks)
  • scripts/deploy-rotsee-nodes.sh (1 hunks)
  • scripts/merge-back.sh (0 hunks)
💤 Files with no reviewable changes (3)
  • scripts/merge-back.sh
  • deploy/compose/docker-compose.yml
  • .github/workflows/close-release.yaml
✅ Files skipped from review due to trivial changes (3)
  • .github/workflows/publish-release.yaml
  • scripts/deploy-rotsee-nodes.sh
  • .processes/release.md
🧰 Additional context used
🪛 Markdownlint (0.37.0)
README.md

97-97: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: hoprd-x86_64-darwin / binary
  • GitHub Check: hoprd-aarch64-darwin / binary
  • GitHub Check: hopli-x86_64-darwin / binary
  • GitHub Check: hopli-aarch64-darwin / binary
🔇 Additional comments (4)
deploy/compose/prometheus/metricspusher.sh (1)

9-12: LGTM! The validation is properly implemented.

The check for METRICS_PUSH_KEY is consistent with other validations and includes helpful information about retrieving the credentials.

deploy/compose/README.md (1)

61-61: LGTM! Documentation is clear and complete.

The documentation properly explains the new METRICS_PUSH_KEY requirement and includes the source of credentials.

README.md (2)

85-85: LGTM! Release version updates are consistent.

The release version has been correctly updated from 'saint-louis' to 'singapore' in both the $RELEASE variable example and the Docker pull command, aligning with the PR objectives for release 2.2.0-rc.1.

Also applies to: 97-97


Line range hint 1-999: Documentation is comprehensive and well-maintained.

The README provides thorough coverage of installation, usage, development setup, and testing procedures. The updates align well with the PR objectives and accurately reflect the new features mentioned in the release.

Comment on lines +42 to +47
"singapore": {
"git_ref": "^release/singapore$",
"network": "dufour",
"version_major": "2",
"version_minor": "2"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Git ref pattern needs to be updated for staging support

The verification confirms that the git_ref pattern for singapore (^release/singapore$) deviates from the standard pattern used by all other releases (^(release|staging)/name$). Update it to ^(release|staging)/singapore$ to maintain consistency and enable staging deployments.

🔗 Analysis chain

Verify the git ref pattern for consistency.

The git_ref pattern ^release/singapore$ differs from other entries that use ^(release|staging)/name$. This might prevent staging deployments.

Run this script to check the pattern consistency:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check git ref patterns in releases.json
jq -r 'to_entries[] | select(.key != "development" and .key != "debug-staging" and .key != "integration-test") | [.key, .value.git_ref] | @tsv' releases.json | while IFS=$'\t' read -r release pattern; do
  if [[ $pattern != *"(release|staging)"* ]]; then
    echo "Warning: $release has non-standard git_ref pattern: $pattern"
  fi
done

Length of output: 1133

@ausias-armesto ausias-armesto merged commit 07b948d into master Jan 14, 2025
29 checks passed
@ausias-armesto ausias-armesto deleted the bot/close-2.2.0-rc.1 branch January 14, 2025 16:44
This was referenced Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binary:aarch64-darwin Build aarch64-darwin binary binary:aarch64-linux Build aarch64-linux binary binary:x86_64-darwin Build x86_64-darwin binary binary:x86_64-linux Build x86_64-linux binary component:hopli documentation anything regarding docs load_tests release toolchain Developer and product happiness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants