-
Notifications
You must be signed in to change notification settings - Fork 457
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
base: main
Are you sure you want to change the base?
Conversation
.shellcheckrc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was meant to be temporary, was almost accidentally forever
TESTING.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superceded by changes to HACKING.md
manual-tests.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was more or less all outdated information and references to files that were no longer there
runtests.sh
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated - referenced files that were no longer there
tools/environment-setup-local.sh
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file (along with many of the other tools) were either outdated or superceded by the starbase makefile
units.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was outdated, from a time before pytest
43fe672
to
0b7568b
Compare
uses: canonical/starflow/.github/workflows/test-python.yaml@main | ||
with: | ||
# Snapcraft currently only tests on Python 3.12 on Ubuntu 24.04 | ||
fast-test-platforms: '["ubuntu-24.04"]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sergiusens should we be using self-hosted runners for this or GH-hosted ones?
appveyor.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need this file anymore?
c87752f
to
4df5913
Compare
The spread test failures look like inconsequential changes to yaml formatting, so those should be quick fixes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is spooky (in a good way). I ran make setup
and make test-fast
and within a few seconds I was running unit tests.
I have a few nitpicks but overall everything looks great! This will significantly improve developing and lower the barrier to entry for community contributions.
I'm wondering if this PR is a good time to merge starbase's git history into Snapcraft. The advantage of doing this is that subsequent starbase commits can be brought into Snapcraft with small and easy git merge
s.
@@ -35,7 +35,7 @@ append_dir QML2_IMPORT_PATH "$SNAP_DESKTOP_RUNTIME/lib/$ARCH" | |||
# Fix locating the QtWebEngineProcess executable | |||
export QTWEBENGINEPROCESS_PATH="$SNAP_DESKTOP_RUNTIME/usr/lib/qt6/libexec/QtWebEngineProcess" | |||
# And QtWebEngine's path to resources | |||
QTWEBENGINE_RESOURCES_PATH="$SNAP_DESKTOP_RUNTIME/usr/share/qt6/resources" | |||
export QTWEBENGINE_RESOURCES_PATH="$SNAP_DESKTOP_RUNTIME/usr/share/qt6/resources" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did shellcheck pick this up?
It seems safe and the correct thing to do. I just need to add this to the next release notes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, Shellcheck found this and I'm pretty sure this change fixes a bunch of Qt related snap issues
tests/spread/core24-suites/scriptlets/scriptlet-failures/task.yaml
Outdated
Show resolved
Hide resolved
That's the plan! I'm leaving that rebase out of this PR until it's time to merge so that the commit history is easier on reviewers. |
4df5913
to
772dc69
Compare
@medubelko If you'd like, the documentation changes on this PR worth reviewing are as follows:
Points #2 and #4 are probably the most important to get right here. Let me know if you get any questions! |
data_files is deprecated, so changes to common.py compensate for the change needed to remove its use
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
772dc69
to
46706b0
Compare
tox run -m lint
?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
!