Skip to content

Conversation

@iQQBot
Copy link
Contributor

@iQQBot iQQBot commented Apr 29, 2025

Description

Fix gsutil cache download issue

Related Issue(s)

Fixes #227
Fixes CLC-1324

How to test

before
image

after

image

Documentation

/hold

@iQQBot iQQBot requested a review from Copilot April 30, 2025 05:56
Copy link

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 fixes the gsutil cache download issue by correcting how remote URLs for cached packages are constructed and verified.

  • Constructs both .tar.gz and .tar URLs using the package version
  • Uses gsutil stat to check existing cache files before initiating transfer
Files not reviewed (1)
  • .devcontainer/devcontainer.json: Language not supported
Comments suppressed due to low confidence (1)

pkg/leeway/cache/remote/gsutil.go:149

  • [nitpick] Consider renaming the loop variable 'urls' to 'urlPair' (or similar) to avoid confusion with the earlier defined 'urls' slice containing strings.
for _, urls := range packageToURLMap {

@kylos101 kylos101 requested review from aledbf and csweichel April 30, 2025 06:11
Copy link
Contributor

@corneliusludmann corneliusludmann left a comment

Choose a reason for hiding this comment

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

Tested it with gitpod-io/gitpod repo and it worked like a charm. Thanks Pudong. Let's ship it!

@iQQBot iQQBot merged commit a2f98b6 into main Apr 30, 2025
6 checks passed
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.

leeway fails to cache (seems to miss .tar.gz / .tar)

3 participants