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

SNOW-730503: pip install awscli in windows build script #1410

Merged
merged 3 commits into from
Jan 24, 2023

Conversation

sfc-gh-aalam
Copy link
Collaborator

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes #SNOW-730503

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

@codecov-commenter
Copy link

Codecov Report

Merging #1410 (2c19e5a) into main (f420c26) will decrease coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1410      +/-   ##
==========================================
- Coverage   81.47%   81.42%   -0.06%     
==========================================
  Files          61       61              
  Lines        8558     8558              
  Branches     1263     1263              
==========================================
- Hits         6973     6968       -5     
- Misses       1257     1263       +6     
+ Partials      328      327       -1     
Impacted Files Coverage Δ
src/snowflake/connector/ocsp_asn1crypto.py 75.34% <0.00%> (-1.37%) ⬇️
src/snowflake/connector/ocsp_snowflake.py 76.92% <0.00%> (-0.41%) ⬇️
src/snowflake/connector/errors.py 90.32% <0.00%> (+0.53%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sfc-gh-aalam sfc-gh-aalam requested review from a team and sfc-gh-stan and removed request for a team January 23, 2023 21:23
Copy link
Contributor

@sfc-gh-sfan sfc-gh-sfan left a comment

Choose a reason for hiding this comment

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

Why do we need to install it twice? I wonder if we could just put then in the same line of python -m pip install --upgrade pip setuptools wheel

ci/build_windows.bat Outdated Show resolved Hide resolved
remove redundant install
@sfc-gh-aalam
Copy link
Collaborator Author

Why do we need to install it twice? I wonder if we could just put then in the same line of python -m pip install --upgrade pip setuptools wheel

Good point. Should have noticed it myself. Now removed

@@ -22,6 +22,9 @@ if %errorlevel% neq 0 goto :error
python -m pip install --upgrade pip setuptools wheel
if %errorlevel% neq 0 goto :error

pip install --upgrade --user awscli
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be inlined with line 22? Given you also use --user here, maybe it's not possible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep. Just did that. Hopefully it should work, otherwise we can do a --user

Copy link
Collaborator Author

@sfc-gh-aalam sfc-gh-aalam Jan 24, 2023

Choose a reason for hiding this comment

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

@sfc-gh-aalam sfc-gh-aalam merged commit faa906b into main Jan 24, 2023
@sfc-gh-aalam sfc-gh-aalam deleted the aalam-SNOW-730503-fix-awscli-issue branch January 24, 2023 00:35
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants