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 38 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 91.30435% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.69%. Comparing base (654871d) to head (b9d80c7).
Report is 616 commits behind head on main.

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

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

HEAD has 1 upload less than BASE
Flag BASE (654871d) HEAD (b9d80c7)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5092      +/-   ##
==========================================
- Coverage   94.88%   89.69%   -5.19%     
==========================================
  Files         658      341     -317     
  Lines       55189    22626   -32563     
==========================================
- Hits        52364    20295   -32069     
+ Misses       2825     2331     -494     

☔ 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 :-)

Copy link
Contributor

@soumyaDghosh soumyaDghosh left a comment

Choose a reason for hiding this comment

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

We can unify things even more, which will later help in @lengau's idea on a common DesktopExtension class.

snapcraft/extensions/kde_neon_6.py Show resolved Hide resolved
@soumyaDghosh
Copy link
Contributor

I am coming up with the change so that we can pass the platform plug as a parameter in the Makefile

tests/unit/extensions/test_kde_neon_6.py Show resolved Hide resolved
snapcraft/extensions/kde_neon_6.py Show resolved Hide resolved
tests/unit/extensions/test_kde_neon_6.py Show resolved Hide resolved
tests/unit/extensions/test_kde_neon_6.py Show resolved Hide resolved
snapcraft/extensions/kde_neon_6.py Outdated Show resolved Hide resolved
@ScarlettGatelyMoore
Copy link
Contributor Author

Please can we not do major revamps before this pr. This supposed to be about core24.

@soumyaDghosh
Copy link
Contributor

Please can we not do major revamps before this pr. This supposed to be about core24.

I do understand that, but this is not a major change. Please commit the suggestions and remove the command-chain-kde folder. That's all needed. Rest is completely fine.

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