Skip to content

Find V19+ basenames automatically. #471

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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

helly25
Copy link
Contributor

@helly25 helly25 commented Mar 12, 2025

See issue: #473

Instead of implementing a complex way of predicting the basename find them by common prefixes in the database we anyway have.

Rather then forcing maintainers to enter more complex information this keeps us at simply adding the versions as generated from the hasher script.

This should also ultimately put issue #464 and any future occurrence to rest.

There is a test that verifies which version cannot yet be found. That test shows that past 18.1.0 we can find all configured versions. Also the test shows that the main distribution types can all be found. That implies that we can write a function that finds the "latest" version for a given arch/os combo. For many people this will be the easiest way to get started and solves the issue that not always all arch/os versions have been prepared for all llvm versions. However, that functionality will have to wait for another patch - if at all doable and if people want that.

PR #472 is the more complete implementation that also supports version requirements.

@helly25
Copy link
Contributor Author

helly25 commented Apr 17, 2025

@fmeum @jsharpe @rrbutani

Hi, what is the best way to discuss the following:

helly25 added 13 commits April 17, 2025 14:40
… them by common prefixes in the database we anyway have.

Rather then forcing maintainers to enter more complex information this keeps us at simply adding the versions as generated from the hasher script.
Add the missing distributions starting with 18.1.8.
Exclude old style windows distributions if new style ones are present as well.
Add a test for the distribution finder.
The test computes what would be found given all versions a nd a combination of arch and os.
Then the test compares the result to what is configured and shows the difference.
If the difference is empty then the finder is correct.
There are currently only deleted entries with the last deleted enty in version 18.1.0.
In other words starting with llvm version 18.1.1 the finder is correct.
That also means as long as this is true, when someone adds information for a new version then the test does not need to be updated.
@helly25 helly25 force-pushed the feat/find_vs_predict_asename branch from 19b891c to 9229bdb Compare April 17, 2025 14:42
@fmeum
Copy link
Member

fmeum commented Apr 18, 2025

Could you open a discussion and share it in the #cc channel? I don't think I'm a heavy enough user to decide whether this is useful or not.

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.

2 participants