Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build debian-gpb-upstream with explicit source type #97

Closed
edigiacomo opened this issue May 17, 2023 · 0 comments
Closed

Cannot build debian-gpb-upstream with explicit source type #97

edigiacomo opened this issue May 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@edigiacomo
Copy link
Member

The test is executed in a fresh checkout of the wreport repository.

wreport (master)]$ monci ci --debug -s debian-gbp-upstream --branch master ubuntujammy .
2023-05-17 18:20:07 DEBUG moncic.system ubuntujammy: look for configuration on /var/lib/machines/ubuntujammy.yaml
2023-05-17 18:20:07 DEBUG moncic.system ubuntujammy: look for configuration on /home/edg/.config/moncic-ci/ubuntujammy.yaml
2023-05-17 18:20:07 DEBUG moncic.system ubuntujammy: configuration found at /home/edg/.config/moncic-ci/ubuntujammy.yaml
2023-05-17 18:20:07 DEBUG moncic.system ubuntujammy: image pathname: /var/lib/machines/ubuntujammy
2023-05-17 18:20:07 INFO run /tmp/tmp320b9gd_$ git -c advice.detachedHead=false clone --quiet /home/edg/devel/arpae/wreport --branch master
2023-05-17 18:20:07 INFO moncic.cli.build Source type: debian-gbp-upstream
2023-05-17 18:20:07 INFO system.ubuntujammy Starting system ubuntujammy as mc-doyawa using image /var/lib/machines/ubuntujammy
2023-05-17 18:20:07 INFO system.ubuntujammy 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/ubuntujammy --machine=mc-doyawa --boot --notify-ready=yes --resolv-conf=replace-host --bind-ro=/tmp/tmp320b9gd_/wreport:/srv/moncic-ci/source/wreport --bind=/home/edg/.cache/moncic-ci/debs/tmpclzs6gg9:/var/cache/apt/archives --ephemeral --suppress-sync=yes systemd.hostname=mc-doyawa
2023-05-17 18:20:07 INFO system.ubuntujammy Running check or create user 'edg' and group 'edg'
2023-05-17 18:20:07 DEBUG asyncio Using selector: EpollSelector
2023-05-17 18:20:07 INFO system.ubuntujammy Running Run setup scripts from binds
2023-05-17 18:20:07 DEBUG asyncio Using selector: EpollSelector
2023-05-17 18:20:07 INFO moncic.build.builder Build strategy: Debian
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:imagedir = '/var/lib/machines'
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:imageconfdirs = ['/home/edg/.config/moncic-ci']
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:compression = None
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:auto_sudo = True
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:tmpfs = False
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:deb_cache_dir = '/home/edg/.cache/moncic-ci/debs'
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:extra_packages_dir = None
2023-05-17 18:20:07 DEBUG moncic.build.builder moncic:build_artifacts_dir = None
2023-05-17 18:20:07 DEBUG moncic.build.builder container:ephemeral = True
2023-05-17 18:20:07 DEBUG moncic.build.builder container:tmpfs = False
2023-05-17 18:20:07 DEBUG moncic.build.builder container:binds = [BindConfig(source='/tmp/tmp320b9gd_/wreport', destination='/srv/moncic-ci/source/wreport', bind_type='ro', mount_options=[], cwd=True, setup=<bound method BindConfig.bind_hook_setup_volatile of <class 'moncic.container.BindConfig'>>, teardown=None), BindConfig(source='/home/edg/.cache/moncic-ci/debs/tmpclzs6gg9', destination='/var/cache/apt/archives', bind_type='rw', mount_options=[], cwd=False, setup=<bound method BindConfig.bind_hook_setup_aptcache of <class 'moncic.container.BindConfig'>>, teardown=<bound method BindConfig.bind_hook_teardown_aptcache of <class 'moncic.container.BindConfig'>>)]
2023-05-17 18:20:07 DEBUG moncic.build.builder container:forward_user = UserConfig(user_name='edg', user_id=1000, group_name='edg', group_id=1000)
2023-05-17 18:20:07 DEBUG moncic.build.builder run:check = True
2023-05-17 18:20:07 DEBUG moncic.build.builder run:cwd = '/srv/moncic-ci/source/wreport'
2023-05-17 18:20:07 DEBUG moncic.build.builder run:user = UserConfig(user_name='root', user_id=0, group_name='root', group_id=0)
2023-05-17 18:20:07 DEBUG moncic.build.builder run:interactive = False
2023-05-17 18:20:07 DEBUG moncic.build.builder run:use_path = False
2023-05-17 18:20:07 INFO system.ubuntujammy Running Run the build
2023-05-17 18:20:07 DEBUG asyncio Using selector: EpollSelector
2023-05-17 18:20:07 INFO system.ubuntujammy.run /srv/moncic-ci/source/wreport# debconf-set-selections
2023-05-17 18:20:07 INFO system.ubuntujammy.run /srv/moncic-ci/source/wreport$ dpkg-parsechangelog
2023-05-17 18:20:08 INFO system.ubuntujammy stderr: dpkg-parsechangelog: error: cannot open file debian/changelog: No such file or directory
2023-05-17 18:20:08 INFO system.ubuntujammy Running Run teardown scripts from binds
2023-05-17 18:20:08 DEBUG asyncio Using selector: EpollSelector
{
 "source": {
  "source": ".",
  "host_path": "/tmp/tmp320b9gd_/wreport",
  "guest_path": "/srv/moncic-ci/source/wreport",
  "gbp_args": []
 },
 "distro": "ubuntu:jammy",
 "name": null,
 "success": false,
 "artifacts": [],
 "artifacts_dir": null,
 "source_only": false,
 "on_success": [],
 "on_fail": [],
 "on_end": [],
 "build_profile": ""
}
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/debian.py", line 148, in build
    self.srcinfo = get_source_info(self.source.guest_path)
  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/debian.py", line 45, in get_source_info
    res = run(["dpkg-parsechangelog"], stdout=subprocess.PIPE, text=True)
  File "/usr/lib/python3.10/site-packages/moncic/utils/run.py", line 35, in run
    return subprocess.run(cmd, check=check, **kw)
  File "/usr/lib64/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-parsechangelog']' returned non-zero exit status 25.

Without -s debian-gbp-upstream the build executes successfully.

The config file for the image:

$ cat ~/.config/moncic-ci/ubuntujammy.yaml
distro: jammy
maintscript: |
    sed -i -re 's/main$/main universe/' /etc/apt/sources.list
    apt-get update
    apt-get -y install build-essential dpkg-dev fakeroot git eatmydata iproute2 git-buildpackage
@edigiacomo edigiacomo added the bug Something isn't working label May 17, 2023
spanezz added a commit that referenced this issue May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants