Skip to content

Conversation

@mur-me
Copy link
Collaborator

@mur-me mur-me commented Mar 11, 2025

Issue

Both latest goimports and gencodec dependencies wants to have golang.org/x/tools@v0.31.0 library, which supports only golang >= 1.23, but we are running 1.22.5.

Solution is consisted of 2 parts:

  • pin goimports version to the 0.30.0 - previous latest and supports 1.22.5, thanks @Frozen for the fix
  • start to use gencodec@v0.1.0 :
    • no more vendors folder - previous reason to fork original repo
    • v0.1.0 release supports go 1.22.5

Additionally:

  • travis ci time to time creates symlink from $GOPATH/src/github.com/harmony-one/ to the /home/travis/gopath/src/github.com/harmony-one/harmony and it is crashing all our relative paths -solution is to remove if it exists

Test

Unit Test Coverage

Before:

<!-- copy/paste 'go test -cover' result in the directory you made change -->

After:

<!-- copy/paste 'go test -cover' result in the directory you made change -->

Test/Run Logs

Operational Checklist

  1. Does this PR introduce backward-incompatible changes to the on-disk data structure and/or the over-the-wire protocol?. (If no, skip to question 8.)

    YES|NO

  2. Describe the migration plan.. For each flag epoch, describe what changes take place at the flag epoch, the anticipated interactions between upgraded/non-upgraded nodes, and any special operational considerations for the migration.

  3. Describe how the plan was tested.

  4. How much minimum baking period after the last flag epoch should we allow on Pangaea before promotion onto mainnet?

  5. What are the planned flag epoch numbers and their ETAs on Pangaea?

  6. What are the planned flag epoch numbers and their ETAs on mainnet?

    Note that this must be enough to cover baking period on Pangaea.

  7. What should node operators know about this planned change?

  8. Does this PR introduce backward-incompatible changes NOT related to on-disk data structure and/or over-the-wire protocol? (If no, continue to question 11.)

    YES|NO

  9. Does the existing node.sh continue to work with this change?

  10. What should node operators know about this change?

  11. Does this PR introduce significant changes to the operational requirements of the node software, such as >20% increase in CPU, memory, and/or disk usage?

TODO

@mur-me mur-me force-pushed the fix_pin_go_import_and_gencodec branch from 117d5b3 to 27d43c9 Compare March 11, 2025 12:12
@GheisMohammadi
Copy link
Collaborator

Great 👍

@mur-me mur-me force-pushed the fix_pin_go_import_and_gencodec branch 4 times, most recently from 0fb8be4 to bead4b2 Compare March 11, 2025 14:17
@mur-me mur-me force-pushed the fix_pin_go_import_and_gencodec branch from bead4b2 to 8ad4ed9 Compare March 11, 2025 14:26
@mur-me mur-me marked this pull request as ready for review March 11, 2025 15:34
@sophoah sophoah merged commit 3255b6b into dev Mar 12, 2025
4 checks passed
@sophoah sophoah deleted the fix_pin_go_import_and_gencodec branch March 12, 2025 03:52
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.

5 participants