Skip to content

Stabilize golang integration tests

Lucas Charles requested to merge integration-test-follow-ups into main

What does this MR do?

  • Centralize golang project fixtures - with-tracking should only differ in expectations and use shared codebase
  • Fix flaky custom-ruleset-synthesis test
Fix flaky custom-ruleset-synthesis test

The upstream project we utilize in our synthesis test uses multiple rule with identical IDs. This gets parsed by semgrep and the last write wins. It's still unclear to me how the order remains inconsistent but there's likely some race-condition occurring internally when rules are processed in parallel:

The simplest fix is to drop one of the two rules, so I did so in a fork of the original project. I'll be opening a separate PR to remove the duplication but for now my fork should be stable.

What are the relevant issue numbers?

gitlab-org/gitlab#336821 (closed)

Does this MR meet the acceptance criteria?

Edited by Zach Rice

Merge request reports