- 01 Apr, 2022 1 commit
-
-
per1234 authored
The "arduino-stats" GitHub Actions workflow was designed to periodically gather download statistics from Arduino CDN and push results to Datadog. The recorded stats showed a periodic decrease in total download count. Since this is patently impossible, it is clear that something was wrong with the system and that the recorded data was not usable. An investigation into the problem was never done. On 2022-03-14, the runs of the "arduino-stats" GitHub Actions workflow began to fail. Because there had not been any relevant change in the repository between the last successful run and the first failing run, it seems that some external change caused the breakage. Since the workflow was not ever working successfully and the lack of an investigation about that indicates that the stats are not of immediate importance, the best course of action is to simply remove the broken infrastructure from the repository rather than investing time into fixing something that isn't being used anyway.
-
- 28 Mar, 2022 1 commit
-
-
Cristian Maglie authored
* Fixed some staticcheck warnings commands/core/search_test.go:24:2: package "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" is being imported more than once (ST1019) commands/core/search_test.go:25:2: other import of "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" i18n/cmd/po/parser.go:34:2: should check returned error before deferring file.Close() (SA5001) i18n/cmd/po/parser.go:105:48: cutset contains duplicate characters (SA1024) * Fixed some staticcheck warnings arduino/libraries/librariesindex/json.go:33:38: unknown JSON option "required" (SA5008) arduino/libraries/librariesindex/json.go:34:38: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:39:37: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:40:37: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:44:37: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:45:37: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:51:51: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:53:51: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:57:51: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:58:51: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:59:51: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:69:34: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:70:34: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:71:34: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:88:36: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:89:36: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:90:36: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:95:30: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:96:30: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:97:30: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:98:30: unknown JSON option "required" (SA5008) arduino/cores/packageindex/index.go:99:30: unknown JSON option "required" (SA5008) arduino/cores/tools.go:30:35: unknown JSON option "required" (SA5008) arduino/cores/tools.go:37:36: unknown JSON option "required" (SA5008) arduino/cores/tools.go:45:18: unknown JSON option "required" (SA5008) arduino/sketch/sketch.go:51:14: unknown JSON option "required" (SA5008) arduino/sketch/sketch.go:53:14: unknown JSON option "omitepty" (SA5008) cli/lib/search.go:103:16: unknown JSON option "required" (SA5008) cli/lib/search.go:107:24: unknown JSON option "required" (SA5008) cli/lib/search.go:183:9: the argument is already a string, there's no need to use fmt.Sprintf (S1025) * Fixed some staticcheck warnings arduino/builder/sketch.go:165:5: should use !bytes.Equal(existingBytes, source) instead (S1004) arduino/builder/sketch_test.go:133:2: this value of err is never used (SA4006) arduino/cores/board.go:125:3: the surrounding loop is unconditionally terminated (SA4004) arduino/cores/packagemanager/package_manager.go:432:4: should replace loop with platforms = append(platforms, platform.GetAllInstalled()...) (S1011) arduino/cores/status.go:191:28: func ToolDependency.extractTool is unused (U1000) arduino/cores/status.go:203:28: func ToolDependency.extractRelease is unused (U1000) arduino/libraries/librariesindex/json.go:141:9: empty branch (SA9003) * Fixed some staticcheck warnings arduino/monitors/null.go:48:14: should use time.Since instead of time.Now().Sub (S1012) arduino/resources/checksums.go:79:5: should use !bytes.Equal(algo.Sum(nil), digest) instead (S1004) arduino/resources/checksums.go:155:6: func createPackageFile is unused (U1000) arduino/resources/helpers.go:65:12: this condition occurs multiple times in this if/else if chain (SA4014) arduino/resources/helpers_test.go:40:24: unnecessary use of fmt.Sprintf (S1039) cli/feedback/feedback.go:187:12: should use String() instead of fmt.Sprintf (S1025) cli/globals/globals.go:31:2: var tr is unused (U1000) cli/lib/args.go:89:6: should use strings.EqualFold instead (SA6005) commands/daemon/monitor.go:176:6: this value of slots is never used (SA4006)
-
- 24 Mar, 2022 1 commit
-
-
Umberto Baldi authored
* add flags to allow the override of the keys used to sign and encrypt a binary for the boards that support the secure boot * add integration test for ReplaceSecurityKeys() function * fix regression introduced: target platform could be nil so using before checking is not a good idea * apply suggestions from code review * rename of some flags (done to accommodate the proposed changes in platform.txt) * change approach: override keys using `builderCtx.CustomBuildProperties` * add check in the builder regarding the usage of "build.keys.type" properties * add secure boot to the platform specifications * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> * modify the check on in the builder regarding the usage of "build.keys" properties: The "build.keys.type" is no longer mandatory, and the default is "public_keys" We also check if the secureboot keys are all defined or none of them is. * remove check on the flags specifying the keys, it's the tool responsibility to check if they are valid * move content to a guides section * add specifications regarding `build.keys` properties * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> * add link to external resource to provide a quick explanation of the reason for an Arduino boards platform developer to add a "secure boot" capability * change `tools.imgtool.build.pattern` to `tools.imgtool.flags` The property had the same form as the special `tools.TOOL_NAME.ACTION.pattern` properties However, there is not a `build` action, the form of the property gives the impression that it is one that has special treatment by the build system. It looks like the convention is `*.flags` * add small section explaining why is recommended to use these prop names * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> * Correct error message * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: per1234 <accounts@perglass.com>
-
- 23 Mar, 2022 1 commit
-
-
dependabot[bot] authored
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 22 Mar, 2022 1 commit
-
-
per1234 authored
Validation of links to internal anchors was recently added to the markdown-link-check tool used to check for broken links in this project's documentation. Although a much needed feature, unfortunately it does not currently support anchors created by HTML anchor tags. For example, this is valid and common Markdown: [click here](#some-anchor) <a name="some-anchor"></a> but will fail the check: ERROR: 1 dead links found! [x] #some-anchor -> Status: 404 This type of link markup is used by the protoc-gen-doc tool that generates the gRPC interface documentation, which causes a spurious failure of the link check. The solution is to configure markdown-link-check to skip these links (which was the behavior anyway with versions 3.8.7 and older). That will be reverted whenever the tool is able to correctly validate internal anchor links.
-
- 14 Mar, 2022 1 commit
-
-
Umberto Baldi authored
* bump go version we use to build and release to go 1.17.8 Co-authored-by: per1234 <accounts@perglass.com> * bump go version in go.mod * bump go version in GH Actions workflows * bump go version in the docs Co-authored-by: per1234 <accounts@perglass.com>
-
- 10 Mar, 2022 2 commits
-
-
Umberto Baldi authored
-
Umberto Baldi authored
* update documentation links * Update docs/library-specification.md Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: per1234 <accounts@perglass.com>
-
- 04 Mar, 2022 1 commit
-
-
Jesse Vincent authored
* Make use of 'avr' as example platform more consistent It's fairly easy to miss the one line early in the doc that says this text uses 'avr' as an example, leading a reader to possibly believe the documentation hasn't been updated since 'avr' was the only platform choice. Within the doc, the text was a little inconsistent as to how it referred to the avr platform and platform specific tools. This change tries to standardize how we refer to the example platform. * Fix a couple lint errors. * Fix prettier lint errors. * Fix an additional prettier lint error * Update docs/sketch-build-process.md Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: per1234 <accounts@perglass.com>
-
- 03 Mar, 2022 1 commit
-
-
Cristian Maglie authored
* Removed `error` return from `discovery.New(...)` The `New` function never fails. * Replaced *status.Status with errors in packagamanager * Apply suggestions from code review
-
- 02 Mar, 2022 1 commit
-
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 01 Mar, 2022 1 commit
-
-
dependabot[bot] authored
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 23 Feb, 2022 3 commits
-
-
Umberto Baldi authored
-
Alessandro Ranellucci authored
-
Cristian Maglie authored
-
- 18 Feb, 2022 1 commit
-
-
Silvano Cerza authored
* Discoveries are now closed and unregistered after failure * Add mutex to guard discoveries in DiscoveryManager
-
- 17 Feb, 2022 2 commits
-
-
Silvano Cerza authored
-
Cristian Maglie authored
* Fixed all lint warnings * Replaced findFilesInFolder with go-paths equivalent * Removed some constants * Removed unused parameter * Removed redundant builder_utils.CompileFilesRecursive function * Simplified structure of CompileFiles * Inlined call to compileFilesWithRecipe * Removed unused function FindAllSubdirectories * Rewrite of FindFilesInFolder using go-paths-helper * Updated dependency go.sum and licensed cache * Removed duplication of extensions table * Applied suggestion from codereview * Update legacy/builder/builder_utils/utils.go Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> * Applied code review suggestions * Applied code review suggestions Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
-
- 04 Feb, 2022 2 commits
-
-
Silvano Cerza authored
-
github-actions[bot] authored
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
-
- 03 Feb, 2022 1 commit
-
-
Silvano Cerza authored
-
- 01 Feb, 2022 3 commits
-
-
Silvano Cerza authored
* Sample command to solve compile or upload issue is now shown to CLI users * Fix error strings Co-authored-by: per1234 <accounts@perglass.com> * Enhance error message if core is unknown * Fix compile error not being printed if output is json Co-authored-by: per1234 <accounts@perglass.com>
-
Cristian Maglie authored
* Added deprecation warning for gRPC MonitorService * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> * Added deprecation option Co-authored-by: per1234 <accounts@perglass.com>
-
Cristian Maglie authored
* Remove some constants indirection * Added support for advanced-sizers * Added documentation * Apply suggestions from code review Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> * Update docs/platform-specification.md Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> * Enforce severity correctness from sizer tool * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> * Use 'max_size' field name in json to match cli output * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Co-authored-by: per1234 <accounts@perglass.com>
-
- 31 Jan, 2022 1 commit
-
-
Cristian Maglie authored
* Fix lint warning * Add support for global env variable set over arduino-cli * PackageManager now has a user-agent * Propagate 'user-agent' info to tools via environment vars * Allow nil PackageManager in GetEnvVarsForSpawnedProcess() * Added docs * Apply suggestions from code review Co-authored-by: per1234 <accounts@perglass.com> * Added docs for breaking change in golang API * Fixed behaviour of Process.SetEnvironment * Simplified some appends Co-authored-by: per1234 <accounts@perglass.com>
-
- 28 Jan, 2022 5 commits
-
-
Silvano Cerza authored
-
Cristian Maglie authored
* Improve error logging for pluggable monitor * Force quit of pluggable monitor if the port open fails
-
Silvano Cerza authored
-
Silvano Cerza authored
-
Silvano Cerza authored
* Add organization env var in i18n transifex script * Update i18n transifex push command to use API v3 * Update i18n transifex pull command to use API v3 * Remove duplicated code * Add success message after successfull resource upload * Reworked i18n scripts to unmarshal data to structs * Fixed wrong defer
-
- 26 Jan, 2022 1 commit
-
-
github-actions[bot] authored
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
-
- 25 Jan, 2022 2 commits
-
-
github-actions[bot] authored
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
-
Cristian Maglie authored
* bugfix: monitorDependencies are now installed with the core * added test
-
- 24 Jan, 2022 3 commits
-
-
Cristian Maglie authored
* Fixed wrong "event" fields in pluggable monitor specs * Better specify discoveryDependencies and monitorDependencies fields in package_index.json
-
Cristian Maglie authored
* Allow case-insensitive 'ok'/'OK' replies from discoveries and monitors * Factor the same messages to reduce translations strings * Better error messages for discoveries and monitor
-
Cristian Maglie authored
* Factored property composition in convertUploadToolsToPluggableDiscovery * Auto-generated properties are cached and added after cycling on the original map * Autogenerated upload tool properties are searched in sub-configs too Fix #1444 * Added STMicroelectronics:stm32:Nucleo_32:pnum=NUCLEO_F031K6 to upload mock tests * Use composed board properties to detect user fields Some platforms may add information through the optional config part of the FQBN (platforms menu items).
-
- 21 Jan, 2022 1 commit
-
-
Cristian Maglie authored
* legacy: refactored ErrorfWithLogger function Now is no longer needed, this function was basically made for arduino-builder to allow transfering the error to the IDE, BTW the correct fix must be made inside arduino-builder (to actually let him push the error in the logger). * Renamed legacy ctx fields ExecStdout/ExecStderr to Stdout/Stderr * Removed empty Lint() function * Removed dependency on i18n.Logger * Removed no more used i18n.Logger \o/ \o/ * Simplified i18n.Init function * legacy: builder default output on os.Stdout/os.Stderr * legacy: updated integration tests for slightly different output of builder * Use positional parameter for most translated string This will make easier to transfer translations from the Arduino IDE 1.8 * Added note to UPGRADING.md * Updated UPGRADING.md * Removed extra blank line in library detection recap * Update docs/UPGRADING.md Co-authored-by: per1234 <accounts@perglass.com>
-
- 17 Jan, 2022 1 commit
-
-
Cristian Maglie authored
Previously we checked the recipe for the {serial.port} key to determine if the upload requires a serial port, but this is not sufficient because we must check also for the {serial.port.file} key.
-
- 11 Jan, 2022 1 commit
-
-
Cristian Maglie authored
* LoggerToCustomStreams must have pointer receiver Becuase it has a mutex field that otherwise is copied. * Removed barely used legacy i18n.Logger.UnformattedFprintln function * Removed barely used legacy i18n.Logger.UnformattedWrite function * Removed unused AccumulatorLogger * Added 'percent' to TaskProgress gRPC message * Added gRPC placeholders to report compile progress * legacy: builder task progress is now transferred via TaskProgress callback * Removed unused Logger.Flush interface method * Removed Logger.Name method (use type-assertions instead) * Added note on breaking API change
-
- 03 Jan, 2022 1 commit
-
-
Cristian Maglie authored
This is mostly useful for "arduino-builder".
-