Skip to content

Validate that trigger configurations must include a file pattern.#7702

Open
labkey-klum wants to merge 6 commits into
developfrom
fb_filewatcher_improvements
Open

Validate that trigger configurations must include a file pattern.#7702
labkey-klum wants to merge 6 commits into
developfrom
fb_filewatcher_improvements

Conversation

@labkey-klum
Copy link
Copy Markdown
Contributor

@labkey-klum labkey-klum commented May 27, 2026

Rationale

related issue: https://github.com/LabKey/internal-issues/issues/1093

The current pipeline trigger UI will allow the creation of a trigger with a blank file regex. This is bad because it results in a configuration that matches anything in the watched location(s). This includes artifacts generated by the pipeline tasks such as .log files and pipeline protocol information stored in the .labkey system directory. When this happens the configuration will continue to trigger itself endlessly and fill up the quiet period queue with jobs for each newly created file.

The only way to stop this is to disable or delete the trigger, but then the in-memory queue will continue to add new pipeline jobs until it is eventually drained (unless the server is restarted prior to that).

Related Pull Requests

Changes

Mark the file pattern field as required for pipeline trigger configurations. Also add a server side check.

@labkey-klum labkey-klum requested a review from cnathe May 28, 2026 19:43
Copy link
Copy Markdown
Contributor

@cnathe cnathe left a comment

Choose a reason for hiding this comment

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

Code changes look note.

Note: you may have already seen this on TC but I ran the FileWatcherAssayIntegrationTest.testAssayProviderProtocol() test case locally and it failed because it doesn't have the now required "filePattern" when calling createFileWatcherTrigger() at line 71.

@cnathe
Copy link
Copy Markdown
Contributor

cnathe commented Jun 2, 2026

@labkey-klum @labkey-mohara reminder that when this is merged we will also want to be sure to update the "File Pattern" text in this doc page to remove the part about "if no pattern is provided, the default pattern is used":
https://www.labkey.org/Documentation/wiki-page.view?name=fileWatchCreate#filepattern

@labkey-klum
Copy link
Copy Markdown
Contributor Author

Code changes look note.

Note: you may have already seen this on TC but I ran the FileWatcherAssayIntegrationTest.testAssayProviderProtocol() test case locally and it failed because it doesn't have the now required "filePattern" when calling createFileWatcherTrigger() at line 71.

thanks Cory

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