Skip to content

test: flaky TestCreate/creating_additional_advisory_for_package #975

@hectorj2f

Description

@hectorj2f

Description

It seems there is a flaky test on the test suite of the advisories functions. I ran the test locally and it passed but I got an error on the CI here: https://github.com/wolfi-dev/wolfictl/actions/runs/9596890702/job/26464754752?pr=974#step:8:50.

TestCreate/creating_additional_advisory_for_package
    create_test.go:221: Update() mismatch (-want +got):
          v2.Document{
          	SchemaVersion: "2.0.2",
          	Package:       {Name: "brotli"},
          	Advisories: v2.Advisories{
        - 		{
        - 			ID:      "CGA-xoxo-xoxo-xoxo2",
        - 			Aliases: []string{"CVE-2023-1234"},
        - 			Events:  []v2.Event{{Timestamp: s"2022-09-26T00:00:00Z", Type: "detection", Data: v2.Detection{...}}},
        - 		},
          		{Aliases: {"CVE-2020-8927"}, Events: {{Timestamp: s"2022-09-15T02:40:18Z", Type: "fixed", Data: v2.Fixed{FixedVersion: "1.0.9-r0"}}}, ...},
        + 		{
        + 			ID:      "CGA-xr[44](https://github.com/wolfi-dev/wolfictl/actions/runs/9596890702/job/26464754752?pr=974#step:8:45)-c573-6rmw",
        + 			Aliases: []string{"CVE-2023-1234"},
        + 			Events:  []v2.Event{{Timestamp: s"2022-09-26T00:00:00Z", Type: "detection", Data: v2.Detection{...}}},
        + 		},
          	},
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageapplied to all new customer/user issues. Removed after triage occurs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions