Skip to content

Small project cleanup#935

Merged
kostyanf14 merged 2 commits into
HCK-CI:masterfrom
kostyanf14:cleanup
Apr 27, 2026
Merged

Small project cleanup#935
kostyanf14 merged 2 commits into
HCK-CI:masterfrom
kostyanf14:cleanup

Conversation

@kostyanf14
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors downloader.rb to extract content length retrieval into a dedicated method and modifies project.rb by removing a platform existence check and reformatting workspace path construction. Review feedback indicates that the new error message in the downloader is less informative because it omits the HTTP status code, and that removing the platform check in project.rb will result in generic NoMethodError exceptions rather than clear, actionable error messages.

Comment thread lib/auxiliary/downloader.rb
Comment thread lib/project.rb
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR performs small cleanup/refactors in the project initialization and download helper logic.

Changes:

  • Removes a platform-not-found guard from Project#images_names_query_output.
  • Refactors Downloader#download to delegate HEAD/content-length lookup to a helper method.
  • Minor formatting cleanup for workspace path construction.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
lib/project.rb Removes a nil-guard in the query output path and reformats File.join arguments for workspace creation.
lib/auxiliary/downloader.rb Extracts HEAD/content-length logic into load_total_size and updates the associated error handling/message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/project.rb
Comment thread lib/auxiliary/downloader.rb
Comment thread lib/auxiliary/downloader.rb
@kostyanf14 kostyanf14 merged commit 7c40245 into HCK-CI:master Apr 27, 2026
13 checks passed
@kostyanf14 kostyanf14 deleted the cleanup branch April 27, 2026 15:15
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.

3 participants