Repository navigation
Conversation
Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Preserve third-party and mixed-ownership notices. Remove redundant Uber- only MIT blocks immediately after Java package declarations. Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Record copied source, generated-model provenance, and resolved bundled dependencies. Include full license texts and retain outstanding release-review requirements. Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Preserve project legal files in binary, source, and Javadoc archives. Retain fat-JAR dependency notices separately to prevent collisions. Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
There was a problem hiding this comment.
Hey, please never do this. AGENTS.md loads to every agent, and bloating the context with a license header is wasteful.
There was a problem hiding this comment.
I ran the replace/add script agnostically on all java and source files, so missed noticing this.
But now that we are discussing, not even SPDX?
E.g. https://github.com/apache/airflow/blob/59f890be7a46cfab3d2dfa93903919372d9d1205/AGENTS.md?plain=1#L1-L2
There was a problem hiding this comment.
Okay I checked some others, only airflow has that, better we drop.
| This product includes software developed by The Apache Software | ||
| Foundation (http://www.apache.org/). |
There was a problem hiding this comment.
Lines 15-16 duplicate lines 4-5.
| This product includes code from Apache Pig: | ||
|
|
||
| Apache Pig | ||
| Copyright 2008-2014 The Apache Software Foundation |
There was a problem hiding this comment.
I wonder if we can drop the code and reimplement it.
There was a problem hiding this comment.
This isn't addressed yet (wanted to leave it open for discussion) but got marked outdated.
Use JMeter's gather/render tooling with resolved artifact graphs. Separate project, source-release, and binary licensing, retaining only documented exact-version upstream exceptions. Verify dependency changes, missing metadata, exception guards, and rebuilds from source releases in CI. Assisted-by: Zed (GPT-6.1 Sol)
Exclude root AGENTS.md from header migration and RAT so the removed boilerplate is not reintroduced. Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Skip only JarInferTest's known .astubx.jar output during discovery. Continue checking real module archives and models at other paths. Assisted-by: Zed (GPT-6.1 Sol)
msridhar
left a comment
There was a problem hiding this comment.
Thanks a lot for this, super helpful! Can we split up this PR into multiple separate PRs each with a single purpose? I have trouble reviewing this one as there are too many things going on. E.g., just adding license headers everywhere could be a separate PR. We don't need to do a stack; probably many of them can land in parallel.
Also, as I'm new to Apache, if we could link the relevant Apache policies to explain the changes that'd be great. E.g., where exactly do license headers have to appear? On every text file? Or every file that is source code? What about configuration? Here I see license headers on config YAML files, and on .github/third-party/README.md. Maybe that's all necessary, but I'd like to just check on that, as it does add clutter.
|
+1 |
I am not sure about this one.
Can do that, will take a bit more time. I'll be converting this to draft in the meanwhile. |
This is not strictly necessary for all cases. But it'd be good to have some explanation of why each change is being made, unless it's quite obvious. |
To aid discussions, I started a comparative chat with my agent: (The following text is pasted verbatim from a response to an inquiry about the rules)
The authoritative reference is the ASF Source Header and Copyright Notice Policy. Default
ExceptionsThe policy explicitly gives these examples of files that may omit headers:
It says:
SPDXThe current policy permits an SPDX replacement, but requires all three fields: A bare |
|
I feel we should skip a header for all markdown files (generally, all documentation I think) and files like |


Note: For now, preserved Maven coordinates such as
com.uber.nullaway:nullaway, Java package names, and versions - as renaming those would be a separate compatibility-affecting migration.AI assistance - Zed + gpt 6.1 sol