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

Fix build.sh's emerge console output to be a bit friendlier #175

Open
jonesmz opened this issue Dec 31, 2022 · 2 comments
Open

Fix build.sh's emerge console output to be a bit friendlier #175

jonesmz opened this issue Dec 31, 2022 · 2 comments

Comments

@jonesmz
Copy link
Contributor

jonesmz commented Dec 31, 2022

Specifically the "Load avg: 4.43, 4.95, 4.92" output that puts quite a lot of unnecessary linebreaks in the output.

Upstream link: https://bugs.gentoo.org/889224 partial improvement #174

@jlpoolen
Copy link

jlpoolen commented Jan 2, 2023

Not finished, but the regular expression does what I think is needed --- removing the intermittent status lines that simply have a carriage return and no line-feed.

I've left in my testing stuff so the script is readily adaptable for further quick tests and sample data for a quick run.
The sample data should have some carriage returns only, an no line feeds, in it. One has to be careful as clipboards tend to add line feeds to carriage returns. Add suffix ".txt" since GitHut does not allow Perl scripts to be dropped into this interface.

Edit: removed older incorrect file, remove_statuses.pl, and am replacing with remove_statuses_C.pl
remove_statuses_C - Copy.pl.txt

@jlpoolen
Copy link

jlpoolen commented Jan 2, 2023

Here's a comparison:

Jenkins output downloaded and run through ansi2html: https://salemdata.net/GenPi64/2022_12_30_Build_log_unmodified.txt.html

Output from remove_statuses_C.pl after removing carriage return entries within a line, adding line numbers, and run through ansi2html: https://salemdata.net/GenPi64/output.txt.html

I would like to have the ability to keep active the line entry when a job is completed as it will allow me to parse the log file and determine the actual amount of time a specific package took to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants