Skip to content
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

Simplify registry validation check workflows #5845

Merged
merged 5 commits into from
Feb 5, 2025
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jan 29, 2025

This PR changes the GitHub Action workflow that makes the validation check of the registry file.

Previously a golang project made for this purpose was built and run. Now it uses directly the library repository engine to perform this task. This change will simplify the maintenance of this repository since we no longer need to maintain a separate golang project.

@cmaglie cmaglie added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Jan 29, 2025
@cmaglie cmaglie self-assigned this Jan 29, 2025
@cmaglie cmaglie force-pushed the use-new-lib-engine branch from 8ee36ba to 19a742c Compare January 29, 2025 13:24
@cmaglie cmaglie force-pushed the use-new-lib-engine branch from 19a742c to 74dbd56 Compare January 29, 2025 13:41
@cmaglie cmaglie requested a review from a team January 29, 2025 14:07
@cmaglie cmaglie force-pushed the use-new-lib-engine branch from 9a2dd32 to d89b0e9 Compare January 29, 2025 14:12
Copy link

@alessio-perugini alessio-perugini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are now obsolete/superfluous and so should be removed:

  • https://github.com/arduino/library-registry/blob/use-new-lib-engine/.github/workflows/check-python-task.yml
  • # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python-task/Taskfile.yml
    python:lint:
    desc: Lint Python code
    deps:
    - task: poetry:install-deps
    cmds:
    - poetry run flake8 --show-source
    # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python-task/Taskfile.yml
    python:format:
    desc: Format Python files
    deps:
    - task: poetry:install-deps
    cmds:
    - poetry run black .
  • [![Test Integration status](https://github.com/arduino/library-registry/actions/workflows/test-go-integration-task.yml/badge.svg)](https://github.com/arduino/library-registry/actions/workflows/test-go-integration-task.yml)
    [![Check Go status](https://github.com/arduino/library-registry/actions/workflows/check-go-task.yml/badge.svg)](https://github.com/arduino/library-registry/actions/workflows/check-go-task.yml)
    [![Check Python status](https://github.com/arduino/library-registry/actions/workflows/check-python-task.yml/badge.svg)](https://github.com/arduino/library-registry/actions/workflows/check-python-task.yml)
  • [![Check Go Dependencies status](https://github.com/arduino/library-registry/actions/workflows/check-go-dependencies-task.yml/badge.svg)](https://github.com/arduino/library-registry/actions/workflows/check-go-dependencies-task.yml)
  • pytest = "^8.3.4"
    invoke = "^2.2.0"
    black = "^24.10"
    flake8 = "^7.1.1"
    pep8-naming = "^0.14.1"

    (and run poetry lock to sync the lockfile)
  • https://github.com/arduino/library-registry/blob/use-new-lib-engine/.gitignore (at least the obsolete entries)

@cmaglie
Copy link
Member Author

cmaglie commented Feb 4, 2025

These are now obsolete/superfluous and so should be removed:

I've applied all the requested changes!

@cmaglie cmaglie requested a review from per1234 February 4, 2025 15:29
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Cristian!

@cmaglie cmaglie merged commit 60a5070 into production Feb 5, 2025
15 checks passed
@cmaglie cmaglie deleted the use-new-lib-engine branch February 5, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants