Bug 228113 - Add .gitignore file for CISupport
Summary: Add .gitignore file for CISupport
Status: RESOLVED FIXED
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-07-20 11:22 PDT by Aakash Jain
Modified: 2021-07-28 09:55 PDT (History)
6 users (show)

See Also:


Attachments
[fast-cq] Patch (867 bytes, patch)
2021-07-20 11:23 PDT, Aakash Jain
no flags 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-07-20 11:22:32 PDT
Add .gitignore file for CISupport, especially for various buildbot related services we host from that directory.
Comment 1 Aakash Jain 2021-07-20 11:23:47 PDT
Created attachment 433884 [details]
[fast-cq] Patch
Comment 2 Alexey Proskuryakov 2021-07-20 11:54:49 PDT
Is it possible to NOT have these files in a checkout? This seems like papering over the issue.
Comment 3 Aakash Jain 2021-07-20 11:59:54 PDT
These log files are generated on the server hosting the applications (not on individual user's machines). They pollute the 'git status' command on those servers. Those log files are part of the intended functionality (e.g.: twistd.log for buildbot)
Comment 4 Alexey Proskuryakov 2021-07-20 12:04:51 PDT
I understand, it's just unclear to me why they have to be here even on the server. It seems like it can only add trouble because of potentially conflicting access restrictions, and/or be bad for security to mix source code and runtime data.
Comment 5 Jonathan Bedard 2021-07-27 07:12:23 PDT
(In reply to Alexey Proskuryakov from comment #4)
> I understand, it's just unclear to me why they have to be here even on the
> server. It seems like it can only add trouble because of potentially
> conflicting access restrictions, and/or be bad for security to mix source
> code and runtime data.

If this is the concern, I think we need to change how we have buildbot services running. Given that the current instructions for running our buildbot instances (both locally and on the production servers) has them running out of Tools/CISupport/<host>, this is the right change. Even if we change where we're running our production servers, this is still applicable for local instances, and our other services (even those cloud hosted) tend to run "in place"
Comment 6 Radar WebKit Bug Importer 2021-07-27 11:23:24 PDT
<rdar://problem/81172638>
Comment 7 EWS 2021-07-27 16:59:10 PDT
Committed r280362 (240009@main): <https://commits.webkit.org/240009@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433884 [details].
Comment 8 Alexey Proskuryakov 2021-07-27 17:39:53 PDT
> If this is the concern, I think we need to change how we have buildbot
> services running. Given that the current instructions for running our
> buildbot instances (both locally and on the production servers) has them
> running out of Tools/CISupport/<host>, this is the right change. Even if we
> change where we're running our production servers, this is still applicable
> for local instances, and our other services (even those cloud hosted) tend
> to run "in place"

I don't think that you understood my comment.

Running from a checkout is completely orthogonal to having write access to the checkout and messing it up! Neither local nor cloud nor any other deployments have to write to write to the directory where the code is in.

This is like saying that Apache logs must be in /usr/sbin, because that's where the httpd binary is.
Comment 9 Jonathan Bedard 2021-07-28 08:07:18 PDT
(In reply to Alexey Proskuryakov from comment #8)
> > If this is the concern, I think we need to change how we have buildbot
> > services running. Given that the current instructions for running our
> > buildbot instances (both locally and on the production servers) has them
> > running out of Tools/CISupport/<host>, this is the right change. Even if we
> > change where we're running our production servers, this is still applicable
> > for local instances, and our other services (even those cloud hosted) tend
> > to run "in place"
> 
> I don't think that you understood my comment.
> 
> Running from a checkout is completely orthogonal to having write access to
> the checkout and messing it up! Neither local nor cloud nor any other
> deployments have to write to write to the directory where the code is in.
> 
> This is like saying that Apache logs must be in /usr/sbin, because that's
> where the httpd binary is.

Ah, I see the point.

Seems like we would want a "log" directory inside the checkout, in that case. Sort of like what we do for autoinstall and WebKitBuild?
Comment 10 Alexey Proskuryakov 2021-07-28 09:55:02 PDT
I'd say somewhere in /var/log, not inside the checkout? Perhaps I'm missing something too.