Problem/Motivation
The output of the nightwatch test job on GitLab are currently not saved as artifacts.
Steps to reproduce
Compare the artifacts of nightwatch on a recent DrupalCI run (for example https://dispatcher.drupalci.org/job/drupal8_core_regression_tests/88034/...) with the artifacts of a recent GitLab run (for example https://git.drupalcode.org/project/drupal/-/jobs/316331/artifacts/browse...)
Proposed resolution
Preserve the artifacts of a nightwatch run
Artifacts for nightwatch from this MR: https://git.drupalcode.org/issue/drupal-3401102/-/jobs/323652/artifacts/...
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3401102
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:
- 3401102-nightwatch-artifacts-on
changes, plain diff MR !5361
Comments
Comment #2
spokjeComment #4
spokjeComment #5
smustgrave commentedSeems fine to me.
Would love to know why nightwatch is failing so frequently in gitlab this last week.
Comment #6
longwaveShould we set
DRUPAL_NIGHTWATCH_OUTPUTto../nightwatch_outputinstead? Feels a bit wrong writing inside thecoredirectory, which is part of the checkout.Comment #7
spokjeSure, just wanted to maintain the original setting of
DRUPAL_NIGHTWATCH_OUTPUT.Comment #8
longwaveQuestion about the mkdir/chown lines - not sure these are needed even if it's working without it!
Comment #9
spokjeComment #10
spokjeI think we lost babel, along with its caching somewhere around #3278415: Remove usages of the JavaScript ES6 build step, the build step itself, and associated dev dependencies?
Comment #11
spokjeComment #12
spokjeComment #13
spokjeComment #14
spokjeThis seems to be the minimal mkdir-s that would be otherwise created through Drupal and the minimal chown-s to work/prevent warnings.
To my surprise running yarn as root doesn't work. It isn't able to create directories under
sitesno matter what I chown/chmod _shrugs_Comment #15
spokjeWell, I stand corrected, all mkdir-s are not needed.
Comment #16
smustgrave commentedLeaning on this didn't break anything it seems and am seeing artifacts here https://git.drupalcode.org/issue/drupal-3401102/-/jobs/335835/artifacts/...
Comment #17
longwaveAlso seeing Nightwatch results now at https://git.drupalcode.org/issue/drupal-3401102/-/pipelines/50024/test_r...
Great work!
Comment #21
longwaveCommitted and pushed 93eb23400e to 11.x and b71596d090 to 10.2.x. Thanks!
I wasn't expecting it to backport cleanly to 10.1.x, but it did, so cherry-picked it there too.