Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tool to pin locally replaced modules to latest trunk commit #15290

Merged
merged 55 commits into from
Dec 10, 2024

Conversation

chainchad
Copy link
Collaborator

@chainchad chainchad commented Nov 18, 2024

Run locally via: make gomodslocalupdate

Copy link
Contributor

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@chainchad
Copy link
Collaborator Author

chainchad commented Nov 19, 2024

TODO

  • Add CI checks (lint, tests, build, ...)

GNUmakefile Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Nov 23, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@chainchad chainchad requested review from erikburt and jmank88 December 6, 2024 22:09
erikburt
erikburt previously approved these changes Dec 6, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this separate workflow necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm, it's pretty sparse right now. Would love to remove it. Would you suggest just throwing this as a step in ci-core.yml?

Copy link
Contributor

Choose a reason for hiding this comment

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

Well the make command already installs so what effect is this build meant to have?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The goal would be to ensure that the build doesn't break but maybe unnecessary or it gets built in another way that I'm not aware of?

Copy link
Contributor

Choose a reason for hiding this comment

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

It should already be covered by the normal CI as part of the root module. I.e. there should be a line for this package in the ci core test output

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense, removed in ccf2842.

jmank88
jmank88 previously approved these changes Dec 10, 2024
@chainchad chainchad requested a review from jmank88 December 10, 2024 22:08
@chainchad chainchad added this pull request to the merge queue Dec 10, 2024
Merged via the queue into develop with commit 5bdf5c2 Dec 10, 2024
169 of 172 checks passed
@chainchad chainchad deleted the re-3199/updater-root-module-go.mod-ref branch December 10, 2024 22:52
george-dorin pushed a commit that referenced this pull request Jan 13, 2025
…15290)

* Add separate require line for root module.

Separating it to avoid potential merge conflicts when surrounding lines change as we expect CI to update its psuedo version.

* Create tool to update certain module deps to pin to latest trunk commit

* Create new makefile target to use new tool to update module deps to pin

* Add support for additional local module replacements

* Add support for automatically updating locally replaced modules

* Update make target to auto update locally replaced modules

* Run go fmt

* Add ci workflow

* Add test for config sourcing

* Add build step to CI

* Make it gomods compatible and not a separate module

* Remove mocked sys op

* Only build during dedicated CI workflow.

Tests and linting should now be ran from the ci-core workflow.

* Refactor

* Remove unused function

* Use psuedo version from go lib

* Upate pseudo-versions for local replaces to latest time/sha

* Cleanup

* Update bin path

* Fix README

* Allow custom org/repo name and apply better validation to git cmds

* Address linting

* Address linting 2

* Ignore gosec lint for execs

* Update Make target name

* Avoid merge queue for build

* Rename tool

* Point to new binary

* Remove unused lint directive

* Ran goimports -local

* Cleanup and refactor

* Format

* Update local requires

* Add more refactoring

* Clarify readme

* Update comment

* Update README about usage and gomods

* Add gomods as a dep for new target

Co-authored-by: Jordan Krage <jmank88@gmail.com>

* Move pre-compiled regular expressions into vars

* Fix formatting

* Remove remnant from refactor

* Move validation of git input into config

* Run `make gomodslocalupdate`

* Appease linter

* Remove unnecessary inline comments

* Use a better name for git exec

* Remove unnecessary build workflow

---------

Co-authored-by: Jordan Krage <jmank88@gmail.com>
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