-
Notifications
You must be signed in to change notification settings - Fork 277
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
[fix] #4311: fix pre-commit hook #4313
[fix] #4311: fix pre-commit hook #4313
Conversation
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.
Why Iroha 1 CI was triggered...?
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.
I've wanted to check this hook as it's been a while since my last contribution.
I think someone's working example of .git/hooks/pre-commit
would help
I don't use pre-commit hook but here is Some commands from my .vscode/tasks.json {
"label": "regenerate genesis",
"type": "shell",
"problemMatcher": [],
"presentation": {
"clear": true
},
"command": "cargo",
"args": [
"run",
"--release",
"--bin",
"kagami",
"--",
"genesis",
"--executor-path-in-genesis=./executor.wasm",
">",
"${workspaceFolder}/configs/swarm/genesis.json",
],
},
{
"label": "regenerate executor",
"type": "shell",
"problemMatcher": [],
"presentation": {
"clear": true
},
"command": "cargo",
"args": [
"run",
"--release",
"--bin",
"iroha_wasm_builder_cli",
"--",
"build",
"${workspaceFolder}/default_executor",
"--optimize",
"--outfile",
"${workspaceFolder}/configs/swarm/executor.wasm",
],
},
{
"label": "regenerate schema",
"type": "shell",
"problemMatcher": [],
"presentation": {
"clear": true
},
"command": "cargo",
"args": [
"run",
"--release",
"--bin",
"kagami",
"--",
"schema",
">",
"${workspaceFolder}/docs/source/references/schema.json",
],
},
{
"label": "regenerate docker compose single",
"type": "shell",
"problemMatcher": [],
"presentation": {
"clear": true
},
"command": "cargo",
"args": [
"run",
"--release",
"--bin",
"iroha_swarm",
"--",
"-p",
"1",
"-s",
"Iroha",
"--force",
"--config-dir",
"./configs/swarm",
"--health-check",
"--build",
".",
"--outfile",
"configs/swarm/docker-compose.single.yml"
],
},
{
"label": "regenerate docker compose multiple",
"type": "shell",
"problemMatcher": [],
"presentation": {
"clear": true
},
"command": "cargo",
"args": [
"run",
"--release",
"--bin",
"iroha_swarm",
"--",
"-p",
"4",
"-s",
"Iroha",
"--force",
"--config-dir",
"./configs/swarm",
"--health-check",
"--build",
".",
"--outfile",
"configs/swarm/docker-compose.local.yml"
],
},
{
"label": "regenerate docker compose default",
"type": "shell",
"problemMatcher": [],
"presentation": {
"clear": true
},
"command": "cargo",
"args": [
"run",
"--release",
"--bin",
"iroha_swarm",
"--",
"-p",
"4",
"-s",
"Iroha",
"--force",
"--config-dir",
"./configs/swarm",
"--health-check",
"--image",
"hyperledger/iroha2:dev",
"--outfile",
"configs/swarm/docker-compose.yml"
],
},
{
"label": "regenerate all",
"type": "shell",
"problemMatcher": [],
"presentation": {
"clear": true
},
"dependsOn": [
"regenerate genesis",
"regenerate schema",
"regenerate executor",
"regenerate docker compose single",
"regenerate docker compose multiple",
"regenerate docker compose default",
]
}, |
Or we could just run locally as same consistency checks as CI does: |
@Asem-Abdelhady let's finish this PR |
Pp till now it is not changed so we can modify it if we decided to go with the change. Unless you want me to change it in this PR of course but I suggest this should be done in a separate PR. |
6a2cdf0
to
66edcba
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.
The purpose of the original issue has been reached, though, I'd make it one that ensures everything is up to date i.e. add updates to executor and docker compose files.
#4313 (comment) would help for it
…es not exist Signed-off-by: Asem-Abdelhady <[email protected]>
66edcba
to
30e49da
Compare
Description
the
pre-commit
hook still generates the genesis inpeer
even though it does not exist anymore after the big change in the configurationLinked issue
Closes #4311
Checklist
CONTRIBUTING.md