Skip to content

repo state tests prior to merge #392

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 20 commits into from
Apr 18, 2022
Merged

repo state tests prior to merge #392

merged 20 commits into from
Apr 18, 2022

Conversation

Byron
Copy link
Member

@Byron Byron commented Apr 18, 2022

No description provided.

Alex Zepeda and others added 20 commits April 12, 2022 18:00
1.) Install gnu-sed on the macOS instances

2.) Remember that which(1) sets a non-zero exit code if it doesn't find
each item you've specified.  In this case we're searching for 'gsed' and
'sed' in the hopes of finding at least one.

The ultimate goal is to prefer gsed if it exists as systems with a BSD
userland tend to install GNU tools with a 'g' prefix such that GNU sed
is accessible as 'gsed'.

GNU sed lets us easily (in a somewhat portable way) edit the second line
of a sequence so that we can change one 'pick' to 'edit'.  All while
pretending to be an interactive text editor to make git happy.
@Byron Byron merged commit 0010675 into main Apr 18, 2022
@Byron Byron deleted the inferiorhumanorgans-repo-status branch May 3, 2022 01:56
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request May 4, 2025
- For `openssl`, the `macos-latest` image already has it, and the
  installation is currently (and has for some time been) a no-op:

      Warning: openssl@3 3.5.0 is already installed and up-to-date.
      To reinstall 3.5.0, run:
        brew reinstall openssl@3

  The workflow has attempted to install `openssl` explicitly via
  `brew` since a7db791 (GitoxideLabs#295). This was described as an effort to
  fix the build on macOS 11, and from context it looks like it may
  have been useful or even necessary at the time. `macos-latest` is
  currently macOS 15, however. More significantly, `openssl` on the
  macOS CI runners had been version 1.1, but it is version 3 since
  actions/runner-images#10851. The images
  seem to keep a current version. If that changes, then it might
  once again be a good idea to upgrade via `brew`, but might not.

- For `gnu-sed`, we are not using it. The executable was being set
  up on CI only as `gsed`:

      ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/manifests/4.9-3
      ==> Fetching gnu-sed
      ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/blobs/sha256:829d21105387351f6c7b07cd845d7e234c1a460ea5e50cc2f5dbcface45e378d
      ==> Pouring gnu-sed--4.9.arm64_sonoma.bottle.3.tar.gz
      ==> Caveats
      GNU "sed" has been installed as "gsed".
      If you need to use it as "sed", you can add a "gnubin" directory
      to your PATH from your bashrc like:

          PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
      ==> Summary
      🍺  /opt/homebrew/Cellar/gnu-sed/4.9: 13 files, 616.4KB

  But no references to `gsed` remain. Specifically, in GitoxideLabs#392, `gsed`
  was used in `make_rebase_i_repo.sh` as of ac3c8c7. But it was
  removed in fc61c0d, which was later in that same PR. There have
  been no uses of `gsed` in this project since then.
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request May 4, 2025
- For `openssl`, the `macos-latest` image already has it, and the
  installation is currently (and has for some time been) a no-op:

      Warning: openssl@3 3.5.0 is already installed and up-to-date.
      To reinstall 3.5.0, run:
        brew reinstall openssl@3

  The workflow has attempted to install `openssl` explicitly via
  `brew` since a7db791 (GitoxideLabs#295). This was described as an effort to
  fix the build on macOS 11, and from context it looks like it was
  useful, and likely necessaryn at the time. But `macos-latest` is
  currently macOS 14 or higher.

  More significantly, `openssl` on the macOS CI runners had been
  version 1.1, but it is version 3 since
  actions/runner-images#10851. The images
  seem to keep a current version. If that changes, then it might
  once again be a good idea to upgrade via `brew`, but might not.

- For `gnu-sed`, we are not using it. The executable was being set
  up on CI only as `gsed`:

      ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/manifests/4.9-3
      ==> Fetching gnu-sed
      ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/blobs/sha256:829d21105387351f6c7b07cd845d7e234c1a460ea5e50cc2f5dbcface45e378d
      ==> Pouring gnu-sed--4.9.arm64_sonoma.bottle.3.tar.gz
      ==> Caveats
      GNU "sed" has been installed as "gsed".
      If you need to use it as "sed", you can add a "gnubin" directory
      to your PATH from your bashrc like:

          PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
      ==> Summary
      🍺  /opt/homebrew/Cellar/gnu-sed/4.9: 13 files, 616.4KB

  But no references to `gsed` remain. Specifically, in GitoxideLabs#392, `gsed`
  was used in `make_rebase_i_repo.sh` as of ac3c8c7. But it was
  removed in fc61c0d, which was later in that same PR. There have
  been no uses of `gsed` in this project since then.
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