1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-17 20:40:59 +03:00
Commit Graph

5334 Commits

Author SHA1 Message Date
3886d36ad5 Add submission # 1361
https://github.com/arduino/library-registry/pull/1361
2022-05-05 09:16:26 +00:00
eb803413ce Add submission # 1360
https://github.com/arduino/library-registry/pull/1360
2022-05-05 09:02:20 +00:00
e9ef0888de Add submission # 1359
https://github.com/arduino/library-registry/pull/1359
2022-05-05 07:24:26 +00:00
1c02087130 Add submission # 1354
https://github.com/arduino/library-registry/pull/1354
2022-05-03 22:09:08 +00:00
cdc34e1beb Merge pull request #1353 from per1234/sync-check-deps
Sync "Check Go Dependencies" workflow with upstream
2022-05-03 02:15:20 -07:00
554a76a590 Run "Check Go Dependencies" workflow on release branch creation
The trunk-based development strategy is used by some tooling projects. Their release branches may contain a subset of
the history of the default branch.

The status of the GitHub Actions workflows should be evaluated before making a release. However, this is not so simple
as checking the status of the commit at the tip of the branch in the project using that strategy. The reason is that,
for the sake of efficiency, the workflow is configured to run only when the processes are relevant to the trigger event
(e.g., no need to run it for a change to the readme).

In the case of the default branch, you can simply set the workflow runs filter to that branch and then check the result
of the latest run of each workflow of interest. However, that was not possible to do with the release branch since it
might be that the workflow was never run in that branch. The status of the latest run of the workflow in the default
branch might not match the status for the release branch if the release branch does not contain the full history.

For this reason, it will be helpful to trigger the workflow on the creation of a release branch. This will ensure that
the workflow will always have at least one run in the release branch. Subsequent commits pushed to the branch can run
based on their usual trigger filters and the status of the latest run of the workflow in the branch will provide an
accurate indication of the state of that branch.

Branches are created for purposes other than releases, most notably feature branches to stage work for a pull request.
Because the collection of workflows in a Tooling project are often very comprehensive, it would not be convenient or
efficient to run them on the creation of every feature branch.

Unfortunately, GitHub Actions does not support filters on the `create` event of branch creation like it does for the
`push` and `pull_request` events. There is support for a `branches` filter of the `push` event, but that filter is an AND
to the `paths` filter and this application requires an OR. For this reason, the workflows must be triggered by the
creation of any branch. The unwanted job runs are prevented by adding a `run-determination` job with the branch filter
handled by Bash commands. The other jobs of the workflow use this `run-determination` job as a dependency, only running
when it indicates they should via a job output. Because this minimal `run-determination` job runs very quickly, it is
roughly equivalent to the workflow having been skipped entirely for non-release branch creations. This approach has been
in use for some time already in other workflows.
2022-05-02 22:41:08 -07:00
91cf1f803a Add schedule trigger to "Check Go Dependencies" workflow
The workflow is configured to run whenever any relevant file in the repository is changed. However, the results of the
workflow run are also dependent on the external environment it runs in, which include:

- The software running on the GitHub hosted GitHub Actions runner machines
- The GitHub Actions actions used by the workflow
- The dependencies that are installed by the workflow directly or via the GitHub Actions actions it uses

The workflow does not fully pin to a specific version of external tools. This was done in the interest of reducing the
maintenance burden of keeping the systems up to date. However, it also means that a new release of one of those tools
can cause the workflow runs to start failing (which might happen through an enhancement to that resource resolving a
false negative, or a defect causing a false negative).

When the repository file path trigger is used by itself, this sort of external breakage is only revealed when an
unrelated change triggers the workflow. That can be distracting even to a dedicated member of the project development
team, as well as confusing and discouraging to any contributor.

This type of change can be caught by adding a `schedule` event trigger that causes the workflow to run periodically in
addition to the other on-demand triggers. This allows the problem to be identified and resolved at the maintainer's
convenience, separate from the unrelated development work.
2022-05-02 22:40:50 -07:00
492cd278fe Detect unused dependency license metadata files
The "Check Go Dependencies" GitHub Actions workflow checks for dependencies with incompatible or unapproved license
types.

The dependency license metadata consumed by the "Licensed" tool is cached in the project repository, in a dedicated file
for each dependency.

The `check-cache` job of the workflow checks whether that cache is in sync with the project's current dependencies. It
does this by using the "Licensed" tool to update the cache and then a `git diff` command to check whether that resulted
in any changes (which would indicate it is out of sync).

Out of sync states could result from any of three distinct conditions:

- Missing metadata file
- Incorrect metadata file contents
- Superfluous metadata file

An incorrectly configured `git diff` command previously caused the last of these to be missed.

My first take at this system was simply using `git diff --exit-code` alone. That detects the last two, but misses the
first. I added the `git add --intent-to-add .` command to detect added files, but didn't realize that it caused the last
to be missed.

Superfluous files in the dependency license metadata cache won't actually interfere with its intended functionality, but
it is still important to avoid an accumulation of unused files.

The new commands will catch all three of the possible out of sync conditions by staging all changes that result from
the metadata cache update to the repository and then comparing those against the `HEAD` commit.

I considered an alternative approach which works just as well as the chosen one:

```
git add .
git diff --exit-code HEAD
```

However, I feel that the `--cached` flag makes the `git diff` command more self-explanatory.
2022-05-02 22:40:37 -07:00
331ed91e9a Update reference URLs in "Check Go Dependencies" workflow
- Use correct `actions/setup-go` reference for version in use
- Update redirecting GitHub docs URL to new location
- Configure GitHub docs URL to allow localization where available
2022-05-02 22:40:23 -07:00
ec33b1311a Add submission # 1352
https://github.com/arduino/library-registry/pull/1352
2022-05-02 19:47:57 +00:00
36965ea52a Add submission # 1349
https://github.com/arduino/library-registry/pull/1349
2022-05-02 07:59:23 +00:00
330f938fdc Add submission # 1348
https://github.com/arduino/library-registry/pull/1348
2022-05-01 20:09:10 +00:00
bbf6d0e767 Add submission # 1347
https://github.com/arduino/library-registry/pull/1347
2022-05-01 18:15:19 +00:00
8ef6a200ae Add submission # 1346
https://github.com/arduino/library-registry/pull/1346
2022-05-01 15:55:40 +00:00
749f766351 Add submission # 1344
https://github.com/arduino/library-registry/pull/1344
2022-05-01 04:46:26 +00:00
fb56abbcf7 Add submission # 1343
https://github.com/arduino/library-registry/pull/1343
2022-05-01 01:54:42 +00:00
730e6fbf5b Remove "Aspen SIM800" 2022-04-30 14:31:49 -07:00
5b9e34a09c Add submission # 1340
https://github.com/arduino/library-registry/pull/1340
2022-04-30 11:10:13 +00:00
ab8ef8909a Add submission # 1339
https://github.com/arduino/library-registry/pull/1339
2022-04-30 05:55:08 +00:00
cfb2cc52d3 Add submission # 1338
https://github.com/arduino/library-registry/pull/1338
2022-04-30 05:20:24 +00:00
682bceadb5 Add submission # 1337
https://github.com/arduino/library-registry/pull/1337
2022-04-30 02:24:23 +00:00
b5c4755bb1 Add submission # 1335
https://github.com/arduino/library-registry/pull/1335
2022-04-28 07:09:18 +00:00
bae250bb69 Add submission # 1334
https://github.com/arduino/library-registry/pull/1334
2022-04-27 15:02:18 +00:00
9de425db1d Add submission # 1332
https://github.com/arduino/library-registry/pull/1332
2022-04-27 11:07:10 +00:00
b70e5d37a7 Add submission # 1331
https://github.com/arduino/library-registry/pull/1331
2022-04-27 09:17:48 +00:00
0c3caa8afe Add submission # 1330
https://github.com/arduino/library-registry/pull/1330
2022-04-26 14:11:09 +00:00
0c2b17fb97 Add submission # 1328
https://github.com/arduino/library-registry/pull/1328
2022-04-25 09:53:46 +00:00
a3f59513ee Add submission # 1327
https://github.com/arduino/library-registry/pull/1327
2022-04-25 06:08:59 +00:00
611db9aba5 Merge pull request #1326 from arduino/dependabot/pip/production/pytest-7.1.2
Bump pytest from 7.1.1 to 7.1.2
2022-04-24 20:56:17 -07:00
393aa5d223 Bump pytest from 7.1.1 to 7.1.2
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.1 to 7.1.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.1...7.1.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 02:24:02 +00:00
b982b90578 Add submission # 1325
https://github.com/arduino/library-registry/pull/1325
2022-04-24 21:37:11 +00:00
4c69bbb37f Add submission # 1324
https://github.com/arduino/library-registry/pull/1324
2022-04-24 14:37:48 +00:00
902a1bb127 Add submission # 1323
https://github.com/arduino/library-registry/pull/1323
2022-04-24 11:30:31 +00:00
7c19e6769d Add submission # 1322
https://github.com/arduino/library-registry/pull/1322
2022-04-24 06:11:47 +00:00
9e99d70338 Add submission # 1321
https://github.com/arduino/library-registry/pull/1321
2022-04-23 15:44:30 +00:00
41db22b5ae Add submission # 1319
https://github.com/arduino/library-registry/pull/1319
2022-04-23 09:59:43 +00:00
c753a8d958 Add submission # 1318
https://github.com/arduino/library-registry/pull/1318
2022-04-22 13:24:23 +00:00
bb26be1b85 Add submission # 1316
https://github.com/arduino/library-registry/pull/1316
2022-04-21 15:21:22 +00:00
622810344d Add submission # 1314
https://github.com/arduino/library-registry/pull/1314
2022-04-21 10:27:01 +00:00
73ff316a16 Add submission # 1313
https://github.com/arduino/library-registry/pull/1313
2022-04-21 09:11:28 +00:00
3c1f715eb6 Add submission # 1312
https://github.com/arduino/library-registry/pull/1312
2022-04-20 19:51:51 +00:00
f714531251 Add submission # 1311
https://github.com/arduino/library-registry/pull/1311
2022-04-20 11:10:13 +00:00
8e5b7062ef Add submission # 1310
https://github.com/arduino/library-registry/pull/1310
2022-04-18 13:59:54 +00:00
6f6a5918a1 Add submission # 1307
https://github.com/arduino/library-registry/pull/1307
2022-04-18 03:08:01 +00:00
e880417821 Add submission # 1306
https://github.com/arduino/library-registry/pull/1306
2022-04-15 15:20:51 +00:00
19e97fc157 Add submission # 1305
https://github.com/arduino/library-registry/pull/1305
2022-04-15 04:22:03 +00:00
9de6c7d26a Add submission # 1304
https://github.com/arduino/library-registry/pull/1304
2022-04-14 22:10:24 +00:00
04660ff85e Add submission # 1303
https://github.com/arduino/library-registry/pull/1303
2022-04-14 17:58:10 +00:00
4afa290c4d Merge pull request #1269 from per1234/remove-ArreyExt
Remove "ArreyExt"
2022-04-14 18:12:06 +02:00
24f9a77842 Merge pull request #1300 from per1234/remove-DFRobot_A111
Remove https://github.com/DFRobot/DFRobot_A111
2022-04-14 16:13:14 +02:00