Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

executed the test_local from github action #447

Open
tedteng opened this issue Nov 17, 2020 · 8 comments
Open

executed the test_local from github action #447

tedteng opened this issue Nov 17, 2020 · 8 comments
Assignees
Labels
lifecycle/rotten Nobody worked on this for 12 months (final aging stage)

Comments

@tedteng
Copy link
Contributor

tedteng commented Nov 17, 2020

Describe the bug
I like to execute the test_local for e2e testing from GitHub action when any new commit pushed. the action which able to handle ssh testing in test_local and others eg gardenctl execution. and need feasible solution handle configuration file(garden dev kubeconfig)

@tedteng tedteng self-assigned this Nov 17, 2020
@tedteng
Copy link
Contributor Author

tedteng commented Nov 17, 2020

so far I am able to execute the action to check when PR changed.
but

image

@tedteng
Copy link
Contributor Author

tedteng commented Nov 20, 2020

with the latest approach, will try to create kubectl image with oidc-login plugin which uses for GitHub action

Error: unknown command "oidc-login" for "kubectl"

@dansible
Copy link
Contributor

dansible commented Nov 20, 2020

We can't use the oidc kubeconfigs with the CICD as the 2-factor is meant for humans (not automation). We would need a normal kubeconfig with sufficient permissions to perform these tasks

@tedteng
Copy link
Contributor Author

tedteng commented Nov 24, 2020

yes, you are right, 2-factor required humans input, and it seems to enable in Live only, I never met in Dev required me to input the security code. I thought I could found some silent mode since dev landscape never asking input 2-factor code. however, OIDC required an access browser. I can't handle it when in Github action.

now I am using the normal kubeconfig . as latest testing. It seems working well.

+ go run cmd/gardenctl/main.go target -g dev -p gardenctl -t gctl-aws
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'http://localhost:8000'
error: could not open the browser: exit status 3

Please visit the following URL in your browser manually: http://localhost:8000

image

@tedteng
Copy link
Contributor Author

tedteng commented Nov 25, 2020

manually checked ssh AWS and Azure all green for SSH testing, but GCP failed in action (python v3.8 and Gcloud cli with the latest version). will investigating.
(skip openstack as is internal which not able to access from github.com)

image

@tedteng
Copy link
Contributor Author

tedteng commented Nov 26, 2020

after debug the current gcp ssh workaound in operate.go not support in github action yet.

arguments
image

@tedteng
Copy link
Contributor Author

tedteng commented Dec 1, 2020

achieved execute test_local through GitHub action. which also covers more testing cases mention in form #393 (not include ssh testing and GCP feature as GCP workaround not working well now)however, it takes almost 10 mins. planning optimize it

image

@tedteng
Copy link
Contributor Author

tedteng commented Dec 1, 2020

as the latest changes, the total time cost around 3 mins after using container in Github action

image

@gardener-robot gardener-robot added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Sep 22, 2021
@gardener-robot gardener-robot added lifecycle/rotten Nobody worked on this for 12 months (final aging stage) and removed lifecycle/stale Nobody worked on this for 6 months (will further age) labels Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/rotten Nobody worked on this for 12 months (final aging stage)
Projects
None yet
Development

No branches or pull requests

3 participants