Skip to content

Conversation

igor-sirotin
Copy link
Collaborator

@igor-sirotin igor-sirotin commented Sep 16, 2025

Description

Sine we don't stage the generated files, it is essential to use cache, because normal generation takes ~25s.

I have implemented support for go tool to go-generate-fast. Using our fork for now, but I have a PR for the upstream:

@status-im-auto
Copy link
Member

status-im-auto commented Sep 16, 2025

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5826843 #1 2025-09-16 17:09:59 ~3 min linux/status-go 📦zip
✔️ 5826843 #1 2025-09-16 17:10:11 ~3 min macos/status-go 📦zip
✔️ 5826843 #1 2025-09-16 17:14:08 ~7 min windows/status-go 📦zip
✔️ 5826843 #1 2025-09-16 17:16:48 ~10 min linux/nwaku 📦zip
✖️ 5826843 #1 2025-09-16 17:17:05 ~10 min tests-rpc 📄log
✔️ 5826843 #1 2025-09-16 17:32:47 ~26 min tests 📄log
✔️ 5826843 #2 2025-09-16 18:16:46 ~10 min tests-rpc 📄log
✔️ fa86b5e #2 2025-09-19 17:19:50 ~3 min macos/status-go 📦zip
✔️ fa86b5e #2 2025-09-19 17:19:53 ~3 min linux/status-go 📦zip
✔️ fa86b5e #2 2025-09-19 17:20:37 ~4 min windows/status-go 📦zip
✔️ fa86b5e #3 2025-09-19 17:27:03 ~10 min tests-rpc 📄log
✔️ fa86b5e #2 2025-09-19 17:27:21 ~11 min linux/nwaku 📦zip
✔️ fa86b5e #2 2025-09-19 17:42:08 ~25 min tests 📄log

Copy link

codecov bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.95%. Comparing base (cd53927) to head (fa86b5e).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6933      +/-   ##
===========================================
+ Coverage    58.88%   58.95%   +0.06%     
===========================================
  Files          822      822              
  Lines       121999   121999              
===========================================
+ Hits         71838    71922      +84     
+ Misses       42727    42659      -68     
+ Partials      7434     7418      -16     
Flag Coverage Δ
functional 31.38% <ø> (+0.10%) ⬆️
unit 54.99% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 39 files with indirect coverage changes

@igor-sirotin igor-sirotin force-pushed the ci/go-tool-go-generate-fast branch from 5826843 to fa86b5e Compare September 19, 2025 17:15
@igor-sirotin igor-sirotin marked this pull request as ready for review September 19, 2025 17:16
@igor-sirotin igor-sirotin requested a review from a team as a code owner September 19, 2025 17:16
@jakubgs
Copy link
Member

jakubgs commented Sep 23, 2025

The hell is happening in this PR?

image

This is un-reviewable.

Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

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

That is a lot of stuff just for our tooling:

~/work/status-go ci/go-tool-go-generate-fast
 > g show --stat | awk -F'[ /]' '/^ vendor/{print $2 "/" $3 "/" $4}' | sort -u | grep -v modules.txt | xargs du -hsc | tail -n1
18M	total

I really hate the use of vendor folder, but if that's what the devs like...

image

@igor-sirotin
Copy link
Collaborator Author

igor-sirotin commented Sep 23, 2025

@jakubgs I have the vendor changes in a separate commit, you can review the actual changes in d31bbe7

That is a lot of stuff just for our tooling:

I agree it's a lot. But this tool will save devs 25sec on every build, which I believe is very important.

I really hate the use of vendor folder, but if that's what the devs like...

I also hate it. But that is the only way to secure dependencies in Go, because they don't have a proper package manager.
If tomorrow some of our dependencies would be removed or closed from public, we would lose it completely. While vendoring prevents this from happening 🤷

We can re-consider this, if we believe that we're safe enough from this to happen. I'm truly open to this discussion, it's gonna be easy to convince me 😄

@jakubgs
Copy link
Member

jakubgs commented Sep 26, 2025

I'd love to approve it but my browser freezes when i try to load the diff...

Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

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

Finally, managed to approve.

@igor-sirotin
Copy link
Collaborator Author

Gonna merge after this one, not to pollute the repo:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants