Skip to content

Improve the error message for deprecated preferences#41075

Merged
alalazo merged 3 commits intospack:developfrom
alalazo:errors/improve-message-preferences
Nov 16, 2023
Merged

Improve the error message for deprecated preferences#41075
alalazo merged 3 commits intospack:developfrom
alalazo:errors/improve-message-preferences

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Nov 15, 2023

This PR improves the warning for deprecated preferences, and adds a configuration audit to get files:lines details of the issues. The result is the following:

Screenshot from 2023-11-16 17-59-17

The audit is to avoid more complex analysis every time the config file is loaded.

@spackbot-app spackbot-app bot added the core PR affects Spack core functionality label Nov 15, 2023
@alalazo alalazo added this to the v0.21.1 milestone Nov 15, 2023
@haampie
Copy link
Copy Markdown
Member

haampie commented Nov 15, 2023

Maybe it should say that these type of preferences do not affect concretization because they are always overridden by other criteria.

Otherwise it seems that spack 0.22.dev actively ignores them and is actually breaking behavior

Copy link
Copy Markdown
Contributor

@marcmengel marcmengel left a comment

Choose a reason for hiding this comment

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

It's a definite improvement. I'll take it.
(I still think line/file info on the warning would be a Good Thing, but that is probably buried in the yaml parser somewhere... )

Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

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

Just a nit and question.

@alalazo alalazo mentioned this pull request Nov 16, 2023
36 tasks
The audit shows also the files:lines where the error occurs.

Also, address review comments.
@alalazo alalazo force-pushed the errors/improve-message-preferences branch from edf65b9 to 9ce350e Compare November 16, 2023 17:12
Co-authored-by: Tamara Dahlgren <[email protected]>
@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Nov 16, 2023

@marcmengel I pushed an improvement. This is what the audit shows on the config you gave me yesterday:
Screenshot from 2023-11-16 18-20-54

Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@alalazo alalazo merged commit 0cde944 into spack:develop Nov 16, 2023
@alalazo alalazo deleted the errors/improve-message-preferences branch November 16, 2023 22:30
alalazo added a commit that referenced this pull request Nov 17, 2023
Improves the warning for deprecated preferences, and adds a configuration
audit to get files:lines details of the issues.

Co-authored-by: Tamara Dahlgren <[email protected]>
gabrielctn pushed a commit to gabrielctn/spack that referenced this pull request Nov 24, 2023
Improves the warning for deprecated preferences, and adds a configuration
audit to get files:lines details of the issues.

Co-authored-by: Tamara Dahlgren <[email protected]>
mtaillefumier pushed a commit to mtaillefumier/spack that referenced this pull request Dec 14, 2023
Improves the warning for deprecated preferences, and adds a configuration
audit to get files:lines details of the issues.

Co-authored-by: Tamara Dahlgren <[email protected]>
alalazo added a commit that referenced this pull request Jan 10, 2024
Improves the warning for deprecated preferences, and adds a configuration
audit to get files:lines details of the issues.

Co-authored-by: Tamara Dahlgren <[email protected]>
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 31, 2024
Improves the warning for deprecated preferences, and adds a configuration
audit to get files:lines details of the issues.

Co-authored-by: Tamara Dahlgren <[email protected]>
vjranagit pushed a commit to vjranagit/spack that referenced this pull request Jan 18, 2026
Improves the warning for deprecated preferences, and adds a configuration
audit to get files:lines details of the issues.

Co-authored-by: Tamara Dahlgren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands core PR affects Spack core functionality error-messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants