-
Notifications
You must be signed in to change notification settings - Fork 292
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
1.6.0 versions Pre login Fails on self hosted runners #403
Comments
For anyone affected by this issue, please first pin the version to |
Our workers are ephemeral and starts up in k8s pods upon request. I.e. The runtime environment are clean Linux containers that are killed when the pipeline finishes. |
Same issue here. We also use empty Linux containers, on which in one of the steps of the workflow we install the Azure CLI. But now, this pre step gives an error because it is not available yet at time of executing the pre step. Basically messing up our deployment process. Wouldn't it be an idea of bumping the major number in case of such change, what is considered as breaking? |
Sure I can fill in that blank. We are using the Github Runner ARC controller. It spins fresh runners in k8s with every run. The image is very basic and has nothing pre-installed on it. |
We install az cli in a step right before calling azure/login step. Could you guys point your v1 tag to same commit as 1.5.1? |
Please consider rolling back this change and then creating a |
Hi all, Sorry for introducing this issue. What we'll do next: What we want to clarify:
|
We have also run into warnings with v1.6.0, where we are calling azure/login from a composite action. |
@JasonRSeequent , it seems a different issue. Could you create a new issue and provide your workflow file and debug log? Thanks. |
We also have workflows that are expecting the managed identity of the VM running the self-hosted runner to be available from the beginning of the workflow run. They were broken with 1.6.0 due to the new pre-step. It's simple enough for us to make a change, and I understand why you would want to make the change, but the breaking change to the Edit: As an addendum, we use ephemeral Github Runners so logins leaking between workflows are not actually an issue for us. |
@nickwb , I don't quite get your problem. If you're using managed identity, that means you're using a VM from Azure. If your job in workflow file works before, it means you install az in it or before the job. Do you uninstall az in the job too? |
@YanaXu - The issue is our workflows did not previously contain a step for We don't install or uninstall the Azure CLI, it's baked in to our build runner VM image. |
@nickwb, correct me if I'm wrong. Current issue #403 is describing a use scenario like this: the workflow file runs on a fresh clean image (not a VM); the image is based on linux and without az installed; the workflow file contains one job; the job will install az and call azure login action afterwards. |
Hi @kristeey, @VincentVerweij, @mattloretitsch-od, @nuryupin-kr, @ohbriansung, @nickwb, we have created a preview test tag |
@MoChilia Looks like |
Hello,
creds looks like (example from input at v1.5.1 where it normally worked)
with v1.6.0/v1.6.1
that position equals: creds: |
@Topper1987, your issue is not related to #403, please check the solution in #404 (comment). |
@kristeey, you've raised a good point. But GitHub action has a complex ecosystem, the integration of azure-cli and azure/login is not straight-forward. We need assess this thoroughly and explore its feasibility. |
Thank you! You are right, I missed that. It solved our issue. |
1.6.1 resolves my issue, will v1 be pointed to v1.6.1? |
We have a multi-cloud project with a reusable workflow for integration that we use for all 3 cloud targets. The Azure auth step is conditional and only runs when the matrix build target is Azure. This change doesn't just break our Azure integration, it breaks GCP and AWS as well because the pre-step is still generated even when the conditional Azure auth step doesn't run. We have upgraded to 1.6.1 which does let the build pass but is still generating warnings, and again those warnings appear for all three cloud targets not just Azure. It would be great if there was a way to disable the pre/post steps, we don't need them for our setup, the build container is destroyed anyway. At the very least we should be able to turn them off with the same condition we use to control the login step itself. Also +1 for making v1 point to v1.6.1, currently using https://github.com/finos/tracdap/blob/main/.github/workflows/integration-cloud.yaml |
@sblackstone, yes, v1 will be pointed to v1.6.1 soon. |
@martin-traverse, v1 will be pointed to v1.6.1 soon. Thanks for sharing your use case with us. It's really helpful. We will consider how to optimize the pre and post steps. |
The team and I just implemented the |
We have tested version v1.6.1 and it works well in our environment. It would be ideal if you could point version v1 to v1.6.1. |
Hi all, |
We are not using a self-hosted runner, but our workflow was also affected. It is using the container mcr.microsoft.com/powershell from Docker Hub. I wonder if we are doing something stupid, since all others here seem to be using self-hosted runners, so other people with GitHub-hosted runners seem not to be affected. It is important for our use case to install az on our own, because the workflow realizes a test matrix and we install either the current or the preview version of az. So, if login installed az on its own as in @kristeey's question, it would break our test. |
Hi @bb-froggy, your scenario is quite similar with the one in this issue. You are all using azure/login in a clean container. We have just fixed the bug in v1.6.1, now aligned with aligned with v1. I think there should be no block to your test? And I've observed that your workflow has successfully passed. Is there still any obstacle to your test? |
Yes, v1.6.1 fixed the problem for us, too, and there are no obstacles to the test. Sorry for the confusion and thanks for the fix! I was just worried about two things:
|
@bb-froggy, your use case is not strange, and I think it's reasonable. We are now exploring the use cases of azure/login within GitHub Actions. There are so many scenarios! And from my perspective, these scenarios are also fair. We aspire to broaden our support to encompass these cases more stably. Thank you for bringing your use case to our attention! Additionally, installing |
Closing the issue for now. Feel free to reopen it if you have any further question. |
Hi,
Description:
The 1.6.0 version introduces an error for people using self hosted runners installing
az cli
in a step before using azure/login action in a following step inside the same GHA job. Hence, the new release will do a pre cleanup which uses az cli before the cli is installed -> the job failes.Workaround:
Downgrade to 1.5.1.
Possible solutions
The text was updated successfully, but these errors were encountered: