Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297258

[CI] Use sudo -E to execute run-tests.sh

$
0
0

Problem/Motivation

In #3475974: Add www-data user to root group so all env vars are passed to run-tests.sh there's work ongoing to allow all environment variables to be visible to test runners during test execution.

run-tests.sh fails when using sudo -E, that would allow passing the current environment variables.

Original post

In #3475974: Add www-data user to root group so all env vars are passed to run-tests.sh there's work ongoing to allow dropping usage of sudo to run tests. sudo prevents passing the current environment variables to the runners, and there are some that are now used for configuring PHPUnit extensions behaviour.

It would be good to try that in core, too, and in such occasion fix any permission issues with www-data.

Proposed resolution

Fix run-tests.sh bug, and adjust CI jobs to use sudo -E as appropriate.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 297258

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>