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

feat(lint): migrate lint command #4732

Merged
merged 3 commits into from
Apr 18, 2024
Merged

feat(lint): migrate lint command #4732

merged 3 commits into from
Apr 18, 2024

Conversation

syu-w
Copy link
Contributor

@syu-w syu-w commented Apr 12, 2024

Same logic from core22.

2 workarounds, install edge core24 if stable failed and check only part of the linter warning due to glibc undefined symbol in bash.

@syu-w
Copy link
Contributor Author

syu-w commented Apr 12, 2024

The spread linter test failed due to error: snap "core24" is not available on stable

@syu-w syu-w marked this pull request as ready for review April 12, 2024 21:37
Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

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

Code looks great but I'm not sure what we should do with error: snap "core24" is not available on stable

It's probably not worth our time to add a workaround since core24 will be on stable later this month.

What do you think about an xfail style check in the core24 linter spread test? The spread test would pass if error: snap "core24" is not available on stable is in the logs.

snapcraft/application.py Outdated Show resolved Hide resolved
snapcraft/commands/lint.py Outdated Show resolved Hide resolved
@syu-w syu-w requested review from lengau and mr-cal April 17, 2024 15:54
@syu-w
Copy link
Contributor Author

syu-w commented Apr 17, 2024

2 workarounds, install edge core24 if stable failed and check only part of the linter warning due to glibc undefined symbol in bash.

Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

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

Looks great and the commits are nicely organized.

tests/spread/core24/linters-file/task.yaml Show resolved Hide resolved
@mr-cal
Copy link
Collaborator

mr-cal commented Apr 18, 2024

I'll re-address the core24 linter spread test after core24 is stable.

@mr-cal mr-cal merged commit c9ab9d1 into main Apr 18, 2024
10 checks passed
@mr-cal mr-cal deleted the CRAFT-2472-lint-command branch April 18, 2024 17:31
@mr-cal mr-cal mentioned this pull request Jun 13, 2024
4 tasks
sergiusens added a commit that referenced this pull request Jun 14, 2024
This was a clean merge except for a minor conflict between #4841 and
#4732 in `snapcraft.application.Application._get_dispatcher()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants