gaogaotiantian commented on PR #60365:
URL: https://github.com/apache/spark/pull/60365#issuecomment-6834115995

   Hi @nchammas , all great questions. Let me try to explain.
   
   > Why commit the image? This will lead to conflicts if any two PRs touch the 
schedules. We could instead just have the tool for contributors to use as a 
local aid when editing schedules.
   
   The image will be there so everyone can easily view the schedule through 
github directly, without running the script. It's very rare for us to touch the 
schedule in general. The workflow itself - yes more frequent, but much less on 
the schedule. `svg` is basically code. We have the exact same issue for any 
generated artifacts, proto etc. If they are not generated too frequently, I 
think it's acceptable.
   
   > I know that with AI it's easy to write and maintain large amounts of code, 
especially in a low-risk area like this dev-only tool. But do we really want to 
add 1,200 lines of Python (including a custom SVG renderer) for this? This 
feels like a job for [inline script 
dependencies](https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-script-metadata).
   
   Yes the code is cheap now. This is kind of an experiment that is well 
isolated so we can remove it anytime when we want. The reason for an SVG 
renderer is to make it "contained". It relies on nothing so we don't have to 
put any dependencies in our code base. It would be a clean removal if we don't 
like it. We can probably reduce the amount of code, the question is - do we 
need to for this kind of non-production helper code in `dev`.
   
   > Why not contribute this to the ASF Infra project so it's part of the [CI 
dashboard](https://ci-test.apache.org/#/project/spark) there? Feels like that 
would be a better home for this kind of thing long term.
   
   The per schedule estimation is static now, so it's not directly applicable 
to ASF infra project. Not sure if it applies to every ASF project because some 
of them might run scheduled CI out of ASF infra. I agree that if ASF infra has 
this kind of graph it would be super nice. I would put this point as "out of 
scope". I have no problem if someone adds it to ASF infra so we don't need it 
on our side.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to