Skip to content

Conversation

@jpartlow
Copy link
Contributor

@jpartlow jpartlow commented May 30, 2025

Pull Request (PR) description

The --fail-with-body parameter was introduced into curl in in 7.76.0 - March 31 2021 (https://curl.se/changes.html). Older vms we are still testing on may have curls predating this version. For example, the rocky8/alma8 vm images have curl 7.61.1 - September 5 2018.

Switching the --fail provides basically the same semantics, but without capturing the full response body in the file. Not trying to scrape the respone, atm, though, so this should be fine.

  • adds a workflow to test with nested_vms action to validate
  • adds a check task to make validating that puppet is installed uniform
  • cleans up some of the input parameter handling in the shell scripts

This Pull Request (PR) fixes the following issues

Fixes #20

@jpartlow
Copy link
Contributor Author

jpartlow commented May 30, 2025

Verifying the new workflow catches the bug, then I'll rebase with the patch.
Caught it, retrying with patch.

@jpartlow jpartlow force-pushed the gh-20-curl-versions-predate-fail-with-body branch from 631ee09 to 501930f Compare May 30, 2025 18:11
The --fail-with-body parameter was introduced into curl in
in 7.76.0 - March 31 2021 (https://curl.se/changes.html).
Older vms we are still testing on may have curls predating this version.
For example, the rocky8/alma8 vm images have curl 7.61.1 - September 5
2018.

Switching the --fail provides basically the same semantics, but without
capturing the full response body in the file. Not trying to scrape the
respone, atm, though, so this should be fine.
@jpartlow jpartlow force-pushed the gh-20-curl-versions-predate-fail-with-body branch 4 times, most recently from b40c01b to 43e75e2 Compare May 31, 2025 21:28
jpartlow added 5 commits May 31, 2025 15:31
Provides a consistent way of verifying the installed version for
acceptance testing.

Version comparison is handled by Ruby's Gem::Version class.
The agent's ruby is used to run the task.
If Bolt knows the target has the puppet-agent, then the check.rb is run.
If Bolt doesn't know whether puppet-agent is in place, the shell script
is run, which will check for the puppet binary and either fail or kick
off the check.rb if found.
...in place of some of the adhoc shell scripts.
* Removes shellcheck disable SC2154 where defaults were provided for
  PT_* variables, thereby ensuring existence of a value.
* Switches to declare PT__installdir to pass shellcheck for that case.
* Removes erroneous single quotes from defaults, since they are taken
  literally in the default.
These were included to help when calling tasks/install_linux.sh
directly, but the script itself has these defaults, and they should not
need to be passed in now.
@jpartlow jpartlow force-pushed the gh-20-curl-versions-predate-fail-with-body branch from 43e75e2 to 11e6d7c Compare May 31, 2025 22:32
@jpartlow jpartlow merged commit ab6e9cf into main Jun 2, 2025
48 checks passed
@jpartlow jpartlow deleted the gh-20-curl-versions-predate-fail-with-body branch June 2, 2025 17:44
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.

Calling curl --fail-with-body fails on almalinux 8 vm, presumably with a curl pre-dating that parameter

1 participant