Conversation
D:\a\_work\_temp\codeql3000\github\codeql\codeql.exe database trace-command --index-traceless-dbs --db-cluster D:\a\_work\_temp\codeql3000\d Running 2 commands for 3 databases: - D:\a\_work\_temp\codeql3000\d\cpp - D:\a\_work\_temp\codeql3000\d\javascript - D:\a\_work\_temp\codeql3000\d\python Running command in D:\a\_work\1\s: [D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\autobuild.cmd] [2023-04-25 22:24:54] [build-stdout] Single-threaded extraction. [2023-04-25 22:24:54] [build-stdout] packages\domain\interop\package.json: Main file set to packages\domain\interop\src\index.ts [2023-04-25 22:24:54] [build-stdout] packages\domain\shf_validator\package.json: Main file not found [2023-04-25 22:24:54] [build-stdout] Found Node.js at: node [2023-04-25 22:24:54] [build-stdout] Found Node.js version: v16.15.1 [2023-04-25 22:24:54] [build-stdout] Opening project D:\a\_work\1\s\build\tsconfig.json [2023-04-25 22:24:54] [build-stdout] Memory for TypeScript process: 2000 MB, and 400 MB reserve [2023-04-25 22:24:54] [build-stderr] D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:2572 [2023-04-25 22:24:54] [build-stderr] throw e; [2023-04-25 22:24:54] [build-stderr] ^ [2023-04-25 22:24:54] [build-stderr] Error: Debug Failure. Expected D:/a/_work/1/s/build/tsconfig.json === D:\a\_work\1\s\build\tsconfig.json. [2023-04-25 22:24:54] [build-stderr] at attachFileToDiagnostic (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:20186:18) [2023-04-25 22:24:54] [build-stderr] at Object.attachFileToDiagnostics (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:20218:42) [2023-04-25 22:24:54] [build-stderr] at Object.parseJsonText (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:32364:46) [2023-04-25 22:24:54] [build-stderr] at Object.parseJsonText (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:32092:23) [2023-04-25 22:24:54] [build-stderr] at parseConfigFileTextToJson (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:41734:33) [2023-04-25 22:24:54] [build-stderr] at Object.readConfigFile (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:41725:48) [2023-04-25 22:24:54] [build-stderr] at loadTsConfig (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\main.js:327:23) [2023-04-25 22:24:54] [build-stderr] at handleOpenProjectCommand (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\main.js:393:14) [2023-04-25 22:24:54] [build-stderr] at Interface.<anonymous> (D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\main.js:620:17) [2023-04-25 22:24:54] [build-stderr] at Interface.emit (node:events:527:28) [2023-04-25 22:24:55] [build-stderr] at Interface._onLine (node:readline:487:10) [2023-04-25 22:24:55] [build-stderr] at Interface._normalWrite (node:readline:661:12) [2023-04-25 22:24:55] [build-stderr] at Socket.ondata (node:readline:269:10) [2023-04-25 22:24:55] [build-stderr] at Socket.emit (node:events:527:28) [2023-04-25 22:24:55] [build-stderr] at addChunk (node:internal/streams/readable:315:12) [2023-04-25 22:24:55] [build-stderr] at readableAddChunk (node:internal/streams/readable:289:9) [2023-04-25 22:24:55] [build-stderr] at Socket.Readable.push (node:internal/streams/readable:228:10) [2023-04-25 22:24:55] [build-stderr] at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) [2023-04-25 22:24:55] [build-stderr] com.semmle.util.exception.CatastrophicError: The TypeScript parser wrapper crashed with exit code 1 [2023-04-25 22:24:55] [ERROR] Spawned process exited abnormally (code 1; tried to run: [D:\a\_work\_temp\codeql3000\github\codeql\tools\win64\tracer.exe, D:\a\_work\_temp\codeql3000\github\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\autobuild.cmd]) A fatal error occurred: Exit status 1 from command: [D:\a\_work\_temp\codeql3000\github\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, D:\a\_work\_temp\codeql3000\github\codeql\javascript\tools\autobuild.cmd]
WalkthroughThe pull request replaces the Apache 2.0 license text with a BSD 2-Clause license. The change affects only the license file content, specifically replacing Apache license terms including definitions, grant, redistribution conditions, and liability terms with BSD 2-Clause terms comprising copyright notice, redistribution conditions, and disclaimer. No code, functional logic, control flow, or error handling is modified. No exported or public entity declarations are added, removed, or modified. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
LICENSE(1 hunks)
🔇 Additional comments (2)
LICENSE (2)
3-3: Verify copyright holder is correct and authorized.Confirm that "Granja Cours" is the correct copyright holder and is authorized to relicense the project from Apache 2.0 to BSD 2-Clause.
1-24: Note: Unusual branch configuration detected.This PR targets
main←main(self-merge) and has draft status. Ensure this is intentional and the PR is ready for review. Typically, feature branches merge intomain, not the reverse.
| BSD 2-Clause License | ||
|
|
||
| Copyright (c) 2025, Granja Cours | ||
|
|
||
| Redistribution and use in source and binary forms, with or without | ||
| modification, are permitted provided that the following conditions are met: | ||
|
|
||
| 1. Redistributions of source code must retain the above copyright notice, this | ||
| list of conditions and the following disclaimer. | ||
|
|
||
| 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| this list of conditions and the following disclaimer in the documentation | ||
| and/or other materials provided with the distribution. | ||
|
|
||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
| AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
| FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
| OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
git ls-files | grep -E '(README|CHANGELOG|CONTRIBUTING|LICENSE|package\.json|\.github)' | head -20Repository: QuivrHQ/MegaParse
Length of output: 413
🏁 Script executed:
# Check git history of the LICENSE file to see previous license
git log --oneline --follow LICENSE | head -20Repository: QuivrHQ/MegaParse
Length of output: 101
🏁 Script executed:
# Check the current content of the LICENSE file
cat LICENSERepository: QuivrHQ/MegaParse
Length of output: 11417
🏁 Script executed:
# Look for references to Apache or License in README or other docs
rg -i 'apache|license' --max-count=20Repository: QuivrHQ/MegaParse
Length of output: 1528
🏁 Script executed:
# Check README for license discussion
head -50 README.mdRepository: QuivrHQ/MegaParse
Length of output: 1795
🏁 Script executed:
# Check for any CONTRIBUTING file
fd CONTRIBUTINGRepository: QuivrHQ/MegaParse
Length of output: 43
🏁 Script executed:
# Check git log more broadly for license-related commits
git log --all --oneline | grep -i licenseRepository: QuivrHQ/MegaParse
Length of output: 83
🏁 Script executed:
# Check the actual git history to see when license changed and any commit messages
git show 0ff399d --statRepository: QuivrHQ/MegaParse
Length of output: 5073
🏁 Script executed:
# Look for any PR template or governance docs
fd -e md | xargs grep -l "license\|approval\|governance" 2>/dev/null | head -10Repository: QuivrHQ/MegaParse
Length of output: 43
🏁 Script executed:
# Check if there are any mentions of Granja Cours in the codebase
rg "Granja" --max-count=5Repository: QuivrHQ/MegaParse
Length of output: 43
🏁 Script executed:
# Check git log to see if there's broader context about the copyright holder
git log --format='%an %ae' | sort | uniqRepository: QuivrHQ/MegaParse
Length of output: 121
🏁 Script executed:
# Check git log for all commits to see complete history
git log --oneline -20Repository: QuivrHQ/MegaParse
Length of output: 101
🏁 Script executed:
# Check for any .github/CODEOWNERS or similar governance file
fd CODEOWNERSRepository: QuivrHQ/MegaParse
Length of output: 43
🏁 Script executed:
# Look at the commit that changed LICENSE - verify it's the only change
git show 0ff399d --name-onlyRepository: QuivrHQ/MegaParse
Length of output: 4949
License change from Apache 2.0 to BSD 2-Clause requires stakeholder approval and proper documentation.
This PR replaces Apache 2.0 with BSD 2-Clause. This is a significant compliance change:
- Different legal terms: Apache 2.0 grants explicit patent rights; BSD 2-Clause does not.
- Downstream impact: Existing users relying on Apache 2.0 protections are affected.
- Inadequate context: Commit message lacks explanation; only contains build logs.
- Authorization unclear: Author is not a documented project maintainer.
Before merging, clarify:
- Is this change approved by original project maintainers (e.g., QuivrHQ)?
- What is the rationale for the license switch?
- Have downstream projects/dependencies been notified?
- Should a migration guide or deprecation notice be added?
🤖 Prompt for AI Agents
In LICENSE around lines 1 to 24, the change from Apache-2.0 to BSD-2-Clause is a
legal/ownership-sensitive modification that requires explicit stakeholder
approval and documentation; do not merge this license change as-is — revert the
LICENSE to the original Apache-2.0 until approvals are obtained, then open an
RFC or PR comment thread documenting: (1) approval from project
owners/maintainers (attach written consent), (2) a clear rationale for switching
licenses, (3) impact assessment for downstream users and dependencies and
confirmation they've been notified, and (4) a migration guide/deprecation notice
and updated changelog/commit message that references the approvals and rationale
before applying the new license file.
D:\a_work_temp\codeql3000\github\codeql\codeql.exe database trace-command --index-traceless-dbs --db-cluster D:\a_work_temp\codeql3000\d Running 2 commands for 3 databases:
[2023-04-25 22:24:54] [build-stderr] ^
[2023-04-25 22:24:54] [build-stderr] Error: Debug Failure. Expected D:/a/_work/1/s/build/tsconfig.json === D:\a_work\1\s\build\tsconfig.json. [2023-04-25 22:24:54] [build-stderr] at attachFileToDiagnostic (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:20186:18) [2023-04-25 22:24:54] [build-stderr] at Object.attachFileToDiagnostics (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:20218:42) [2023-04-25 22:24:54] [build-stderr] at Object.parseJsonText (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:32364:46) [2023-04-25 22:24:54] [build-stderr] at Object.parseJsonText (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:32092:23) [2023-04-25 22:24:54] [build-stderr] at parseConfigFileTextToJson (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:41734:33) [2023-04-25 22:24:54] [build-stderr] at Object.readConfigFile (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\node_modules\typescript\lib\typescript.js:41725:48) [2023-04-25 22:24:54] [build-stderr] at loadTsConfig (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\main.js:327:23) [2023-04-25 22:24:54] [build-stderr] at handleOpenProjectCommand (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\main.js:393:14) [2023-04-25 22:24:54] [build-stderr] at Interface. (D:\a_work_temp\codeql3000\github\codeql\javascript\tools\typescript-parser-wrapper\main.js:620:17) [2023-04-25 22:24:54] [build-stderr] at Interface.emit (node:events:527:28) [2023-04-25 22:24:55] [build-stderr] at Interface._onLine (node:readline:487:10) [2023-04-25 22:24:55] [build-stderr] at Interface._normalWrite (node:readline:661:12) [2023-04-25 22:24:55] [build-stderr] at Socket.ondata (node:readline:269:10) [2023-04-25 22:24:55] [build-stderr] at Socket.emit (node:events:527:28) [2023-04-25 22:24:55] [build-stderr] at addChunk (node:internal/streams/readable:315:12) [2023-04-25 22:24:55] [build-stderr] at readableAddChunk (node:internal/streams/readable:289:9) [2023-04-25 22:24:55] [build-stderr] at Socket.Readable.push (node:internal/streams/readable:228:10) [2023-04-25 22:24:55] [build-stderr] at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) [2023-04-25 22:24:55] [build-stderr] com.semmle.util.exception.CatastrophicError: The TypeScript parser wrapper crashed with exit code 1 [2023-04-25 22:24:55] [ERROR] Spawned process exited abnormally (code 1; tried to run: [D:\a_work_temp\codeql3000\github\codeql\tools\win64\tracer.exe, D:\a_work_temp\codeql3000\github\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, D:\a_work_temp\codeql3000\github\codeql\javascript\tools\autobuild.cmd]) A fatal error occurred: Exit status 1 from command: [D:\a_work_temp\codeql3000\github\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, D:\a_work_temp\codeql3000\github\codeql\javascript\tools\autobuild.cmd]