Bug 230104 - [build.webkit.org] Only display filtered build logs
Summary: [build.webkit.org] Only display filtered build logs
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-09 09:31 PDT by Aakash Jain
Modified: 2022-04-13 04:38 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.18 KB, patch)
2021-09-09 09:40 PDT, Aakash Jain
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2021-09-09 09:31:21 PDT
Only display filtered build logs for build.webkit.org using filter-build-webkit script. This would also help in keeping the buildbot instance speedy.
Comment 1 Aakash Jain 2021-09-09 09:31:42 PDT
Similar to rdar://82628702
Comment 2 Aakash Jain 2021-09-09 09:40:48 PDT
Created attachment 437752 [details]
Patch
Comment 3 Aakash Jain 2021-09-09 09:41:36 PDT
Sample run: https://build.webkit-dev.org/#/builders/49/builds/5
Comment 4 Darin Adler 2021-09-09 10:21:09 PDT
Comment on attachment 437752 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=437752&action=review

> Tools/CISupport/build-webkit-org/steps_unittest.py:423
> +                command='perl ./Tools/Scripts/build-webkit --release --prefix=/app/webkit/WebKitBuild/Release/install --gtk | Tools/Scripts/filter-build-webkit',

Why are we using a "./" prefix for build-webkit but not for filter-build-webkit? I think it should be used in both cases, since we don’t want $PATH involved.
Comment 5 Aakash Jain 2021-09-09 10:33:07 PDT
Comment on attachment 437752 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=437752&action=review

>> Tools/CISupport/build-webkit-org/steps_unittest.py:423
>> +                command='perl ./Tools/Scripts/build-webkit --release --prefix=/app/webkit/WebKitBuild/Release/install --gtk | Tools/Scripts/filter-build-webkit',
> 
> Why are we using a "./" prefix for build-webkit but not for filter-build-webkit? I think it should be used in both cases, since we don’t want $PATH involved.

No specific reason apart from "./" being in this configuration from past. Most of our recent buildbot configuration doesn't have "./". This should work without $PATH being involved, as it's still relative path from current directory.
Comment 6 Aakash Jain 2021-09-09 10:34:52 PDT
Alexey and Ryan don't think it's a good idea since we might need full logs in certain circumstances. Will skip it for now, until we have another way to get full logs when required.
Comment 7 Darin Adler 2021-09-09 10:44:43 PDT
Comment on attachment 437752 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=437752&action=review

>>> Tools/CISupport/build-webkit-org/steps_unittest.py:423
>>> +                command='perl ./Tools/Scripts/build-webkit --release --prefix=/app/webkit/WebKitBuild/Release/install --gtk | Tools/Scripts/filter-build-webkit',
>> 
>> Why are we using a "./" prefix for build-webkit but not for filter-build-webkit? I think it should be used in both cases, since we don’t want $PATH involved.
> 
> No specific reason apart from "./" being in this configuration from past. Most of our recent buildbot configuration doesn't have "./". This should work without $PATH being involved, as it's still relative path from current directory.

I think you misunderstood my point. I was talking about relying on $PATH to find the script, bur rather the inverse. Typically the reason one would specify "./" is to make sure that a similarly named script in $PATH does not get used by accident, to avoid unwanted $PATH. But of course the chances that there is another "Tools/Scripts/filter-build-webkit" are so small it’s not a practical concern.

I know you’re not planning on landing the patch, so not important. But generally we want to be consistent.
Comment 8 Aakash Jain 2021-09-09 11:01:29 PDT
(In reply to Darin Adler from comment #7)
> I think you misunderstood my point. I was talking about relying on $PATH to find the script, bur rather the inverse. Typically the reason one would specify "./" is to make sure that a similarly named script in $PATH does not get used by accident, to avoid unwanted $PATH. But of course the chances that there is another "Tools/Scripts/filter-build-webkit" are so small it’s not a practical concern.
ok, got it. Agree that the chances of having another "Tools/Scripts/filter-build-webkit" in $PATH are very small.
Comment 9 Alexey Proskuryakov 2021-09-10 10:20:56 PDT
Is PATH actually involved when shell looks for the tool? E.g. this fails even though jsc-stress-test-helpers is a directory in Tools/Scripts, and that is in my PATH.

$ jsc-stress-test-helpers/bytecode-cache-test-helper.sh
-bash: jsc-stress-test-helpers/bytecode-cache-test-helper.sh: No such file or directory

So I think that "./" is only relevant when there isn't any path specified in the invocation. Agreed that we should target a consistent style.
Comment 10 Darin Adler 2021-09-10 11:28:05 PDT
(In reply to Alexey Proskuryakov from comment #9)
> So I think that "./" is only relevant when there isn't any path specified in
> the invocation.

Oh, OK my mistake. Didn't realize the path wasn’t involved in that case.

I think the old use of "./" here is mysterious, then. Seems like perl probably doesn’t need that "./".

Not important, just peculiar.
Comment 11 Aakash Jain 2021-09-10 12:08:25 PDT
Removing the old "./" in Bug 230165 to make build.webkit.org configuration consistent with EWS.
Comment 12 Radar WebKit Bug Importer 2022-04-13 04:28:04 PDT
<rdar://problem/91681929>