Fixes #38173 - Permit use of arrays for multiple timesources #2400
foreman.yml
on: pull_request
Setup matrix
2s
Matrix: tests
Matrix: Katello / existing-database
Matrix: Katello / test
Test suite
4s
Annotations
18 errors and 2 warnings
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/unit/foreman/renderer_test.rb#L39
Failure: test_0028_rendered Kickstart default template should match snapshots
Rendered template Kickstart default did not match the snapshot..
--- expected
+++ actual
@@ -1 +1 @@
-"# This kickstart file was rendered from the Foreman provisioning template \"Kickstart default\".\n# for snapshot-ipv4-dhcp-el7 running CentOS 7 x86_64\n# Organization: Organization 1\n# Location: Location 1\n\ninstall\n\nurl --url http://mirror.centos.org/centos/7/os/x86_64\n\n\nlang en_US.UTF-8\nselinux --enforcing\nkeyboard us\n\nnetwork --device=00-f0-54-1a-7e-e0 --hostname snapshot-ipv4-dhcp-el7 --noipv6 --mtu=1142 --bootproto dhcp --nameserver=192.168.42.2,192.168.42.3\n\nrootpw --iscrypted $1$rtd8Ub7R$5Ohzuy8WXlkaK9cA2T1wb0\nfirewall --service=ssh\nauthconfig --useshadow --passalgo=sha512 --kickstart\ntimezone --utc UTC \n\nservices --disabled gpm,sendmail,cups,pcmcia,isdn,rawdevices,hpoj,bluetooth,openibd,avahi-daemon,avahi-dnsconfd,hidd,hplip,pcscd\n\n\n\nbootloader --location=mbr --append=\"nofb quiet splash=quiet\" \n\nzerombr\nclearpart --all --initlabel\npart /boot --fstype ext3 --size=100 --asprimary\npart / --fstype ext3 --size=1024 --grow\npart swap --recommended\n\nskipx\ntext\nreboot\n\n%packages\n\nyum\ndhclient\nchrony\n-ntp\nwget\ndracut-fips\n-prelink\n\n%end\n\n\n%post --nochroot\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\n\n\n\nchvt 1\n) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log\n%end\n\n\n%post\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\nlogger \"Starting anaconda snapshot-ipv4-dhcp-el7 postinstall\"\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\n\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-man
|
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/unit/foreman/renderer_test.rb#L27
Failure: test_0028_rendered Kickstart default template should match snapshots
Safemode::SecurityError: Safemode doesn't allow to access 'constant' on Array
app/services/foreman/renderer/safe_mode_renderer.rb:7:in `render'
app/services/foreman/renderer/base_renderer.rb:18:in `render'
app/services/foreman/renderer.rb:46:in `render'
app/services/foreman/template_snapshot_service.rb:61:in `render_template'
test/unit/foreman/renderer_test.rb:49:in `block in assert_template'
test/unit/foreman/renderer_test.rb:47:in `each'
test/unit/foreman/renderer_test.rb:47:in `assert_template'
test/unit/foreman/renderer_test.rb:27:in `block (3 levels) in <class:RendererTest>'
|
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13
Process completed with exit code 1.
|
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/unit/foreman/renderer_test.rb#L27
Failure: test_0028_rendered Kickstart default template should match snapshots
Safemode::SecurityError: Safemode doesn't allow to access 'constant' on Array
app/services/foreman/renderer/safe_mode_renderer.rb:7:in `render'
app/services/foreman/renderer/base_renderer.rb:18:in `render'
app/services/foreman/renderer.rb:46:in `render'
app/services/foreman/template_snapshot_service.rb:61:in `render_template'
test/unit/foreman/renderer_test.rb:49:in `block in assert_template'
test/unit/foreman/renderer_test.rb:47:in `each'
test/unit/foreman/renderer_test.rb:47:in `assert_template'
test/unit/foreman/renderer_test.rb:27:in `block (3 levels) in <class:RendererTest>'
|
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/unit/foreman/renderer_test.rb#L39
Failure: test_0028_rendered Kickstart default template should match snapshots
Rendered template Kickstart default did not match the snapshot..
--- expected
+++ actual
@@ -1 +1 @@
-"# This kickstart file was rendered from the Foreman provisioning template \"Kickstart default\".\n# for snapshot-ipv4-dhcp-el7 running CentOS 7 x86_64\n# Organization: Organization 1\n# Location: Location 1\n\ninstall\n\nurl --url http://mirror.centos.org/centos/7/os/x86_64\n\n\nlang en_US.UTF-8\nselinux --enforcing\nkeyboard us\n\nnetwork --device=00-f0-54-1a-7e-e0 --hostname snapshot-ipv4-dhcp-el7 --noipv6 --mtu=1142 --bootproto dhcp --nameserver=192.168.42.2,192.168.42.3\n\nrootpw --iscrypted $1$rtd8Ub7R$5Ohzuy8WXlkaK9cA2T1wb0\nfirewall --service=ssh\nauthconfig --useshadow --passalgo=sha512 --kickstart\ntimezone --utc UTC \n\nservices --disabled gpm,sendmail,cups,pcmcia,isdn,rawdevices,hpoj,bluetooth,openibd,avahi-daemon,avahi-dnsconfd,hidd,hplip,pcscd\n\n\n\nbootloader --location=mbr --append=\"nofb quiet splash=quiet\" \n\nzerombr\nclearpart --all --initlabel\npart /boot --fstype ext3 --size=100 --asprimary\npart / --fstype ext3 --size=1024 --grow\npart swap --recommended\n\nskipx\ntext\nreboot\n\n%packages\n\nyum\ndhclient\nchrony\n-ntp\nwget\ndracut-fips\n-prelink\n\n%end\n\n\n%post --nochroot\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\n\n\n\nchvt 1\n) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log\n%end\n\n\n%post\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\nlogger \"Starting anaconda snapshot-ipv4-dhcp-el7 postinstall\"\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\n\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-man
|
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13
Process completed with exit code 1.
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/models/erratum_test.rb#L33
Failure: test_search_modular
Expected #<ActiveRecord::Relation []> to include #<Katello::Erratum id: 1037874757, pulp_id: "modularissue", errata_id: "RHEA-2019-002", created_at: "2025-01-29 20:49:33.000000000 +0000", updated_at: "2025-01-29 20:49:33.000000000 +0000", issued: "2025-01-26", updated: nil, errata_type: "bugfix", severity: nil, title: "modularissue", solution: nil, description: nil, summary: nil, reboot_suggested: nil>.
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/services/katello/applicability/applicable_content_helper_test.rb#L475
Failure: test_rpm_content_ids_returns_multiple_packages
ActiveRecord::RecordNotFound: Couldn't find Katello::Rpm with 'id'=737645823
katello/test/services/katello/applicability/applicable_content_helper_test.rb:133:in `test_rpm_content_ids_returns_multiple_packages'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0008_token - no 'registry' token yet
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0011_token - allow unauthenticated pull
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0009_token - has 'registry' token
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0013_token - allow cert-based pull
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0001_ping - with cert
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0010_token - unscoped is authorized
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0014_token - do not allow unauthenticated push
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / test:katello - Foreman refs/pull/10427/merge with Ruby 2.7 and Node 18 on PostgreSQL 13:
katello/test/controllers/api/registry/registry_proxies_controller_test.rb#L475
Failure: test_0002_ping - unauthorized
ActiveRecord::RecordNotFound: Couldn't find Katello::DockerTag with 'id'=980190962
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:14:in `setup_models'
katello/test/controllers/api/registry/registry_proxies_controller_test.rb:28:in `block (2 levels) in <module:Katello>'
test/test_helper.rb:88:in `before_setup'
|
Katello / Test suite
Process completed with exit code 1.
|
Test suite
Process completed with exit code 1.
|
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 3.0 and Node 18 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
|
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 2.7 and Node 18 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Gemfile-ruby-2.7-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
|
4.7 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-dbseed.lock
|
4.7 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testexternal.lock
|
4.7 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testfunctionals.lock
|
4.7 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testgraphql.lock
|
4.7 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testunits.lock
|
4.7 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.lock
|
4.7 KB |
|
Gemfile-ruby-27-node-18-pg-13-foreman-refspull10427merge-dbseed.lock
|
5.48 KB |
|
Gemfile-ruby-27-node-18-pg-13-foreman-refspull10427merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
|
5.48 KB |
|
Gemfile-ruby-27-node-18-pg-13-foreman-refspull10427merge-testkatello.lock
|
5.48 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-dbseed.lock
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testexternal.lock
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testfunctionals.lock
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testgraphql.lock
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testunits.lock
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.lock
|
4.71 KB |
|
Gemfile-ruby-30-node-18-pg-13-foreman-refspull10427merge-dbseed.lock
|
5.49 KB |
|
Gemfile-ruby-30-node-18-pg-13-foreman-refspull10427merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
|
5.49 KB |
|
Gemfile-ruby-30-node-18-pg-13-foreman-refspull10427merge-testkatello.lock
|
5.49 KB |
|
all_react_app_exports-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.js
|
8.1 KB |
|
all_react_app_exports-ruby-27-node-18-pg-13-foreman-refspull10427merge-testkatello.js
|
8.1 KB |
|
all_react_app_exports-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.js
|
8.1 KB |
|
all_react_app_exports-ruby-30-node-18-pg-13-foreman-refspull10427merge-testkatello.js
|
8.1 KB |
|
logs-ruby-27-node-18-pg-13-foreman-refspull10427merge-testkatello
Expired
|
4.03 MB |
|
package-lock-ruby-2.7-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
|
227 KB |
|
package-lock-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.json
|
227 KB |
|
package-lock-ruby-27-node-18-pg-13-foreman-refspull10427merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
|
324 KB |
|
package-lock-ruby-27-node-18-pg-13-foreman-refspull10427merge-testkatello.json
|
324 KB |
|
package-lock-ruby-3.0-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
|
227 KB |
|
package-lock-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.json
|
227 KB |
|
package-lock-ruby-30-node-18-pg-13-foreman-refspull10427merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
|
324 KB |
|
package-lock-ruby-30-node-18-pg-13-foreman-refspull10427merge-testkatello.json
|
324 KB |
|