Skip to content

Perform duplicate ID check on extracted Codelinks data #91

Description

@m-anderson1313

Feature Request
Add functionality that can identify if codelinks data contains duplicate IDs.

Use Case
With multiple users contributing to files, there is a risk that the same IMPL_xxx code marker is used in multiple places.
Currently this is not identified in the "analyse" process, resulting in traceability issues.

Current Workaround
I've implemented a post-processing py script to check for duplication, and if found, clear report to user via terminal log.
Example

Codelinks Duplicate Validation Report
Total markers extracted: 31
Duplicate IDs found: 5

IMPL_002 (2 occurrences):
[1] go_services: /workspace/components/services/hil-site-agent/common/config.go:155
Title: Agent Configuration
Type: impl
[2] go_services: /workspace/components/services/test-execution-service/internal/platform/config/config.go:2
Title: Service Configuration
Type: impl

IMPL_004 (2 occurrences):
[1] go_services: /workspace/components/services/hil-site-agent/common/executor.go:13
Title: Executor Plugin Interface
Type: impl
[2] go_services: /workspace/components/services/test-execution-service/internal/execution/types.go:8
Title: Execution Job State Machine
Type: impl

IMPL_005 (3 occurrences):
[1] go_services: /workspace/components/services/hil-site-agent/commands/register.go:20
Title: HIL Runner Registration
Type: impl
[2] go_services: /workspace/components/services/hil-site-agent/commands/register.go:21
Title: HIL Agent Registration
Type: impl
[3] go_services: /workspace/components/services/test-execution-service/internal/execution/types.go:27
Title: Job Queue Descriptor
Type: impl

IMPL_006 (2 occurrences):
[1] go_services: /workspace/components/services/hil-site-agent/commands/run.go:19
Title: Agent Poll Loop
Type: impl
[2] go_services: /workspace/components/services/test-execution-service/internal/execution/types.go:58
Title: Job Enqueue Contract
Type: impl

IMPL_019 (2 occurrences):
[1] go_services: /workspace/components/services/hil-site-agent/commands/verify.go:17
Title: Agent Verify Command
Type: impl
[2] go_services: /workspace/components/services/hil-site-agent/common/acquire.go:2
Title: Test Resource Acquisition
Type: impl


ERROR: Duplicate need IDs must be resolved before build can proceed.
Each need ID must be globally unique across all code markers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions