Where should a check for label name problems go?

Open
#3,447 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
awk, github-actions, shell

Research direction

Start with utils/checkLabels.sh, then compare the proposed integration points in utils/process_prs.sh, utils/assemble.sh, and the pull-request workflows. First determine with maintainers where validation belongs and whether it should report all existing failures or only files changed by a pull request. Done means the selected entry point detects malformed label lines and duplicate names without disrupting unrelated label processing.

Written by the indexing model from the issue text.

Description

All questions must be filled out or your Issue will be closed for lack of information

What's the bug?
Provide a clear and concise description of what the issue is.

Would a check for label name problems be useful, and if so, where would you like it? Nothing catches them at the moment. I have a check working in utils/checkLabels.sh, but it could go somewhere else.

It looks for two things. The first is a name line the label list doesn't pick up. The list Installomator prints with no arguments (and so Labels.txt) only matches a name on a line of its own, so chatgpt|codex) or an indented displaynote) leaves those names out. The second is a name that's in more than one file. The labels are joined in alphabetical file order and the first match wins, so the later definition never runs.

Have you confirmed this Issue has not been reported already? (Check open Issues and Pull requests)

Yes. #3388 to #3398 fixed ten of these by hand on 9 October, but there's no check to stop new ones. No open issue or PR changes checkLabels.sh, process_prs.sh, assemble.sh or the workflows.

Installomator version
What version are you running? You must include the version number and date. (Ex: Installomator v. 10.7beta, date 2024-08-31)

main at a224fdba (Installomator v. 10.10beta, date 2026-10-17). This is about the repo's tooling and label files rather than the script itself.

Additional context
Add any other context about the problem here.

Since #3388 to #3398 were merged, #3423 added stats as a second name in exelbanstats.sh while stats.sh still has it, so stats.sh won't run (#3422 disables it). displaynote is still indented, and #3352 fixes that.

The check only reads the label files, with no network access, and takes well under a second for all of them. These are the places I can see it going:

  • utils/checkLabels.sh, before the download checks. That's where I have it now, but it only helps whoever runs that script so I don't think it should stay there.
  • utils/process_prs.sh, as another line in the validation comment on label PRs.
  • A workflow on pull requests, like check-lf.yml. It can be written in plain awk, so it doesn't need zsh on the runner. It could report only names in the files the PR changes, so it wouldn't fail on problems already on main. I saw #2870 took checkLabels.sh out of manual-assemble.yml, but that was the whole script with its downloads.
  • utils/assemble.sh, as a warning when it puts the script together, so anyone testing a label sees it.

I'm happy to open a PR for whichever you'd prefer, or more than one.

Installomator log

At the bottom of this report, provide a log, either by running Installomator in Terminal and saving the output, or by downloading the result log from your MDM. Do not enable Debug logging level and please format the log using a code block!

There's no Installomator log for this, since it isn't a label run. This is the check's output on main at a224fdba:

displaynote.sh: "    displaynote)" is not one name on a line of its own
stats: in exelbanstats.sh and stats.sh, so only exelbanstats.sh runs
Dominant language
Shell
Stars
1.5k
Forks
682
Avg merge
4d 20h
Merged PRs (30d)
94

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Installomator/Installomator

All issues in Installomator/Installomator

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.