mirror of
https://github.com/Comfy-Org/Comfy-PR.git
synced 2026-11-04 23:37:33 +00:00
[PR #87] [MERGED] fix: filter out invalid repository fields before $merge operations #87
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/Comfy-PR#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/87
Author: @snomiao
Created: 10/20/2025
Status: ✅ Merged
Merged: 10/20/2025
Merged by: @snomiao
Base:
main← Head:sno-fix-cicd-2025-10-21📝 Commits (1)
62ae92ffix: filter out invalid repository fields before $merge operations📊 Changes
2 files changed (+6 additions, -0 deletions)
View changed files
📝
src/makeUpdateTomlLicenseBranch.ts(+3 -0)📝
src/updateCRNodes.ts(+3 -0)📄 Description
Summary
Fixes a MongoDB aggregation error that was causing the CI/CD pipeline to fail:
Changes
Added validation to filter out documents with invalid
repositoryfields before executing$mergeoperations in:src/updateCRNodes.ts- when updating registry status flagssrc/makeUpdateTomlLicenseBranch.ts- when collecting license tasksThe fix adds a
.match()stage to ensure therepositoryfield:Root Cause
Some documents in the
CNReposcollection have missing, null, or invalidrepositoryfield values. When the aggregation pipeline tried to use these as theonfield in a$mergeoperation, MongoDB rejected them causing the pipeline to fail.Testing
Related Issue
Fixes: https://github.com/Comfy-Org/Comfy-PR/actions/runs/18632064748/job/53118162200
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.