Skip to content

Conversation

milosgajdos
Copy link
Member

It would appear we were missing the Go build tags on 2.8.X branch so the images would not have the necessary support for some storage drivers causing breakages to end users trying to use them.

This commit fixes both the build and linting issues.

Fixes: #3919

@codecov-commenter
Copy link

codecov-commenter commented May 19, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (7c354a4) 58.87% compared to head (1d66ab6) 58.87%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff              @@
##           release/2.8    #3927   +/-   ##
============================================
  Coverage        58.87%   58.87%           
============================================
  Files              102      102           
  Lines             7120     7120           
============================================
  Hits              4192     4192           
  Misses            2284     2284           
  Partials           644      644           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

can we apply the fixes on main first? Otherwise we don't update it there, which means that we're regressing in v3

Comment on lines -12 to 15
//
//go:build include_gcs
// +build include_gcs

package gcs
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we didn't fix these on the main branch (still has the empty line after, and the build-tags in the wrong spot);

//
//go:build include_gcs
// +build include_gcs
package gcs

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in #3950

Comment on lines 130 to +133
keys, err := emptyRootDriver.List(ctx, "/")
if err != nil {
t.Fatalf("unexpected error listing empty root content: %v", err)
}
Copy link
Member

Choose a reason for hiding this comment

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

These area also missing on main;

keys, err := emptyRootDriver.List(ctx, "/")

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in #3950

@milosgajdos
Copy link
Member Author

milosgajdos commented May 19, 2023

@thaJeztah I'd prefer to add those in as part of #3702

That PR also bumps GCS dependency.

@milosgajdos milosgajdos requested a review from thaJeztah May 19, 2023 18:51
@davidspek
Copy link
Collaborator

davidspek commented Aug 15, 2023

@milosgajdos Is there a reason this PR was closed? Seems like this should get merged and a v2.8.3 release needs to be cut to resolve this error. See #3919 (comment).

@milosgajdos
Copy link
Member Author

Reopening. Can't remember why I closed this 🤔

@milosgajdos milosgajdos reopened this Aug 15, 2023
It would appear we were missing the Go build tags on 2.8.X branch so the
images would not have the necessary support for some storage drivers
causing breakages to end users trying to use them.

This commit fixes both the build and linting issues.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
@milosgajdos
Copy link
Member Author

@thaJeztah PTAL (I've reopened this because I somehow closed this by accident)

This is the same as #3950 but for 2.8.x branch

Copy link
Collaborator

@davidspek davidspek left a comment

Choose a reason for hiding this comment

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

LGTM

@milosgajdos
Copy link
Member Author

Ping @wy65701436 @thaJeztah

@davidspek
Copy link
Collaborator

@deleteriousEffect maybe you can have a look at this since the current release is broken and we need this to fix it.

@milosgajdos
Copy link
Member Author

@thaJeztah this is blocked by your requiring changes 🙃

Copy link
Collaborator

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

I did a quick branch (#4009) where I cherry-picked the changes from main (#3950), and rebased your PR on top to verify if there's things missing on main and to see the differences; noticed that one bit was missing, so opened a PR for that (and cherry-picked into that branch); #4008

@@ -38,12 +37,11 @@ const driverName = "oss"
const minChunkSize = 5 << 20

const defaultChunkSize = 2 * minChunkSize
const defaultTimeout = 2 * time.Minute // 2 minute timeout per chunk
Copy link
Member

Choose a reason for hiding this comment

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

It's removed now on the main branch, but looks like this one was missed as well in 6b388b1 / #3950

Copy link
Member Author

Choose a reason for hiding this comment

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

I dont think I follow this comment. This was removed because it was failing to pass the lint step.

@milosgajdos
Copy link
Member Author

I did a quick branch (#4009) where I cherry-picked the changes from main (#3950), and rebased your PR on top to verify if there's things missing on main and to see the differences; noticed that one bit was missing, so opened a PR for that (and cherry-picked into that branch); #4008

Merged

@milosgajdos milosgajdos requested a review from thaJeztah August 21, 2023 13:05
@milosgajdos
Copy link
Member Author

closing in favour of #4009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants