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

Unclear how to access build logs #3

Closed
truist opened this issue Feb 28, 2017 · 3 comments
Closed

Unclear how to access build logs #3

truist opened this issue Feb 28, 2017 · 3 comments

Comments

@truist
Copy link

truist commented Feb 28, 2017

Per my original comments:

It's still not clear to me how to see the output logs. It looks like only the cron job will log to /var/pkg_comp/log, but that's not clear from the blog post. ("...you can find the logs for all builds...") I also am still not clear on how to see the detailed logs from the individual packages, both during the build, and after. I found them once, but I don't remember where. (I know that's probably more of a pbulk issue, but it would help to explain it here.)

I think there's a 2x2 matrix of cases:

1a. During cron build
1b. After cron build
2a. During manual (auto -f) build
2b. After manual build

Ideally it would always just be "here's where the active and/or residual logs are, from outside the sandbox" but maybe it's not that easy.

@jlmuir
Copy link
Contributor

jlmuir commented Mar 24, 2017

+1

It would be extremely useful to have the pbulk log output preserved, preferably somewhere under /var/pkg_comp/log. pbulk generates its log output in the directory specified by its bulklog variable which pkg_comp appears to set to /pkg_comp/work/bulklog in line 370. If pkg_comp could take care of copying that out of the sandbox to a directory under /var/pkg_comp/log, perhaps /var/pkg_comp/log/pbulk, that would be great!

@jlmuir
Copy link
Contributor

jlmuir commented Mar 27, 2017

A workaround is possible with pull request #14 that adds hook support for a user-defined post_build_hook routine. By defining that routine to copy pbulk's log out of the sandbox before the sandbox gets destroyed, pbulk's log can be accessed after pkg_comp finishes executing. In the pull request, I give an example definition for that routine that I use on macOS.

jmmv added a commit that referenced this issue Aug 31, 2018
Add a new PBULK_LOG configuration variable that points to a directory
outside of the sandbox and that is used to record all pbulk build logs.
These logs are necessary to troubleshoot any build failures that happen
during the build, and are also useful under successful conditions to
get summaries about what was built.

Fixes #3.
@jmmv
Copy link
Owner

jmmv commented Aug 31, 2018

I'm playing with a fix that adds a new configuration setting that points at a location that will hold the logs, and just making pbulk dump its logs there. We can bind-mount that location; no need to deal with post-build copies.

jmmv added a commit that referenced this issue Sep 3, 2018
Add a new PBULK_LOG configuration variable that points to a directory
outside of the sandbox and that is used to record all pbulk build logs.
These logs are necessary to troubleshoot any build failures that happen
during the build, and are also useful under successful conditions to
get summaries about what was built.

Fixes #3.
@jmmv jmmv closed this as completed in 5f4129d Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants