Skip to content

Only run websocket server tests pipeline when websocket server code is modified

What does this MR do?

Makes GitLab CI only run websocket tests when the websocket directory is modified. If that directory is not modified, the tests don't need to run, as they only test that directory.

Not running the tests saves time and energy, and therefore saves the world from blackouts and makes us more independent of Putin. ;)

How confident are you it won't break things if deployed?

If this breaks things when deployed, I'll bite my butt.

How to test

Take a look at which pipelines are executed with this MR. The websocket tests isn't one of them, so it seems to stop websocket tests execution if the websocket directory is not modified.

This MR: !2517 (closed) contains these changes plus additionally some random changes in the websocket directory. It runs the websocket tests pipeline, so it doesn't stop websocket tests if there are actually changes to the websocket.

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • set a "for:" label to indicate who will be affected by this change
Edited by Jano

Merge request reports