-
Notifications
You must be signed in to change notification settings - Fork 127
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
pre-push
githook for fmt only + remove act
#1039
pre-push
githook for fmt only + remove act
#1039
Conversation
Bencher
🚨 1 ALERT: Threshold Boundary Limit exceeded!
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
Bencher
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
Bencher
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
Bencher
🚨 4 ALERTS: Threshold Boundary Limits exceeded!
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
benches/Cargo.lock
Outdated
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.
did you intentionally commit these Cargo.lock
files or was it a mistake?
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.
They were generated/updated when I ran the clippy and sv2 header check script. I was not sure if I should commit them or not. Should I remove?
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.
yeah I would remove them from this PR
this is probably something more relevant for #1044
.githooks/pre-push
Outdated
act --job clippy-check --reuse -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:rust-latest | ||
act --job ci --reuse -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:rust-latest | ||
# Run clippy, test, and rustfmt on all workspaces | ||
sh ./scripts/clippy-on-all-workspaces.sh |
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.
As suggested here, I would rename the script into clippy-fmt-and-test.sh
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.
now that we removed cargo version from the toml files we should enforce cargo 1.75 in the scripts
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.
Added here, lmk if that is what you had in mind.
89db3b4
to
cc4668b
Compare
@plebhash, @GitGab19, and @Fi3: This is ready for review again. Please note that when the
git diff benches/Cargo.lock
diff --git a/benches/Cargo.lock b/benches/Cargo.lock
index 946b7c02..39647483 100644
--- a/benches/Cargo.lock
+++ b/benches/Cargo.lock
@@ -373,7 +373,7 @@ dependencies = [
[[package]]
name = "buffer_sv2"
-version = "1.0.0"
+version = "1.1.0"
dependencies = [
"aes-gcm",
]
@@ -497,7 +497,7 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
[[package]]
name = "codec_sv2"
-version = "1.1.0"
+version = "1.2.0"
dependencies = [
"binary_sv2",
"buffer_sv2",
@@ -1564,7 +1564,7 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
[[package]]
name = "sv1_api"
-version = "1.0.0"
+version = "1.0.1"
dependencies = [
"binary_sv2",
"bitcoin_hashes 0.3.2",
git diff roles/Cargo.lock
diff --git a/roles/Cargo.lock b/roles/Cargo.lock
index bf54dcc0..b88776bd 100644
--- a/roles/Cargo.lock
+++ b/roles/Cargo.lock
@@ -1927,7 +1927,7 @@ dependencies = [
[[package]]
name = "serde_sv2"
-version = "1.0.0"
+version = "1.0.1"
dependencies = [
"buffer_sv2",
"serde",
@@ -2053,7 +2053,7 @@ dependencies = [
[[package]]
name = "sv1_api"
-version = "1.0.0"
+version = "1.0.1"
dependencies = [
"binary_sv2",
"bitcoin_hashes 0.3.2", I did not commit these changes to this repo (had them in before but remove that commit). @plebhash, would this get fixed with the #985 semver PR? Can wait until that is merged to merge this one if so. Also, unrelated to this PR, but one thing I noticed was that a couple of the tests do not complete but instead print that they have been running for over 60 seconds. This greatly slows down the runtime of the Does anyone know why this is happening? |
with #1102 in mind, it might be a good idea to also run this on our githook:
|
Does this run automatically on a pre-push or do I need to trigger it automatically? |
You need to do this to enable the pre-push: Lines 8 to 11 in 0f0ee1e
After you do this, your local git repo will be configured to always run this script when you do If you don't do the command above, the pre-push will not be used. In other words, this is opt-in. Also see #1140 where some info about this are being elaborated. |
The error: the lock file /Users/rachelrybarczyk/Development/StratumV2/Dev/stratum/roles/Cargo.lock needs to be updated but --locked was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.
+ echo 'Error: Cargo.lock file in roles crate is out of date. Please run '\''cargo update'\'' in the roles crate.'
Error: Cargo.lock file in roles crate is out of date. Please run 'cargo update' in the roles crate.
+ exit 1 This |
Addresses #1038.