Repository navigation
fix(scanner): skip hidden files and __MACOSX folders in every library #5931
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
base: main
Are you sure you want to change the base?
Changes from all commits
88dbc88
49a7bf0
39695bd
4004d39
a93557e
a686a95
b2691b6
fe37fdf
0e7d1e3
cdba182
60bb029
1b093c4
ce46fe6
21f40ad
bc306b3
fe125d9
cb478ed
46d1a5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| platform=web | ||
| version=2026.12.05-95a7440 | ||
| sha256=23d4c6836d55d337939d391d9e07fd667e7a7294117f95d2cfd7fce2df11ad9d | ||
| version=local-94d58a430627 | ||
| sha256=- | ||
|
Comment on lines
+2
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Local translation pin prevents reinstalling the pinned catalog A fresh checkout cannot reinstall the pinned translations because Prompt for LLMTalk to Kody by mentioning @kody Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Known and listed under Risks: the pin points at a local build of Silo-Server/silo-translations#234 while that PR is open. Once its release is published, this branch re-syncs with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Understood. The local pin is a known temporary state, and the PR already documents the plan to replace it with the published release and checksum before merge. This is a pre-merge follow-up, not an additional finding. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| package main | ||
|
|
||
| import ( | ||
| "errors" | ||
| "net/http" | ||
| "testing" | ||
|
|
||
| "github.com/Silo-Server/silo-server/internal/api/handlers" | ||
| "github.com/Silo-Server/silo-server/internal/audiobooks/abs" | ||
| "github.com/Silo-Server/silo-server/internal/scantrigger" | ||
| ) | ||
|
|
||
| func TestABSAdminErrorMarksIgnoredScanPaths(t *testing.T) { | ||
| refusal := func(reason scantrigger.Reason) error { | ||
| return (&handlers.APIError{Status: http.StatusBadRequest, Code: "bad_request", Message: "refused"}). | ||
| WithCause(&scantrigger.RequestError{Status: http.StatusBadRequest, Reason: reason}) | ||
| } | ||
| var ae *abs.AdminError | ||
| if !errors.As(absAdminError(refusal(scantrigger.ReasonPathIgnored)), &ae) || !ae.Ignored || ae.Status != http.StatusBadRequest { | ||
| t.Fatalf("path_ignored: got %+v, want an ignored 400", ae) | ||
| } | ||
| if !errors.As(absAdminError(refusal(scantrigger.ReasonUnsupportedExtension)), &ae) || ae.Ignored { | ||
| t.Fatalf("unsupported_extension: got %+v, want a refusal that is not ignored", ae) | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3655,7 +3655,7 @@ change logging have an empty list. Each change has `source_path` (as reported), | |
| same scope that was already queued or running), `suppressed` (debounced), | ||
| `unresolved` (did not map to a scannable library location), `ignored` (empty path, | ||
| a file change that resolved to a whole library, or a file the library's ignore files | ||
| exclude) or `error` (resolve or enqueue failure). `reason` is a machine code for | ||
| exclude or that is hidden) or `error` (resolve or enqueue failure). `reason` is a machine code for | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Qualify the hidden-file outcome. A legacy Qualify the ignore-file outcome. A movie file below the library root can match
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed that the sentence overreaches: legacy
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Rhainland Thanks. I’m not marking the finding as addressed while the change is pending. Learnings added
You are interacting with an AI system. |
||
| unresolved, ignored and error outcomes: resolver reasons such as `no_library_match`, | ||
| `library_root_offline`, `unsupported_extension` or `path_ignored`, plus | ||
| `resolves_to_library`, `resolve_failed` and `enqueue_failed`; clients treat unknown codes and unknown outcomes as opaque and | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pin the published catalog release before merging.
A bare
scripts/sync-translationsnow rejects this local pin. Merge the catalog change, then sync its published release.As per coding guidelines, “Before the client pull request merges, re-sync with
--version <release>” so the pin names a published release.Source: Coding guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Planned: this branch re-syncs with
--version <release>once Silo-Server/silo-translations#234 is released, before merge. See Risks in the PR body.