instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
tendermint__tm-db__115
tendermint/tm-db
115
defect
2a5ebd2cfe363ac7ad070b024659a754e819a75c
453f37ff84cf70db637d48665807423cd082ca9b
add a BadgerDB backend
With multiple commits, to show the incremental changes on top of Anton's work in early 2019. Updates #38.
diff --git a/badger_db.go b/badger_db.go new file mode 100644 index 000000000..9352f52e9 --- /dev/null +++ b/badger_db.go @@ -0,0 +1,297 @@ +package db + +import ( + "bytes" + "fmt" + "os" + "path/filepath" + + "github.com/dgraph-io/badger/v2" +) + +func init() { registerDBCreator(BadgerDBBackend, badgerDBCreator, true...
10
7
3
[{"id": "G0", "claim": "CI fails because the interfacer linter complains about an unexported function, and since that warning is not particularly useful the linter should be disabled altogether.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
tendermint__tm-db__12
tendermint/tm-db
12
defect
dfcde30d5acb7defef98edb7ab2c67f9406428ec
9b8d7d86276d0ca246764682d6be073cbc5f4c59
Add rocksdb
https://github.com/tendermint/tendermint/issues/3831 Using my fork of gorocksdb from https://github.com/tecbot/gorocksdb for two reasons: 1. The upstream repo encourages vendoring for API stability. 2. The default LDFLAGS setting in upstream repo enforces linking unnecessary compression libraries(https://github.com/...
diff --git a/db/c_level_db_test.go b/db/c_level_db_test.go index adb6bd8f6..265529ae4 100644 --- a/db/c_level_db_test.go +++ b/db/c_level_db_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" - cmn "github.com/tendermint/tm-cmn/libs/common" + cmn "github.com/tendermint/tm-cmn/common" ) fu...
6
3
0
[{"id": "G0", "claim": "The new RocksDBBackend comment in db.go wrongly says to use the boltdb build tag and should say the rocksdb build tag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "res.Free() should be handled with defer (in moveSliceToBy...
null
tendermint__tm-db__214
tendermint/tm-db
214
defect
614e8b17047c3fb749f2096e9689a770ca4b2081
9e08050a794be30526b86f577391a1fd84b067f4
cosmos/gorocksdb in the imports
* updates .golangci-lint.yml * uses cosmos/gorocksdb everywhere preventing replace statements downstream * removes the version number from golanci-lint so that we're always using the latest version (earlier one was dated and it couldn't run because it didn't recognize `revive`)
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c291823ed..15e3b20cb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,11 +13,7 @@ jobs: container: tendermintdev/docker-tm-db-testing steps: - uses: actions/checkout@v2 - - uses: golangci/gola...
1
1
0
[{"id": "G0", "claim": "The commented-out fmt.Printf debug lines in benchmarkRandomReadsWrites (common_test.go) should just be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tendermint__tm-db__239
tendermint/tm-db
239
defect
0c33cd424e677d90895cab4edc6028d56620ed39
0155808c685c877708ce4b17287e160e80921f87
fix: remove mutex in prefixdb
closes: https://github.com/tendermint/tm-db/issues/156 * Adds additional testing to all databases * Adds .gitpod.yml so that devs can click a single button and ensure that changes work, in the exact docker environment that we use in ci
diff --git a/boltdb.go b/boltdb.go index 398c401a4..ffebbca0c 100644 --- a/boltdb.go +++ b/boltdb.go @@ -1,3 +1,4 @@ +//go:build boltdb // +build boltdb package db diff --git a/boltdb_batch.go b/boltdb_batch.go index 390bc309b..cd22c6741 100644 --- a/boltdb_batch.go +++ b/boltdb_batch.go @@ -1,3 +1,4 @@ +//go:build...
3
3
0
[{"id": "G0", "claim": "Delete the removed mutex code in prefixdb.go instead of leaving the locking calls commented out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The repository has no tests that exercise the documented concurrency-safety r...
null
tendermint__tm-db__33
tendermint/tm-db
33
defect
3abb245ec7f8eb619c0ba2b872de7854846f3f07
16465d2ba3f2484c58ee719a9c3d79f4cd5d2118
Follow up to Panice to Err PR
- there were some post merge comments, this is meant to address them Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
diff --git a/c_level_db.go b/c_level_db.go index 2fdf9ca6a..feebf7e50 100644 --- a/c_level_db.go +++ b/c_level_db.go @@ -274,8 +274,8 @@ func (itr cLevelDBIterator) Valid() bool { return false } - // Panic on DB error. No way to recover. - itr.assertNoError() + // checks no error is present + itr.checkNoError()...
4
4
1
[{"id": "G0", "claim": "The iterator error handling should be reworked: instead of having Valid() return false or an error on a DB error, the asserts should keep panicking, a new Error() method should expose the underlying error, and Key, Value and Next should no longer return an error.", "category": "design", "verdict...
null
tendermint__tm-db__56
tendermint/tm-db
56
defect
cf95b40c4df61a06ea721a0ad4d2bcee211a24aa
efc3ae8e866f32bd04773bf28e7c700b85710f6c
memdb: API cleanups and improvements
Fixes #54, fixes #55. Somewhat breaking, since we're removing exported methods, but these are not likely to be widely used. * Removes atomicSetDeleter interface and related public methods * Uses an `RWMutex` instead of a `Mutex` in MemDB * Removes `mockDB` since it is not really used * Adds batch tests for all ba...
diff --git a/backend_test.go b/backend_test.go index 9bba5f290..3d92d9361 100644 --- a/backend_test.go +++ b/backend_test.go @@ -204,6 +204,7 @@ func TestDBIterator(t *testing.T) { for dbType := range backends { t.Run(fmt.Sprintf("%v", dbType), func(t *testing.T) { testDBIterator(t, dbType) + testDBIteratorB...
4
4
3
[{"id": "G0", "claim": "The opType enum should start at one (opTypeSet opType = iota + 1) per the Uber Go style guide's start-enums-at-one rule.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The default branch of memBatch.Write should return errors...
null
tendermint__tm-db__71
tendermint/tm-db
71
defect
5db388c31082e0a02c9439c8828dbf03c395a5d7
f92256d6f67dcdd6f5d205dfbcba4c13b670f800
Calling non-Close() methods on closed or written batches panic
See discussion in https://github.com/tendermint/tm-db/pull/66#pullrequestreview-371460117.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a0cde3a0..81005ad49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ ### Breaking Changes +- `Batch` interface methods now return errors + +- Closed batches can no longer be reused, all non-`Close()` calls return `ErrBatchClosed` + +- Calling `Write()` o...
5
4
0
[{"id": "G0", "claim": "Batch methods should panic, rather than return ErrBatchClosed, when called on a closed or written batch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Write/WriteSync should not implicitly close the batch by calling Close(), sinc...
null
teng-lin__agent-fetch__4
teng-lin/agent-fetch
4
defect
c65fbee1ac57d5b53106bfb2ab117f9650cd89ca
3cf43f98540ec06e5c67595d3b27b978f9bfc61a
refactor: type-safe extraction methods + reduce DOM parsing + correlation IDs
## Summary - **Type-safe extraction methods**: Replace `method: string` with `ExtractionMethod` union type (14 variants + template literal for selectors) across extract and fetch layers, catching invalid method assignments at compile time - **Reduce redundant DOM parsing**: Eliminate 4-5 `parseHTML()` calls per extrac...
diff --git a/src/__tests__/extract-utils.test.ts b/src/__tests__/extract-utils.test.ts index 7977c73..d571514 100644 --- a/src/__tests__/extract-utils.test.ts +++ b/src/__tests__/extract-utils.test.ts @@ -66,7 +66,7 @@ describe('extract/utils', () => { siteName: null, publishedTime: null, lang: nul...
2
2
1
[{"id": "G0", "claim": "Caught errors are logged with `error: String(e)` instead of pino's `err` key, losing the full stack trace; the review asks to pass the raw error object under the `err` key at each flagged log site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
teng-lin__notebooklm-py__123
teng-lin/notebooklm-py
123
defect
9eb13cea51af9dad53a66c3c467b3bbb78f72b0e
cca555198fc4d28d5b2a0e10476a102001af0770
fix: ask returns empty answer when API response marker changes (#118)
## Summary - Removed the `_MIN_ANSWER_LENGTH = 20` threshold that silently dropped short answers (e.g., "OK") - Added two-tier fallback: prefer chunks with the `type_info[-1] == 1` answer marker, but fall back to the longest text chunk when the marker is absent or changed - Decoupled answer text extraction from the an...
diff --git a/src/notebooklm/_chat.py b/src/notebooklm/_chat.py index dd13bff51..9457788f2 100644 --- a/src/notebooklm/_chat.py +++ b/src/notebooklm/_chat.py @@ -27,9 +27,6 @@ re.IGNORECASE, ) -# Minimum answer length to be considered valid (filters out status messages) -_MIN_ANSWER_LENGTH = 20 - class ChatAP...
1
1
0
[{"id": "G0", "claim": "The repeated NotebookLMClient(...).chat instantiation in every test of TestAnswerExtraction should be extracted into a pytest fixture to improve test maintainability and reduce duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
teng-lin__notebooklm-py__125
teng-lin/notebooklm-py
125
defect
8726cd0e6703663a794612941b7891c4fe1bc12c
e8bbc74ac08972aa3638f6a469872a6be4a92b02
fix: add runtime Python version check for clear error on <3.10
## Summary - Adds a runtime Python version guard (`_version_check.py`) that runs before any PEP 604 `str | None` syntax is evaluated - Wired into both `__init__.py` (library import) and `notebooklm_cli.py` (CLI entry point) - Users on Python <3.10 now see a clear message instead of a cryptic `TypeError: unsupported op...
diff --git a/pyproject.toml b/pyproject.toml index 7c95063c6..64f37e726 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,7 +143,7 @@ ignore = [ "SIM102", # nested ifs - kept for readability in complex data parsing "SIM105", # contextlib.suppress - explicit try/except clearer for data parsing ] -per-f...
1
1
0
[{"id": "G0", "claim": "The module-level call to check_python_version() in _version_check.py makes the version check execute twice at startup because the entry points already call it explicitly after importing it, and that redundant module-level call should be removed.", "category": "maintainability", "verdict": "suppo...
null
teng-lin__notebooklm-py__127
teng-lin/notebooklm-py
127
defect
9a9b41ad27d47d973e6b1e2322e9e53c6066a508
0b6513292cfb20ea7e6e1ecb1f697ae023c1ff06
fix(rpc): improve error diagnostics for GET_NOTEBOOK failures (#114)
## Summary - **Improved error messages** in `decoder.py` to distinguish between 4 distinct failure scenarios that previously all produced the same generic `"No result found for RPC ID: rLM1Ne"` message: - Empty response body → now reports `"response contained no RPC data — 0 chunks parsed"` - Non-RPC JSON chunks →...
diff --git a/scripts/diagnose_get_notebook.py b/scripts/diagnose_get_notebook.py new file mode 100644 index 000000000..3e4068554 --- /dev/null +++ b/scripts/diagnose_get_notebook.py @@ -0,0 +1,225 @@ +#!/usr/bin/env python3 +"""Diagnose GET_NOTEBOOK failures (Issue #114). + +Compares LIST_NOTEBOOKS and GET_NOTEBOOK raw...
2
2
0
[{"id": "G0", "claim": "The diagnostic script should configure granular timeouts on httpx.AsyncClient (a shorter connect timeout and a longer read timeout, e.g. httpx.Timeout(10.0, read=60.0)) instead of the blanket timeout=30.0, for better network resilience.", "category": "performance", "verdict": "supported", "prior...
null
teng-lin__notebooklm-py__129
teng-lin/notebooklm-py
129
defect
30f2f5fedfa76258d578cbda1cc1164bb36d0304
299423c71a7be638b89824d14c6dbb91041252ce
feat: add slide deck revision and PPTX download (issue #128)
## Summary - Add `revise_slide()` API method that calls RPC `KmcKPe` to revise an individual slide in a completed slide deck using a natural-language prompt - Add `download_slide_deck(output_format='pptx')` support — slide decks can now be downloaded as PPTX in addition to PDF - Add `notebooklm generate revise-slide` ...
diff --git a/scripts/check_rpc_health.py b/scripts/check_rpc_health.py index 411efc3e6..0ef590389 100644 --- a/scripts/check_rpc_health.py +++ b/scripts/check_rpc_health.py @@ -472,6 +472,11 @@ def get_test_params(method: RPCMethod, notebook_id: str | None) -> list[Any] | N if method == RPCMethod.EXPORT_ARTIFACT: ...
2
2
1
[{"id": "G0", "claim": "download_slide_deck passes an attacker-influenceable metadata URL to _download_url without domain validation, and httpx sends the user's Google auth cookies to every request regardless of domain, so a shared malicious notebook could exfiltrate the session; the URL's scheme and domain should be v...
null
teng-lin__notebooklm-py__130
teng-lin/notebooklm-py
130
defect
30f2f5fedfa76258d578cbda1cc1164bb36d0304
6a70e6831ec6bacfc3f226738e3d0630d97859b3
fix: support partial artifact ID in download commands
## Summary - The `-a`/`--artifact` flag in `download audio/video/report/etc.` was doing exact match only — partial UUIDs would silently fail with "not found" - Adds `resolve_partial_artifact_id()` to `download_helpers.py`: case-insensitive prefix match against the pre-fetched artifact list; raises a clear error for am...
diff --git a/src/notebooklm/cli/download.py b/src/notebooklm/cli/download.py index 4d5f5d1b5..5099a7486 100644 --- a/src/notebooklm/cli/download.py +++ b/src/notebooklm/cli/download.py @@ -21,7 +21,12 @@ from ..auth import AuthTokens, fetch_tokens, load_auth_from_storage from ..client import NotebookLMClient from .....
1
1
0
[{"id": "G0", "claim": "The artifact fetching-and-filtering block added in _download_interactive duplicates the logic in _download_artifacts_generic, so it should be extracted into a shared async helper function (suggested: _get_completed_artifacts_as_dicts) to improve maintainability and reduce duplication.", "categor...
null
teng-lin__notebooklm-py__134
teng-lin/notebooklm-py
134
defect
f599a750de3e74d97148f146659874f788cd33ad
374b1ee1801458c19bec6a16966c55e498eaa54c
feat: add --append option to generate report for template customization (issue #116)
## Summary Fixes issue #116 item 3 (Template Append Mode): adds the ability to append custom instructions to built-in report format templates without losing the format type or switching to a generic custom report. - Add `extra_instructions` parameter to `ArtifactsAPI.generate_report()` and `generate_study_guide()` — ...
diff --git a/src/notebooklm/_artifacts.py b/src/notebooklm/_artifacts.py index b1126d6fa..11b014551 100644 --- a/src/notebooklm/_artifacts.py +++ b/src/notebooklm/_artifacts.py @@ -472,6 +472,7 @@ async def generate_report( source_ids: builtins.list[str] | None = None, language: str = "en", c...
1
1
0
[{"id": "G0", "claim": "generate_report should build a fresh copy of the format config ({**config, ...}) instead of mutating the format_configs dictionary in place.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
teng-lin__notebooklm-py__137
teng-lin/notebooklm-py
137
defect
8269b4457def2c3f4650abeb0676fbed615f1156
18a09be61de52720e72f2b2ae88804ab7416a0fc
feat: persist exchange_id across CLI ask invocations
## Summary - Capture and persist the server-assigned `exchange_id` (at `first[2][1]` in streaming response) across CLI `ask` invocations, enabling server-side context lookup for follow-up questions without replaying conversation history - Add `exchange_id` field to `AskResult` dataclass with full docstring - Wire `exc...
diff --git a/src/notebooklm/_chat.py b/src/notebooklm/_chat.py index 03d898e7b..d97de5265 100644 --- a/src/notebooklm/_chat.py +++ b/src/notebooklm/_chat.py @@ -62,6 +62,7 @@ async def ask( question: str, source_ids: list[str] | None = None, conversation_id: str | None = None, + exchan...
1
1
0
[{"id": "G0", "claim": "The conversation_id/exchange_id preservation logic in set_current_notebook is repetitive and should use a loop over the keys to preserve, as in the attached suggestion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
teng-lin__notebooklm-py__138
teng-lin/notebooklm-py
138
defect
a647c5e03e557de1cb4bd85697fdaebcdf7d0157
c03ba8fedc8ba92d46669dc49c8e45253086a01b
fix(chat): persist conversations server-side and show conv ID in history
## Summary - **Fix server-side conversation persistence**: Web UI analysis revealed the CLI was omitting `notebook_id` at params position [7] in `GenerateFreeFormStreamed` requests. Without it, conversations are answered but never saved — they don't appear in the GUI or via `GET_CONVERSATION_TURNS`. Now `notebook_id` ...
diff --git a/src/notebooklm/_chat.py b/src/notebooklm/_chat.py index 83a615b67..098a5a7fd 100644 --- a/src/notebooklm/_chat.py +++ b/src/notebooklm/_chat.py @@ -112,9 +112,11 @@ async def ask( conversation_history, [2, None, [1], [1]], conversation_id, + None, # [5] - ...
2
2
0
[{"id": "G0", "claim": "The hardcoded build label default string should be defined as a module-level constant (e.g. DEFAULT_NOTEBOOKLM_BL) and referenced in the url_params for readability and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
teng-lin__notebooklm-py__141
teng-lin/notebooklm-py
141
defect
abe5676c3e3b73676f44f89b50e2ae860534403e
d0d8fff261e709b43729c4b3988722cc84a213e8
refactor(chat): remove exchange_id, simplify history API, rename get_conversation_id
## Summary - **Remove `exchange_id`** from `AskResult`, `ask()` params[6], and all related CLI/test code — this field was passed as `None` and had no effect on the server - **Remove `--new` flag** from `ask` CLI command — CLI-created UUIDs never persisted server-side, making the flag misleading - **Rename `get_last_co...
diff --git a/docs/rpc-reference.md b/docs/rpc-reference.md index 3b1193a39..b4999268d 100644 --- a/docs/rpc-reference.md +++ b/docs/rpc-reference.md @@ -1,7 +1,7 @@ # RPC & UI Reference **Status:** Active -**Last Updated:** 2026-01-18 +**Last Updated:** 2026-03-02 **Source of Truth:** `src/notebooklm/rpc/types.py`...
1
1
0
[{"id": "G0", "claim": "get_history should catch specific exceptions (ChatError and NetworkError) instead of the general Exception so unrelated errors like KeyboardInterrupt are not accidentally caught and silenced.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
teng-lin__notebooklm-py__142
teng-lin/notebooklm-py
142
defect
2b13654aaec138410a9a0a39d4c2a292340c9663
694f06bff2b5c07d68a39d37ce548236aa5f9478
chore: release v0.3.3
## Release v0.3.3 See [CHANGELOG.md](CHANGELOG.md) for full details. ### Added - `ask --save-as-note` / `--note-title` — save chat answers as notebook notes - `history --save` / `--note-title` / `--show-all` — save conversation history as notes - `generate report --append` — append custom instructions to built-in rep...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ca545d4a7..fcd2dfad0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.3] - 2026-03-03 + +### Added +- **`ask --save-as-note`** - Save chat answers as...
1
1
0
[{"id": "G0", "claim": "In the download commands table of docs/cli-reference.md, the slide-deck row says \"Output directory\" while its example `download slide-deck ./slides.pdf` shows a file path and all other rows say \"Output path\"; change it to \"Output path\" for clarity and consistency.", "category": "documentat...
null
teng-lin__notebooklm-py__150
teng-lin/notebooklm-py
150
defect
bc30a3d97b84299e42fb299b877f44867075479b
149b5c93eec98c98524bc1a7ea6a207fd135e389
fix(notebooks): correct SUMMARIZE response parsing (fixes #147)
Closes #147 ## Summary - Fixes #147: `notebooklm summary` always showed "No summary available" - The `VfAZjd` (SUMMARIZE) RPC returns a triple-nested structure `[[[summary], [[topics]], ...]]` - Previous code assumed summary at `result[0][0]` (actually a list, not a string) and topics at `result[1][0]` (wrong path) -...
diff --git a/src/notebooklm/_notebooks.py b/src/notebooklm/_notebooks.py index e64fc55ba..8fff7d113 100644 --- a/src/notebooklm/_notebooks.py +++ b/src/notebooklm/_notebooks.py @@ -135,8 +135,17 @@ async def get_summary(self, notebook_id: str) -> str: params, source_path=f"/notebook/{notebook_...
2
2
1
[{"id": "G0", "claim": "In get_description, result[0] is accessed without checking whether result is empty, so an empty API response would raise an unhandled IndexError; refactor the block to a try...except (IndexError, TypeError) pattern like get_summary.", "category": "correctness", "verdict": "supported", "priority"...
null
teng-lin__notebooklm-py__165
teng-lin/notebooklm-py
165
defect
5323dd06794b9b2728ccbe559e817e37e15e7a21
f54f1dc1a7e032510fe85775ab428ee3f1d669a5
fix: raise error on empty download instead of producing 0-byte file
## Summary `_download_url()` can produce a 0-byte file without raising an error when the remote response streams no content. This silently corrupts downloads for video, audio, and other artifacts. Adds a `total_bytes == 0` check after the streaming loop that raises `ArtifactDownloadError` before renaming the temp fil...
diff --git a/src/notebooklm/_artifacts.py b/src/notebooklm/_artifacts.py index b2ba22fc5..737565473 100644 --- a/src/notebooklm/_artifacts.py +++ b/src/notebooklm/_artifacts.py @@ -2085,6 +2085,12 @@ async def _download_url(self, url: str, output_path: str) -> str: f.write(chunk) ...
1
1
0
[{"id": "G0", "claim": "The empty async generator in the new test should be written as `yield from ()` instead of `return` plus an unreachable `yield`, which is confusing for future readers.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
teng-lin__notebooklm-py__174
teng-lin/notebooklm-py
174
defect
aa16254e8c420ab9a8423b98201f33a9e2f5beeb
4cdcefe95e0e3b265a5fc66c6d387e2c7904231c
feat: add notebook metadata export with sources list (issue #171)
## Summary Implements the export notebook metadata feature requested in issue #171. ## Changes ### 1. New `NotebookMetadata` dataclass ([types.py](src/notebooklm/types.py)) - Combines notebook details (id, title, created_at, is_owner) with a simplified sources list - Includes a `to_dict()` method for JSON serializat...
diff --git a/src/notebooklm/__init__.py b/src/notebooklm/__init__.py index 956c35eef..016ede3ec 100644 --- a/src/notebooklm/__init__.py +++ b/src/notebooklm/__init__.py @@ -103,6 +103,7 @@ Note, Notebook, NotebookDescription, + NotebookMetadata, QuizDifficulty, QuizQuantity, ReportForma...
10
10
0
[{"id": "G0", "claim": "The two await calls that fetch notebook details and the sources list are independent and should run concurrently with asyncio.gather to reduce the method's total execution time.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
teng-lin__notebooklm-py__175
teng-lin/notebooklm-py
175
defect
aa16254e8c420ab9a8423b98201f33a9e2f5beeb
75087fa2a83dfe2c1fcd711451e8ad38bd527383
feat: add Cinematic Video Overview generation support
## Summary Adds support for Google's **Cinematic Video Overviews**, [launched March 4, 2026](https://blog.google/innovation-and-ai/products/notebooklm/generate-your-own-cinematic-video-overviews-in-notebooklm/). Cinematic videos use **Veo 3 AI** to generate documentary-style footage, distinct from the existing slide-d...
diff --git a/src/notebooklm/_artifacts.py b/src/notebooklm/_artifacts.py index b2ba22fc5..1905671f8 100644 --- a/src/notebooklm/_artifacts.py +++ b/src/notebooklm/_artifacts.py @@ -465,6 +465,69 @@ async def generate_video( ] return await self._call_generate(notebook_id, params) + async def gener...
9
8
2
[{"id": "G0", "claim": "The source_ids preparation block duplicated across the generate_* methods (including the new generate_cinematic_video) should be extracted into a private helper method to reduce redundancy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
teng-lin__notebooklm-py__186
teng-lin/notebooklm-py
186
defect
88d35342fbf64dcec4acd56d247b6c8781b8dc61
488253b9cae6571dd44aff9f421522b862157472
Add infographic style support
## Summary - add `InfographicStyle` and thread infographic style through the RPC, public exports, and CLI - document `notebooklm generate infographic --style` in the CLI reference and skill guide - add unit coverage that asserts infographic style is encoded in RPC config slot 5 ## Testing - `uv run --extra dev pytest ...
diff --git a/docs/cli-reference.md b/docs/cli-reference.md index 46a778ffd..3be6f387c 100644 --- a/docs/cli-reference.md +++ b/docs/cli-reference.md @@ -127,7 +127,7 @@ All generate commands support: | `revise-slide <description>` | `-a/--artifact <id>` (required), `--slide N` (required), `--wait` | `generate revise-s...
1
1
0
[{"id": "G0", "claim": "The infographic style choices are duplicated — hardcoded in the `--style` `click.Choice` decorator and again in the local `style_map` — so define the map once (e.g. at module level) and derive the click choices from its keys to create a single source of truth.", "category": "maintainability", "v...
null
teng-lin__notebooklm-py__197
teng-lin/notebooklm-py
197
defect
26df2c146c45c985acf83c13ce9090e7d9e2ef21
6dcfba9d1602bdc9bf87cd5530872eed4e9fe885
fix(cli): add explicit source delete-by-title command
## Summary - add an explicit `source delete-by-title` command for exact title-based deletion - keep `source delete <id>` scoped to full IDs and partial ID prefixes only - harden source deletion so long non-ID strings fail locally instead of silently reaching the backend - update CLI reference, troubleshooting, and skil...
diff --git a/docs/cli-reference.md b/docs/cli-reference.md index 3be6f387c..ce9e16829 100644 --- a/docs/cli-reference.md +++ b/docs/cli-reference.md @@ -102,8 +102,11 @@ Supported source types: URLs, YouTube videos, files (PDF, text, Markdown, Word, | `rename <id> <title>` | Source ID, new title | - | `source rename s...
1
1
0
[{"id": "G0", "claim": "The '\\n' at the start of the appended 'Specify more characters to narrow down.' line adds an extra blank line to the ambiguity error message, inconsistent with how other multi-line error messages in the file are built; the leading newline should be removed.", "category": "design", "verdict": "s...
null
teng-lin__notebooklm-py__204
teng-lin/notebooklm-py
204
defect
8f9dd3ae0d279e3fcd5a95b034b3797603362bfc
d175aa0114b5bbde22551ce918442b328567f11b
feat(cli): add --browser flag to login for Microsoft Edge SSO support
## Summary - Add `--browser` option to the `login` CLI command, accepting `chromium` (default) or `msedge` - When `--browser msedge` is used, Playwright launches the system-installed Microsoft Edge via the `channel="msedge"` parameter instead of bundled Chromium - Skips the Chromium pre-flight installation check when ...
diff --git a/README.md b/README.md index 64ed45228..5ce2b7f2b 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,8 @@ pip install git+https://github.com/teng-lin/notebooklm-py@main ```bash # 1. Authenticate (opens browser) notebooklm login +# Or use Microsoft Edge (for orgs that require Edge for SSO) +# notebookl...
4
4
2
[{"id": "G0", "claim": "The multi-line ternary that builds install_hint is difficult to read; construct it with a standard if/else block instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The three new --browser tests repeat a large amount ...
null
teng-lin__notebooklm-py__207
teng-lin/notebooklm-py
207
defect
8f9dd3ae0d279e3fcd5a95b034b3797603362bfc
7055f5d86404011bf24114f6659a06f40a49c447
feat: unify skill installation across agents
## Summary - closes #43 - make the repo-root SKILL.md the single source of truth for agent skill installation - update `notebooklm skill` to support user/project scope plus `claude` and `.agents` install targets - package the root skill into the wheel and add tests/docs for GitHub, `npx skills add`, and local CLI insta...
diff --git a/README.md b/README.md index 64ed45228..fc602707b 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ ## What You Can Build -🤖 **AI Agent Tools** - Integrate NotebookLM into Claude Code or other LLM agents. Ships with [Claude Code skills](#agent-skills-claude-code) for natural language automation...
1
1
0
[{"id": "G0", "claim": "The current implementation can introduce an extra newline (a blank line) after the frontmatter when parts[2] already starts with a newline, unnecessarily altering the installed file's formatting.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
teng-lin__notebooklm-py__226
teng-lin/notebooklm-py
226
defect
ddb4dee370189dc46441a11f828ad702c53caba2
d8b8bfc5f63b0f64f6b2cd00dd5c0cce9198ddf7
fix(auth): handle login crash on already-authenticated sessions
## Summary - Switch cookie-forcing `page.goto()` from `wait_until="load"` to `wait_until="commit"` so navigation resolves after response headers (including `Set-Cookie`) are processed but before client-side JS can redirect - Add narrow `PlaywrightError` catch for `"Navigation interrupted"` as belt-and-suspenders for t...
diff --git a/src/notebooklm/cli/session.py b/src/notebooklm/cli/session.py index 07fb24ec5..be1f4b99a 100644 --- a/src/notebooklm/cli/session.py +++ b/src/notebooklm/cli/session.py @@ -190,6 +190,7 @@ def login(storage, browser): raise SystemExit(1) try: + from playwright.sync_api imp...
2
1
0
[{"id": "G0", "claim": "The duplicated guarded page.goto/PlaywrightError handling for the two cookie-forcing navigations should be consolidated, e.g. by iterating over the URLs in a loop, to reduce duplication and drift risk.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
teng-lin__notebooklm-py__230
teng-lin/notebooklm-py
230
defect
f4324284de623b7ad4d7c62a10df9738c848f0d7
b9ac89b4ccaff38b0ee6d75749708ac80bda551c
fix: use fixed-index extraction for infographic URLs (#229)
download_infographic used reversed() to scan the entire artifact data structure for a URL-like pattern. Unlike other download methods (audio, video, slide-deck) that use fixed indices, this reverse scan picks up the last matching field. If Google added new URL-containing fields at higher indices, the reverse scan would...
diff --git a/src/notebooklm/_artifacts.py b/src/notebooklm/_artifacts.py index ceeb898e9..065eb8de2 100644 --- a/src/notebooklm/_artifacts.py +++ b/src/notebooklm/_artifacts.py @@ -1250,10 +1250,12 @@ async def download_infographic( if not info_art: raise ArtifactNotReadyError("infographic") - ...
2
2
2
[{"id": "G0", "claim": "The download path and the readiness check can pick different infographic URL candidates, because download_infographic() was switched to forward iteration in S1 while _is_media_ready() still delegates to _find_infographic_url(), which scans in reverse.", "category": "correctness", "verdict": "sup...
null
teng-lin__notebooklm-py__231
teng-lin/notebooklm-py
231
defect
d680841fb412e1424aca3f5d4b2719177f96ee7b
48743f72baba5cbdff3a3331126230d3fb34ad7a
feat: add EPUB source type support
## Summary - Add `SourceType.EPUB` enum with internal type code `17` (discovered via E2E testing) - Add type code mapping (`_SOURCE_TYPE_CODE_MAP`), compat mapping (`text_file`), and CLI display label (`📕 EPUB`) - Update `add_file()` docstring to list EPUB (`application/epub+zip`) as supported - Add comprehensive test...
diff --git a/src/notebooklm/_sources.py b/src/notebooklm/_sources.py index 9d0866154..7263b4859 100644 --- a/src/notebooklm/_sources.py +++ b/src/notebooklm/_sources.py @@ -417,6 +417,7 @@ async def add_file( - PDF: application/pdf - Text: text/plain - Markdown: text/markdown + ...
2
2
0
[{"id": "G0", "claim": "Move `import zipfile` and `from io import BytesIO` from inside the test function to the module-level imports per PEP 8.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The integration test builds a minimal but invalid EPUB...
null
teng-lin__notebooklm-py__237
teng-lin/notebooklm-py
237
defect
15deaf9bfcf9987272ac8b76ccd55297bcd54e19
30135d744a16b904104219cd1abe56d3857d72d0
Fix artifact downloads ignoring custom auth storage path
The storage_path passed to NotebookLMClient.from_storage(path=...) was discarded after initial authentication, causing load_httpx_cookies() in download methods to always fall back to the default ~/.notebooklm location. This propagates the storage path through ClientCore so artifact downloads use the correct cookie sour...
diff --git a/src/notebooklm/_artifacts.py b/src/notebooklm/_artifacts.py index 8c86d1a4c..5c3610829 100644 --- a/src/notebooklm/_artifacts.py +++ b/src/notebooklm/_artifacts.py @@ -224,15 +224,22 @@ class ArtifactsAPI: await client.artifacts.rename(notebook_id, artifact_id, "New Title") """ - def...
3
2
2
[{"id": "G0", "claim": "When making requests to external URLs using authentication cookies, _download_urls_batch lacks validation that each URL's domain is on an allowlist of trusted domains, risking credential leakage; a check similar to the one in _download_url should be added before making the request.", "category":...
null
teng-lin__notebooklm-py__24
teng-lin/notebooklm-py
24
defect
6a7803e95b69f092c3cfc07feaa7ea414530b634
30a07d80e574c413e6f13fe64d53e94fbe51644f
fix(auth): support regional Google domains for SID cookie extraction
## Summary - Fix "Missing required cookies: {'SID'}" error for users in regional Google domains - Add `GOOGLE_REGIONAL_CCTLDS` whitelist with 70+ regional domains - Create unified `_is_google_domain()` function for consistent validation - Update both `_is_allowed_auth_domain` and `_is_allowed_cookie_domain` Fixes #20 ...
diff --git a/src/notebooklm/auth.py b/src/notebooklm/auth.py index 26946f27e..d0076089d 100644 --- a/src/notebooklm/auth.py +++ b/src/notebooklm/auth.py @@ -53,6 +53,92 @@ ".googleusercontent.com", } +# Regional Google ccTLDs where Google may set auth cookies +# Users in these regions may have SID cookies on re...
2
2
0
[{"id": "G0", "claim": "_is_allowed_auth_domain can be made more concise by combining the allowlist check and the Google-domain check into a single return statement, improving readability without changing the logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
teng-lin__notebooklm-py__244
teng-lin/notebooklm-py
244
defect
7a4c3f71e90f182223ad2c20049f48152566e5a7
e66274cadb827b4a2de803000cbe7e92312695d1
fix(auth): resolve critical bugs in login retry mechanism (#243)
## Summary Fixed three critical bugs in the login retry mechanism: 1. **Logic Bug**: Help text (`CONNECTION_ERROR_HELP`) never displayed when retries exhausted - Contradictory condition prevented users from seeing troubleshooting guide - Restructured with clear if/elif/else flow 2. **Resource Leak**: Browser c...
diff --git a/src/notebooklm/cli/session.py b/src/notebooklm/cli/session.py index 1f79c79e8..4ad8a16a6 100644 --- a/src/notebooklm/cli/session.py +++ b/src/notebooklm/cli/session.py @@ -13,6 +13,7 @@ import os import subprocess import sys +import time from collections.abc import Iterator from contextlib import cont...
5
3
1
[{"id": "G0", "claim": "The `\"context\" not in locals()` check always evaluates to False because `context` is initialized to None before the try block, so the specialized Microsoft Edge launch-failure error handling never executes; change the condition to `if context is None`.", "category": "correctness", "verdict": "...
null
teng-lin__notebooklm-py__245
teng-lin/notebooklm-py
245
defect
7a4c3f71e90f182223ad2c20049f48152566e5a7
59d70c80888e11e3d2cef7572e9cbbf5a1d8efbf
feat: add rookiepy browser cookie login (--browser-cookies)
## Summary Implements **Proposal 4: Direct Cookie Database Reading (rookiepy)** for issue #233, adding a practical alternative authentication method that reads Google cookies directly from an installed browser without requiring Playwright's ~50MB Chromium download. - **New feature**: `notebooklm login --browser-cooki...
diff --git a/pyproject.toml b/pyproject.toml index e607ff3260..f3c8e77b18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ Issues = "https://github.com/teng-lin/notebooklm-py/issues" [project.optional-dependencies] browser = ["playwright>=1.40.0"] +cookies = ["rookiepy>=0.1.0"] dev = [ "pyte...
15
9
5
[{"id": "G0", "claim": "Use % lazy formatting instead of f-strings in logging calls in src/notebooklm/auth.py and src/notebooklm/cli/session.py so string interpolation is deferred until the message is emitted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
teng-lin__notebooklm-py__26
teng-lin/notebooklm-py
26
defect
6a7803e95b69f092c3cfc07feaa7ea414530b634
56645217575c4aaee230085f4dd8f95a6035e3c2
fix(artifacts): verify media URL availability before reporting completion
## Summary Fixes #21 - Add media URL verification in `poll_status()` fallback path to prevent premature "completed" status - Extract `_MEDIA_ARTIFACT_TYPES` module constant for media artifact type identification - Add 45 comprehensive unit tests for the media readiness checking logic ## Problem The NotebookLM API s...
diff --git a/src/notebooklm/_artifacts.py b/src/notebooklm/_artifacts.py index fe3692c64..6b63e62c9 100644 --- a/src/notebooklm/_artifacts.py +++ b/src/notebooklm/_artifacts.py @@ -37,6 +37,16 @@ logger = logging.getLogger(__name__) +# Media artifact types that require URL availability before reporting completion ...
2
2
0
[{"id": "G0", "claim": "The video URL checking loop in _is_media_ready could be refactored into a single idiomatic any() expression with a generator for conciseness and readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The slide-deck U...
null
teng-lin__notebooklm-py__292
teng-lin/notebooklm-py
292
defect
a9977180416ecf1e4ffc7c2c4c7a17f2ec89ed40
9ea044f206b55c8496c24a2fdc7d8993411e9577
fix: extract YouTube source URL from src[2][5] (#265)
## Summary Fixes #265: `Source.url` is always `None` for YouTube sources returned by `client.sources.list()`, `client.sources.get()`, and `Source.from_api_response()`. The NotebookLM `GET_NOTEBOOK` RPC stores YouTube URLs at `src[2][5][0]` as a `[url, video_id, channel_name]` tuple, while web/PDF URLs live at `src[2]...
diff --git a/src/notebooklm/_sources.py b/src/notebooklm/_sources.py index 7263b4859..cb260e5bd 100644 --- a/src/notebooklm/_sources.py +++ b/src/notebooklm/_sources.py @@ -102,12 +102,28 @@ async def list(self, notebook_id: str) -> list[Source]: src_id = src[0][0] if isinstance(src[0], list) else src[...
2
2
0
[{"id": "G0", "claim": "The URL and type-code extraction in the medium-nested branch of from_api_response should be consolidated into a single block that checks the validity of entry[2] once, with comments explaining the complex indexing used for varying API response formats.", "category": "maintainability", "verdict":...
null
teng-lin__notebooklm-py__30
teng-lin/notebooklm-py
30
defect
af212b4fc6d05485d85c33ba3e128fd1dd359d2b
4d66b17f89abc3c60f2b13627b5647f5cfb57b54
fix(auth): add .google.cn to regional domains whitelist
## Summary - Adds `.google.cn` (China) to the `GOOGLE_REGIONAL_CCTLDS` whitelist in `auth.py` - Adds tests for `.google.cn` domain cookie extraction ## Problem Chinese users were unable to authenticate after running `notebooklm login`. The error "Authentication expired or invalid" appeared immediately when running c...
diff --git a/src/notebooklm/auth.py b/src/notebooklm/auth.py index 88bf24ca0..34dd7948e 100644 --- a/src/notebooklm/auth.py +++ b/src/notebooklm/auth.py @@ -105,6 +105,7 @@ "co.zw", # Zimbabwe "co.bw", # Botswana # .google.XX pattern (single ccTLD countries) + "cn", # China ...
1
1
0
[{"id": "G0", "claim": "The new test_extracts_sid_from_china_domain test duplicates the existing regional-domain test methods, so the duplicated logic should be consolidated into a single parametrized test covering all regional domain patterns to improve maintainability.", "category": "maintainability", "verdict": "sup...
null
teng-lin__notebooklm-py__48
teng-lin/notebooklm-py
48
defect
b778338f4ac3ad6553fca3a932b25e43c4346cbe
94aec6095ee22844aaf6a793051e75c2ad764e78
feat(settings): add GET_USER_SETTINGS RPC method for reading language
## Summary - Add `GET_USER_SETTINGS` (ZwVcOc) RPC method to fetch user settings from server - Implement `get_output_language()` to actually read language setting from server (previously always returned None) - Rename `SET_OUTPUT_LANGUAGE` to `SET_USER_SETTINGS` for consistency and future extensibility - Refactor extra...
diff --git a/docs/python-api.md b/docs/python-api.md index c603fe32d..663cce6ea 100644 --- a/docs/python-api.md +++ b/docs/python-api.md @@ -1,7 +1,7 @@ # Python API Reference **Status:** Active -**Last Updated:** 2026-01-10 +**Last Updated:** 2026-01-18 Complete reference for the `notebooklm` Python library. ...
1
1
0
[{"id": "G0", "claim": "The empty-string warning in set_output_language reads as if this function itself resets the language to default, and should be rephrased to explain the behaviour change and its reason more clearly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
teng-lin__notebooklm-py__56
teng-lin/notebooklm-py
56
defect
694ada1f685dbbd89dd28efaa768378b9e0cfd31
2ab7075f8ca6536809a70caefdf15f620cb81573
feat(cli): integrate centralized error handling and fix silent failures
## Summary - Integrate centralized error handling in CLI to prevent silent failures - Replace generic try/except blocks with `handle_error` context manager - Add `ErrorHandler` class for consistent error reporting - Improve debug logging for better troubleshooting - Add unit tests for error handler functionality ## Te...
diff --git a/src/notebooklm/_chat.py b/src/notebooklm/_chat.py index 87297dea6..dd13bff51 100644 --- a/src/notebooklm/_chat.py +++ b/src/notebooklm/_chat.py @@ -12,8 +12,10 @@ from typing import Any from urllib.parse import quote, urlencode +import httpx + from ._core import ClientCore -from .exceptions import Val...
1
1
0
[{"id": "G0", "claim": "The logic constructing the extra_data dictionary for rate limit errors, while functionally correct, could be simplified by initializing an empty dictionary and conditionally adding keys for better readability and maintainability.", "category": "maintainability", "verdict": "supported", "priority...
null
teng-lin__notebooklm-py__61
teng-lin/notebooklm-py
61
defect
21f8ade61929ef518b346e40d3153d1099a5f0e3
2b001b3cb1f2e1ea4b9b790c29e4d81452daa96e
refactor: use ArtifactType enum instead of ARTIFACT_TYPE_MAP
## Summary - Rename `ArtifactType.SLIDES` to `ArtifactType.SLIDE_DECK` for consistency with `ArtifactTypeCode` - Remove `ARTIFACT_TYPE_MAP` dict, replace with `cli_name_to_artifact_type()` function - Change `artifacts.list()` to accept `ArtifactType | None` instead of `int | None` - Update all `list_*` methods to use ...
diff --git a/docs/examples/notes.py b/docs/examples/notes.py index ff9a8ccfd..3096d4abb 100644 --- a/docs/examples/notes.py +++ b/docs/examples/notes.py @@ -241,12 +241,10 @@ async def main(): all_artifacts = await client.artifacts.list(notebook.id) print(f"Total artifacts: {len(all_artifacts)}") - ...
1
1
0
[{"id": "G0", "claim": "For consistency with the `slide-deck` key and the `ArtifactType.SLIDE_DECK` enum, the `default_dir` for the slide-deck artifact should be renamed from `./slides` to `./slide-decks`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
teng-lin__notebooklm-py__74
teng-lin/notebooklm-py
74
defect
7a40b30cea22adbafdd8ce45fdd7d3e276f7e308
720dae3bdad3c753bdcff7b2b1cf2d71d5fb5947
test: strengthen integration and e2e test coverage
## Summary - Add error path tests for notebooks, sources, and chat APIs - Add source status transition tests with parametrized READY/PROCESSING status codes - Add multi-turn conversation test verifying conversation_id preservation - Add full artifact lifecycle tests (generate → wait → download → verify content) - Add `...
diff --git a/docs/python-api.md b/docs/python-api.md index 7232ebd41..0138427e0 100644 --- a/docs/python-api.md +++ b/docs/python-api.md @@ -228,6 +228,7 @@ await client.notebooks.share(nb.id, settings={"public": True}) | `add_drive(notebook_id, file_id, title, mime_type)` | `str, str, str, str` | `Source` | Add Googl...
2
1
0
[{"id": "G0", "claim": "Consider aligning the `notebooks.get()` return behavior for 'not found' scenarios (e.g., an empty list response) to consistently return `None` instead of an empty `Notebook` object, since returning an empty object can lead to unexpected behavior or require extra checks by consumers.", "category"...
null
teng-lin__notebooklm-py__91
teng-lin/notebooklm-py
91
defect
b73829e5afd6a29ff2a7bf2f30c07681a2f92a4e
e4c99cb244b887e2ae8fd63539bad21934e9c9e4
fix(cli): restore ProactorEventLoop for Playwright login on Windows
## Summary Fixes #89: `notebooklm login` fails on Windows with Python 3.12+ with `NotImplementedError` before the browser opens. **Root cause:** Conflict between two Windows-specific asyncio requirements: - Issue #79 fix sets `WindowsSelectorEventLoopPolicy` globally to prevent CLI hanging - Playwright's `sync_playwr...
diff --git a/src/notebooklm/cli/session.py b/src/notebooklm/cli/session.py index 77dc04cb0..c3090fd6f 100644 --- a/src/notebooklm/cli/session.py +++ b/src/notebooklm/cli/session.py @@ -7,9 +7,13 @@ clear Clear current notebook context """ +import asyncio import json import os import subprocess +import sys ...
1
1
0
[{"id": "G0", "claim": "Move the local imports (asyncio, unittest.mock.patch, and notebooklm.cli.session._windows_playwright_event_loop) used by the test methods to the top of tests/unit/test_windows_compatibility.py per PEP 8, to improve readability and module-dependency clarity.", "category": "maintainability", "verd...
null
tenpy__tenpy__205
tenpy/tenpy
205
defect
f42a6e918416d519e7da3c317202d38308e72ec9
051cb076da9962b639ac1dc81c5ac63e44b9c26a
Qr based tebd
## TODO before merging: - [x] Properly extract truncation error! Currently, only the error of the SVD of `Xi` is returned, while errors introduced by `_qr_based_svd` are ignored - [x] Are there easy diagnostics that we can run to detect that `expand` was too small? - no good ideas for now, writing a ``.. todo ::``...
diff --git a/tenpy/algorithms/tebd.py b/tenpy/algorithms/tebd.py index 8cbb05d9d..b6739e434 100644 --- a/tenpy/algorithms/tebd.py +++ b/tenpy/algorithms/tebd.py @@ -47,10 +47,10 @@ from .algorithm import TimeEvolutionAlgorithm, TimeDependentHAlgorithm from ..linalg import np_conserved as npc -from .truncation impor...
6
6
3
[{"id": "G0", "claim": "The docstring summaries (of QRBasedTEBDEngine and of _eig_based_svd) must be shortened so that only the first line is the summary, followed by an empty line, as Sphinx expects.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
tenpy__tenpy__273
tenpy/tenpy
273
defect
4ec260ed6160c4e4d6505f24fee679932a5ec3ce
c8b0d5b9f6f6fe4a1d2316b11ea7e6396d85587c
Add phi_ext to more models
- Expand documentation for models that already support phi_ext - Add phi_ext to fermions_spinless and hubbard models
diff --git a/doc/changelog/latest.rst b/doc/changelog/latest.rst index 9551445a7..4fc28ae3d 100644 --- a/doc/changelog/latest.rst +++ b/doc/changelog/latest.rst @@ -26,6 +26,8 @@ Added correlation functions in :class:`~tenpy.networks.mps.MPS` and :class:`~tenpy.networks.mps.MPSEnvironment` - Abstract :class:`~tenpy...
1
1
1
[{"id": "G0", "claim": "Remove the is_cylinder check that coupling_strength_add_ext_flux uses to warn and return the unmodified strength on non-cylinder geometries, because it also blocks piercing a flux through a finite periodic 'ring' (including 1D) which the existing open-boundary error below does not cover.", "cate...
null
tenpy__tenpy__305
tenpy/tenpy
305
defect
c604222f7337cf594fffd75e2f371b721e2a7190
56ed71839fb960284f88183e33943860f6a5bbdf
Predict ram
This code predicts the RAM usage required to perform an algorithm in TeNPy (for example, DMRG). Closes #48 The following features are implemented: - [x] Implemented usage for MPS, MPO and environments - [x] Implemented saving due to conservation laws - [x] Extracted saving factor for particle number conservation...
diff --git a/tenpy/__init__.py b/tenpy/__init__.py index 4f3b6b3a3..b70cf2dd7 100644 --- a/tenpy/__init__.py +++ b/tenpy/__init__.py @@ -191,6 +191,11 @@ def console_main(*command_line_args): FutureWarning) del options['simulation_class_name'] options['simulation_class']...
9
9
3
[{"id": "G0", "claim": "estimate_RAM should round its return value to int (which also makes printing nicer).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Simulation.estimate_RAM's docstring says the returned RAM is in MB, but it should say kB.", "categ...
null
tenpy__tenpy__407
tenpy/tenpy
407
defect
630c36e157b932c011bbfaacf975e5a153511b7a
778f320866ec641fc7ee277310f210f37f1a6812
allow !py_eval python snippets when loading yaml files
This allows to evaluate python snippets in yaml files while loading. - [x] add py_eval tag - [x] domument in options guides - [x] test on a small snippet
diff --git a/doc/commandline-help.txt b/doc/commandline-help.txt index c722ebb42..cb1ae0d16 100644 --- a/doc/commandline-help.txt +++ b/doc/commandline-help.txt @@ -6,8 +6,10 @@ Command line interface to run a TeNPy simulation. positional arguments: parameters_file - Yaml (*.yml) file with the simulation...
3
3
1
[{"id": "G0", "claim": "The pull request's new !py_eval yaml loading is not covered by any test; a test that loads a yaml file with !py_eval snippets should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CI workflows install tenpy without ...
null
tenpy__tenpy__438
tenpy/tenpy
438
defect
7a16abe4a94f017707266b048934f95d17c90e2c
9dad35007da8b47f7d4081e2e72ba1bab739701b
Krylov subspace expansion (with TDVP in mind)
Johannes, here is a rough version of what we discussed this morning. There is a function in `mps.py` that "extends" an MPS (in place) by additional provided MPS (or by random orthogonal vectors if none are provided). This required an LQ decomposition (from transposing the QR you already implemented) and truncated versi...
diff --git a/tenpy/algorithms/tdvp.py b/tenpy/algorithms/tdvp.py index 0edca7f06..d284bbcf3 100644 --- a/tenpy/algorithms/tdvp.py +++ b/tenpy/algorithms/tdvp.py @@ -101,12 +101,52 @@ def __init__(self, psi, model, options, **kwargs): assert psi.bc == model.lat.bc_MPS super().__init__(psi, model, optio...
19
17
5
[{"id": "G0", "claim": "Read the Krylov truncation settings with `Krylov_options.subconfig('trunc_params', self.trunc_params)` instead of `self.Krylov_options.get('trunc_params', ...)`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add the Krylov-expans...
null
tensara__tensara__199
tensara/tensara
199
defect
b72aaa36c6ce32067a978e3b713a28c34370165e
3929c3068bb0a187328ccb02ef1bf72a8456caef
Add a CI for running sample run on randomly selected n=5 problems
We want to have more checking as we add more features. This takes naive known solutions and sends them to the checker (sample run) endpoint. Good to know if our PR breaks something. <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/tensara/tensara/pull/199" target="_blank"> <picture> <s...
diff --git a/.github/workflows/sample-run.yml b/.github/workflows/sample-run.yml new file mode 100644 index 00000000..02643de9 --- /dev/null +++ b/.github/workflows/sample-run.yml @@ -0,0 +1,57 @@ +name: Sanity Check + +on: + pull_request: + branches: [main] + workflow_dispatch: + inputs: + sample_size: + ...
4
2
2
[{"id": "G0", "claim": "All Cypress e2e test files were moved from cypress/ to testing/ without updating cypress.config.ts's default specPattern, supportFile, and fixturesFolder, so the Cypress e2e suite is completely non-functional after this PR.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "...
null
tensorchord__envd__1001
tensorchord/envd
1,001
defect
fec7ada4efc2186fa5f858d5abe211a2beb2dfdd
c90d77e2753553e22d5d3f2b169021f05e947c9d
feat(CLI): Support create command
Close #957 This PR is to: - Remove two hidden commands envd k8s and envd ssh - Add a new hidden command envd create - Refactor the `envd/engine.go.StartEnvd()` Use flow: ```bash # Create the envd-server, and then $ envd context --name test1 --builder-address test --use --builder docker-container --runn...
diff --git a/go.mod b/go.mod index df9560cac..a4633e6ec 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( github.com/sirupsen/logrus v1.9.0 github.com/spf13/viper v1.13.0 github.com/stretchr/testify v1.8.0 - github.com/tensorchord/envd-server v0.0.2 + github.com/tensorchord/envd-server v0.0.3 github....
1
1
0
[{"id": "G0", "claim": "Rename the misspelled interval constant `waitingInternal` to `waitingInterval`, and define it in `type.go` (or `engine.go`) rather than in `docker.go`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tensorchord__envd__1008
tensorchord/envd
1,008
defect
d87afda9213fcb334ca55d247ba3c0663b7b180b
09575597357622d940f6f461fb02434966355c52
bug: fix explicit channel setting with conda env.yaml
Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai> Fix #1005
diff --git a/e2e/language/python_test.go b/e2e/language/python_test.go index a701051a1..2caf87e4e 100644 --- a/e2e/language/python_test.go +++ b/e2e/language/python_test.go @@ -54,4 +54,13 @@ var _ = Describe("python", Ordered, func() { e.RunContainer()() e.DestroyContainer()() }) + + It("Should build conda wit...
2
2
1
[{"id": "G0", "claim": "Kemingy is unsure the conda_channel test case can fail, because install-conda.sh already configures the conda-forge channel.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new conda_channel test cannot detect a wrong channel ...
null
tensorchord__envd__1050
tensorchord/envd
1,050
defect
cf78dd131e869ad20fe67a4a1159d7bf69e6fb63
acef0937e6f0c213e1e0d62814cd7221b1be44f0
chore(CLI): Move destroy logic from docker to envd engine.
Fixes #1046
diff --git a/e2e/cli/build_test.go b/e2e/cli/build_test.go index 56c13b3d6..3563422d6 100644 --- a/e2e/cli/build_test.go +++ b/e2e/cli/build_test.go @@ -15,14 +15,11 @@ package cli import ( - "context" - . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/tensorchord/envd/e2e" "github.com...
1
1
1
[{"id": "G0", "claim": "The docker-client setup and destroy logic removed from e2e/cli/up_test.go's BeforeEach must be kept, otherwise the test case will fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
tensorchord__envd__1294
tensorchord/envd
1,294
defect
f7f2b34a80f616ae4db1c0fdb1c01f6583f4821f
ba14e3d7d04edfbf583339cce18d4dc60617a71e
Interactive cli
https://github.com/tensorchord/envd/issues/706 _messed up the git history for the previous pr_ ## Interactive CLI to generate `build.envd` (Proof of Concept) - Asks user questions and generates `build.envd` based on the user's answers - Used [bubbletea](https://github.com/charmbracelet/bubbletea) to create ...
diff --git a/e2e/v0/cli/init_test.go b/e2e/v0/cli/init_test.go index 4054a4109..525ae170d 100644 --- a/e2e/v0/cli/init_test.go +++ b/e2e/v0/cli/init_test.go @@ -24,7 +24,6 @@ import ( e2e "github.com/tensorchord/envd/e2e/v0" "github.com/tensorchord/envd/pkg/app" "github.com/tensorchord/envd/pkg/home" - "github.co...
3
3
1
[{"id": "G0", "claim": "The commented-out init test file (and likewise the v1 one) should be removed rather than left as commented-out code.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "All the 4-space indentation inside the fmt.Sprintf calls in pkg/a...
null
tensorchord__envd__1342
tensorchord/envd
1,342
defect
cb33a656801a2f6b6cd04f4b4631ff17b3a2d3a8
5484c5f90d7f971d8b09257d4333b106aa2d2575
Initial e2e test for R language environment
The e2e test sample is the following: ```golang # syntax=v1 def build(): base(dev=True) install.r_lang() ```
diff --git a/e2e/v1/language/rlang_test.go b/e2e/v1/language/rlang_test.go new file mode 100644 index 000000000..a67a8d26b --- /dev/null +++ b/e2e/v1/language/rlang_test.go @@ -0,0 +1,18 @@ +package language + +import ( + . "github.com/onsi/ginkgo/v2" + + e2e "github.com/tensorchord/envd/e2e/v1" +) + +var _ = Describe(...
2
1
0
[{"id": "G1", "claim": "The rlang e2e test should also call `install.r_packages()` so R package installation is exercised, not just `install.r_lang()`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "It might be worth splitting the e2e-lang tests into tw...
null
tensorchord__envd__1401
tensorchord/envd
1,401
defect
31464f78f5f00fa21eb383c8a8292ead4869382b
c80fa700793beb5be6327503383a87f100733fd0
Intial e2e test for julia environment
The e2e test sample for Julia environment: ```golang # syntax=v1 def build(): base(dev=True) install.julia() install.julia_packages(name=["Example"]) install.julia_packages(name=["JSON", "Random"]) ``` Signed-off-by: Botong Ou <richard97@g.ucla.edu>
diff --git a/e2e/v1/docs/extra_julia_test.go b/e2e/v1/docs/extra_julia_test.go new file mode 100644 index 000000000..80979db21 --- /dev/null +++ b/e2e/v1/docs/extra_julia_test.go @@ -0,0 +1,18 @@ +package docs + +import ( + . "github.com/onsi/ginkgo/v2" + + e2e "github.com/tensorchord/envd/e2e/v1" +) + +var _ = Describ...
1
1
0
[{"id": "G0", "claim": "The julia e2e test should be placed in the existing `extra_lang_test.go` instead of in a separate `extra_julia_test.go` file.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tensorchord__envd__1482
tensorchord/envd
1,482
defect
7d8fc46a6d311b51ede996ca2d8709d1335780bc
3034c2647b1ffd4b470ff0e0d0888136fed1c987
feat: Allow buildkit timeout to be configurable
This was needed for me to get everything to run. I'd imagine other users might benefit from this as well.
diff --git a/e2e/v1/docs/extra_lang_test.go b/e2e/v1/docs/extra_lang_test.go index 9ad186435..dba356cc4 100644 --- a/e2e/v1/docs/extra_lang_test.go +++ b/e2e/v1/docs/extra_lang_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The envd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you ma...
6
4
0
[{"id": "G0", "claim": "Use t.Setenv() in the test instead of manual os.Setenv, which makes the deferred Unsetenv no longer needed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename LookupEnvDurationOr to GetDurationWithDefault, since there is no ne...
null
tensorchord__envd__1680
tensorchord/envd
1,680
defect
b5f9a49d911ce5ee1e8859968f449835d4147c5f
e4fe0b1802d0c187b6ab9b28b5e0f1eb9fdc0183
support using json for registry config
`envd bootstrap --registry-config path_to_json_file` Format: <img width="439" alt="Screenshot 2023-07-03 at 3 03 15 PM" src="https://github.com/tensorchord/envd/assets/98242479/c18425ce-c7b4-4790-8afb-6063718740f9"> Note that the "name" field is required. The other fields are all optional. This will allow use...
diff --git a/pkg/app/bootstrap.go b/pkg/app/bootstrap.go index 2dc421937..31ba16bf7 100644 --- a/pkg/app/bootstrap.go +++ b/pkg/app/bootstrap.go @@ -15,6 +15,7 @@ package app import ( + "encoding/json" "fmt" "os" "path/filepath" @@ -76,11 +77,27 @@ var CommandBootstrap = &cli.Command{ Usage: "Specify th...
3
2
0
[{"id": "G0", "claim": "The JSON tag field `UseHttp` should be named `UseHTTP` to follow the naming convention used in this repo.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the `RegistriesData` struct directly instead of maintaining a se...
null
tensorchord__envd__1990
tensorchord/envd
1,990
defect
797fa19d2554355d4f8cb4e37dcf2e68d134ee33
2ab2b8aad7b698980917c33a9e645803ca1dcfab
feat: support uv
Try it with: ```python def build(): base(dev=True) install.uv() shell("fish") ```
diff --git a/e2e/language/python_test.go b/e2e/language/python_test.go index bc07cd7d0..8793c0186 100644 --- a/e2e/language/python_test.go +++ b/e2e/language/python_test.go @@ -16,14 +16,15 @@ package language import ( . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" "github.com/tensorchord/envd/e2e"...
1
1
1
[{"id": "G0", "claim": "The test nests an 'It' block inside another 'It', which Ginkgo does not support; refactor so the inner expectations move into a separate Describe block.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tensorchord__envd__2042
tensorchord/envd
2,042
defect
c31b0fbee670b24e7dd60de59d2a035463179d1d
ee7babfb3e0bb5ed97e327f8a272f18d8a2822b1
feat(run): run command supports docker runner
## Command Help ``` [user@localhost timesfm]$ envd run -h NAME: envd run - Run the envd environment from the existing image USAGE: envd run [command options] CATEGORY: Basic Commands OPTIONS: --image value image name (default: PROJECT:dev) --name ...
diff --git a/pkg/app/run.go b/pkg/app/run.go index 1192bfe2d..23318e89d 100644 --- a/pkg/app/run.go +++ b/pkg/app/run.go @@ -29,21 +29,18 @@ import ( "github.com/tensorchord/envd/pkg/app/telemetry" "github.com/tensorchord/envd/pkg/envd" "github.com/tensorchord/envd/pkg/home" - "github.com/tensorchord/envd/pkg/ssh...
2
1
1
[{"id": "G0", "claim": "Asks gaocegege why the old run code iterated over all ports and why its TODO said 'use one remote port'.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Requests an e2e test for the `envd run` command with the docker runner.", "c...
null
tensorchord__envd__2062
tensorchord/envd
2,062
defect
938a88ab7ea88c51c809f2421f49ee91ad3dd462
80a2f913ffbdafccb1ff5855569c71910c44d88b
chore: bump lang & tools version
- julia - miniconda - uv - pixi - micromamba (change to ghcr, #1959) - fish shell
diff --git a/pkg/lang/ir/v1/conda.go b/pkg/lang/ir/v1/conda.go index 1290bf12b..e1a4d77f9 100644 --- a/pkg/lang/ir/v1/conda.go +++ b/pkg/lang/ir/v1/conda.go @@ -29,8 +29,8 @@ import ( const ( curlImage = "ghcr.io/curl/curl-container/curl-multi:8.17.0" - condaVersionDefault = "py311_25.1.1-2" - microMamba...
1
1
1
[{"id": "G0", "claim": "After the conda bump, creating the envd conda environment with the default channels demands that the channels' Terms of Service be accepted and fails the build, so the default channel should be conda-forge.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduc...
null
tensorchord__envd__626
tensorchord/envd
626
defect
c8471db20f0a7e48c2c8346b3ab88637445200f5
7b61a0323bed74c69b61aeb0f11914561388f2e6
feat(lang): Remove conda from custom base image
Fix #625 Ref #629 Signed-off-by: Ce Gao <cegao@tensorchord.ai>
diff --git a/examples/custom-image/build.envd b/examples/custom-image/build.envd index 1bd514361..418dc759b 100644 --- a/examples/custom-image/build.envd +++ b/examples/custom-image/build.envd @@ -1,5 +1,5 @@ def build(): base(language="python", image="python:3.8") install.python_packages(name=[ - "ormb...
2
1
0
[{"id": "G0", "claim": "A document should be added telling users what a standard custom image is (e.g. that it is expected to include Python).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer doubts whether the approach in compileCustom...
null
tensorchord__envd__641
tensorchord/envd
641
defect
67a1f340f45966161dbac2afb9083baeac948674
7bfbff42253f6a357d3b8b242733c25476ee4f16
remove xdg, use $HOME/.config and $HOME/.cache
Signed-off-by: Keming <kemingyang@tensorchord.ai> * close #377
diff --git a/go.mod b/go.mod index 6c92d9823..fff5f91bd 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/tensorchord/envd go 1.18 require ( - github.com/adrg/xdg v0.4.0 github.com/alessio/shellescape v1.4.1 github.com/cockroachdb/errors v1.9.0 github.com/containerd/console v1.0.3 diff --git ...
2
2
1
[{"id": "G0", "claim": "The directory-creation logic in ConfigFile/CacheFile should align with the adrg/xdg implementation the comment links to.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DefaultCacheDir is set to path.Join(home, \".config/envd\") bu...
null
tensorchord__envd__648
tensorchord/envd
648
defect
42e75312a84e590c4c3b1d2f9de4ec7a6a716bb3
3bd68027448ac92475f7d90c90f5dc636656b27a
feat(CLI): Support cache
Ref #148 TODO - [ ] Add doc for it Signed-off-by: Ce Gao <cegao@tensorchord.ai>
diff --git a/pkg/app/build.go b/pkg/app/build.go index 842a09906..e9cac1d39 100644 --- a/pkg/app/build.go +++ b/pkg/app/build.go @@ -77,8 +77,18 @@ To build and push the image to a registry: Usage: "Force rebuild the image", Value: false, }, + // https://github.com/urfave/cli/issues/1134#issuecomment-119140...
2
1
0
[{"id": "G0", "claim": "The comments on the new ExportCache and ImportCache fields should read \"the option to export/import cache\" (singular) instead of \"the options to export/import cache\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The p...
null
tensorchord__envd__661
tensorchord/envd
661
defect
a2bceb1958fbd4d845ab7bd0a6673becc7621745
8f6fd50ec69591e2728affdfb8f40f87cb0ae498
feature: add label ai.tensorchord.envd.build.manifestBytecodeHash to image for cache robust
More accurate image cache based on the compiled bytecode'hash. See e2e/bytecode_hash_test.go for more details. https://github.com/tensorchord/envd/issues/631 https://github.com/tensorchord/envd/issues/553 Signed-off-by: Qi Chen <aseaday@hotmail.com>
diff --git a/e2e/bytecode_hash_test.go b/e2e/bytecode_hash_test.go new file mode 100644 index 000000000..c0745d234 --- /dev/null +++ b/e2e/bytecode_hash_test.go @@ -0,0 +1,58 @@ +// Copyright 2022 The envd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file exce...
3
3
0
[{"id": "G0", "claim": "The new image label should be named ai.tensorchord.envd.build.hash instead of ai.tensorchord.envd.build.manifestBytecodeHash.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetEnvdProgramHash would be better to return str...
null
tensorchord__envd__766
tensorchord/envd
766
defect
4f24b0eef2b1fc88b3c7650e8259678848444cf7
79a7002cc43a6aea1c6ee506e5bbcf97e9f40af1
fix: -path and -file bug
Signed-off-by: Keming <kemingyang@tensorchord.ai> * fix #446
diff --git a/pkg/app/build.go b/pkg/app/build.go index 650a18c7c..fd1526cb8 100644 --- a/pkg/app/build.go +++ b/pkg/app/build.go @@ -26,6 +26,7 @@ import ( "github.com/tensorchord/envd/pkg/docker" "github.com/tensorchord/envd/pkg/home" sshconfig "github.com/tensorchord/envd/pkg/ssh/config" + "github.com/tensorcho...
1
1
0
[{"id": "G0", "claim": "Add a unit test for the FindFileAbsPath function.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tensorchord__envd__803
tensorchord/envd
803
defect
5c4971b2f5fa6b32c2c247e18cf6c6a178d28f57
e94008816b409d96ccbdbb11bd741d4e52028b16
chore: fix e2e cleanup by introduce new helper function ResetEnvdApp
https://github.com/tensorchord/envd/issues/802 Signed-off-by: nullday <aseaday@hotmail.com>
diff --git a/e2e/quick_start_test.go b/e2e/quick_start_test.go index b4567034e..9a2ac416c 100644 --- a/e2e/quick_start_test.go +++ b/e2e/quick_start_test.go @@ -17,6 +17,7 @@ package e2e import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" + "github.com/tensorchord/envd/pkg/lang/ir" ) var _ = Desc...
3
3
0
[{"id": "G0", "claim": "The inline `ir.DefaultGraph = ir.NewGraph()` added as e2e cleanup looks weird and ugly, and a better way to do it is requested.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Searching \"pip install\" in the e2e test log shows \"p...
null
tensorchord__envd__804
tensorchord/envd
804
defect
5c4971b2f5fa6b32c2c247e18cf6c6a178d28f57
6cd7c4dbd0a9079f1c6b2bed22c910b00942033b
test: add e2e test for examples in documentations
Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai>
diff --git a/e2e/docs/docs_test.go b/e2e/docs/docs_test.go new file mode 100644 index 000000000..3b270d7de --- /dev/null +++ b/e2e/docs/docs_test.go @@ -0,0 +1,83 @@ +// Copyright 2022 The envd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compli...
3
1
1
[{"id": "G0", "claim": "The testdata folder was created with a stray leading space in its name (e2e/docs/testdata/ minimal/) and should be renamed to `minimal`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The build.envd files under e2e/docs/testd...
null
tensorchord__envd__822
tensorchord/envd
822
defect
f70a11c5f251b8ed0f0f42cd422b4b93efabd4a7
7568467dc330774680f4679a15e7b8c8c9a979fc
feat(build): Mount local build context into the run command
Fix #811 Fix #813 Signed-off-by: Ce Gao <cegao@tensorchord.ai>
diff --git a/e2e/python_test.go b/e2e/python_test.go new file mode 100644 index 000000000..2134820dc --- /dev/null +++ b/e2e/python_test.go @@ -0,0 +1,49 @@ +// Copyright 2022 The envd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with...
2
2
1
[{"id": "G0", "claim": "The run command should set \"set -euo pipefail\" instead of \"set -e\" so that undefined variables and pipeline failures also abort the build.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The TODO comment has a stray traili...
null
tensorchord__envd__953
tensorchord/envd
953
defect
395bedc6c8cf89ce8afb92526ffa73fae120934d
10fc81e9fbc817d7b585bfb4644019e00b1a9625
chore: add more cuda version cache
Signed-off-by: Keming <kemingyang@tensorchord.ai> * fix #3 CUDA 10.2 doesn't have an Ubuntu20.04 image. So this version is ignored. FYI, CUDA also has 11.2.1, 11.2.2, 11.3.1, 11.6.1, 11.6.2.
diff --git a/base-images/remote-cache/build-and-push-remote-cache.sh b/base-images/remote-cache/build-and-push-remote-cache.sh index 57abc4d1f..097fd84c9 100755 --- a/base-images/remote-cache/build-and-push-remote-cache.sh +++ b/base-images/remote-cache/build-and-push-remote-cache.sh @@ -11,6 +11,8 @@ DOCKER_HUB_ORG="$...
2
2
2
[{"id": "G0", "claim": "The three GPU builds export their cache to the same registry ref (envd-v${ENVD_VERSION}), so the caches may overwrite each other; has this been tested locally?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The caches should ...
null
tensorchord__envd__959
tensorchord/envd
959
defect
006f6538396b47b1bcab2a0d53ec9dae0221c8f5
d249a15b8978837ad3b0714ecbbdc275637e64a8
bug: fix pypi package information
Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai> Fix #937
diff --git a/pkg/types/envd.go b/pkg/types/envd.go index c9f73437a..07636dc1b 100644 --- a/pkg/types/envd.go +++ b/pkg/types/envd.go @@ -17,6 +17,7 @@ package types import ( "encoding/json" "fmt" + "strings" "github.com/docker/docker/api/types" "github.com/moby/buildkit/util/system" @@ -240,12 +241,19 @@ fun...
1
1
1
[{"id": "G0", "claim": "Add a unit test for newDependencyFromLabels, whose PyPI-parsing behaviour this pull request rewrote and left untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tensorflow__java__132
tensorflow/java
132
defect
a4f32dcc552343d069208757ab6d89d1d0ca793d
630ac84cc4f99928a6faee25a73d1e9fee0bdc48
Remove keras package.
In issue #109, we decided to work toward a single framework API for now.
diff --git a/README.md b/README.md index 1270382a98c..75a743cb0ec 100644 --- a/README.md +++ b/README.md @@ -24,24 +24,33 @@ The following describes the layout of the repository and its different artifacts TensorFlow and just want a thin layer to access the TensorFlow runtime from the JVM * `tensorflow-fra...
1
1
0
[{"id": "G0", "claim": "Add a new README.md file under the tensorflow-framework module explaining in more detail the nature of that library, and add a link to it from the tensorflow-framework item in the main README.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tensorflow__java__178
tensorflow/java
178
defect
3f3f384517a5ba633c3b1971651cdcdec3eebfa7
2d1f54b316291217f7de3da6fb0da3214cb48c19
Initialization imprvements
Makes three simple improvements to initialization: * Makes `Ops.initAdd` no-op in eager mode, since the op has already been ran. * Adds a `runInit()` method to `Session` that runs the graph's initializers. * Adds a `doInitialization()` method to `Session.Runner` to add the initializers as targets. There's no ...
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java index 06908c41d6a..f99c6188bb5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java +++ b/tensor...
8
7
0
[{"id": "G0", "claim": "The IllegalArgumentException left in Init.add is effectively untriggered now that eager environments return early, and at the very least its message should be fixed to note that this op succeeds on graph and eager sessions.", "category": "correctness", "verdict": "supported", "priority": "P2", "...
null
tensorflow__java__182
tensorflow/java
182
defect
e4a11b3ce3a7efd12f06be5e6ea15dd87006faa7
cc999d48b2c07c7cb8dcd62c2ceba74fb2ff8f50
Expose input and output types from Signature
Currently you can get the names of the inputs and outputs from a Signature, but there is no publicly accessible method that allows you to get the return types other than toString(). I was unable to get the tests building on my machine, but hopefully this change is small enough that it won't be an issue.
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Signature.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Signature.java index ea32d1fff13..cf22474b55c 100644 --- a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Signature.java +++ b/tensorflow-core...
3
3
3
[{"id": "G0", "claim": "The new getInputs/getOutputs methods should come with an example of actual use, e.g. a small unit test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The signature API should expose the shapes of its inputs/outputs (via the whol...
null
tensorflow__java__215
tensorflow/java
215
defect
5e7c66a990b86ed92fe19e484d4bbb357b2735cf
dc9fdb8dd4c263166b255a33011d763b631204c1
Constraints - 1
Adding Constraints. Constraints impose constraints on weight values. This does not include the RadialConstraint as that requires `while` operations. This should be independent class that do not have dependencies on other framework packages.
diff --git a/tensorflow-framework/src/main/java/org/tensorflow/framework/constraints/Constraint.java b/tensorflow-framework/src/main/java/org/tensorflow/framework/constraints/Constraint.java new file mode 100644 index 00000000000..1bcd3bd04ad --- /dev/null +++ b/tensorflow-framework/src/main/java/org/tensorflow/framewo...
7
6
4
[{"id": "G0", "claim": "Questions whether an instance of Constraint needs to be specialized to a particular tensor type, i.e. whether the class-level generic parameter is warranted at all.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "sqrt should verify...
null
tensorflow__java__216
tensorflow/java
216
defect
5e7c66a990b86ed92fe19e484d4bbb357b2735cf
05ec6e8833526d4c15a778663e7aa39b8b5d68e9
Add Regularizers 1
Add Regularizers. Regularizers are classes that allow you to apply penalties on layer parameters or layer activity during optimization. These penalties are summed into the loss function that the network optimizes.
diff --git a/tensorflow-framework/src/main/java/org/tensorflow/framework/regularizers/L1.java b/tensorflow-framework/src/main/java/org/tensorflow/framework/regularizers/L1.java new file mode 100644 index 00000000000..740338350e3 --- /dev/null +++ b/tensorflow-framework/src/main/java/org/tensorflow/framework/regularizer...
24
8
1
[{"id": "G0", "claim": "L1L2 should store l1/l2 as float primitives rather than Float, with the L1 and L2 constructors passing 0 for the unused penalty instead of relying on null.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The L2 penalty in L1L2.call...
null
tensorflow__java__229
tensorflow/java
229
defect
c4498eb82cd50be383768858837a608604c5a7d5
ea7e61425903cdfffa7a56bee6c723e5c017d0b1
Keep weak references to eager resources in session
This is a fix for #208 As discussed in this thread, when migrating to JavaCPP, a bug/change of behavior was introduced that was preventing the allocated eager resources to be garbage collected while the session was alive. On long-live sessions (especially when using the default session), the help of the GC is manda...
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/EagerOperation.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/EagerOperation.java index a5c2df84026..9f87fd8b95e 100644 --- a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/EagerOperation.java +++ b/...
6
2
1
[{"id": "G0", "claim": "Relying on the garbage collector to free native memory when memory runs low gives no guarantee that the GC will run, so applications can crash, and the GC should not be relied on at all for native deallocation.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introd...
null
tensorflow__java__232
tensorflow/java
232
defect
f6024dd34005db4a129b1317fb6ce984fb78ed00
ec58a42bbba300d9959118c614b11dc1371d6fcf
Add graph walking functions to Graph and GraphOperation
Extracted from #211, adds graph walking and a minimal subgraph function. Also fixes a bug in Constant where the scope wasn't applied (including device).
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java index ea3ef31313e..7d6d159f5ef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java +++ b/tensor...
11
10
3
[{"id": "G0", "claim": "The new operationOrError method is of questionable necessity and is misnamed, since it throws IllegalArgumentException (a subclass of Exception), not an Error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "completeSubgra...
null
tensorflow__java__248
tensorflow/java
248
defect
5ca958d855307b19f420288f90cbe6dea164411c
67a76fd971bbb78cd150cb8069fd5c356aef919d
Fix Scope name collisions
This fixes two possible sources of name collision issues: * Already existing ops in an imported graph * Separate top level NameScope instances This could probably be done better by either checking against the environment every time, or having a base NameScope instead of scope, but both of those would require large...
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java index 9aac1b8cddc..5b12701c493 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java +++ b/tensor...
6
4
1
[{"id": "G0", "claim": "Instantiate the baseScope field eagerly, at the creation of the EagerSession/Graph and marked final, instead of using the lazy synchronized null-check (the author's native-handle objection did not hold and the reviewer still preferred eager initialization).", "category": "design", "verdict": "su...
null
tensorflow__java__261
tensorflow/java
261
defect
2e8f00c2f95fee75f38614ccacb665f0eb5f3250
fb5c3196eed4a2a658362b0c13469da2f09d629f
Add fetchVariable method to Session to get value of resource variable
Small PR to add a method to Session to allow for the fetching of the values of resource variables. Fetches the resource tensor then uses an eager session to read the value.
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Session.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Session.java index 6395b1770a9..465dd8238d9 100644 --- a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Session.java +++ b/tensorflow-core/tenso...
5
5
2
[{"id": "G0", "claim": "Splitting `fetch` and `fetchVariable` is a bad API because users can only tell which to use by catching runtime exceptions, so fetching a variable should instead be handled by `fetch`, redirecting to a graph `readVariableOp` rather than spinning up eager sessions to read values.", "category": "d...
null
tensorflow__java__310
tensorflow/java
310
defect
63458d2fcc3c609779ab03eede9125f47319bcaf
c0fc3510837a07f55adf924c82ce4c4b2c50de6d
Setting all the optimizers to have useLocking = True
I'm running into determinism issues when training models using TF-Java. This is one area which could be causing it, as in TF 2 all the optimizers have `useLocking=true`. We don't currently set this in TF-Java, and I'm worried the code path is degrading (as it says the behaviour may be undefined but faster with `useLock...
diff --git a/tensorflow-framework/src/main/java/org/tensorflow/framework/optimizers/AdaDelta.java b/tensorflow-framework/src/main/java/org/tensorflow/framework/optimizers/AdaDelta.java index aadbfeea54b..e5bab9228b4 100644 --- a/tensorflow-framework/src/main/java/org/tensorflow/framework/optimizers/AdaDelta.java +++ b/...
4
4
0
[{"id": "G0", "claim": "The multi-line comment above testDeterminism is wrapped awkwardly mid-sentence and should be reformatted.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The AdaGrad options array literal is missing a space after the comma b...
null
tensorflow__java__364
tensorflow/java
364
defect
9a105fae0a1422f51bfc453dcaeea8a6bb4219ce
424fe94a94af4390919e6c361cf16c1d8c02130a
ConcreteFunction fix and performance improvements
Signed-off-by: Ryan Nett <JNett96@gmail.com> Rebase of https://github.com/tensorflow/java/pull/360
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/ConcreteFunction.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/ConcreteFunction.java index 44b32df0894..b441f421efa 100644 --- a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/ConcreteFunction.java ...
2
2
0
[{"id": "G0", "claim": "The call() method invokes the signature() accessor many times; it would be better to buffer the signature in a local variable to avoid all those repeated calls.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The IllegalStateE...
null
tensorflow__java__376
tensorflow/java
376
defect
f6d0950853b5afdd51419af508caa96eab2c13da
7afde141f613a9dc62c69553659469729e57a7bc
Init exporting and loading
This adds proper initializer exporting to `SavedModelBundle`, and fixes #365. Won't be so big once #375 is merged.
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java index 74f7efb4623..b4ab7753142 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java +++ b/tensor...
3
2
0
[{"id": "G0", "claim": "Use `initOp.output(0).name()` instead of hand-building the output name string with `initOp.name() + \":0\"` when exporting the java init op signature.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation explain...
null
tensorflow__java__411
tensorflow/java
411
defect
d518678c632778bd8805fee16939a7b6afe53597
ad9172c68b556b3aad206cde72cd12caf6c2fdc5
Adds a closeable session result
This PR changes the output of Session.Runner.run() from `List<Tensor>` to a `Session.Result` class which is autocloseable and has both string and index accessors. This is an intermediate step before we have proper resource scopes (#354) which we don't currently have time to work on. One open question is if we shoul...
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/ConcreteFunction.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/ConcreteFunction.java index 4d07b678811..70dec2d9533 100644 --- a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/ConcreteFunction.java ...
8
6
1
[{"id": "G0", "claim": "TensorFunction.call should return the Result class instead of Map<String,Tensor>, with Result promoted to a top-level class and used for both TensorFunction.call and Session.run.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "It...
null
tensorflow__java__466
tensorflow/java
466
defect
56883f02958bf44fb2a1086efe698138309742dc
22714cad8a51692817a009bb29d6145cd5692a74
Simplify graph initializers
This PR simplifies how TF Java handles automatic graph initialization. Actual implementation might be too complex for what users need and, as we see in https://github.com/tensorflow/java/issues/461, might also be a cause of additional latency when running model inference. In a nutshell, the refactoring consists of: ...
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java index af8ea3c74c0..a392feaa4cc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java +++ b/tensor...
7
2
1
[{"id": "G0", "claim": "Adding all initializers, original or new, to the same single Init op of the graph (dropping the Java-specific INIT function) may cause problems, and rnett is asked to confirm.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ses...
null
tensorflow__java__469
tensorflow/java
469
defect
936e37980322c661396203404063103c3cb0e328
793ad479f623f7019cee6b4a1570a3048164d478
Add TUint16 type
In medical imaging lots of the datatypes are Uint16, however, to decode pngs to this type we first need to add the Type definition. This MR adds the type definition to the core API such that users don't need to re-implement this type in their pkgs.
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/types/TUint16Mapper.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/types/TUint16Mapper.java new file mode 100644 index 00000000000..2f7c944e15f --- /dev/null +++ b/tensorflow-core/tensorflow-core-api...
4
4
2
[{"id": "G0", "claim": "The copyright years in the new files added by this pull request should all be 2022.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DenseTUint16 should probably extend ShortDenseNdArray rather than ByteDenseNdArray, with sim...
null
tensorflow__java__52
tensorflow/java
52
defect
a9d3b1783b847ca8138dda0880f3a447347ef95c
1e841e4ca57be6a0a3423a4232364b6e26a7e1b3
Add functionality to map over dataset elements in both graph and eager mode.
While we can't use the `MapDataset` op very easily in Java, using the `DatasetIterator` abstraction, we can `map` over dataset elements using a lambda. In Graph mode, we apply the lambda once to add new operands to the graph as the targets for each session.run(). In Eager mode, the function is applied to each return...
diff --git a/tensorflow-framework/src/main/java/org/tensorflow/framework/data/Dataset.java b/tensorflow-framework/src/main/java/org/tensorflow/framework/data/Dataset.java index c5b013acdfd..b1f0fd542c9 100644 --- a/tensorflow-framework/src/main/java/org/tensorflow/framework/data/Dataset.java +++ b/tensorflow-framework/...
10
8
0
[{"id": "G0", "claim": "The files touched by this pull request carry an Oracle copyright header instead of the TensorFlow Authors one, so the copyright setting should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Several of the new ...
null
tensorflow__java__628
tensorflow/java
628
defect
89703f7dfe8e4c5580e5c63907fb15bc79c9e30e
0e67a8b2c6ca19b57e7f210124f4f3a93f304079
Feature/add t bool test
- add missing test for TBool - as Java 11 is minimum now, `List.copyOf()` can be used
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/NativeFunction.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/NativeFunction.java index 245fff70d1a..4dbde8f2473 100644 --- a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/NativeFunction.java +++ b/...
4
4
1
[{"id": "G0", "claim": "The new TBoolTest.java should carry the same copyright/license header statement as the other tests.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TBoolTest class should be public to match the visibility of the rest of ...
null
tensorflow__java__632
tensorflow/java
632
defect
d5d2ba37c1f947fef70affd8480bd9b3cbf8b3b9
69a9a3672760188a25229eb57380d388000acafb
Custom/gradients dispatch
1. Initial Problem You wanted to register multiple custom gradients in Java using TensorFlow.registerCustomGradient(...). Observed symptom: After registering a few gradients (≈ 5–10), TFJ_RegisterCustomGradient(opType, adapter) received adapter_ptr = 0 on the C++ side, which resulted in: either a ref...
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/AbstractGradientAdapter.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/AbstractGradientAdapter.java index 2119cddaa67..ef581db7ae0 100644 --- a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Abstract...
12
10
3
[{"id": "G0", "claim": "The pull request's changes to tfj_gradients_impl.cc are buried in formatting-only churn; remove it so the diff shows just the functional changes to CustomGradFunc.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change...
null
tensorflow__java__64
tensorflow/java
64
defect
ef0b4f26254cbbfd29b39e184962706c2d348e59
48db7b8f36426d023b21b65cb8268256dc60d34b
Suggestions for minor improvements to Shape.java
* Added some utility methods to query the shape for its properties. * Allowed negative indexing for Shape.size(), that way it is easier and better readable to get the size of the last dimension or second-to-last dimension etc. * Add missing javadoc and new javadoc for the new methods. * Added unit tests for the new ...
diff --git a/tensorflow-tools/src/main/java/org/tensorflow/tools/Shape.java b/tensorflow-tools/src/main/java/org/tensorflow/tools/Shape.java index be2a62a8b1e..90189a24bfe 100644 --- a/tensorflow-tools/src/main/java/org/tensorflow/tools/Shape.java +++ b/tensorflow-tools/src/main/java/org/tensorflow/tools/Shape.java @@ ...
7
7
1
[{"id": "G0", "claim": "Reformat the class javadoc to follow the Google Java Style guide for javadoc paragraphs — \"Defines the..\" should start on a separate line preceded by a blank line and a <p> tag — and apply the same to all other javadoc blocks.", "category": "documentation", "verdict": "supported", "priority": ...
null
tensorflow__java__71
tensorflow/java
71
defect
f056482d29a97e67c167e8446bd845d402dc5647
9da3b9e9d52d917d4b30381a3bed0afba1b99014
Add ShapeOps Enhancement to work with org.tensorflow.op.core.Shape
Add ShapeOps class as a tool for working with org.tensorflow.op.core.Shape objects directly during runtime as opposed to working with static shapes via org.tensorflow.tools.Shape. This is needed in Java TensorFlow frameworks, such as Keras, to manipulate shapes when the actual shape is not known until the graph is run...
diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/op/core/ShapeOps.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/op/core/ShapeOps.java new file mode 100644 index 00000000000..2ba57447f40 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/main/java/org/tenso...
8
7
1
[{"id": "G0", "claim": "ShapeOps.java carries the wrong (editor-template) license header and should use the non-Oracle Apache header referencing TensorFlow Authors instead.", "category": "licensing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear what testReduceDi...
null
tensorflow__java__83
tensorflow/java
83
defect
c065b70c05acefe703fee21a156561e76e54c66d
4df69034420d5153b21be785341f5ca272e65dd7
Add a simple DeviceSpec class.
This is a straightforward port from device_spec.py. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/framework/device_spec.py
diff --git a/tensorflow-core/tensorflow-core-api/pom.xml b/tensorflow-core/tensorflow-core-api/pom.xml index 27273994ff6..fa16c15b15c 100644 --- a/tensorflow-core/tensorflow-core-api/pom.xml +++ b/tensorflow-core/tensorflow-core-api/pom.xml @@ -63,6 +63,12 @@ <artifactId>jmh-core</artifactId> <scope>test<...
4
3
2
[{"id": "G0", "claim": "The DeviceSpec builder should not depend on the external AutoValue library — a plain hand-written builder (or plain classes that could later become records) would be preferable because tensorflow-core-api should limit its transitive dependencies.", "category": "design", "verdict": "supported", "...
null
tensorflow__serving__1140
tensorflow/serving
1,140
defect
2f3405eefc26698e5c97c3f645e3a38f293f2d7b
f1b83888aef8f29f372289ee3bbf471458c9943f
Add descriptive error messages for invalid json for REST requests
Add error messages for specific cases when json for REST requests is not formatted correctly to assist in debugging calls. Previously error messages return the same error message for * Both inputs and instances existed * Value was not an array when array expected * Empty array * When exampl...
diff --git a/tensorflow_serving/util/json_tensor.cc b/tensorflow_serving/util/json_tensor.cc index ea387a3d72a..a7087a0a3b4 100644 --- a/tensorflow_serving/util/json_tensor.cc +++ b/tensorflow_serving/util/json_tensor.cc @@ -187,11 +187,17 @@ Status Base64FormatError(const rapidjson::Value& val) { ...
1
1
1
[{"id": "G0", "claim": "FormatError should be changed to a variadic template forwarding its arguments, with every call site passing an explicit error message inline instead of building intermediate strings or local variables.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tensorflow__serving__1615
tensorflow/serving
1,615
defect
e26682237cf756eca2dc12c83e8d5d24f00c1261
b064c1d3df03b0401c5ca61de0d5ab36cd5645a5
Allow batch size of zero in row format JSON
Fixes https://github.com/tensorflow/serving/issues/1610
diff --git a/tensorflow_serving/util/json_tensor.cc b/tensorflow_serving/util/json_tensor.cc index f5db8b920c6..6f959943c4c 100644 --- a/tensorflow_serving/util/json_tensor.cc +++ b/tensorflow_serving/util/json_tensor.cc @@ -966,7 +966,7 @@ Status MakeRowFormatJsonFromTensors( // Verify if each named tensor has same...
2
2
0
[{"id": "G0", "claim": "Change the second tensor's dimension of size 1 in the FromJsonMultipleZeroBatchTensors test to a different number, so the test verifies that only the first dimension needs to match between tensors.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
tensorflow__serving__535
tensorflow/serving
535
defect
636e05b2d90feb7d868e29e23861e0a530e51682
07be5c8f340c94cf26325b2698fbd6acfeb1313d
Add padding for batching session
PR for issue #530 Currently padding is not optional and works for all dims of all tensors in input. I can make it optional, but need guidance on how to proceed (probably would need to change classes that use BatchingSession).
diff --git a/tensorflow_serving/batching/batching_session.cc b/tensorflow_serving/batching/batching_session.cc index cff81f9a955..9654e18458c 100644 --- a/tensorflow_serving/batching/batching_session.cc +++ b/tensorflow_serving/batching/batching_session.cc @@ -20,6 +20,8 @@ limitations under the License. #include "ten...
12
12
5
[{"id": "G0", "claim": "The padding should be accomplished via tensorflow's Tensor abstraction rather than importing/using Eigen directly (adding a utility in tensorflow if needed), if possible.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Every functi...
null
tensorflow__tfjs__5217
tensorflow/tfjs
5,217
defect
64f3ff17a0e6902631d639d6bb19d28b6ef7eac6
c932bbade523ee9bca0cf562e2964e10a0425ac0
Update react-native monorepo dependencies to 3.7.0
To see the logs from the Cloud Build CI, please join either our [discussion](https://groups.google.com/a/tensorflow.org/forum/#!forum/tfjs) or [announcement](https://groups.google.com/a/tensorflow.org/forum/#!forum/tfjs-announce) mailing list. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable....
diff --git a/tfjs-react-native/integration_rn59/package.json b/tfjs-react-native/integration_rn59/package.json index 3b20564dd8a..bceb88b775f 100644 --- a/tfjs-react-native/integration_rn59/package.json +++ b/tfjs-react-native/integration_rn59/package.json @@ -22,7 +22,7 @@ "@tensorflow-models/blazeface": "^0.0.2"...
1
1
1
[{"id": "G0", "claim": "It looks like the react-native tests are failing, with the values of the output seemingly shifted.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
tensorflow__tfjs__7520
tensorflow/tfjs
7,520
defect
5d40e01cbe06f1245230b2f8ddec62d813b08352
ae13361cfc3b8c933e9c47d1a1082bceafe6e9d3
Add e2e golden model tests
Add tests to validate outputs and intermediate tensor values with predefined models. Some concerns: each golden data file is greater than 100MB. Not sure whether it will be a problem to our nightly/ci tests or running on browserstack. GCP bucket for golden data: [here](https://pantheon.corp.google.com/storage/brow...
diff --git a/.gitignore b/.gitignore index 416c575d2d7..b3a2ac1c2ab 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ tfjs-layers/integration/typescript/yarn.lock e2e/integration_tests/create_save_predict_data e2e/integration_tests/convert_predict_data e2e/integration_tests/metadata +e2e/integration_tests/g...
6
2
1
[{"id": "G0", "claim": "The PR might eventually want to use io-ts or zod for JSON parsing and verification instead of the ad-hoc checks.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If the golden data files are too large, the tensors could be hashed (e...
null
tensorflow__tfjs__7543
tensorflow/tfjs
7,543
defect
8d40c4ffc5e18f84f638382874b1588fc7617feb
6d0081bbfecf38b705696b7b60c7aec3f1632ba5
[e2e] Enable webgpu intergration test
Based on: https://github.com/haoyunfeix/tfjs/tree/webgpu_integration_test To see the logs from the Cloud Build CI, please join either our [discussion](https://groups.google.com/a/tensorflow.org/forum/#!forum/tfjs) or [announcement](https://groups.google.com/a/tensorflow.org/forum/#!forum/tfjs-announce) mailing list....
diff --git a/e2e/integration_tests/backends_test.ts b/e2e/integration_tests/backends_test.ts index fa2a8d66c53..202519f4e48 100644 --- a/e2e/integration_tests/backends_test.ts +++ b/e2e/integration_tests/backends_test.ts @@ -17,26 +17,26 @@ import '@tensorflow/tfjs-backend-cpu'; import '@tensorflow/tfjs-backend-web...
18
15
2
[{"id": "G0", "claim": "The webgl-prefixed variable names in backends_test.ts (webglBefore, webglAfter, etc.) should be renamed to backend-neutral names now that the tests run against more than WebGL.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
tensorflow__tflite-micro__1759
tensorflow/tflite-micro
1,759
defect
d9bd2907b80d06aa58d4e679fcfb6792e52fffb3
e8156d8d2efd94955e8d9fa58ddf510a5d0c7217
Optimized kernel reference fallbacks: SVDF
@tensorflow/micro Remove conditional compilation for kernel tests for the following platforms: Xtensa Add optimized kernel reference fallback code for the following platforms: Xtensa The following table shows the size changes for each benchmark binary as a result of this PR: | Platform | Benchmark | Build | Tex...
diff --git a/tensorflow/lite/micro/kernels/svdf.cc b/tensorflow/lite/micro/kernels/svdf.cc index 9524b9eb866..7c5a1a157b4 100644 --- a/tensorflow/lite/micro/kernels/svdf.cc +++ b/tensorflow/lite/micro/kernels/svdf.cc @@ -1,4 +1,4 @@ -/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. +/* Copyright 2023 The ...
3
3
1
[{"id": "G0", "claim": "Replace the duplicated int16 dispatch in Eval of xtensa/svdf.cc with a call to EvalInt8(context, node) to reduce duplication and improve test coverage of the code in EvalInt8.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
tensorflow__tflite-micro__2018
tensorflow/tflite-micro
2,018
defect
78b4040c8a09798abedd557208b83f330217824d
db9fe54654450526ad0bf732e5216ac44cb7961b
Manual sync from upstream (and additional changes)
Changes in strided slice from http://cl/536336953 required updates to the kernel test. Note that the TFLM strided\_slice kernel does not support the new offset parameter from http://cl/536336953. See http://b/285340415 for additional context. NO_CHECK_TFLITE_FILES=manual sync from upstream. BUG=http://b/28534041...
diff --git a/tensorflow/lite/core/api/flatbuffer_conversions.cc b/tensorflow/lite/core/api/flatbuffer_conversions.cc index af0a0eb229e..9f955df1a6d 100644 --- a/tensorflow/lite/core/api/flatbuffer_conversions.cc +++ b/tensorflow/lite/core/api/flatbuffer_conversions.cc @@ -2266,6 +2266,7 @@ TfLiteStatus ParseStridedSlic...
1
1
0
[{"id": "G0", "claim": "The trailing 0 initializing the newly added bool `offset` field in the TfLiteStridedSliceParams initializers in strided_slice_test.cc should be `false` instead of `0`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tensorflow__tflite-micro__2073
tensorflow/tflite-micro
2,073
defect
37d32b3345b918c9d2f7bb34af332469bfc2ea75
f5af14b32da24996e7bf3f3c040f7b91cc56a2a3
DebugLog changes
@tensorflow/micro Change DebugLog to allow stdio style formatted output using either <cstdio> or a third party printf library. Remove micro_string code. bug=fixes #2083
diff --git a/tensorflow/lite/kernels/op_macros.h b/tensorflow/lite/kernels/op_macros.h index 4255d253511..39e3119c971 100644 --- a/tensorflow/lite/kernels/op_macros.h +++ b/tensorflow/lite/kernels/op_macros.h @@ -1,4 +1,4 @@ -/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. +/* Copyright 2023 The TensorFl...
10
8
0
[{"id": "G0", "claim": "Rename the underscore-prefixed `_DebugLog` helpers across arc_emsdp, bluepill and cortex_m_generic to descriptive names instead of re-using the `DebugLog` name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `TF_LITE_...
null
tensorflow__tflite-micro__2104
tensorflow/tflite-micro
2,104
defect
13cd6d82406728fe38880de20933e765ebe0b59d
4001d8e06f3b0a38850960653aa0d7988e8841a8
port c++ framer op to open source in tflm_signal
`port c++ framer op to open source in tflm_signal` -port framer op and corresponding to new open source location for C++ BUG=[b/288965505](https://b.corp.google.com/288965505)
diff --git a/python/tflite_micro/python_ops_resolver.cc b/python/tflite_micro/python_ops_resolver.cc index 587adf7a383..8d508e1cc67 100644 --- a/python/tflite_micro/python_ops_resolver.cc +++ b/python/tflite_micro/python_ops_resolver.cc @@ -53,6 +53,7 @@ PythonOpsResolver::PythonOpsResolver() { AddFloor(); AddFlo...
6
5
1
[{"id": "G0", "claim": "Init should handle allocation failure instead of dereferencing params unchecked — add a nullptr check with early return rather than a DCHECK.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo 'capcity' in the commen...
null
tensorflow__tflite-micro__2116
tensorflow/tflite-micro
2,116
defect
c2c7220c0ba4a00d10275cf50bab7fcb79598259
8c2b2834722079b03ececc640bb3b8d2aa80f9a8
Overlapp_add
`port c++ Overlapp_Add op to open source in tflm_signal` -port Overlapp_Add op and corresponding to new open source location for C++ BUG=[b/289291202](https://b.corp.google.com/issues/289291202)
diff --git a/python/tflite_micro/python_ops_resolver.cc b/python/tflite_micro/python_ops_resolver.cc index 8d508e1cc67..ed4320ea241 100644 --- a/python/tflite_micro/python_ops_resolver.cc +++ b/python/tflite_micro/python_ops_resolver.cc @@ -80,6 +80,7 @@ PythonOpsResolver::PythonOpsResolver() { AddMul(); AddNeg()...
4
3
2
[{"id": "G0", "claim": "Add an early return if params is nullptr in Init.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a TF_LITE_ENSURE that params->state_buffers is not nullptr in Prepare.", "category": "correctness", "verdict": "supported", ...
null