Problem/Motivation

Update all stylelint-related JavaScript dependencies to their latest releases.

Priority Critical, since it parent was deemed Critical

Steps to reproduce

$ yarn upgrade-interactive

Proposed resolution

? Pick the packages you want to upgrade.         Current    Range     Latest
 stylelint-config-standard ------------------- ◯ ^34.0.0 ------          ◉ ^36.0.1
 stylelint-prettier -------------------------- ◯ ^4.1.0 -------          ◉ ^5.0.2
 stylelint ----------------------------------- ◯ ^15.11.0 -----          ◉ ^16.10.0

Remaining tasks

Backport this to the gazillion current branches, TBD by the core committers.

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3488005

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

spokje created an issue. See original summary.

spokje’s picture

Issue summary: View changes
spokje’s picture

Issue summary: View changes
spokje’s picture

Issue summary: View changes
spokje’s picture

Issue summary: View changes

spokje’s picture

Title: Update styleint* to latest releases » [PP-1] Update styleint* to latest releases
Status: Active » Postponed
Related issues: +#3467309: Replace abandoned, not working with latest stylelint, leon0399/stylelint-formatter-gitlab with gitlab-formatters/stylelint-formatter-gitlab

Postponed on the landing of #3467309: Replace abandoned, not working with latest stylelint, leon0399/stylelint-formatter-gitlab with gitlab-formatters/stylelint-formatter-gitlab since leon0399/stylelint-formatter-gitlab does not work with stylelint versions above 15.x.

spokje’s picture

Title: [PP-1] Update styleint* to latest releases » [PP-1] Update stylelint* to latest releases
longwave’s picture

Title: [PP-1] Update stylelint* to latest releases » Update stylelint* to latest releases
Status: Postponed » Active

The formatter change has landed so finally we can action this.

spokje changed the visibility of the branch 11.x to hidden.

spokje changed the visibility of the branch 3488005-10.5.x-bump-stylelint to hidden.

spokje’s picture

Status: Active » Needs review
longwave’s picture

After applying this MR, running yarn lint:css locally seems to hang forever now, not sure why.

spokje’s picture

@longwave Can't reproduce that locally.

Also https://git.drupalcode.org/issue/drupal-3488005/-/jobs/3485149#L272 indicates that the same command, but with added frills like caching and custom formatters does, at the very returns and doesn't get stuck.

longwave’s picture

Yeah it's probably something specific to my local environment, will have to figure out what. I tried deleting node_modules and reinstalling but that made no difference.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Not super fast and since there is no progress indicator I thought maybe it got hung up on my local ddev too but it did complete after about a minute.

catch’s picture

On my local this is fine.

time yarn lint:css

real	0m13.286s
user	0m18.873s
sys	0m2.998s

Would be good to get another try from @longwave since this runs on commit, so we don't want a situation where we commit this, then @longwave can't commit any patches until the problem is fixed.

  • longwave committed 05391a62 on 11.1.x
    Issue #3488005 by spokje: Update stylelint* to latest releases
    
    (cherry...

  • longwave committed 7f47553b on 11.x
    Issue #3488005 by spokje: Update stylelint* to latest releases
    
longwave’s picture

Version: 11.x-dev » 10.5.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

It must be something to do with my core development playground directory, because it only hangs there.

I have a separate clean checkout for committing, and there I get a similar result to @catch:

$ time yarn lint:css

real	0m12.274s
user	0m18.059s
sys	0m2.209s

Committed and pushed 7f47553bf9c to 11.x and 05391a62745 to 11.1.x. Thanks!

Marking PTBP to pull this back to 10.5.x/10.4.x.

spokje changed the visibility of the branch 3488005-10.5.x-bump-stylelint to active.

spokje changed the visibility of the branch 3488005-11.x-bump-stylelint to hidden.

spokje’s picture

Status: Patch (to be ported) » Needs work

What have we learned:

1. Updating an MR on non-11.x in a branch made from 11.x many moons ago is a nightmare
2. Not-so-random-failures in 10.5.x tests that don't seem related to the changes in this MR. Dropped a few lines in Slack about this.

spokje’s picture

Status: Needs work » Needs review

Right some rollbacks later, and we have a green MR.

nod_ made their first commit to this issue’s fork.

  • longwave committed 6995c903 on 10.4.x
    Issue #3488005 by spokje, nod_, longwave: Update stylelint* to latest...
longwave’s picture

Version: 10.5.x-dev » 10.4.x-dev
Status: Needs review » Fixed

Landing this one from NR as 10.4.0 is this week and it seems the most practical thing to do to keep this in sync with 11.1.0.

Committed 6b00903 and pushed to 10.5.x. Thanks!

Committed 6995c90 and pushed to 10.4.x. Thanks!

  • longwave committed 6b00903d on 10.5.x
    Issue #3488005 by spokje, nod_, longwave: Update stylelint* to latest...

Status: Fixed » Closed (fixed)

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