-
-
Notifications
You must be signed in to change notification settings - Fork 403
Tests fail when not ran in Arduino CLI's Git repository #1950
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
Comments
Hi @txgk, thanks for your interest in this project.
Regarding this I think I found the problem: if you check the stack trace linked here ->
.git file which apparently is not present even before reaching that point, see here.My guess is that getting the source code this way is not ideal because it does not have the .git file inside the archive. See by yourself downloading https://github.com/arduino/arduino-cli/archive/13f22553fbddeb1f419c351baf30e209e6da3248/arduino-cli-13f22553fbddeb1f419c351baf30e209e6da3248.tar.gz
My recommendation regarding this is to download the source code by |
Hi, thank you for detailed answer.
As far as I know arduino-cli downloads binaries that are linked against glibc. If it's true then it is a big flaw. Is there a way for me to force arduino-cli to use system-provided avr tools instead of fetching ones linked against glibc? I think that'd be a very useful feature.
I checked and even tests in release tarballs (without git artifacts) fail because there's no Here are new logs with build from git clone (now some version test fails...): x86_64: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/886233/raw |
Unfortunately, this is not possible as every microcontroller platform requires a very specific set of tools (with very specific versions)... sometimes even changing a minor release of one of them can break a platform (also the libraries the tools are linked to may create problems, We used to not bundle This is a general problem, not only for AVR platform but also for all the other microcontrollers. BTW some platforms may decide autonomously to rely on some system-installed tools, for example, ESP32 platforms require
We may check for another file in the root folder, like
I see that one of the failure is:
this is a missing
I cannot find them, maybe you could provide a copy/paste of the snippet of the log? |
Hi, thank you for detailed answer!
I understand that. Going for system-provided tools by default wouldn't be really practical in this case, yeah. But I want to believe that adding
It would be nice if release tarballs would check this TaskFile.yml rather than absent .git directory :)
Thanks, added python3 as a dependency now.
I think I was wrong here. I guess I overlooked, sorry for that |
Describe the problem
Hi, currently I'm interested in getting arduino-cli package to the Alpine Linux repositories (I know that musl can be of issue here - that's why I add gcompat to the dependencies and install gcc-avr and avrdude from package manager). However, there is a big problem which I am experiencing right now: a lot of tests fail with
Error searching for repository root path
message despite I run them in not fancy fashion at all (with simplego-task go:test
).Also I have a question. According to the logs, some architectures fail other many tests because not every go module supports all architectures. Is this a valid reason to disable arduino-cli support on such architectures or I should just remove these tests on certain architectures?
Recipe according to which arduino-cli is built:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/40647/diffs
Build logs:
x86_64: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/885526/raw
x86: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/885527/raw
aarch64: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/885530/raw
armv7: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/885531/raw
armhf: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/885532/raw
ppc64le: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/885529/raw
s390x: https://gitlab.alpinelinux.org/grikir02/aports/-/jobs/885528/raw
Thanks!
To reproduce
Run
go-task go:test
on an Alpine Linux package builder.Expected behavior
All tests pass at least for x86_64 architecture.
Arduino CLI version
13f2255
Operating system
Linux
Operating system version
Alpine Linux Edge
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: