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

feat(pkg): remove nodetime binaries #3670

Merged
merged 7 commits into from
Oct 10, 2023
Merged

feat(pkg): remove nodetime binaries #3670

merged 7 commits into from
Oct 10, 2023

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Sep 27, 2023

close #3121

Description

  • remote nodetime binaries
  • import ignite-files repo pkg
  • remote gen binaries scripts and pipeline
  • run gofmt

- import ignite-files repo pkg
- remote gen binaries scripts and pipeline
- run gofmt
@Pantani Pantani self-assigned this Sep 27, 2023
@github-actions github-actions bot added component:ci CI/CD workflow and automated jobs. component:configs type:services Service-related issues. component:packages labels Sep 27, 2023
@Pantani Pantani changed the title feat: remove nodetime binaries feat(pkg): remove nodetime binaries Sep 27, 2023
@jeronimoalbi
Copy link
Member

jeronimoalbi commented Sep 29, 2023

@Pantani I think some tests are failing because go.mod has now go 1.21, so you have to update also the Go version that is installed in the GitHub workflows.

Other than that it looks great! Finally we removed the binaries 💪

julienrbrt
julienrbrt previously approved these changes Oct 3, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK, pending broken tests

changelog.md Outdated Show resolved Hide resolved
@Pantani Pantani requested a review from julienrbrt October 4, 2023 11:35
@julienrbrt
Copy link
Member

TestPluginLoad is still failing after the changes.

@github-actions github-actions bot removed the type:services Service-related issues. label Oct 9, 2023
@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #3670 (0615c18) into main (88ffe62) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3670   +/-   ##
=======================================
  Coverage   24.98%   24.98%           
=======================================
  Files         288      287    -1     
  Lines       23498    23496    -2     
=======================================
  Hits         5871     5871           
+ Misses      17099    17097    -2     
  Partials      528      528           
Files Coverage Δ
ignite/pkg/nodetime/nodetime.go 0.00% <0.00%> (ø)

@jeronimoalbi jeronimoalbi merged commit 6617cbe into main Oct 10, 2023
@jeronimoalbi jeronimoalbi deleted the feat/remove-nodetime branch October 10, 2023 07:20
Pantani added a commit that referenced this pull request Oct 12, 2023
* chore: remove redundant variable

* chore(pkg/cosmosbuf): improve snippet redability

* chore: remove redundant default value

* chore: code formatting

* feat(pkg): remove nodetime binaries (#3670)

* - remote nodetime binaries
- import ignite-files repo pkg
- remote gen binaries scripts and pipeline
- run gofmt

* remove tollchain from go.mod

* add changelog

* Update changelog

* ci: update Go version to `1.21` in GitHub workflows (#3687)

---------

Co-authored-by: Pantani <Pantani>
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* fix: change Go version in nightly release config to `1.21.2` (#3688)

* fix: change Go version in nightly release config to `1.21.2`

The release action requires a version that includes the patch version to
be able to download the right tarball with the Go binary.

See /~https://github.com/wangyoucao577/go-release-action/blob/2ac3035fa4c4feed6a8272ce278b0577b93cf8e5/setup-go.sh#L24

* chore: change go releaser to use the lates Go version

Latest is the default but it's setted here to be explicit about that fact.
See /~https://github.com/wangyoucao577/go-release-action#parameters

* fix: remove explicit "latest" for Go version release nightly (#3689)

Lates version is used by default but it shouldn't be specified
explicitly because the value "latest" is not supported.

* chore: merge `main`

* test: fix broken integration test

* fix: change scaffolder to skip protoc when no module is scaffolded

There are no proto file when an app is scaffolded without module which
makes buf export fail because buf workspace references a folder without
proto files.

* fix(pkg/cosmosbuf): add check for proto files before running Buf

Changes previous commit because some files like the OpenAPI file should
be generated even when there are no proto files. We should also allow
generating code for standard dependencies like Comos SDK when the app
doesn't have proto files.

---------

Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Pantani added a commit that referenced this pull request Oct 24, 2023
* feat: Re-introduce module discovery

* feat: Look for indirect proto deps in go.mod

* feat: Introduce indirect proto dependency discovery

* feat: Add buf export command

* feat: User buf-based openapi generation

* fix: Revert to previous sta version & peg TS version

* feat(wip): Update dependency resolution algorithm

* feat: Clean up include resolution

* chore: Add changelog entry

* chore: Fix linting issues & typos

* fix: cosmos-sdk buf issue

* feat(pkg/protoc): change package to use protoc binary from files repo (#3657)

* feat(pkg/protoc): change package to use protoc binary from files repo

* chore(pkg/protoc): remove embedded protoc binary

* fix: correct buf.gen.sta.yml file

* fix: address review

* fix: Remove logging

* fix: ResolveDependencies call

* fix: correct lint issues and merge `main` (#3690)

* chore: remove redundant variable

* chore(pkg/cosmosbuf): improve snippet redability

* chore: remove redundant default value

* chore: code formatting

* feat(pkg): remove nodetime binaries (#3670)

* - remote nodetime binaries
- import ignite-files repo pkg
- remote gen binaries scripts and pipeline
- run gofmt

* remove tollchain from go.mod

* add changelog

* Update changelog

* ci: update Go version to `1.21` in GitHub workflows (#3687)

---------

Co-authored-by: Pantani <Pantani>
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* fix: change Go version in nightly release config to `1.21.2` (#3688)

* fix: change Go version in nightly release config to `1.21.2`

The release action requires a version that includes the patch version to
be able to download the right tarball with the Go binary.

See /~https://github.com/wangyoucao577/go-release-action/blob/2ac3035fa4c4feed6a8272ce278b0577b93cf8e5/setup-go.sh#L24

* chore: change go releaser to use the lates Go version

Latest is the default but it's setted here to be explicit about that fact.
See /~https://github.com/wangyoucao577/go-release-action#parameters

* fix: remove explicit "latest" for Go version release nightly (#3689)

Lates version is used by default but it shouldn't be specified
explicitly because the value "latest" is not supported.

* chore: merge `main`

* test: fix broken integration test

* fix: change scaffolder to skip protoc when no module is scaffolded

There are no proto file when an app is scaffolded without module which
makes buf export fail because buf workspace references a folder without
proto files.

* fix(pkg/cosmosbuf): add check for proto files before running Buf

Changes previous commit because some files like the OpenAPI file should
be generated even when there are no proto files. We should also allow
generating code for standard dependencies like Comos SDK when the app
doesn't have proto files.

---------

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* feat: Bump nodetime version

* refactor: cleanup tmp folders & change third party includes (#3696)

* fix: implement third party includes using previous semantics

Use `thirdModuleIncludes` instead of defining a new type to store
modules and includes to be consistent with `appIncludes` and to avoid
changing existing code to work with a new type.

* feat: add tmp dir cleanup support to cosmos generator

* chore: restore Go version to `1.21` and remove toolchain

Currently CI is giving an error because is not properly configured to
support the new Go 1.21 features for the mod file and we don't have a
consensus yet on how to configure the toolchain and Go versions.

* chore: go mod tidy

* ci: change integration tests to use Go version from mod file

This is required to avoid downloading a newer Go toolchain which will
fail because GOSUMDB is disabled to fix the timeout issues because of
the repository size.

* ci: disable GOTOOLCHAIN when running integration tests

This is required because toolchain won't work when GOSUMDB is disabled.

* ci: change integration tests to use the stable go version

The stable Go version should be used to avoid keeping updating the
workflow config when a new patch version is released. This is to make
sure that Go doesn't try to download a new toolchain version.

* fix: correct CI linting issues

* ci: remove redundant GH workflow cache step

Go setup action caches since `v4`

* fix: disable go setup GH action cache

Action for `golangci-lint` already have caching functionality so Go setup
must be disabled to avoid caching issues.

* chore: add thitd party includes only when available

* fix: correct directory remove

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* fix: Address code review comments

* chore: Address review comment

* chore: remove commented function

* Update ignite/pkg/cosmosbuf/buf.go

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* chore: fix function name

* Update ignite/pkg/cosmosgen/generate_openapi.go

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* chore: address review

* chore: linting

* chore: test --experimental_allow_proto3_optional flag

---------

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Co-authored-by: jeronimoalbi <jeronimo.albi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move all embedded binaries to a separate repo
3 participants