Rebuilding preview: 684fc2d56decdc0e5eb80976 (mr1142)684fc2d6d5d5f2938d8d25b5# sh -c mkdir -p $(dirname /var/lib/tugboat)684fc2d6d5d5f2938d8d25b5# git clone git@git.drupal.org:project/experience_builder.git /var/lib/tugboatCloning into '/var/lib/tugboat'...
Warning: Permanently added 'git.drupal.org' (ED25519) to the list of known hosts.
684fc2d6d5d5f2938d8d25b5# bash -c git -C /var/lib/tugboat remote show origin && git -C /var/lib/tugboat remote set-url origin git@git.drupal.org:project/experience_builder.git || git -C /var/lib/tugboat remote add origin git@git.drupal.org:project/experience_builder.git* remote origin
  Fetch URL: git@git.drupal.org:project/experience_builder.git
  Push  URL: git@git.drupal.org:project/experience_builder.git
  HEAD branch: 0.x
  Remote branches:
    0.x                                                 tracked
    canvas                                              tracked
    cypress_starter                                     tracked
    easyblocks_backend                                  tracked
    eb-form-sandbox                                     tracked
    eb-ui-sandbox                                       tracked
    exp-canvas                                          tracked
    experience_builder-3452489-3452489-aliases-restruct tracked
    experience_builder_default_design_system            tracked
    hotfix-0.2.1-alpha10                                tracked
    poc-codemirror                                      tracked
    poc_reactrouter                                     tracked
    poc_xb_ui                                           tracked
    prettier                                            tracked
    research__component_export_poc                      tracked
    research__data_model                                tracked
    research__design_versions                           tracked
    research_sdb_config                                 tracked
    setup-module-vite                                   tracked
  Local branch configured for 'git pull':
    0.x merges with remote 0.x
  Local ref configured for 'git push':
    0.x pushes to 0.x (up to date)
684fc2d6d5d5f2938d8d25b5# git -C /var/lib/tugboat fetch --no-recurse-submodules origin 0.xFrom git.drupal.org:project/experience_builder
 * branch              0.x        -> FETCH_HEAD
684fc2d6d5d5f2938d8d25b5# git -C /var/lib/tugboat checkout origin/0.xNote: switching to 'origin/0.x'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 43a40cbb Issue #3505224 by tedbow, mglaman, wim leers, traviscarden, penyaskito: XbConfigEntityHttpApiTest missing test coverage for individual GET requests for JavaScriptComponent + AssetLibrary
684fc2d6d5d5f2938d8d25b5# git -C /var/lib/tugboat pull --no-edit --rebase=false git@git.drupal.org:issue/experience_builder-3529622.git 3529622-convert-before-autosaveFrom git.drupal.org:issue/experience_builder-3529622
 * branch              3529622-convert-before-autosave -> FETCH_HEAD
Updating 43a40cbb..c287ebbf
Fast-forward
 .../src/Plugin/AiFunctionCall/GetJsComponent.php   |  16 +-
 .../Plugin/AiFunctionCall/GetJsComponentTest.php   |  19 ++-
 .../ApiConfigAutoSaveControllersTest.php           |   8 +-
 .../tests/src/Kernel/ApiAutoSaveControllerTest.php |  19 ++-
 src/AutoSave/AutoSaveManager.php                   | 125 +++++++-------
 src/AutoSave/AutoSaveTempStore.php                 |   2 +-
 src/{AutoSaveData.php => AutoSaveEntity.php}       |   7 +-
 src/ComponentSource/ComponentSourceBase.php        |  10 +-
 src/ComponentSource/ComponentSourceInterface.php   |  11 ++
 src/Controller/ApiAutoSaveController.php           |  91 ++++------
 src/Controller/ApiConfigAutoSaveControllers.php    |  32 ++--
 src/Controller/ApiContentControllers.php           |  48 ++----
 src/Controller/ApiLayoutController.php             | 122 +++++--------
 src/Controller/ClientServerConversionTrait.php     |  12 +-
 src/Entity/EntityConstraintViolationList.php       |   9 +-
 src/Entity/JavaScriptComponent.php                 |  23 +--
 src/Entity/PageRegion.php                          |   7 +-
 src/Hook/ComponentSourceHooks.php                  |   6 +-
 src/Plugin/DisplayVariant/XbPageVariant.php        |  14 +-
 ...atedFieldExplicitInputUxComponentSourceBase.php |  35 ++++
 .../ComponentSource/JsComponent.php                |  16 +-
 src/Plugin/Field/FieldType/ComponentTreeItem.php   |   2 +
 .../ApiAutoSaveControllerCacheabilityTest.php      |   7 +-
 .../ApiConfigAutoSaveControllersTest.php           |  19 ++-
 tests/src/Functional/ApiLayoutControllerTest.php   |   6 +-
 .../src/Functional/AssetLibraryAttachmentTest.php  |   3 +-
 tests/src/Functional/HttpApiTestBase.php           |  32 ++--
 tests/src/Functional/TranslationTest.php           |   4 +-
 .../src/Functional/XbContentEntityHttpApiTest.php  |  79 +++------
 tests/src/Functional/XbPageVariantTest.php         |  18 +-
 tests/src/Kernel/ApiAutoSaveControllerTest.php     | 167 ++++++++----------
 tests/src/Kernel/ApiLayoutControllerGetTest.php    |  59 +++----
 tests/src/Kernel/ApiLayoutControllerPatchTest.php  |  12 +-
 tests/src/Kernel/ApiLayoutControllerPostTest.php   |  42 +++--
 tests/src/Kernel/ApiLayoutControllerTestBase.php   |   2 +-
 tests/src/Kernel/AutoSaveManagerTest.php           | 188 +++++++++++++--------
 .../src/Kernel/ClientServerConversionTraitTest.php |   4 +-
 tests/src/Kernel/ModuleInstallationTest.php        |   4 +-
 .../ComponentSource/JsComponentTest.php            | 119 +++++++------
 tests/src/TestSite/XBTestSetup.php                 |  15 +-
 tests/src/Traits/AutoSaveManagerTestTrait.php      |   2 +-
 tests/src/Traits/CreateTestJsComponentTrait.php    |  10 +-
 42 files changed, 733 insertions(+), 693 deletions(-)
 rename src/{AutoSaveData.php => AutoSaveEntity.php} (59%)
Running INIT commandsRunning UPDATE commands684fc2d6d5d5f2938d8d25b5# /bin/sh -c curl -fsSL https://deb.nodesource.com/setup_$(cat $TUGBOAT_ROOT/ui/.nvmrc).x -o nodesource_setup.sh684fc2d6d5d5f2938d8d25b5# /bin/sh -c bash nodesource_setup.sh2025-06-20 05:59:40 - Installing pre-requisites
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [267 kB]
Fetched 370 kB in 0s (1,009 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (2.6.1).
curl is already the newest version (7.88.1-10+deb12u12).
gnupg is already the newest version (2.2.40-1.1).
The following packages will be upgraded:
  ca-certificates
1 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
Need to get 155 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm-updates/main amd64 ca-certificates all 20230311+deb12u1 [155 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 155 kB in 0s (3,642 kB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 27078 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20230311+deb12u1_all.deb ...
Unpacking ca-certificates (20230311+deb12u1) over (20230311) ...
Setting up ca-certificates (20230311+deb12u1) ...
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
2 added, 0 removed; done.
Processing triggers for runit (2.1.2-54) ...
Processing triggers for ca-certificates (20230311+deb12u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
Get:4 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
Get:5 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [11.5 kB]
Fetched 23.7 kB in 0s (66.9 kB/s)
Reading package lists...
2025-06-20 05:59:47 - Repository configured successfully.
2025-06-20 05:59:47 - To install Node.js, run: apt-get install nodejs -y
2025-06-20 05:59:47 - You can use N|solid Runtime as a node.js alternative
2025-06-20 05:59:47 - To install N|solid Runtime, run: apt-get install nsolid -y 

684fc2d6d5d5f2938d8d25b5# /bin/sh -c apt-get install -y nodejsReading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nodejs
0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded.
Need to get 32.0 MB of archives.
After this operation, 199 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_20.x nodistro/main amd64 nodejs amd64 20.19.2-1nodesource1 [32.0 MB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 32.0 MB in 0s (102 MB/s)
Selecting previously unselected package nodejs.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 27080 files and directories currently installed.)
Preparing to unpack .../nodejs_20.19.2-1nodesource1_amd64.deb ...
Unpacking nodejs (20.19.2-1nodesource1) ...
Setting up nodejs (20.19.2-1nodesource1) ...
Processing triggers for runit (2.1.2-54) ...
684fc2d6d5d5f2938d8d25b5# /bin/sh -c set -eux

# This is an environment variable we added in the Dockerfile that
# provides the path to Drupal composer root (not the web root).
cd $DRUPAL_COMPOSER_ROOT

# Configure composer to require this module as a symlink.
composer config minimum-stability dev
composer config repositories.tugboat path $TUGBOAT_ROOT
composer require \
  drupal/experience_builder \
  drupal/demo_design_system \
  drupal/components

# Install Drupal on the site.
rm -f $DRUPAL_DOCROOT/sites/default/settings.php
php -d memory_limit=-1 \
  vendor/bin/drush.php \
  --yes \
  --db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \
  --site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \
  --account-pass=admin \
  site:install standard

# Require settings.local.php increase CLI memory limit, add trusted
# host patterns, and allow for enabling hidden xb_dev_standard module.
echo "require_once '$TUGBOAT_ROOT/.tugboat/settings.local.php';" >> $DOCROOT/sites/default/settings.php

# Set up the files directory permissions.
mkdir -p $DRUPAL_DOCROOT/sites/default/files
chgrp -R www-data $DRUPAL_DOCROOT/sites/default/files
chmod 2775 $DRUPAL_DOCROOT/sites/default/files
chmod -R g+w $DRUPAL_DOCROOT/sites/default/files

# Enable the module.
vendor/bin/drush --yes pm:install \
  experience_builder \
  xb_dev_standard \
  media_library \
  components

# Enable starshot_demo theme.
vendor/bin/drush --yes theme:enable starshot_demo
vendor/bin/drush --yes config:set system.theme default starshot_demo

# Create node/1
vendor/bin/drush scr $TUGBOAT_ROOT/.tugboat/create-article-node.php
+ cd /var/www/drupal
+ composer config minimum-stability dev
+ composer config repositories.tugboat path /var/lib/tugboat
+ composer require drupal/experience_builder drupal/demo_design_system drupal/components
./composer.json has been updated
Running composer update drupal/experience_builder drupal/demo_design_system drupal/components
Loading composer repositories with package information
Updating dependencies
Lock file operations: 4 installs, 0 updates, 0 removals
  - Locking drupal/components (3.1.0)
  - Locking drupal/demo_design_system (1.0.1)
  - Locking drupal/experience_builder (dev-main)
  - Locking justinrainbow/json-schema (5.3.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 4 installs, 0 updates, 0 removals
  - Downloading drupal/components (3.1.0)
  - Downloading drupal/demo_design_system (1.0.1)
  - Downloading justinrainbow/json-schema (5.3.0)
 0/3 [>---------------------------]   0%
 1/3 [=========>------------------]  33%
 2/3 [==================>---------]  66%
 3/3 [============================] 100%
  - Installing drupal/components (3.1.0): Extracting archive
  - Installing drupal/demo_design_system (1.0.1): Extracting archive
  - Installing justinrainbow/json-schema (5.3.0): Extracting archive
  - Installing drupal/experience_builder (dev-main): Symlinking from /var/lib/tugboat
 0/3 [>---------------------------]   0%
 2/3 [==================>---------]  66%
 3/3 [============================] 100%
2 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
43 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version dev-main for drupal/experience_builder
Using version ^1.0 for drupal/demo_design_system
Using version ^3.1 for drupal/components
+ rm -f /var/www/drupal/web/sites/default/settings.php
+ php -d memory_limit=-1 vendor/bin/drush.php --yes --db-url=mysql://tugboat:tugboat@mysql:3306/tugboat --site-name=Live preview for 3529622-convert-before-autosave --account-pass=admin site:install standard
 You are about to:
 * Create a sites/default/settings.php file
 * DROP all tables in your 'tugboat' database.

 // Do you want to continue?: yes.                                              

 [notice] Starting Drupal installation. This takes a while.
 [notice] Performed install task: install_select_language
 [notice] Performed install task: install_select_profile
 [notice] Performed install task: install_load_profile
 [notice] Performed install task: install_verify_requirements
 [notice] Performed install task: install_settings_form
 [notice] Performed install task: install_verify_database_ready
 [notice] Performed install task: install_base_system
 [notice] Performed install task: install_bootstrap_full
 [notice] Performed install task: install_profile_modules
 [notice] Performed install task: install_profile_themes
 [notice] Performed install task: install_install_profile
 [notice] Performed install task: install_configure_form
 [notice] Performed install task: install_finished
 [success] Installation complete.
+ echo require_once '/var/lib/tugboat/.tugboat/settings.local.php';
+ mkdir -p /var/www/drupal/web/sites/default/files
+ chgrp -R www-data /var/www/drupal/web/sites/default/files
+ chmod 2775 /var/www/drupal/web/sites/default/files
+ chmod -R g+w /var/www/drupal/web/sites/default/files
+ vendor/bin/drush --yes pm:install experience_builder xb_dev_standard media_library components
The following module(s) will be installed: experience_builder, xb_dev_standard, media_library, components, media

 // Do you want to continue?: yes.                                              

 [success] Module experience_builder has been installed. (Permissions - Configure)
 [success] Module xb_dev_standard has been installed.
 [success] Module media_library has been installed. (Configure)
 [success] Module components has been installed.
 [success] Module media has been installed. (Permissions - Configure)
+ vendor/bin/drush --yes theme:enable starshot_demo

In ThemeInstaller.php line 93:
                                                                               
  Unable to install theme: 'starshot_demo' due to unmet module dependencies:   
  'default_content'.                                                           
                                                                               

Command Failed (Tugboat Error 1064): Exit code: 1; Command: set -eux

# This is an environment variable we added in the Dockerfile that
# provides the path to Drupal composer root (not the web root).
cd $DRUPAL_COMPOSER_ROOT

# Configure composer to require this module as a symlink.
composer config minimum-stability dev
composer config repositories.tugboat path $TUGBOAT_ROOT
composer require \
  drupal/experience_builder \
  drupal/demo_design_system \
  drupal/components

# Install Drupal on the site.
rm -f $DRUPAL_DOCROOT/sites/default/settings.php
php -d memory_limit=-1 \
  vendor/bin/drush.php \
  --yes \
  --db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \
  --site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \
  --account-pass=admin \
  site:install standard

# Require settings.local.php increase CLI memory limit, add trusted
# host patterns, and allow for enabling hidden xb_dev_standard module.
echo "require_once '$TUGBOAT_ROOT/.tugboat/settings.local.php';" >> $DOCROOT/sites/default/settings.php

# Set up the files directory permissions.
mkdir -p $DRUPAL_DOCROOT/sites/default/files
chgrp -R www-data $DRUPAL_DOCROOT/sites/default/files
chmod 2775 $DRUPAL_DOCROOT/sites/default/files
chmod -R g+w $DRUPAL_DOCROOT/sites/default/files

# Enable the module.
vendor/bin/drush --yes pm:install \
  experience_builder \
  xb_dev_standard \
  media_library \
  components

# Enable starshot_demo theme.
vendor/bin/drush --yes theme:enable starshot_demo
vendor/bin/drush --yes config:set system.theme default starshot_demo

# Create node/1
vendor/bin/drush scr $TUGBOAT_ROOT/.tugboat/create-article-node.php
684fc2d56decdc0e5eb80976 (3529622-convert-before-autosave) is suspended