MachineVisionUiB / machinevision

We are developing a database to map and interpret the representations and uses of machine vision technologies in digital art, computer games and narratives such as science fiction novels, movies and creepypasta.
http://uib.no/en/machinevision
4 stars 0 forks source link

Test out merge of Olivero with Drupal 9.1 core #129

Closed steinmb closed 3 years ago

steinmb commented 3 years ago

The base theme we use was merged to drupal core in mid October. The theme is merged as public beta in Drupal 9.1 and in 9.2 going to be Drupal default theme.

Issue

The issue with this is that changes from mid October and to release of Drupal 9.1 (December 2, 2020) are untested. When we update to 9.1 this could potentially brake our layout. We knew this was going to happen and have kept our subtheme as small as possible but we still need to test this.

Fix

steinmb commented 3 years ago

A little footwork before pushing upgrade. Moving PHP version from 7.3.x to 7.4.x and removing the old Machine vision installation in Drupal 7. I will keep it in as a local copy but I will remove the live version at https://old.machine-vision.no/ we had no need for it.

First - Upgrade PHP 7.3 and all lib.

Removed:
  kernel.x86_64 0:4.14.72-73.55.amzn2

Installed:
  kernel.x86_64 0:4.14.214-160.339.amzn2

Updated:
  amazon-efs-utils.noarch 0:1.28.2-1.amzn2                  amazon-linux-extras.noarch 0:1.6.13-1.amzn2                  amazon-linux-extras-yum-plugin.noarch 0:1.6.13-1.amzn2
  amazon-ssm-agent.x86_64 0:3.0.161.0-1.amzn2               aws-cfn-bootstrap.noarch 0:1.4-34.amzn2                      awscli.noarch 0:1.18.147-1.amzn2.0.1
  bash.x86_64 0:4.2.46-34.amzn2                             bind-export-libs.x86_64 32:9.11.4-26.P2.amzn2.2              bind-libs.x86_64 32:9.11.4-26.P2.amzn2.2
  bind-libs-lite.x86_64 32:9.11.4-26.P2.amzn2.2             bind-license.noarch 32:9.11.4-26.P2.amzn2.2                  bind-utils.x86_64 32:9.11.4-26.P2.amzn2.2
  ca-certificates.noarch 0:2019.2.32-76.amzn2.0.3           certbot.noarch 0:1.11.0-1.el7                                chrony.x86_64 0:3.5.1-1.amzn2.0.1
  cloud-init.noarch 0:19.3-5.amzn2                          cpio.x86_64 0:2.11-28.amzn2                                  curl.x86_64 0:7.61.1-12.amzn2.0.2
  e2fsprogs.x86_64 0:1.42.9-19.amzn2                        e2fsprogs-libs.x86_64 0:1.42.9-19.amzn2                      ec2-instance-connect.noarch 0:1.1-13.amzn2
  ec2-net-utils.noarch 0:1.4-3.amzn2                        ec2-utils.noarch 0:1.2-3.amzn2                               emacs-filesystem.noarch 1:25.3-3.amzn2.0.2
  epel-release.noarch 0:7-13                                expat.x86_64 0:2.1.0-12.amzn2                                file.x86_64 0:5.11-36.amzn2.0.1
  file-libs.x86_64 0:5.11-36.amzn2.0.1                      freetype.x86_64 0:2.8-14.amzn2.1                             gettext.x86_64 0:0.19.8.1-3.amzn2
  gettext-libs.x86_64 0:0.19.8.1-3.amzn2                    glib2.x86_64 0:2.56.1-7.amzn2.0.1                            glibc.x86_64 0:2.26-39.amzn2
  glibc-all-langpacks.x86_64 0:2.26-39.amzn2                glibc-common.x86_64 0:2.26-39.amzn2                          glibc-locale-source.x86_64 0:2.26-39.amzn2
  glibc-minimal-langpack.x86_64 0:2.26-39.amzn2             httpd.x86_64 0:2.4.46-1.amzn2                                httpd-filesystem.noarch 0:2.4.46-1.amzn2
  httpd-tools.x86_64 0:2.4.46-1.amzn2                       hunspell.x86_64 0:1.3.2-16.amzn2                             iptables.x86_64 0:1.8.4-10.amzn2.1.2
  iptables-libs.x86_64 0:1.8.4-10.amzn2.1.2                 json-c.x86_64 0:0.11-4.amzn2.0.4                             kernel-tools.x86_64 0:4.14.214-160.339.amzn2
  kpatch-runtime.noarch 0:0.9.2-4.amzn2                     libX11.x86_64 0:1.6.7-3.amzn2                                libX11-common.noarch 0:1.6.7-3.amzn2
  libcom_err.x86_64 0:1.42.9-19.amzn2                       libcroco.x86_64 0:0.6.12-6.amzn2                             libcrypt.x86_64 0:2.26-39.amzn2
  libcurl.x86_64 0:7.61.1-12.amzn2.0.2                      libgcc.x86_64 0:7.3.1-12.amzn2                               libgomp.x86_64 0:7.3.1-12.amzn2
  libmetalink.x86_64 0:0.1.3-13.amzn2                       libnghttp2.x86_64 0:1.41.0-1.amzn2                           libpng.x86_64 2:1.5.13-8.amzn2
  libss.x86_64 0:1.42.9-19.amzn2                            libssh2.x86_64 0:1.4.3-12.amzn2.2.3                          libsss_idmap.x86_64 0:1.16.5-10.amzn2.6
  libsss_nss_idmap.x86_64 0:1.16.5-10.amzn2.6               libstdc++.x86_64 0:7.3.1-12.amzn2                            libtalloc.x86_64 0:2.1.16-1.amzn2
  libtiff.x86_64 0:4.0.3-35.amzn2                           libxml2.x86_64 0:2.9.1-6.amzn2.5.1                           libxml2-python.x86_64 0:2.9.1-6.amzn2.5.1
  libxslt.x86_64 0:1.1.28-6.amzn2                           mariadb.x86_64 1:5.5.68-1.amzn2                              mariadb-libs.x86_64 1:5.5.68-1.amzn2
  microcode_ctl.x86_64 2:2.1-47.amzn2.0.7                   mod_http2.x86_64 0:1.15.14-2.amzn2                           mod_ssl.x86_64 1:2.4.46-1.amzn2
  nspr.x86_64 0:4.25.0-2.amzn2                              nss.x86_64 0:3.53.1-3.amzn2                                  nss-softokn.x86_64 0:3.53.1-6.amzn2
  nss-softokn-freebl.x86_64 0:3.53.1-6.amzn2                nss-sysinit.x86_64 0:3.53.1-3.amzn2                          nss-tools.x86_64 0:3.53.1-3.amzn2
  nss-util.x86_64 0:3.53.1-1.amzn2                          oniguruma.x86_64 0:5.9.6-1.amzn2.0.4                         openldap.x86_64 0:2.4.44-22.amzn2
  openssl.x86_64 1:1.0.2k-19.amzn2.0.4                      openssl-libs.x86_64 1:1.0.2k-19.amzn2.0.4                    p11-kit.x86_64 0:0.23.22-1.amzn2.0.1
  p11-kit-trust.x86_64 0:0.23.22-1.amzn2.0.1                pam.x86_64 0:1.1.8-23.amzn2.0.1                              php-cli.x86_64 0:7.3.26-1.amzn2
  php-common.x86_64 0:7.3.26-1.amzn2                        php-fpm.x86_64 0:7.3.26-1.amzn2                              php-gd.x86_64 0:7.3.26-1.amzn2
  php-json.x86_64 0:7.3.26-1.amzn2                          php-mbstring.x86_64 0:7.3.26-1.amzn2                         php-mysqlnd.x86_64 0:7.3.26-1.amzn2
  php-opcache.x86_64 0:7.3.26-1.amzn2                       php-pdo.x86_64 0:7.3.26-1.amzn2                              php-xml.x86_64 0:7.3.26-1.amzn2
  python.x86_64 0:2.7.18-1.amzn2.0.2                        python-devel.x86_64 0:2.7.18-1.amzn2.0.2                     python-libs.x86_64 0:2.7.18-1.amzn2.0.2
  python-pillow.x86_64 0:2.0.0-21.gitd1c6db8.amzn2.0.1      python-urllib3.noarch 0:1.25.7-1.amzn2.0.1                   python2-acme.noarch 0:1.11.0-1.el7
  python2-botocore.noarch 0:1.18.6-1.amzn2.0.1              python2-certbot.noarch 0:1.11.0-1.el7                        python2-certbot-apache.noarch 0:1.11.0-1.el7
  python2-rpm.x86_64 0:4.11.3-40.amzn2.0.5                  python2-rsa.noarch 0:3.4.1-1.amzn2.0.1                       python2-s3transfer.noarch 0:0.3.3-1.amzn2.0.1
  rng-tools.x86_64 0:6.8-3.amzn2.0.4                        rpm.x86_64 0:4.11.3-40.amzn2.0.5                             rpm-build-libs.x86_64 0:4.11.3-40.amzn2.0.5
  rpm-libs.x86_64 0:4.11.3-40.amzn2.0.5                     rpm-plugin-systemd-inhibit.x86_64 0:4.11.3-40.amzn2.0.5      rsyslog.x86_64 0:8.24.0-52.amzn2
  selinux-policy.noarch 0:3.13.1-192.amzn2.6.5              selinux-policy-targeted.noarch 0:3.13.1-192.amzn2.6.5        sssd-client.x86_64 0:1.16.5-10.amzn2.6
  strace.x86_64 0:4.26-1.amzn2.0.1                          sudo.x86_64 0:1.8.23-4.amzn2.2.1                             system-release.x86_64 1:2-13.amzn2
  tzdata.noarch 0:2020d-2.amzn2                             unzip.x86_64 0:6.0-21.amzn2

Complete!
steinmb commented 3 years ago

Removal of old.machine-vision.no

DNS - Should also be updated, removing the old.machine-vision.no subdomain.

steinmb commented 3 years ago

Moving from PHP 7.3 to PHP 7.4

Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/10): php-common-7.4.14-1.amzn2.x86_64.rpm                                                                                                                  | 1.1 MB  00:00:00
(2/10): php-fpm-7.4.14-1.amzn2.x86_64.rpm                                                                                                                     | 1.7 MB  00:00:00
(3/10): php-cli-7.4.14-1.amzn2.x86_64.rpm                                                                                                                     | 4.9 MB  00:00:00
(4/10): php-gd-7.4.14-1.amzn2.x86_64.rpm                                                                                                                      | 182 kB  00:00:00
(5/10): php-json-7.4.14-1.amzn2.x86_64.rpm                                                                                                                    |  71 kB  00:00:00
(6/10): php-mbstring-7.4.14-1.amzn2.x86_64.rpm                                                                                                                | 513 kB  00:00:00
(7/10): php-opcache-7.4.14-1.amzn2.x86_64.rpm                                                                                                                 | 316 kB  00:00:00
(8/10): php-mysqlnd-7.4.14-1.amzn2.x86_64.rpm                                                                                                                 | 240 kB  00:00:00
(9/10): php-pdo-7.4.14-1.amzn2.x86_64.rpm                                                                                                                     | 134 kB  00:00:00
(10/10): php-xml-7.4.14-1.amzn2.x86_64.rpm                                                                                                                    | 199 kB  00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                 34 MB/s | 9.4 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
 php --version
PHP 7.4.14 (cli) (built: Jan 14 2021 20:52:40) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.14, Copyright (c), by Zend Technologies
steinmb commented 3 years ago

Before moving on we need to make sure we are on the latest and greatest Drupal 9.0.x and updates Core for PHP 7.4 since we have locked the version to make sure dev. and production do deviate. Dev. is running PHP 7.3 -> 8.0.x - Better to be sure.

commit smbjorklund/machinevision_config@ee5bf3e4c74b041b4ac25cdc3388b90ccdb87086 (HEAD -> master, origin/master) Author: Stein Magne Bjorklund steinmb@smbjorklund.com Date: Wed Feb 3 12:12:14 2021 +0100

Upgrade to PHP 7.4 and latest Drupal 9.0.x version
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 0 installs, 49 updates, 1 removal
  - Removing kub-at/php-simple-html-dom-parser (1.9.1)
  - Updating composer/installers (v1.9.0 => v1.10.0): Downloading (100%)
  - Updating drupal/core-composer-scaffold (9.0.8 => 9.1.3):  Checking out 7b125516d6
  - Updating drupal/core-project-message (9.0.8 => 9.1.3):  Checking out 812d6da43d
  - Updating caxy/php-htmldiff (v0.1.9 => v0.1.11): Downloading (100%)
  - Updating symfony/filesystem (v4.4.16 => v4.4.19): Downloading (100%)
  - Updating chi-teck/drupal-code-generator (1.33.0 => 1.33.1): Downloading (100%)
  - Updating commerceguys/addressing (v1.0.9 => v1.1.1): Downloading (100%)
  - Updating composer/ca-bundle (1.2.8 => 1.2.9): Downloading (100%)
  - Updating composer/spdx-licenses (1.5.4 => 1.5.5): Downloading (100%)
  - Updating symfony/finder (v4.4.16 => v4.4.19): Downloading (100%)
  - Updating consolidation/output-formatters (4.1.1 => 4.1.2): Downloading (100%)
  - Updating consolidation/annotated-command (4.2.3 => 4.2.4): Downloading (100%)
  - Updating consolidation/log (2.0.1 => 2.0.2): Downloading (100%)
  - Updating symfony/phpunit-bridge (v4.4.16 => v4.4.19): Downloading (100%)
  - Updating symfony/lock (v4.4.16 => v4.4.19): Downloading (100%)
  - Updating symfony/dom-crawler (v4.4.16 => v4.4.19): Downloading (100%)
  - Updating symfony/css-selector (v4.4.16 => v4.4.19): Downloading (100%)
  - Updating symfony/browser-kit (v4.4.16 => v4.4.19): Downloading (100%)
  - Updating sebastian/type (1.1.3 => 1.1.4): Downloading (100%)
  - Updating sebastian/resource-operations (2.0.1 => 2.0.2): Downloading (100%)
  - Updating sebastian/recursion-context (3.0.0 => 3.0.1): Downloading (100%)
  - Updating sebastian/object-reflector (1.1.1 => 1.1.2): Downloading (100%)
  - Updating sebastian/object-enumerator (3.0.3 => 3.0.4): Downloading (100%)
  - Updating sebastian/global-state (3.0.0 => 3.0.1): Downloading (100%)
  - Updating sebastian/exporter (3.1.2 => 3.1.3): Downloading (100%)
  - Updating sebastian/environment (4.2.3 => 4.2.4): Downloading (100%)
  - Updating sebastian/diff (3.0.2 => 3.0.3): Downloading (100%)
  - Updating sebastian/comparator (3.0.2 => 3.0.3): Downloading (100%)
  - Updating phpunit/php-timer (2.1.2 => 2.1.3): Downloading (100%)
  - Updating phpunit/php-file-iterator (2.0.2 => 2.0.3): Downloading (100%)
  - Updating sebastian/code-unit-reverse-lookup (1.0.1 => 1.0.2): Downloading (100%)
  - Updating phpunit/php-token-stream (3.1.1 => 4.0.4): Downloading (100%)
  - Updating phpunit/php-code-coverage (7.0.10 => 7.0.14): Downloading (100%)
  - Updating phpspec/prophecy (1.12.1 => 1.12.2): Downloading (100%)
  - Updating phar-io/version (2.0.1 => 3.0.4): Downloading (100%)
  - Updating phar-io/manifest (1.0.3 => 2.0.1): Downloading (100%)
  - Updating phpunit/phpunit (8.5.9 => 8.5.14): Downloading (100%)
  - Updating sirbrillig/phpcs-variable-analysis (v2.9.0 => v2.10.2): Downloading (100%)
  - Updating drupal/coder (8.3.11 => 8.3.12):  Checking out 719ddb16ae
  - Updating composer/composer (1.10.17 => 1.10.20): Downloading (100%)
  - Updating drupal/core-dev (9.0.8 => 9.0.11)
  - Updating pear/archive_tar (1.4.9 => 1.4.12): Downloading (100%)
  - Updating drupal/core (9.0.8 => 9.0.11):  Checking out 41697df079
  - Updating drupal/core-recommended (9.0.8 => 9.0.11)
  - Updating drupal/search_api (1.18.0 => 1.19.0): Downloading (100%)
  - Updating drupal/token (1.7.0 => 1.9.0): Downloading (100%)
  - Updating league/csv (9.6.1 => 9.6.2): Downloading (100%)
  - Updating nikic/php-parser (v4.10.2 => v4.10.4): Downloading (100%)
  - Updating psy/psysh (v0.10.4 => v0.10.6): Downloading (100%)
steinmb commented 3 years ago

Tested and pushed these changes. Upgrades Drupal 9.0.11 to 9.1.4. Also upgraded production.

commit smbjorklund/machinevision_config@e4e93bdc259899841c4bfcb34824c0cbeb0aa7ae (HEAD -> master, origin/master, origin/HEAD) Author: Stein Magne Bjorklund steinmb@smbjorklund.com Date: Thu Feb 4 15:33:09 2021 +0100

Drupal 9.0.x to 9.1.x upgrade