Skip to content

Conversation

EliahKagan
Copy link
Owner

@EliahKagan EliahKagan commented Aug 2, 2025

This fork-internal PR does something in two steps that should be done in one, because there is a small possibility of interest in the effect of the first step. I will squash and merge it into its target branch, which is itself a feature branch, and then I'll open a PR on the upstream repository from that branch.


These steps benefit from showing the cargo command that was run before the resulting build output. Most run multiple cargo build commands, sometimes in a loop, such that the output can only be properly understood if the commands are shown. set +x is the default (in general, as well as in GitHub Actions unless the value of shell is modified with -x or -o xtrace). It looks like set -x was already intended here. Work in GitoxideLabs#2093 confirms a practical benefit of -x for understanding these logs.

set +x was part of the original code of these CI steps when they were introduced in 0d4b804 (GitoxideLabs#735). Its use was preserved and expanded in several changes. In 44ff412 (GitoxideLabs#1668), set +x was preserved and also positioned where it would make sense for set -x to be. Thus, it appears this started as a small typo and gradually expanded through misreadings, including my own. This fixes that.

(See #74 for verification that set +x had no effect.)

It seems like it was intended to be `set -x`, but let's first see
if it is doing something important by checking for any change when
removing it.
`set +x` is the default (in general, as well as in GitHub Actions
unless the value of `shell` is modified with `-x` or `-o xtrace`).
What is needed to distinguish which command from which iterations
of the loops in the WASM jobs' steps' output is `set -x`.
@EliahKagan

This comment was marked as resolved.

@EliahKagan EliahKagan marked this pull request as ready for review August 2, 2025 21:37
@EliahKagan EliahKagan merged commit 1d343ab into wasm-ci-xtrace Aug 2, 2025
21 checks passed
@EliahKagan EliahKagan deleted the run-ci/wasm-ci-xtrace-next branch August 2, 2025 21:37
EliahKagan added a commit that referenced this pull request Aug 2, 2025
These steps benefit from showing the `cargo` command that was run
before the resulting build output. Most run multiple `cargo build`
commands, sometimes in a loop, such that the output can only be
properly understood if the commands are shown. `set +x` is the
default (in general, as well as in GitHub Actions unless the value
of `shell` is modified with `-x` or `-o xtrace`). It looks like
`set -x` was already intended here. Work in GitoxideLabs#2093 confirms a
practical benefit of `-x` for understanding these logs.

`set +x` was part of the original code of these CI steps when they
were introduced in 0d4b804 (GitoxideLabs#735). Its use was preserved and
expanded in several changes. In 44ff412 (GitoxideLabs#1668), `set +x` was
preserved and also positioned where it would make sense for `set
-x` to be. Thus, it appears this started as a small typo and
gradually expanded through misreadings, including my own. This
fixes that.

(See #74 for verification that `set +x` had no effect.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant