freebsd-ci icon indicating copy to clipboard operation
freebsd-ci copied to clipboard

Pass -s -de to buildworld/buildkernel make steps

Open arichardson opened this issue 3 years ago • 3 comments

Printing all the commands results in a 80+ MB logfile and is very rarely useful. Passing -de should print the failed command but unfortunately does not work when combined with -jN. However, I have submitted a patch to fix this problem at https://reviews.freebsd.org/D29647, so there should be no downsides to enabling -s once that has been merged.

arichardson avatar Apr 08 '21 14:04 arichardson

Basically I like this idea, and it can help generating sane mails on build fails. I somehow want to keep the full log because of sometimes we need to dig into it for a naughty racing condition in dependencies. It happened few times previously.

I am thinking some possibilities:

  • Just using this, as there seems less dependency racing issues recently.
  • Keep the full console output (since I don't think people will watch it scrolls), but send the mail through summarizing script like tools/tools/whereintheworld/whereintheworld.pl
  • Have the concise console output, but put the full log into a file, put atrifact server along with the built artifacts.

Thoughts?

lwhsu avatar Apr 09 '21 03:04 lwhsu

I set up the CheriBSD Jenkins to always use -s and I find that even for build races you generally get enough information to guess what went wrong. If disk space is not an issue, we can keep the verbose output. In our case I wanted to avoid 80MB * 7+ configurations of logs being saved on the jenkins master for each build (and also make the output more readable).

I think if make is updated to include https://reviews.freebsd.org/D29647, we should also be able to debug build races with -s?

arichardson avatar Apr 09 '21 08:04 arichardson

Bmake has now been updated to include my patch, should we merge this to make the build output more useful?

arichardson avatar Jul 02 '21 11:07 arichardson