-
Notifications
You must be signed in to change notification settings - Fork 4
Upgrade toolchain to v3 #59
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
Conversation
Since the runner used for the various internal actions doesn't need to update itself, doesn't need any new features, and still works, there is no need to update it. |
Without this fix, when building calculator for example with the upgraded image from toltec-dev/toltec#951, I get the following at the end of the build log [ DEBUG] toltec.hooks.patch_rm2fb: Adding dependency to rm2fb ('patch_rm2fb' flag is set)
[ DEBUG] urllib3.connectionpool: http://localhost:None "POST /v1.41/containers/create HTTP/1.1" 201 88
[ DEBUG] urllib3.connectionpool: http://localhost:None "GET /v1.41/containers/3f4e4cde3115ea08497e7e82f8b2b66139b24c4e59006d46c5fa97b7f0334d67/json HTTP/1.1" 200 None
[ DEBUG] urllib3.connectionpool: http://localhost:None "POST /v1.41/containers/3f4e4cde3115ea08497e7e82f8b2b66139b24c4e59006d46c5fa97b7f0334d67/start HTTP/1.1" 204 0
[ DEBUG] urllib3.connectionpool: http://localhost:None "GET /v1.41/containers/3f4e4cde3115ea08497e7e82f8b2b66139b24c4e59006d46c5fa97b7f0334d67/logs?stderr=1&stdout=1×tamps=0&follow=1&tail=all HTTP/1.1" 200 None
[ DEBUG] urllib3.connectionpool: http://localhost:None "GET /v1.41/containers/3f4e4cde3115ea08497e7e82f8b2b66139b24c4e59006d46c5fa97b7f0334d67/json HTTP/1.1" 200 None
[ DEBUG] toltec.hooks.patch_rm2fb: : E: The repository 'http://security.debian.org/debian-security buster/updates Release' does not have a Release file.
[ DEBUG] toltec.hooks.patch_rm2fb: : E: The repository 'http://deb.debian.org/debian buster Release' does not have a Release file.
[ DEBUG] toltec.hooks.patch_rm2fb: : E: The repository 'http://deb.debian.org/debian buster-updates Release' does not have a Release file.
[ DEBUG] urllib3.connectionpool: http://localhost:None "POST /v1.41/containers/3f4e4cde3115ea08497e7e82f8b2b66139b24c4e59006d46c5fa97b7f0334d67/wait HTTP/1.1" 200 None
[ DEBUG] urllib3.connectionpool: http://localhost:None "DELETE /v1.41/containers/3f4e4cde3115ea08497e7e82f8b2b66139b24c4e59006d46c5fa97b7f0334d67?v=False&link=False&force=False HTTP/1.1" 204 0
Traceback (most recent call last):
File "/home/palfrey/src/remarkable/toltec/./scripts/package_build.py", line 70, in <module>
if not builder.make(recipe_bundle, build_matrix, False):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/builder.py", line 165, in make
if not self._make_arch(
^^^^^^^^^^^^^^^^
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/builder.py", line 192, in _make_arch
self.post_build(recipe, src_dir)
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/util.py", line 373, in call
call_listener(*args, **kwargs)
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/hooks/patch_rm2fb.py", line 78, in post_build
run_in_container(builder, src_dir, logger, script)
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/hooks/strip.py", line 60, in run_in_container
bash.pipe_logs(_logger, logs)
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/bash.py", line 495, in pipe_logs
raise err
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/bash.py", line 475, in pipe_logs
for line in logs:
File "/home/palfrey/src/remarkable/toltec/.venv/lib/python3.11/site-packages/toltec/bash.py", line 450, in run_script_in_container
raise ScriptError(f"Script exited with code {result['StatusCode']}")
toltec.bash.ScriptError: Script exited with code 100 (without the upgraded image, it doesn't get that far as the image used for calculator itself bugs out before that) |
So this is just in the log, but the build doesn't fail? I'm on mobile and not able to get the logs to load at the moment. |
Nope, seeing build failures. |
Alright, now that we have the other PR triggering builds, we can see the errors there as well. Your original description stated that this breaks the patch_rm2fb hook, but it actually fixes it right? The automated tests include a patch_rm2fb recipe that should verify that this is working. |
Yup, fixed that.
Wasn't seeing it clearly in the logs, but I've been able to show |
Related to toltec-dev/toltec#950, and this PR fixes usage of
patch_rm2fb