- 04 Oct, 2021 1 commit
-
-
Cristian Maglie authored
-
- 01 Oct, 2021 1 commit
-
-
Cristian Maglie authored
* Fixed race condition in pluggable monitor Many methods had the stateLock held for the entire scope of the function call but the 'port_closed' message can be received at any moment, asyncronously, and it requires a stateLock as well. In this case the worst case is that the decode loop is blocked for 10 seconds until the timeout occurs, but this is not ideal. This bug has been fixed by removing the state, since it's not really useful. * Improved message logging in pluggable monitor * Refactored message processing in pluggable monitor * Fix i18n * fixed lint suggestion * fix from code review
-
- 29 Sep, 2021 2 commits
-
-
Silvano Cerza authored
-
Cristian Maglie authored
* Addde QUIT command in monitor-client * Use rpc.Port in pluggable monitor Open method * Slightly improved monitor client error messages * Fixed resource leaking in PluggableMonitor client * fixed i18n * Fixed test... ooops
-
- 27 Sep, 2021 3 commits
-
-
per1234 authored
A bug introduced in the 3.9.7 release of Python causes a spurious failure of the `test\test_lib.py::test_install_git_invalid_library` integration test: https://bugs.python.org/issue45121 As a workaround, the last working version of Python must be used: 3.9.6. In order to ensure this is done when running the integration tests locally, this version is specified in the Poetry configuration. Even though only the integration tests require this version limitation, the Poetry configuration change affects all processes that use Poetry. Since only the integration test workflow was adjusted accordingly, the other workflows using Poetry continued to explicitely install a version of Python that did not fulfill the version constraints specified in the Poetry configuration. It seems it was possible for Poetry to find a compatible version on the runner: > The currently activated Python version 3.9.7 is not supported by the project (>=3.8, <3.9.7). > Trying to find and use a compatible version. > Using python3.8 (3.8.10) but this additional output caused a failure of the "Deploy Website" workflow due to expecting only valid JSON as the output from the siteversion.py script: ``` Error: The template is not valid. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: T. Path '', line 0, position 0. ``` Even though the other workflows were able to continue to work with the discovered Python 3.8.10, it seems safest avoid reliance on whatever Python the runner happens to have installed and instead explicitly install the Python version we want to be used. So the full pin of Python is done in all workflows that use Poetry. Since it is convenient to get automatic updates for Python patch releases, this full pin should be reverted back to the "3.9" minor version pin once a new version of Python is released with the bug fixed and added to versions available for installation via the `actions/setup-python` GitHub Actions action.
-
Silvano Cerza authored
-
Silvano Cerza authored
-
- 24 Sep, 2021 5 commits
-
-
Cristian Maglie authored
-
per1234 authored
On every push that changes relevant files, and periodically, configure the repository's issue and pull request labels according to the universal, shared, and local label configuration files.
-
Silvano Cerza authored
-
Roberto Sora authored
[skip changelog] Add partition load query before fetching metrics and schedule extraction 3 times a day (#1471)
-
Silvano Cerza authored
* Fix library verification when installing from git repo or zip file * Enhance code comments and unit tests Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: per1234 <accounts@perglass.com>
-
- 23 Sep, 2021 5 commits
-
-
Cristian Maglie authored
* Fixed leaking pipes in Discovery command creation Moved the process creation at the very last moment, since StdInPipe and StdOutPipe methods actually create an OS pipe even if the process is not started later. * When a discovery is quitted ensure that the process gets Wait-ed Otherwise, the resources allocated by the process will be leaked. (pipes, zombie process, etc.) * fix i18n
-
Silvano Cerza authored
-
Kevin Loney authored
TrimRight greedily removes as any matching characters from the cutset as possible which can inadvertently remove characters from the library name.
-
Silvano Cerza authored
-
Roberto Sora authored
This PR will replace the download data query for gather CLI downloads data PLEASE NOTE: I'll proceed also to replace the `AWS_ATHENA_SOURCE_TABLE` secret with a new table name
-
- 22 Sep, 2021 2 commits
-
-
Silvano Cerza authored
-
per1234 authored
Arduino library authors may chose from multiple structures, each of which have different implications for the compilation of the library source files. The specification explains this in a somewhat simplistic manner as "1.5 format" and "1.0 format". That is sufficient for most, but does not provide a complete picture. Feedback indicated that more advanced users were left wanting complete documentation, which is provided here. The subject is not well suited for description via prose, so a chart and table are employed instead. The chart is defined in the DOT graph description language.
-
- 17 Sep, 2021 1 commit
-
-
Cristian Maglie authored
-
- 15 Sep, 2021 1 commit
-
-
Cristian Maglie authored
* Added parsing of monitorDependecies field in package index * Added monitor dependencies support in package_manager
-
- 13 Sep, 2021 3 commits
-
-
Umberto Baldi authored
* make fqbn flag required, so that the completion suggests it when pressing <tab><tab> for better explanation see https://github.com/spf13/cobra/blob/master/shell_completions.md#mark-flags-as-required * use newer and supported bashv2 completion in order to have dynamic completion * add dynamic completion for `compile -b` command to list available board * Revert "make fqbn flag required, so that the completion suggests it when pressing <tab><tab>" This reverts commit cc812654d3b7bf096ef8d86c7e550d2a5bc28084. * make Internalization happy
-
Cristian Maglie authored
* Added flags to enable logging of gRPC calls * Added gRPC debug filter * updated i18n * Update cli/daemon/daemon.go Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
-
per1234 authored
A typo in the checksum definition for the arm-linux-gnueabihf host version of the mdns-discovery tool caused installation to fail on that target: Installing builtin:mdns-discovery@0.9.2... Error initializing instance: installing builtin:mdns-discovery@0.9.2 tool: Cannot install tool builtin:mdns-discovery@0.9.2: testing local archive integrity: testing archive checksum: invalid checksum format: SHA-256cc1096936abddb21af23fa10c435e8e9e37ec9df2c3d2c41d265d466b03de0af
-
- 10 Sep, 2021 2 commits
-
-
Cristian Maglie authored
* Simplified implementation of Tool.LatestRelease/GetLatestInstalled methods * Some code make-up
-
per1234 authored
A bug introduced in the 3.9.7 release of Python causes a spurious failure of the `test\test_lib.py::test_install_git_invalid_library` integration test: https://bugs.python.org/issue45121 As a workaround, the Python version used by the "Test Integration" CI workflow that runs the integration tests is pinned to the last working version: 3.9.6. Since it is convenient to get automatic updates for Python patch releases, this full pin should be reverted back to the "3.9" minor version pin once a new version of Python is released with the bug fixed and added to versions available for installation via the `actions/setup-python` GitHub Actions action.
-
- 07 Sep, 2021 2 commits
-
-
Cristian Maglie authored
[skip-changelog] Removed unnecessary `fmt.*printf` before `tr(...)` / Fixed i18n early static initialization problem (#1425) * Removed unnecessary fmt.*printf * removed unused variable * Fixed i18n early static initialization problem https://github.com/arduino/arduino-cli/pull/1425#discussion_r701014277 these particular strings are not correctly handled by the i18n package because they are declared at package level before the call to i18n.Init(), and so are just returned as-is. * Fix lint errors and use error.Is instead of direct comparison * Revert "guard" in Tr function otherwise the unit-tests will fail: === RUN TestBoardOptions --- FAIL: TestBoardOptions (0.00s) panic: i18n.Tr called before i18n.Init() [recovered] panic: i18n.Tr called before i18n.Init() goroutine 9 [running]: testing.tRunner.func1.2(0xc56e00, 0xeaee20) /opt/hostedtoolcache/go/1.16.7/x64/src/testing/testing.go:1143 +0x332 testing.tRunner.func1(0xc0002a2f00) /opt/hostedtoolcache/go/1.16.7/x64/src/testing/testing.go:1146 +0x4b6 panic(0xc56e00, 0xeaee20) /opt/hostedtoolcache/go/1.16.7/x64/src/runtime/panic.go:965 +0x1b9 github.com/arduino/arduino-cli/i18n.Tr(0xdceacd, 0x28, 0x0, 0x0, 0x0, 0x0, 0x1) /home/runner/work/arduino-cli/arduino-cli/i18n/i18n.go:54 +0xd9 github.com/arduino/arduino-cli/arduino/cores.(*Board).GetBuildProperties(0x13bf060, 0xc0003b6150, 0xc000339400, 0x0, 0x0) /home/runner/work/arduino-cli/arduino-cli/arduino/cores/board.go:109 +0x69d github.com/arduino/arduino-cli/arduino/cores.(*Board).GeneratePropertiesForConfiguration(0x13bf060, 0xdb5f54, 0xe, 0xc000309ef0, 0xc911e0, 0xc0003b6000) /home/runner/work/arduino-cli/arduino-cli/arduino/cores/board.go:141 +0x28f github.com/arduino/arduino-cli/arduino/cores.TestBoardOptions(0xc0002a2f00) /home/runner/work/arduino-cli/arduino-cli/arduino/cores/board_test.go:298 +0x4bd testing.tRunner(0xc0002a2f00, 0xe052a8) /opt/hostedtoolcache/go/1.16.7/x64/src/testing/testing.go:1193 +0xef created by testing.(*T).Run /opt/hostedtoolcache/go/1.16.7/x64/src/testing/testing.go:1238 +0x2b3 FAIL github.com/arduino/arduino-cli/arduino/cores 0.021s === RUN TestIndexParsing --- FAIL: TestIndexParsing (0.00s) panic: i18n.Tr called before i18n.Init() [recovered] panic: i18n.Tr called before i18n.Init() * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: per1234 <accounts@perglass.com>
-
Silvano Cerza authored
* [skip changelog] Fix Windows integration tests * Update test/test_sketch.py Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: per1234 <accounts@perglass.com>
-
- 03 Sep, 2021 2 commits
-
-
Cristian Maglie authored
-
Umberto Baldi authored
* bump github.com/spf13/cobra to 1.2.1 * go mod tidy * fix CI failing * update powershell tests, in new version of cobra the completion file is different
-
- 02 Sep, 2021 4 commits
-
-
Silvano Cerza authored
-
Umberto Baldi authored
-
Umberto Baldi authored
-
Silvano Cerza authored
* Fix upload command not working as expected when certain flags are used * Fix absurd upload corner case
-
- 01 Sep, 2021 2 commits
-
-
Silvano Cerza authored
* Fix integration tests detected_boards fixture * Fix builtin discoveries not loaded if no platform is installed * [skip changelog] Add missing breaking change to UPGRADING.md * [skip changelog] Fix board list test running on CI * [skip changelog] Fix UPGRADING.md
-
Silvano Cerza authored
* [skip changelog] Skip boards without FQBN in tests * [skip changelog] Fix esp32 integration test on darwin
-
- 31 Aug, 2021 4 commits
-
-
Silvano Cerza authored
-
Silvano Cerza authored
-
Silvano Cerza authored
-
Silvano Cerza authored
* Add ways to let users verify if new CLI released * Code review fixes Co-authored-by: per1234 <accounts@perglass.com> * Enhance docs Co-authored-by: per1234 <accounts@perglass.com> * Fix version check for git-snapshots and nightlies * Change method to request latest release * Remove ansi library in favor of color * Fix go mod errors * Remove useless function Co-authored-by: Cristian Maglie <c.maglie@arduino.cc> Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: Cristian Maglie <c.maglie@arduino.cc>
-