- 27 Sep, 2021 1 commit
-
-
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>
-
- 30 Aug, 2021 2 commits
-
-
Silvano Cerza authored
-
Cristian Maglie authored
* Proper gRPC error handling * Update gRPC API of board command to return status.Status instead of error * Update gRPC API of remaining commands to return status.Status instead of error * Replace custom error with protobuf message Previously, a custom error was returned when attempting to upgrade a platform that was already at the latest available version. There is dedicated code for handling this specific error. Now that the function has been changed to return a status.Status instead of error, the previous check for the return being this error is no longer possible. The capability is restored by replacing the error with a protocol buffer message. * Handle details of any type in `core.PlatformUpgrade()` status The status details of the function are used to identify the specific cause of a non-nil status. This is done via a type assertion. Previously, this type assertion was configured such that a details of any type other than the expected would result in a panic. At the moment, that will not occur because we only add details of one type. However, the whole point of the type assertion is to support details of multiple types, and if other types are added a panic will not be the appropriate behavior. A better approach is to check the result of the type assertion, handling the non-nil status as a generic error if its details are of a different type. * Return nil on program action if an error occurred * Refactoring 'upload' commands * Refactoring 'board' commands * Refactoring 'compile' commands * Refactoring 'core' commands * Refactoring 'debug' commands * Refactoring 'lib' commands * Refactoring 'sketch' commands * Refactoring 'commands' commands * updated tests and fixed some error wording * fixed go lint warnings * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> * Apply changes from code review Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> * fix i18n Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
-
- 27 Aug, 2021 1 commit
-
-
Roberto Sora authored
[skip changelog] Refactor and add `TEST_LDFLAGS` to `test-unit-race` and `test-legacy` tasks (#1417) * Bump version of golang in go.mod to 1.16 to align with ditribution containers * Refactor and add TEST_LDFLAGS to test-unit-race and test-legacy tasks in Taskfile * Run
-
- 26 Aug, 2021 3 commits
-
-
Cristian Maglie authored
* Simplified utils.Match function * match func doesn't need err anymore * Removed leftover * Removed unused mutex * Factored out all duplicated match helpers * fix i18n
-
Giampaolo Mancini authored
* Add completion for PowerShell * Manage command description for PS completion * Add test for PS completion * Add PS documentation * Fix formatting * Fix python lint for PS tests * Update docs/command-line-completion.md Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
-
Silvano Cerza authored
-