Skip to content

REQ 030

sergio velderrain edited this page Nov 9, 2026 · 1 revision

REQ-030: add-project.yml upserts exactly one entry per project name, even with pre-existing duplicates

Requirement

add-project.yml shall upsert exactly one entry per project name in PROJECTS_OVERRIDE, replacing an existing entry with the same name rather than appending a duplicate, even if more than one pre-existing entry already shares that name.

Rationale

Prevents a re-registration of an already-known project from accumulating duplicate, conflicting entries in the shared repository variable other projects also depend on.

Fit Criterion

A registration attempt for a project name that already has one or more entries in PROJECTS_OVERRIDE results in PROJECTS_OVERRIDE containing exactly one entry for that name afterward, with its fields replaced by the new attempt's values.

Verification

Code review of add-project.yml's upsert step: every existing entry matching name is filtered out before the fresh entry is appended, so the result always has exactly one entry for that name regardless of how many pre-existing duplicates there were.

Source

Software-Requirements-Specification

Priority

High

TestID

TEST-030

TestArtifact

Code review of the filter-all-matches-then-append upsert logic

CodeRef

.github/workflows/add-project.yml upsert step

Status

Verified (manual)

Clone this wiki locally