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

refactor: migrate to starflow #5225

Open
wants to merge 344 commits into
base: main
Choose a base branch
from
Open

refactor: migrate to starflow #5225

wants to merge 344 commits into from

Conversation

bepri
Copy link
Contributor

@bepri bepri commented Jan 29, 2025

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox run -m lint?
  • Have you successfully run tox run -e test-py310? (supported versions: py39, py310, py311, py312)

Should be reviewable on a commit-by-commit basis. Comments will be left on individual files explaining why some changes were necessary. As some words of encouragement: about 250 of the file changes were purely from make format!

mr-cal and others added 30 commits June 9, 2023 15:38
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
`module = ["starcraft"]` only checks checks the `starcraft` main
package, and not any sub-packages and modules.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Files like README.md and HACKING.md are linted by sphinx-lint.

Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
The directive is finnicky with regards to globbing, so the tests and
docs were being included in the final wheel package.
The idea is this: since we have a few tests that are worth running in
"downstream" projects (those that merge starbase periodically), instead
of having to adapt every test individually in every downstream project
we'll use a fixture (project_main_module) that provides the imported
module object. So in starbase is returns the 'starcraft' module.

The tests are then updated to use this fixture instead of importing the
module directly. Downstream projects therefore only need to update the
fixture's implementation and the tests will (well, should) work.
Co-authored-by: Tiago Nobrega <tiago.nobrega@canonical.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…#117)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
bepri added 23 commits February 11, 2025 13:38
This commit doesn't remove any entries, it only organizes them into nice categories
The only part of TESTING.md that remained relevant to modern Snapcraft was the information on Spread, which itself was slightly out of date. This migrates that Spread info to HACKING.MD and deletes the rest.
requirements-noble.txt cannot be built by Trivy and there's
no reason for us to scan spread tests
@bepri bepri force-pushed the work/starflow-migration branch from 2a2b5aa to 54b12c1 Compare February 11, 2025 18:43
mr-cal added a commit that referenced this pull request Feb 11, 2025
…5250)

This line was added in #4823 in
d801346

However, the `export` was missing in the original commit. This error was
picked up by shellcheck in #5225. I'm moving it into a separate PR for
trackability.

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@bepri bepri force-pushed the work/starflow-migration branch from 60f38ab to 91a85eb Compare February 11, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants