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

Helm OCI chart deployment fails in Windows #2648

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Conversation

EronWright
Copy link
Contributor

@EronWright EronWright commented Oct 30, 2023

Proposed changes

Closes #2644

This PR fixes support for OCI charts on Windows, by making the code be more consistent with Helm (see code). I believe the error comes from the call to os.Stat (see Golang implementation which is based on CreateFile, here).

Related issues (optional)

@EronWright EronWright requested a review from a team October 30, 2023 22:47
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (1944a52) 18.31% compared to head (ed5d5e1) 18.31%.

Files Patch % Lines
provider/pkg/provider/helm_release.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2648   +/-   ##
=======================================
  Coverage   18.31%   18.31%           
=======================================
  Files          47       47           
  Lines        9644     9643    -1     
=======================================
  Hits         1766     1766           
+ Misses       7779     7778    -1     
  Partials       99       99           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

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

I believe that we run tests on windows? Can we make sure that the scenario we are addressing is under test.

@rquitales
Copy link
Contributor

I believe that we run tests on windows? Can we make sure that the scenario we are addressing is under test.

GHA supports Windows runners, but I believe our providers only tests on Linux environments currently. It makes sense to increase the scope of testing to all supported envs/architectures, but perhaps we need a bigger discussion about the approach for this and any optimizations we might need to undertake?

It'd be great to get Windows testing enabled to ensure we don't have any regressions here, but that is probably a larger orthogonal effort to get it landed. I'd be happy if we can manually validate that this fix works within a Windows environment to get it submitted for now.

@iwahbe
Copy link
Member

iwahbe commented Nov 1, 2023

I believe that we run tests on windows? Can we make sure that the scenario we are addressing is under test.

GHA supports Windows runners, but I believe our providers only tests on Linux environments currently. It makes sense to increase the scope of testing to all supported envs/architectures, but perhaps we need a bigger discussion about the approach for this and any optimizations we might need to undertake?

I agree.

It'd be great to get Windows testing enabled to ensure we don't have any regressions here, but that is probably a larger orthogonal effort to get it landed. I'd be happy if we can manually validate that this fix works within a Windows environment to get it submitted for now.

We still need to test that localChart swallows all errors here, not just file not found. We can do this on unix systems (permission errors come to mind). Otherwise I worry about someone accidentally reverting this change. Since we don't test on windows here, we can keep the integration test manual.

@EronWright
Copy link
Contributor Author

Thanks both for the discussion. I'll provision a Windows VM to test this PR, and will incorporate the notion of a cross-platform test pass into a future "Release Criteria" design doc.

@EronWright
Copy link
Contributor Author

I tested the fix on a Windows PC, seems to work well.

Copy link
Contributor

@rquitales rquitales left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for validating on Windows.

@EronWright EronWright merged commit 9078fd3 into master Nov 15, 2023
20 checks passed
@EronWright EronWright deleted the eronwright/issue-2644 branch November 15, 2023 17:53
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.

Helm OCI chart deployment fails in Windows
3 participants