Skip to content

add eessi search subcommand to search for software across all EESSI versions - #27

Open
bedroge wants to merge 36 commits into
EESSI:mainfrom
bedroge:eessi_find
Open

bedroge wants to merge 36 commits into
EESSI:mainfrom
bedroge:eessi_find

Conversation

@bedroge

@bedroge bedroge commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

This adds an eessi search command that allows you to search for software across all EESSI versions. In case of no exact (case-insensitive) match, it also does substring matching and fuzzy matching to provide suggestions (Did you mean...). The EESSI API data file is used as source, and it's (re)downloaded every 6 hours. A manually provided file can also be used.

AI-assisted, but I made most of the design decisions and reviewed all the code.

image

@boegel

boegel commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Maybe nitpicking, but eessi search is perhaps better?

Eventually, we could enhance this to also find modules based on command name (like gmx for GROMACS), but then we need to ship a search index in EESSI itself (not sure if creating a local search index on the fly the first time eessi search would be sensible, it may be too slow)

@boegel

boegel commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

@bedroge We should definitely enhance CI to also cover this new subcommand...

@bedroge

bedroge commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Maybe nitpicking, but eessi search is perhaps better?

I actually asked the almost same question (wouldn't search or avail (or spider) be a better name?) to my AI friend yesterday after he had implemented this. This was the answer:

Good question to settle now — the command isn't in any released version yet (0.1.1 is the last release), so renaming is nearly free (file name, function name, one import in main.py, doc references). My take:

Name Connotation Fit with current behavior
find pinpoint something by name Exact match + "did you mean?" suggestions — that is a find, not a broad search. Shortest to type.
search broader query, pattern/partial matching Slightly over-promises for exact-match behavior; becomes the right name if partial names become first-class (e.g. eessi search grom* → overviews for all matches).
avail module avail: what's available in the current environment, optional pattern, listing-oriented Different mental model: module avail answers "what can I load right now?" (one EESSI version, current module path). Ours answers "which EESSI versions contain X, catalog-wide?" — a metadata lookup, independent of your environment. Also, module avail with no args lists a tree; eessi avail with no args has no sensible answer (1058 names).
spider module spider / eb --search: dependency web Wrong connotation — we don't show dependencies at all.

My recommendation: keep find. The core operation is "look up this software by name and show me where it lives" — exactly the semantics of find, and the did-you-mean suggestions reinforce that "I'm looking for a specific thing" framing. avail is the strongest runner-up purely on audience familiarity (EESSI users all know module avail), but the current-environment vs. catalog-wide mismatch would confuse exactly the people who bring that association.

The one scenario that would change my mind: if you plan to make substring/pattern matching a first-class feature of this command (and maybe support no-arg listing of all software), then search is the better name, and today's exact-match behavior feels like an odd search. In that world, find could later be added as the strict-lookup variant.

With what you're proposing, and also to match substrings, I guess we maybe do want to use search instead?

@boegel

boegel commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Maybe nitpicking, but eessi search is perhaps better?

I actually asked the almost same question (wouldn't search or avail (or spider) be a better name?) to my AI friend yesterday after he had implemented this. This was the answer:
...

With what you're proposing, and also to match substrings, I guess we maybe do want to use search instead?

Yes, I think that's the end goal for eessi search: fuzzy matching, beyond just module names.

We definitely don't want both find and search, and avail and spider are too close to Lmod terminology imho

@bedroge bedroge changed the title add eessi find subcommand to find software across all EESSI versions add eessi search subcommand to search for software across all EESSI versions Dec 3, 2026
Comment thread src/eessi/cli/search.py Resolved
@bedroge

bedroge commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@bedroge We should definitely enhance CI to also cover this new subcommand...

Done in c44e017.

@bedroge

bedroge commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Okay, I think this is ready for a real review now. We can probably add more features, but I don't want to make this even bigger, and I think it works really well for a first implementation.

@bedroge
bedroge marked this pull request as ready for review December 4, 2026 09:47
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.

3 participants