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

Error with 0.4.0 FlutterInstall Task on macos-14 #126

Closed
tghamm opened this issue Sep 15, 2024 · 18 comments
Closed

Error with 0.4.0 FlutterInstall Task on macos-14 #126

tghamm opened this issue Sep 15, 2024 · 18 comments
Assignees
Labels
bug Something isn't working

Comments

@tghamm
Copy link

tghamm commented Sep 15, 2024

Same build worked yesterday, it looks like an update to the task is causing a failure during the flutter install step on macos-14 in Azure DevOps:

Starting: FlutterInstall
==============================================================================
Task         : Flutter Install Task
Description  : Install the Flutter environment.
Version      : 0.4.0
Author       : Hey24sheep
Help         : For more information, take a look at the Flutter [documentation](https://flutter.io/)
==============================================================================
##[error]The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.
Finishing: FlutterInstall
@hey24sheep hey24sheep added the bug Something isn't working label Sep 15, 2024
@hey24sheep hey24sheep self-assigned this Sep 15, 2024
@hey24sheep
Copy link
Owner

hey24sheep commented Sep 15, 2024

#124

Created in latest release, let me push another update and see if it fixes it

@hey24sheep
Copy link
Owner

Released new version 0.4.1. Can you validate once, thanks

@tghamm
Copy link
Author

tghamm commented Sep 15, 2024

Different error now:

##[error]StatusCodeError: 404 - "<?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: flutter_infra_release/releases/releases_undefined.json</Details></Error>"

@hey24sheep
Copy link
Owner

I see, the issue is with os.platform() in "install task"

@tghamm
Copy link
Author

tghamm commented Sep 15, 2024

Appreciate you jumping on this so quickly :)

@hey24sheep
Copy link
Owner

They changed something internally. I am pushing a check first to find the platform. You will need to give me the initial log saying [INFO] Found architecture xxxxxx. Then only I will be able to push another version which will fix it.

@hey24sheep
Copy link
Owner

New version 0.4.2 will be available in about 6-7 minutes, please re-run after that and give me the arch type name there. I will then push a fix after that

@eljorgit
Copy link

Hi @hey24sheep this also happens to me in Ubuntu Server 22.04.3 LTS

@hey24sheep
Copy link
Owner

@eljorgit so the code that is failing is this

function findArchitecture() {
	if (os.platform() === 'darwin')
		return "macos";
	else if (os.platform() === 'linux')
		return "linux";
	return "windows";
}

Which gives "arch" type for the url
https://storage.googleapis.com/flutter_infra_release/releases/releases_${arch}.json
The error shows "undefined" as the URL

@hey24sheep
Copy link
Owner

So paste your VM platform names here. I will check. Azure has messed it up. I have just updated the Node to 20 to fix #124

@eljorgit
Copy link

You mean this?
(run hostnamectl)

Static hostname: xxxxxx
       Icon name: computer-container
         Chassis: container
      Machine ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
         Boot ID: xxxxxxxxxxxxxxxxxxxxxxxxxx
  Virtualization: lxc
Operating System: Ubuntu 22.04.3 LTS              
          Kernel: Linux 6.2.16-3-pve
    Architecture: x86-64

@eljorgit
Copy link

On the pipeline task I get this:

Starting: FlutterInstall
==============================================================================
Task         : Flutter Install Task
Description  : Install the Flutter environment.
Version      : 0.4.2
Author       : Hey24sheep
Help         : For more information, take a look at the Flutter [documentation](https://flutter.io/)
==============================================================================
[INFO] Found architecture  linux
##[error]StatusCodeError: 404 - "<?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: flutter_infra_release/releases/releases_undefined.json</Details></Error>"
Finishing: FlutterInstall

I think there is an extra white space just before linux, dont know if could be this

@hey24sheep
Copy link
Owner

@eljorgit @tghamm Please check, it should be working now. New version 0.4.3

@eljorgit
Copy link

It is working for me, thanks for this very quick fix ❤️

@hey24sheep
Copy link
Owner

@eljorgit Great, thanks for confirming

@tghamm
Copy link
Author

tghamm commented Sep 15, 2024

Running now on a mac agent, will report shortly :)

@tghamm
Copy link
Author

tghamm commented Sep 15, 2024

@hey24sheep everything seems to be working now! Thanks for the quick fix!

@tghamm tghamm closed this as completed Sep 15, 2024
@hey24sheep
Copy link
Owner

Nice, thanks for confirming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants