Problem/Motivation

On patches with changes to nightwatch tests, custom commands don't pass due to the following error:
core/scripts/dev/commit-code-check.sh: line 279: indent: command not found
An example run where this occurs: https://www.drupal.org/pift-ci-job/1924143

Steps to reproduce

Run drupalci tests on a patch that alters a .js file in core/tests/Drupal/Nightwatch

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 3189547-5.patch721 byteslauriii

Comments

bnjmnm created an issue. See original summary.

drumm’s picture

Project: Drupal.org infrastructure » DrupalCI: Test Runner
Component: Continuous Integration » Testrunner Codebase

Looks like indent is a command we can make sure is installed into the test runners, https://www.gnu.org/software/indent/. (Unless this is a npm-provided command, or something other than GNU indent.)

drumm’s picture

Project: DrupalCI: Test Runner » DrupalCI: Environments
Component: Testrunner Codebase » PHP Containers

I think this might be a better project. I think we need to verify which container this command is being run in, and get it added to that container.

bnjmnm’s picture

Priority: Major » Critical
Issue summary: View changes

Bumping this to critical since it blocks any patch with changes in core/tests/Drupal/Nightwatch/ including this critical issue: #3113649: Remove drupal.tabbingmanager's jQueryUI dependency

lauriii’s picture

Project: DrupalCI: Environments » Drupal core
Version: » 9.2.x-dev
Component: PHP Containers » other
Status: Active » Needs review
StatusFileSize
new721 bytes

We could probably just remove the indent command because it seems like it was added to improve how the output is formatted. We also have other eslint call used for testing non-Nightwatch files which isn't formatted using indent.

alexpott’s picture

So what's really odd is that some DrupalCI environments have indent and some don't. How come. Obviously this is fine to remove. The output is probably not as readable. But it's better than failing.

bnjmnm’s picture

Status: Needs review » Reviewed & tested by the community

The fact that indent isn't being used in other used-more-frequently eslint calls suggests the changes in #5 won't be particularly disruptive or even noticeable. And as #6 stated, it's significantly less disruptive than the fails that are currently happening.

alexpott’s picture

Version: 9.2.x-dev » 8.9.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed 5fd7a7a165 to 9.2.x and 9145c27667 to 9.1.x and 302effacb2 to 8.9.x. Thanks!

  • alexpott committed 5fd7a7a on 9.2.x
    Issue #3189547 by lauriii, bnjmnm: Custom Commands indent: command not...

  • alexpott committed 9145c27 on 9.1.x
    Issue #3189547 by lauriii, bnjmnm: Custom Commands indent: command not...

  • alexpott committed 302effa on 8.9.x
    Issue #3189547 by lauriii, bnjmnm: Custom Commands indent: command not...

Status: Fixed » Closed (fixed)

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