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

Sgmoore/add core24 support #5092

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

Conversation

ScarlettGatelyMoore
Copy link
Contributor

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

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 95.12195% with 4 lines in your changes missing coverage. Please review.

Project coverage is 89.70%. Comparing base (654871d) to head (8b81168).
Report is 635 commits behind head on main.

Files with missing lines Patch % Lines
snapcraft/extensions/kde_neon.py 96.36% 2 Missing ⚠️
snapcraft/extensions/kde_neon_6.py 92.59% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (654871d) and HEAD (8b81168). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (654871d) HEAD (8b81168)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5092      +/-   ##
==========================================
- Coverage   94.88%   89.70%   -5.18%     
==========================================
  Files         658      341     -317     
  Lines       55189    22638   -32551     
==========================================
- Hits        52364    20308   -32056     
+ Misses       2825     2330     -495     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ScarlettGatelyMoore
Copy link
Contributor Author

@mr-cal @sergiusens Please help with this security scan. I don't know how to fix it. Thanks

@mr-cal
Copy link
Collaborator

mr-cal commented Oct 7, 2024

@mr-cal @sergiusens Please help with this security scan. I don't know how to fix it. Thanks

Hi @ScarlettGatelyMoore, you can ignore the security scan failures for now, it is a problem between github and trivy that @lengau has been investigating.

This is the error I'm referring to:

2024-10-07T13:30:16Z	FATAL	Fatal error	init error: DB error: failed to download vulnerability DB: database download error: OCI repository error: 1 error occurred:
	* GET https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2: TOOMANYREQUESTS: retry-after: 426.143µs, allowed: 44000/minute

@lengau
Copy link
Contributor

lengau commented Oct 8, 2024

@mr-cal @sergiusens I believe the security scan is fixed with this, but I haven't properly tested it yet so I don't have a PR. ITMT we can just re-run them.

Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

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

This LGTM so far, but I'd like to snap an app with it before I give explicit approval just in case I come across any quirks we might want to document.

"default-provider": "mesa-2404",
},
}
gpu_layouts = {
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't really about this PR, but comparing this to the gnome extension we've got a lot of overlap. I wonder whether it would be worth creating an abstract DesktopExtension where this sort of general stuff could live, so we can share more common work?

@mr-cal @sergiusens @kenvandine what do you think?

Things that overlap and could just be extended for each desktop include

  • plugs
  • GPU plugs
  • GPU layouts
  • Some base themes

I'm happy to do the work for that, but I only want to do it if I'm actually making things better :-)

@ScarlettGatelyMoore
Copy link
Contributor Author

@lengau @mr-cal @sergiusens I don't understand why there are changes to the extension suddenly. I did not make them and they don't make any sense.

@ScarlettGatelyMoore
Copy link
Contributor Author

@lengau @mr-cal @sergiusens I don't understand why there are changes to the extension suddenly. I did not make them and they don't make any sense.

Nevermind... I see

@ScarlettGatelyMoore
Copy link
Contributor Author

I am struggling with the code coverage. Anything other than core24 or core22 fails with invalid key. i tried to cheat and see what gnome did, they didn't cover it either.

@mr-cal
Copy link
Collaborator

mr-cal commented Oct 21, 2024

@ScarlettGatelyMoore - the only thing I see is that there is not a test for these lines:

            case _:
                raise AssertionError(f"Unsupported base: {base}")

Now, why the code coverage says it dropped 5.17%? Don't worry about that - the tool seems to get confused very easily and everything else looks well tested.

@ScarlettGatelyMoore
Copy link
Contributor Author

@mr-cal @lengau @sergiusens can you of you retrigger the spread tests. Tons failed and the only thing I can find in logs is kill timeout reached :(
Thanks

@ScarlettGatelyMoore
Copy link
Contributor Author

@mr-cal @lengau @sergiusens please retrigger tests. I had to fix something in the command chain which is an external repo and bundled in the content snap.
Thanks

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.

4 participants