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

Windows Runner - Not able to read arguments from command line after latest updates #11724

Open
3 of 15 tasks
kuamanet opened this issue Mar 4, 2025 · 4 comments
Open
3 of 15 tasks

Comments

@kuamanet
Copy link

kuamanet commented Mar 4, 2025

Description

Our deployment action stopped working 5 days ago (Feb 27).

It seems like we're not able to read any arguments passed from the terminal to our program when running it from github actions (was windows-2022, I tryed updating to windows-2025 with no luck)

I created a minimal project to reproduce the issue. Sadly I cannot share the original repo.

But this is how is failing the action in the original repo

Image

Image

And as you can see is the same error reported in the CI of the public repo I linked.

Of course the project works on local machines.

Let me know if I can give more help or info in order to help debugging the problem.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

https://github.com/kuamanet/test-github-action-windows-2025/actions/runs/13650970414/job/38159190546

Is it regression?

Yes it is, our CD was working with windows-2022

Expected behavior

Our project should receive the passed arguments and run as before

Image

Image

Image

In the last image you can see the line "Will build Leonardo for environment Staging", where "Leonardo" and "Staging" are passed as arguments from the dotnet run ...\Project --environment... command

Actual behavior

It's failing with the following error:

ERROR(S):
  Required option 'e, environment' is missing.

  -f, --flavor              Required. Which flavor of the artifact should be
                            created by the setup

  -e, --environment         Required. Whether the final installed artifact
                            should point to staging or production apis, and
                            whether the final artifact should be uploaded to
                            staging or production backoffice

  -v, --version             Required. The sem-ver of the artifact. Will also be
                            appended to the setup filename

  -d, --include-database    [DEPRECATED] This option is specific for Leonardo
                            flavor, drives whether or not the setup should
                            contain the database

  -r, --release-notes       Required. The release note description.

  --help                    Display this help screen.

  --version                 Display version information.

Unhandled exception. System.Exception: [DEV] could not parse arguments
   at Program.<Main>$(String[] args) in D:\a\euroformulations-deployer\euroformulations-deployer\EuroformulationsDeployer\Program.cs:line 22
   at Program.<Main>(String[] args)

Repro steps

Just try and launch the action at https://github.com/kuamanet/test-github-action-windows-2025/actions/workflows/debug.yml

@kuamanet kuamanet changed the title Broken github action after latest updates Windows Runner - Not able to read arguments from command line after latest updates Mar 4, 2025
@vidyasagarnimmagaddi
Copy link
Contributor

Hi @kuamanet , Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating.


@kuamanet
Copy link
Author

kuamanet commented Mar 7, 2025

Hello @vidyasagarnimmagaddi , any news on this? Is there anything I can do to help?
cc @RaviAkshintala

@RaviAkshintala
Copy link
Contributor

Hi @kuamanet Image has been deployed with the latest version 20250302.1 could you please try again .

@kuamanet
Copy link
Author

kuamanet commented Mar 7, 2025

Hi @kuamanet Image has been deployed with the latest version 20250302.1 could you please try again .

Hi @RaviAkshintala , are you sure of the number of the latest version? I just tried to spin again my github action, this is the version that gets used:

Image

And still same error, sadly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants