-
Notifications
You must be signed in to change notification settings - Fork 249
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
refactor_: remove generated files from source control #5878
Conversation
Jenkins BuildsClick to see older builds (226)
|
3f4a08a
to
b4a27ad
Compare
Something's wrong when running [nix-shell:~/Repositories/Status/status-go]$ GO_GENERATE_FAST_DISABLE=1 go-generate-fast services/wallet/token/token.go
2024/09/30 11:33:46 Loading input failed: token.go:92:2: could not parse package github.com/status-im/status-go/services/wallet/token/balancefetcher: cannot find package "github.com/status-im/status-go/services/wallet/token/balancefetcher" in any of:
($GOROOT not set)
/Users/igorsirotin/go/src/github.com/status-im/status-go/services/wallet/token/balancefetcher (from $GOPATH)
running "mockgen -source=token.go -destination=mock/token/tokenmanager.go": exit status 1
services/wallet/token/token.go: mockgen -source=token.go -destination=mock/token/tokenmanager.go (error, disabled, 354ms) Same command in zsh: > GO_GENERATE_FAST_DISABLE=1 go-generate-fast services/wallet/token/token.go
services/wallet/token/token.go: mockgen -source=token.go -destination=mock/token/tokenmanager.go (generated, disabled, 2252ms) only for some of the files, not all of them. 🤔 UPD:
Line 5 in 3f7ebdb
|
16c9f5e
to
3a980dd
Compare
3a980dd
to
e432591
Compare
4cf8c9e
to
064176f
Compare
064176f
to
9c5ac9b
Compare
2a43982
to
8865560
Compare
❌ 2 Tests Failed:
View the top 2 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
c7792b0
to
1e232c1
Compare
✔️ status-go/prs/android/PR-5878#40 🔹 ~3 min 6 sec 🔹 c7792b0 🔹 📦 android package |
1e232c1
to
5becff3
Compare
c04765a
to
3f9bfb3
Compare
3f9bfb3
to
bde82a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work.
✔️ status-go/prs/tests/PR-5878#46 🔹 ~32 min 🔹 3f9bfb3 🔹 📦 tests package |
@igor-sirotin : we should probably also have |
@siddarthkay hmmm, why? 🤔 |
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Requires things like: go-bindata mockgen protobuf Fixes: #16477 For more details see: status-im/status-go#5878 Signed-off-by: Jakub Sokołowski <[email protected]>
Closes #4191
Requires:
Commits
Note
REVIEW BY COMMITS - I opened separate PRs for what was possible.
generate
targetDescription
All generated files are removed from the repo.
The only exception is
abigen
-generated contracts. Makes no sense to regenerate them every time. When needed, can be done withmake generate-contracts
.make generate
runs generation for all subdirs (except./contracts
).No need to specify the list of directories.
All required Makefile targets now have
generate
as a dependant target.make generate
uses go-generate-fast.Full generation takes ~20 seconds. This one has caching and takes <1 second when nothing needs to be re-generated.
On CI we ignore cache and always re-generate.