Skip to content
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

Update agent download from URL logic to handle redirects #173

Conversation

cthorn42
Copy link
Contributor

Recent internal changes have caused http URLs to be redirected to HTTPs
for nightlies.puppet.com. This breaks the agent download from URL, but
this PR adds in some redirect logic that will fix the issue.

@codecov
Copy link

codecov bot commented Feb 15, 2022

Codecov Report

Merging #173 (406224d) into master (21d055f) will decrease coverage by 0.35%.
The diff coverage is 0.00%.

❗ Current head 406224d differs from pull request most recent head cdc9608. Consider uploading reports for the commit cdc9608 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
- Coverage   78.07%   77.71%   -0.36%     
==========================================
  Files          15       15              
  Lines        1596     1602       +6     
==========================================
- Hits         1246     1245       -1     
- Misses        350      357       +7     
Impacted Files Coverage Δ
lib/beaker-puppet/install_utils/foss_utils.rb 70.24% <0.00%> (-0.70%) ⬇️
lib/beaker-puppet/install_utils/puppet5.rb 91.58% <0.00%> (-0.94%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21d055f...cdc9608. Read the comment docs.

@cthorn42 cthorn42 force-pushed the maint/master/fix_redirect_in_agent_download branch from 1b64cbb to 31c3259 Compare February 15, 2022 16:31
@cthorn42 cthorn42 force-pushed the maint/master/fix_redirect_in_agent_download branch 2 times, most recently from ead2c73 to 0b277c6 Compare February 15, 2022 19:22
@joshcooper
Copy link
Contributor

I think the ruby 3.0.3 failure is due to rspec/rspec-expectations#1350

@cthorn42 cthorn42 force-pushed the maint/master/fix_redirect_in_agent_download branch from 0b277c6 to 8209f0e Compare February 22, 2022 17:47
Recent internal changes have caused http URLs to be redirected to HTTPs
for nightlies.puppet.com. This breaks the agent download from URL, but
this PR adds in some redirect logic that will fix the issue.
@cthorn42 cthorn42 force-pushed the maint/master/fix_redirect_in_agent_download branch from 8209f0e to cdc9608 Compare February 22, 2022 20:38
Copy link
Contributor

@joshcooper joshcooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @bastelfreak or @ekohl any concerns about this?

Also are the code coverage checks useful? I'm not a huge fan myself.

@joshcooper joshcooper merged commit 74d77c9 into puppetlabs:master Feb 22, 2022
@smortex smortex mentioned this pull request Feb 22, 2022
@cthorn42 cthorn42 changed the title (maint) Update agent download from URL logic to handle redirects Update agent download from URL logic to handle redirects Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants