Backport shm size fix into versions of gitlab-qa used in failing stable branch backports

Many tests in e2e-package-and-test are failing with various errors, including error 500.

This was reported in gitlab-org/quality/engineering-productivity/master-broken-incidents#7229 (closed) and the fix was identified as:

...we updated gitlab-qa to run the gitlab container with a shm_size of 256mb !1336 (merged) (note: this is the recommended shm_size)

However:

This problem is now occurring in backports also (which do not have the gitlab-qa change)...

Example pipeline with failing jobs: https://gitlab.com/gitlab-org/gitlab/-/pipelines/1367057981

We should see if we can backport the fix so that stable branch pipelines can pass.

@acunskis suggested:

It will be very tricky because gitlab-qa can contain incompatible changes with older rails code. It's quite possible it would require backport releases of gitlab-qa itself to make it work on oldest backports.

I think it might be easier to revert the runners cpu cores increase.

Or to not have to create a full backport release, in gitlab-qa repo, we can branch off from last compatible version for specific backport version, add this fix there and add branch in the gemfile rather than release.

See gitlab-org/quality/engineering-productivity/master-broken-incidents#7229 (comment 2000852667) for more suggestions

There could be more than one gitlab-qa version for each stable branch, but we should only need to fix the latest. See gitlab!158257 (closed) for a list of gitlab-qa versions for 16-7-stable-ee and prior.

Stable branch gitlab-qa backport MR gitlab backport MR Status
17-2-stable-ee N/A N/A N/A
17-1-stable-ee !1341 (merged) (branch is deleted?) gitlab!161668 (merged) (this MR is using 17-0 branch of gitlab-qa)
17-0-stable-ee !1346 (merged) gitlab!161553 (merged)
16-11-stable-ee !1348 (merged) gitlab!161667 (merged)
16-10-stable-ee !1347 (merged) gitlab!161696 (merged)
16-9-stable-ee !1345 (merged) gitlab!161697 (merged)
16-8-stable-ee !1344 (merged) gitlab!161698 (merged)
16-7-stable-ee !1343 (merged) gitlab!161699 (merged)
16-6-stable-ee !1355 (merged) gitlab!161700 (merged)
16-5-stable-ee !1354 (merged) gitlab!161701 (merged)
16-4-stable-ee !1353 (merged) gitlab!161702 (merged)
16-3-stable-ee !1352 (merged) gitlab!161703 (merged)
16-2-stable-ee !1351 (merged) gitlab!161704 (merged)
16-1-stable-ee !1350 (merged) gitlab!161705 (merged)
16-0-stable-ee !1349 (merged) gitlab!161706 (merged)
Edited by Jay McCure