ARPA-SIMC / moncic-ci

Continuous integration tool and development helper.
GNU General Public License v2.0
2 stars 0 forks source link

`AttributeError: 'ARPA' object has no attribute 'system'` nei build rpm arpa #92

Closed brancomat closed 1 year ago

brancomat commented 1 year ago
# monci ci --verbose -I /moncic-ci --source-type rpm-arpa centos8 https://github.com/arpa-simc/dballe-web
2023-05-15 10:38:48 INFO run /tmp/tmpesm7gr7y# git -c advice.detachedHead=false clone --quiet https://github.com/arpa-simc/dballe-web
2023-05-15 10:38:49 INFO moncic.cli.build Source type: rpm-arpa
2023-05-15 10:38:49 INFO system.centos8 Starting system centos8 as mc-lelo using image /moncic-ci/centos8
2023-05-15 10:38:49 INFO system.centos8 Running systemd-run --property=KillMode=mixed --property=Type=notify --property=RestartForceExitStatus=133 --property=SuccessExitStatus=133 --property=Slice=machine.slice --property=Delegate=yes --property=TasksMax=16384 --property=WatchdogSec=3min systemd-nspawn --quiet --directory=/moncic-ci/centos8 --machine=mc-lelo --boot --notify-ready=yes --resolv-conf=replace-host --bind-ro=/tmp/tmpesm7gr7y/dballe-web:/srv/moncic-ci/source/dballe-web --ephemeral --suppress-sync=yes systemd.hostname=mc-lelo
2023-05-15 10:38:51 INFO system.centos8 Running check or create user 'root' and group 'root'
2023-05-15 10:38:51 INFO system.centos8 Running Run setup scripts from binds
2023-05-15 10:38:51 INFO moncic.build.builder Build strategy: ARPA
2023-05-15 10:38:51 INFO system.centos8 Running Run the build
2023-05-15 10:38:51 INFO system.centos8.run /srv/moncic-ci/source/dballe-web# dnf builddep -q -y fedora/SPECS/dballe-web.spec
2023-05-15 10:39:21 INFO system.centos8 stderr: Importing GPG key 0x48628F8D:
2023-05-15 10:39:21 INFO system.centos8 stderr:  Userid     : "simc_stable (None) <simc#stable@copr.fedorahosted.org>"
2023-05-15 10:39:21 INFO system.centos8 stderr:  Fingerprint: C4C8 4F6E 3CC9 46CF FE95 90D0 A913 7D54 4862 8F8D
2023-05-15 10:39:21 INFO system.centos8 stderr:  From       : https://download.copr.fedorainfracloud.org/results/simc/stable/pubkey.gpg
2023-05-15 10:39:31 INFO system.centos8 stdout: 
2023-05-15 10:39:31 INFO system.centos8 stdout: Installed:
2023-05-15 10:39:31 INFO system.centos8 stdout:   dballe-common-9.4-2.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   libdballe9-9.4-2.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   libgfortran-8.5.0-16.el8_7.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   libpq-13.5-1.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   libquadmath-8.5.0-16.el8_7.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   libwreport-common-3.35-1.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   libwreport-devel-3.35-1.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   libwreport3-3.35-1.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   lua-devel-5.3.4-12.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   mariadb-connector-c-3.1.11-2.el8_3.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   mariadb-connector-c-config-3.1.11-2.el8_3.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   openblas-0.3.15-4.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   openblas-threads-0.3.15-4.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-babel-2.5.1-7.el8.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-click-6.7-8.el8.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-dballe-9.4-2.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-flask-1:1.1.2-5SIMC.el8.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-itsdangerous-0.24-14.el8.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-jinja2-2.10.1-3.el8.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-markupsafe-0.23-19.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-numpy-1:1.14.3-10.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-pytz-2017.2-9.el8.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-werkzeug-1.0.1-5SIMC.el8.noarch
2023-05-15 10:39:31 INFO system.centos8 stdout:   python3-wreport3-3.35-1.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout:   xapian-core-libs-1.4.18-3.el8.x86_64
2023-05-15 10:39:31 INFO system.centos8 stdout: 
{
 "source": {
  "source": "https://github.com/arpa-simc/dballe-web",
  "host_path": "/tmp/tmpesm7gr7y/dballe-web",
  "guest_path": "/srv/moncic-ci/source/dballe-web"
 },
 "distro": "rocky:8",
 "name": "dballe-web",
 "success": false,
 "artifacts": [],
 "artifacts_dir": null,
 "source_only": false,
 "on_success": [],
 "on_fail": [],
 "on_end": [],
 "specfile": "fedora/SPECS/dballe-web.spec"
}
Traceback (most recent call last):
  File "/usr/bin/monci", line 42, in <module>
    cli.run_main(main)
  File "/usr/lib/python3.10/site-packages/moncic/cli/base.py", line 68, in run_main
    sys.exit(func())
  File "/usr/bin/monci", line 38, in main
    return handler.run()
  File "/usr/lib/python3.10/site-packages/moncic/cli/build.py", line 97, in run
    builder.run_build()
  File "/usr/lib/python3.10/site-packages/moncic/utils/guest.py", line 19, in wrapper
    return f(*args, **kw)
  File "/usr/lib/python3.10/site-packages/moncic/build/builder.py", line 138, in run_build
    self.build = container.run_callable(
  File "/usr/lib/python3.10/site-packages/moncic/container.py", line 462, in run_callable
    return completed.result()
  File "/usr/lib/python3.10/site-packages/moncic/runner.py", line 178, in result
    raise self.exc_info[1].with_traceback(self.exc_info[2])
  File "/usr/lib/python3.10/site-packages/moncic/runner.py", line 509, in execute
    res = self.func(*self.args)
  File "/usr/lib/python3.10/site-packages/moncic/utils/guest.py", line 32, in wrapper
    return f(*args, **kw)
  File "/usr/lib/python3.10/site-packages/moncic/build/builder.py", line 194, in build_in_container
    self.build.build()
  File "/usr/lib/python3.10/site-packages/moncic/utils/guest.py", line 32, in wrapper
    return f(*args, **kw)
  File "/usr/lib/python3.10/site-packages/moncic/build/arpa.py", line 123, in build
    with self.system.images.session.moncic.privs.user():
AttributeError: 'ARPA' object has no attribute 'system'