Skip to content

Flaky test: security_audit::filesystem_permission_denials_emit_security_audit_events #146

Description

@NathanFlurry

crates/sidecar/tests/security_audit.rs:182 (assert_eq!(event.vm_id, denied_vm_id)) flakes intermittently in CIassertion left == right failed. It passes locally (6/6, repeatedly) and passed in PR #139's re-run, but failed on the #139 squash-commit main run and an earlier PR run. Likely a timing/ordering race in structured-event capture (find_event returns the first security.permission.denied; under load it may observe an event with an unexpected vm_id).

Impact: intermittently reds main and forces full ~17-min CI re-runs.

Fix ideas: make find_event match the specific expected event (by path/vm_id) rather than the first of that type; or ensure the denial event is fully flushed before structured_events reads. Consider cargo-nextest with a serial test-group for this suite.

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