Skip to content

Introduce new frontend 'as-if-jh' jobs

What does this MR do and why?

This MR introduces:

  • a new condition to create jobs when pipeline:run-as-if-jh is present
  • new frontend "as-if-jh" jobs: compile-test-assets as-if-jh, rspec-all frontend_fixture as-if-jh, jest-as-if-jh

More details:

  • For compile-test-assets as-if-jh, I updated gitlab:assets:compile_webpack_if_needed to take JH in account when computing the assets cache key.

Open questions

  • rspec-jh frontend_fixture as-if-jh: there are currently no fixtures (https://gitlab.com/gitlab-org/gitlab/-/jobs/1606002955), do we want to run this job anyway?
  • jest-as-if-jh: there are currently no JH frontend tests, so jest-as-if-jh is basically the same as jest, do we want to run these jobs anyway?

Related to #339248 (closed).

Edited by Rémy Coutable

Merge request reports