Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates-3449631
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
automatic_updates-3449631
Commits
86612210
Commit
86612210
authored
1 year ago
by
Ted Bowman
Committed by
Adam G-H
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3362143
by phenaproxima, tedbow, Wim Leers: Use the rsync file syncer by default
parent
7e87dcff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
drupalci.yml
+2
-0
2 additions, 0 deletions
drupalci.yml
package_manager/config/install/package_manager.settings.yml
+3
-1
3 additions, 1 deletion
package_manager/config/install/package_manager.settings.yml
tests/src/Build/CoreUpdateTest.php
+13
-1
13 additions, 1 deletion
tests/src/Build/CoreUpdateTest.php
with
18 additions
and
2 deletions
drupalci.yml
+
2
−
0
View file @
86612210
...
...
@@ -9,6 +9,8 @@ build:
# Run code quality checks.
container_command.commit-checks
:
commands
:
# Install rsync.
-
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y rsync
# Update to Composer 2.5.5.
-
composer self-update 2.5.5
# @todo Replace in favor of commit-code-check.sh once https://www.drupal.org/project/drupal/issues/3314100 lands.
...
...
This diff is collapsed.
Click to expand it.
package_manager/config/install/package_manager.settings.yml
+
3
−
1
View file @
86612210
file_syncer
:
php
# The rsync file syncer is currently the only stable file syncer and
# should only be changed for development purposes.
file_syncer
:
rsync
executables
:
composer
:
~
rsync
:
~
...
...
This diff is collapsed.
Click to expand it.
tests/src/Build/CoreUpdateTest.php
+
13
−
1
View file @
86612210
...
...
@@ -89,6 +89,9 @@ class CoreUpdateTest extends UpdateTestBase {
// Ensure that Drupal has write-protected the site directory.
$this
->
assertDirectoryIsNotWritable
(
$this
->
getWebRoot
()
.
'/sites/default'
);
// @todo Remove this when default.settings.php and default.services.yml are
// ignored by Package Manager in in https://drupal.org/i/3363938.
$this
->
assertTrue
(
chmod
(
$this
->
getWebRoot
()
.
'/sites/default'
,
0777
));
}
/**
...
...
@@ -182,6 +185,9 @@ class CoreUpdateTest extends UpdateTestBase {
$this
->
installModules
([
'dblog'
]);
$this
->
visit
(
'/admin/reports/status'
);
// @todo Remove this line when default.settings.php and default.services.yml
// are ignored by Package Manager in in https://drupal.org/i/3363938.
$this
->
assertTrue
(
chmod
(
$this
->
getWebRoot
()
.
'/sites/default'
,
0777
));
$mink
=
$this
->
getMink
();
$page
=
$mink
->
getSession
()
->
getPage
();
$assert_session
=
$mink
->
assertSession
();
...
...
@@ -233,6 +239,9 @@ class CoreUpdateTest extends UpdateTestBase {
$assert_session
=
$mink
->
assertSession
();
$this
->
coreUpdateTillUpdateReady
(
$page
);
$this
->
visit
(
'/admin/reports/status'
);
// @todo Remove this line when default.settings.php and default.services.yml
// are ignored by Package Manager in https://drupal.org/i/3363938.
$this
->
assertTrue
(
chmod
(
$this
->
getWebRoot
()
.
'/sites/default'
,
0777
));
$assert_session
->
pageTextContains
(
'Your site is ready for automatic updates.'
);
$page
->
clickLink
(
'Run cron'
);
$this
->
assertUpdateSuccessful
(
'9.8.1'
);
...
...
@@ -302,7 +311,10 @@ class CoreUpdateTest extends UpdateTestBase {
$this
->
assertFileIsReadable
(
$file
);
$this
->
assertStringContainsString
(
"# This is part of Drupal
$expected_version
."
,
file_get_contents
(
$file
));
}
$this
->
assertDirectoryIsNotWritable
(
"
$web_root
/sites/default"
);
// @todo Restore this line when default.settings.php and
// default.services.yml are ignored by Package Manager in
// https://drupal.org/i/3363938.
// $this->assertDirectoryIsNotWritable("$web_root/sites/default");
$info
=
$this
->
runComposer
(
'composer info --self --format json'
,
'project'
,
TRUE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment