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

replace set-env with Env Files in GitHub Actions #9542

Merged
merged 4 commits into from
Oct 30, 2020

Conversation

prezha
Copy link
Contributor

@prezha prezha commented Oct 23, 2020

fixes: #9541

due to the security vulnerability, GitHub Actions deprecating set-env command and replace it with Environment Files

more details are in the issue description

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 23, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @prezha. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 23, 2020
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@medyagh
Copy link
Member

medyagh commented Oct 26, 2020

@prezha seems like the windows tests didn't like it

 $numFail=(echo $Env:STAT | jq '.NumberOfFail')
  $failedTests=( echo $Env:STAT | jq '.FailedTests')
  $numPass=$(echo $Env:STAT | jq '.NumberOfPass')
  $passedTests=( echo $Env:STAT | jq '.PassedTests')
  echo "*******************${numPass} Passes :) *******************"
  echo $passedTests
  echo "*******************************************************"
  echo "---------------- ${numFail} Failures :( ----------------------------"
  echo $failedTests
  echo "-------------------------------------------------------"
  If ($numFail -gt 0){ exit 2 }
  If ($numPass -eq 0){ exit 2 }
  If ($numPass -lt 33){ exit 2 }
  If ($numFail -eq 0){ exit 0 }
  shell: C:\windows\System32\WindowsPowerShell\v1.0\powershell.EXE -command ". '{0}'"
  env:
    GOPROXY: https://proxy.golang.org
    TIME_ELAPSED: time
    JOB_NAME: functional_docker_windows
    GOPOGH_RESULT: 
    STAT: 
    GOROOT: C:\Users\jenkins\actions-runner\_work\_tool\go\1.15.2\x64
******************* Passes :) *******************
*******************************************************
----------------  Failures :( ----------------------------
-------------------------------------------------------
Error: Process completed with exit code 1.

we used the set:env to pass arround the result of the test from previous step

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

lets ensure the windows test results are passed to the End Result Step

@prezha
Copy link
Contributor Author

prezha commented Oct 27, 2020

@medyagh thank you for the review
i've made changes to the pr and windows test results now seem to be passed correctly to the End Result Step?

@prezha prezha requested a review from medyagh October 27, 2020 22:33
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

looks good, do you mind pulling upstream master, to ensure get latest gh yaml

@prezha prezha force-pushed the replace-set-env-in-github-actions branch from 9f3233b to e038c7b Compare October 28, 2020 22:16
@codecov-io
Copy link

Codecov Report

Merging #9542 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9542      +/-   ##
==========================================
- Coverage   29.04%   29.04%   -0.01%     
==========================================
  Files         172      172              
  Lines       10488    10499      +11     
==========================================
+ Hits         3046     3049       +3     
- Misses       7017     7025       +8     
  Partials      425      425              
Impacted Files Coverage Δ
cmd/minikube/cmd/root.go 43.57% <0.00%> (-3.72%) ⬇️
pkg/addons/validations.go 33.33% <0.00%> (+16.66%) ⬆️

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

Thank you very much @prezha

@medyagh medyagh merged commit f9c90ac into kubernetes:master Oct 30, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh, prezha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 30, 2020
@prezha
Copy link
Contributor Author

prezha commented Oct 31, 2020

Thank you very much @prezha

you are most welcome @medyagh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

replace deprecated 'set-env' with Environment Files in GitHub Actions
5 participants