Skip to content

Refactor crate loops in CI wasm jobs #1990

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

Merged
merged 1 commit into from
May 4, 2025

Conversation

EliahKagan
Copy link
Member

This is a minor refactoring that should not affect behavior. There are two changes:

  • Use a bash array for the long list of crates without feature toggles, to make clear what crates are covered in this loop, and so any changes to the list produce clearer diffs, and to improve the general readability of the workflow.

  • In each loop, rename the variable from name to crate, to make the meaning clearer. The other significant kind of loop in this job is over feature, so this makes the contrast clear. (Other loops over array items in other jobs in the workflow, where the general variable name name could be used, already instead use the more specific variable names package and cmd.)

This may slightly mitigate #1988 in that it makes it easier for the big list to be manually inspected, but it does not fix that issue.

I'm doing this before opening a PR related to #1989 since otherwise there is likely to be a conflict between them. (Such a PR may modify the bodies of the loops--to verify that they work with -p as intended--which for each loop would modify a line adjacent to the line modified here.)

- Use a `bash` array for the long list of crates without feature
  toggles, to make clear what crates are covered in this loop, and
  so any changes to the list produce clearer diffs, and to improve
  the general readability of the workflow.

- In each loop, rename the variable from `name` to `crate`, to make
  the meaning clearer. The other significant kind of loop in this
  job is over `feature`, so this makes the contrast clear. (Other
  loops over array items in other jobs in the workflow, where the
  general variable name `name` could be used, already instead use
  the more specific variable names `package` and `cmd`.)

This may slightly mitigate GitoxideLabs#1988 in that it makes it easier for the
big list to be manually inspected, but it does not fix that issue.
@EliahKagan EliahKagan enabled auto-merge May 4, 2025 23:24
@EliahKagan EliahKagan merged commit 1b68911 into GitoxideLabs:main May 4, 2025
22 checks passed
@EliahKagan EliahKagan deleted the run-ci/wasm-crates branch May 4, 2025 23:45
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