ARPA-SIMC / moncic-ci

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

monci-ci 0.13 fails with rpm-arpa source type #103

Closed edigiacomo closed 10 months ago

edigiacomo commented 1 year ago
[edg@digiacomo-lp-smr moncic-ci ((v0.12-1) $)]$ monci --version
0.13
[edg@digiacomo-lp-smr moncic-ci ((v0.12-1) $)]$ monci ci --verbose --source-type rpm-arpa fedora38 .
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 75, in run
    with self.source(system.distro, self.args.source) as source:
  File "/usr/lib64/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/lib/python3.10/site-packages/moncic/cli/moncic.py", line 247, in source
    source = source_cls.create(distro, input_source)
AttributeError: type object 'ARPASource' has no attribute 'create'

The same command works using monci v0.12

[edg@digiacomo-lp-smr moncic-ci ((v0.12-1) $)]$ $PWD/monci ci --verbose --source-type rpm-arpa fedora38 .
2023-09-08 11:12:20 INFO moncic.cli.build Source type: rpm-arpa
2023-09-08 11:12:20 INFO system.fedora38 Starting system fedora38 as mc-bizisi using image /var/lib/machines/fedora38
2023-09-08 11:12:20 INFO system.fedora38 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=/var/lib/machines/fedora38 --machine=mc-bizisi --boot --notify-ready=yes --resolv-conf=replace-host --bind-ro=/home/edg/devel/arpae/moncic-ci:/srv/moncic-ci/source/moncic-ci --ephemeral --suppress-sync=yes systemd.hostname=mc-bizisi
2023-09-08 11:12:21 INFO system.fedora38 Running check or create user 'edg' and group 'edg'
2023-09-08 11:12:21 INFO system.fedora38 Running Run setup scripts from binds
2023-09-08 11:12:21 INFO moncic.build.builder Build strategy: ARPA
2023-09-08 11:12:21 INFO system.fedora38 Running Run the build
2023-09-08 11:12:21 INFO system.fedora38.run /srv/moncic-ci/source/moncic-ci# dnf builddep -y fedora/SPECS/moncic-ci.spec
2023-09-08 11:12:22 INFO system.fedora38 stdout: Copr repo for stable owned by simc              723 kB/s | 363 kB     00:00
....
edigiacomo commented 1 year ago

Note: the tests for monci v0.13 run successfully

[edg@digiacomo-lp-smr moncic-ci ((v0.12-1) $)]$ $PWD/monci ci --verbose --source-type rpm-arpa fedora38 https://github.com/arpa-simc/moncic-ci --branch v0.13-1
...
{
 "source": {
  "source": "https://github.com/arpa-simc/moncic-ci",
  "host_path": "/tmp/tmpiw4xqkq6/moncic-ci",
  "guest_path": "/srv/moncic-ci/source/moncic-ci",
  "trace_log": [
   "git -c advice.detachedHead=false clone --quiet https://github.com/arpa-simc/moncic-ci --branch v0.13-1",
   "git checkout -b moncic-ci"
  ]
 },
 "distro": "fedora:38",
 "name": "moncic-ci",
 "success": true,
 "artifacts": [],
 "trace_log": [],
 "artifacts_dir": null,
 "source_only": false,
 "on_success": [],
 "on_fail": [],
 "on_end": [],
 "specfile": "fedora/SPECS/moncic-ci.spec"
}