Problem/Motivation

Currently linting steps are part of child pipelines. This has a few issues:

It runs linting to much if we start running against multiple configurations.
We cannot show results of codequality in the MR code #3387339: Integrate codequality reports into Gitlab

SLack thread: https://drupal.slack.com/archives/CGKLP028K/p1694703448024729

Steps to reproduce

Proposed resolution

  1. Move linting steps to the main job.

Remaining tasks

  1. Move linting steps to the main job.
  2. After merge finish #3387339: Integrate codequality reports into Gitlab

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3387503

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bbrala created an issue. See original summary.

bbrala’s picture

catch’s picture

Title: [PP-1] Move Gitlab linting steps to main job » Move Gitlab linting steps to main job
bbrala’s picture

Issue summary: View changes

Remove phpstan step since @longwave and @catch decided we can wait on that until we see real reason to.

bbrala’s picture

Assigned: Unassigned » bbrala

bbrala’s picture

Status: Active » Needs review

I've moved the lint stept to the parent pipeline. Things should be linted before we start child jobs.

There are no lint jobs in the child jobs anymore. But we do have an extra composer/yarn run now in the parent job. But i think that is a good tradeoff.

Not sure how to completely test this. Will add a new branch with errors from #3387339: Integrate codequality reports into Gitlab to proove failure.

bbrala’s picture

All green.

catch’s picture

Status: Needs review » Reviewed & tested by the community

Looks great when it's not messed up by me...

Will commit soon if no further feedback by then to unblock the next steps.

  • catch committed 1bdbe868 on 11.x
    Issue #3387503 by bbrala: Move Gitlab linting steps to main job
    

  • catch committed 4bb3e4fd on 10.1.x
    Issue #3387503 by bbrala: Move Gitlab linting steps to main job
    
    (cherry...
catch’s picture

Version: 11.x-dev » 10.1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x and cherry-picked to 10.1.x, thanks!

catch’s picture

Wondering what it would look like if we moved the default environment test runs into the main job too, and only used child jobs for non-default environments. It would block non-default environments on a default-environment pass, and mean the common case of an MR pipeline running against the default wouldn't need the double build step. However no idea how to structure this cleanly in the YAML, and it would have other issues like having to wait for MySQL if you're actually testing a postgres bug.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.