-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Rewrite etcd scripts in strict mode #15514
Labels
Comments
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 20, 2023
According to Github Actions doc [1], linux platform will use `bash -e {0}` mode to run script. But we also need `pipefail` and `nounset` in CI. This patch is aimed to add strict mode setting before any run. And remove the `| tee` and egrep commands since we don't need this workaround to show error. REF: 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell ISSUE: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 20, 2023
According to Github Actions doc [1], linux platform will use `bash -e {0}` mode to run script. But we also need `pipefail` and `nounset` in CI. This patch is aimed to add strict mode setting before any run. And remove the `| tee` and egrep commands since we don't need this workaround to show error. REF: 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell ISSUE: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 20, 2023
According to Github Actions doc [1], linux platform will use `bash -e {0}` mode to run script. But we also need `pipefail` and `nounset` in CI. This patch is aimed to add strict mode setting before any run. And remove the `| tee` and egrep commands since we don't need this workaround to show error. REF: 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell ISSUE: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 20, 2023
According to Github Actions doc [1], linux platform will use `bash -e {0}` mode to run script. But we also need `pipefail` and `nounset` in CI. This patch is aimed to add strict mode setting before any run. And remove the `| tee` and egrep commands since we don't need this workaround to show error. REF: 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell ISSUE: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 20, 2023
According to Github Actions doc [1], linux platform will use `bash -e {0}` mode to run script. But we also need `pipefail` and `nounset` in CI. This patch is aimed to add strict mode setting before any run. And remove the `| tee` and egrep commands since we don't need this workaround to show error. REF: 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell ISSUE: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 21, 2023
According to Github Actions doc [1], linux platform will use `bash -e {0}` mode to run script. But we also need `pipefail` and `nounset` in CI. This patch is aimed to add strict mode setting before any run. And remove the `| tee` and egrep commands since we don't need this workaround to show error. REF: 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell ISSUE: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 21, 2023
According to Github Actions doc [1], linux platform will use `bash -e {0}` mode to run script. But we also need `pipefail` and `nounset` in CI. This patch is aimed to add strict mode setting before any run. And remove the `| tee` and egrep commands since we don't need this workaround to show error. REF: 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell ISSUE: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 22, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 22, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Mar 22, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
@fuweid Is there anything left or can I close the issue? |
@serathius I am working on |
@fuweid Those are legacy scripts that are no longer used. We should consider removing them. |
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 9, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 9, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 9, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 9, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 11, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 11, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 11, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 11, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 13, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 13, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 13, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
fuweid
added a commit
to fuweid/etcd
that referenced
this issue
Apr 13, 2023
REF: etcd-io#15514 Signed-off-by: Wei Fu <fuweid89@gmail.com>
ahrtr
added a commit
that referenced
this issue
Apr 13, 2023
chore: cleanup #15514 (Rewrite etcd scripts in strict mode)
The cleanup is done. I am closing it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What would you like to be added?
Follow up from #15504 (comment)
Strict mode as defined in http://redsymbol.net/articles/unofficial-bash-strict-mode/
List of scripts:
Plus list of run commands in github flows (also use bash in permissive mode):
Why is this needed?
Should make bash script more reliable and debuggable and let us remove workarounds like suffixing test runs with
2>&1 | tee test.log ! egrep "(--- FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log
which is horrible.The text was updated successfully, but these errors were encountered: