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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
transparency-dev__tessera__946 | transparency-dev/tessera | 946 | defect | 8f93c4f80e502c8cef7b219eafd8fb0000c2dba4 | 87d9a26879d62039900694641a2250212653861e | [MTC] Add first cut of mirror HTTP handler | This PR adds a very rough sketch for an MTC mirror API server, primarily intended to enable work on the lower storage layers, subtree proofs, and test client to proceed.
Towards #945 | diff --git a/README.md b/README.md
index 0e60e93a0..78b9fd1a9 100644
--- a/README.md
+++ b/README.md
@@ -90,6 +90,7 @@ Tessera is generally available and production ready. The following items are pla
| 10 | Mirrored logs ([#576][]) | ⚠️ |
| 11 | Preordered logs ([#575][]) ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The logOrigin slice is allocated with a user-provided size (logOriginSize) with no upper bound, a potentially excessive memory allocation.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ticket slice is allocated with a user-... | null |
travisgoodspeed__md380tools__509 | travisgoodspeed/md380tools | 509 | defect | b109fb83fd39c79627716dd81222f4c595a8bb30 | 4dbb6254529845396125d944da1413b91c5a1c54 | Added: boot screen selection; radio name auto configuration; dynamic bootscreen | This is three related additions packed into one.
First and foremost: the radio name is now set in the config from an automatic lookup in the usersdb whenever the DMR ID is changed. This means that peeps should be able to pass around codeplugs and never have to open them in a CPS. This change is set in memory, in the c... | diff --git a/applet/src/addl_config.c b/applet/src/addl_config.c
index c1bad5df..800d6051 100644
--- a/applet/src/addl_config.c
+++ b/applet/src/addl_config.c
@@ -23,11 +23,23 @@ void cfg_fix_dmrid()
int dmrid = global_addl_config.dmrid ;
if( dmrid != 0 ) {
// store new dmr_id to ram and spi flash (c... | 3 | 1 | 1 | [{"id": "G0", "claim": "The pull request's new code references gfx_info outside any #ifdef, which is undefined under the D02 firmware, so 'make ci' fails; the references should be excluded with ifdefs (or the commit reverted) so that make ci completes without errors.", "category": "correctness", "verdict": "supported",... | null |
travisgoodspeed__md380tools__520 | travisgoodspeed/md380tools | 520 | defect | 82b6b14f6ad4796b47400cdae1872d3bdde62f1f | 1c0ed98751f4827e8fce8a924aaa12c8bf7f2dce | Boot option submenu | - Creation of a sub menu to select boot options.
- Removed "quick" demo mode, it was quite useless.
- Boot Splash can now be selected between: manual (default, code plug data), callsign+dmrid, or callsign+name (the latter two are only available when userscsv == 1).
- Saving of radio name from the userscsv is now only t... | diff --git a/applet/merge_d02.032.py b/applet/merge_d02.032.py
index c632e8cd..53be1598 100644
--- a/applet/merge_d02.032.py
+++ b/applet/merge_d02.032.py
@@ -157,7 +157,7 @@ def hookbl(self,adr,handler,oldhandler=None):
merger.hookstub(0x080969de, #USB manufacturer string handler function.
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Dont reorder the config options in the struct persisted to spi flash; keep the existing field order.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
treasure-data__digdag__1533 | treasure-data/digdag | 1,533 | defect | 4c65efb346140ac95bd29ab7a2e4db08bb481c65 | de7bd8e4b3d39cbdc1e598588130487d19a24423 | Add `digdag profiler` subcommand | Digdag users and developers sometimes want to know how much the start time of tasks delayed from the preceding task. This PR introduces `digdag profile` cli subcommand that analyzes historical `task_archives` table for that.
This subcommand does the followings:
- Analyze multiple attempts' tasks
- Collect and summ... | diff --git a/digdag-core/src/main/java/io/digdag/core/database/DatabaseSessionStoreManager.java b/digdag-core/src/main/java/io/digdag/core/database/DatabaseSessionStoreManager.java
index 0b581b03a6..d2710ce6d8 100644
--- a/digdag-core/src/main/java/io/digdag/core/database/DatabaseSessionStoreManager.java
+++ b/digdag-c... | 5 | 5 | 1 | [{"id": "G0", "claim": "Tasks dynamically inserted into the root task (`failure-alert`, `error`), and a similar case in group retry, cause meaningless very long start delays in the profile output and this case needs to be taken care of.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
treasure-data__digdag__1561 | treasure-data/digdag | 1,561 | defect | 3d4f50c22e172a173dda1ae68ccabb93ff799121 | 5d7d712e9b96ec9469d5b3a74224b43358d6333c | `pg` operator should check if the status table exists in advance before trying to create the table | `pg` operator records the status of workflow tasks in the target PostgreSQL database (a.k.a. `status table`) so that it achieves exactly-once semantics. But this way requires some privileges including CREATE TABLE. For the case DBA doesn't want to give those permissions to the workflow, `pg` operator also provides an o... | diff --git a/digdag-standards/src/main/java/io/digdag/standards/operator/pg/PgConnection.java b/digdag-standards/src/main/java/io/digdag/standards/operator/pg/PgConnection.java
index 46af59ae7d..1ce135164d 100644
--- a/digdag-standards/src/main/java/io/digdag/standards/operator/pg/PgConnection.java
+++ b/digdag-standar... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add an explanation of the mocking in the txHelperPrepare test, which simulates the case where the __digdag_status table does not exist, since that case is high context.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treasure-data__digdag__1598 | treasure-data/digdag | 1,598 | defect | 258db26fa6780fd39b53de7e713551855a0d52df | 479493f97c89a7ca63475487ef9e9979cb40e8ed | Add digdagignore | Issue: #1092
Reading prior work #1175 , I
- wrote change in `ProjectArchive`.
- use eclipse JGit for implementation.
I still have some worries.
- I don't understand "In your current implementation, `ignoreFileList` method is called every tar entry copying. " in https://github.com/treasure-data/digdag/pull/1175... | diff --git a/digdag-core/build.gradle b/digdag-core/build.gradle
index 6e47d9ba0f..39a0d39b96 100644
--- a/digdag-core/build.gradle
+++ b/digdag-core/build.gradle
@@ -23,6 +23,7 @@ dependencies {
compile 'org.yaml:snakeyaml:1.23'
compile 'com.google.code.findbugs:annotations:3.0.1'
compile 'org.weakref:j... | 4 | 3 | 1 | [{"id": "G0", "claim": "JGit's IgnoreNode doesn't seem to work with `Path::toString` on Windows, so .digdagignore matching fails there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the .digdagignore parsing lines (L63-L68) into listFilesRecur... | null |
treasure-data__digdag__1624 | treasure-data/digdag | 1,624 | defect | 8d545fb3c1ba42c9841dd6fea7a2fd2485f7a76a | 696f9a441c64966471e7fb350c5268e808c9ebdc | Added task override validation | Add validation for the total environment variable size.
ECS has 8192 bytes limitation for task override.
see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#API_RunTask_RequestSyntax | diff --git a/digdag-standards/src/main/java/io/digdag/standards/command/EcsCommandExecutor.java b/digdag-standards/src/main/java/io/digdag/standards/command/EcsCommandExecutor.java
index 9ab8f3c50a..f250d7173f 100644
--- a/digdag-standards/src/main/java/io/digdag/standards/command/EcsCommandExecutor.java
+++ b/digdag-s... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add a space between `if` and `(` in validateTaskOverride (e.g. `if(k != null)` -> `if (k != null)`).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Make the hardcoded warning threshold `6000` a named constant like `ENV_VARS_BYTES_T... | null |
treasure-data__digdag__1626 | treasure-data/digdag | 1,626 | defect | 4d1c9089bbdedb159e105c25f7c76f7df5365d48 | 95c91ba8aadf5f488d21052b5a480aa0633b65e2 | Revised retry logic for getLog | Because Cloudwatch log stream became available by an eventually consistency fashion, introduce a retry logic to avoid ResourceNotFoundException.
```
com.amazonaws.services.logs.model.ResourceNotFoundException: The specified log stream does not exist. (Service: AWSLogs; Status Code: 400; Error Code: ResourceNotFound... | diff --git a/digdag-standards/src/main/java/io/digdag/standards/command/ecs/DefaultEcsClient.java b/digdag-standards/src/main/java/io/digdag/standards/command/ecs/DefaultEcsClient.java
index 0c054e78f4..1971acd54e 100644
--- a/digdag-standards/src/main/java/io/digdag/standards/command/ecs/DefaultEcsClient.java
+++ b/di... | 2 | 2 | 0 | [{"id": "G0", "claim": "The rate-limit configuration fields used by the retry methods should be renamed (or a new one created for this method) instead of keeping the generic rateLimitXxx names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "retr... | null |
treasure-data__digdag__1629 | treasure-data/digdag | 1,629 | defect | 2df8bf2c90ea7cca6f54ce312552fa2465249b46 | 865f7ffe7ab3402421c10d4b9c056b93ee534800 | Enlarged retry timeout to fetch log events for non-zero status | Cloudwatch logs eventually became available.
When stdout/stderr output is too large, 60 wait is not enough to wait EoL marker.
So, enlarged retry timeout to fetch log events for non-zero status from 60 sec to 300 sec. | diff --git a/digdag-standards/src/main/java/io/digdag/standards/command/EcsCommandExecutor.java b/digdag-standards/src/main/java/io/digdag/standards/command/EcsCommandExecutor.java
index 02a6034eea..97bf79341c 100644
--- a/digdag-standards/src/main/java/io/digdag/standards/command/EcsCommandExecutor.java
+++ b/digdag-s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added warn-level log for a missing logging_finished_at marker is visible to customers and might worry them too much, so a lower log level should be considered.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treasure-data__digdag__1767 | treasure-data/digdag | 1,767 | defect | 453a36a1937848d1856fafce5766893abd5ddb45 | 93f8223c3e0764261b8492c8868788de52b2e027 | Support location in bq operator | Set Job location for non-US location.
Fixes #1088 | diff --git a/digdag-standards/src/main/java/io/digdag/standards/operator/gcp/BaseBqJobOperator.java b/digdag-standards/src/main/java/io/digdag/standards/operator/gcp/BaseBqJobOperator.java
index a802c860c5..4a13aad091 100644
--- a/digdag-standards/src/main/java/io/digdag/standards/operator/gcp/BaseBqJobOperator.java
++... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new location handling should use Guava's Optional, as digdag does, instead of converting the parameter to a nullable String with orNull().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "jobStatus should set the location parame... | null |
tree-sitter__tree-sitter__2403 | tree-sitter/tree-sitter | 2,403 | defect | ba9f8471550838aec2da40bfb0386ec0f34ab20f | b8cf0305865c8b43fc99eaf384e6fb5a7295632c | feat(cli): add option to select JS runtime other than node | This pull request add s the CLI option `--js-runtime <binary>`, which allows users of the CLI to optionally select a JavaScript runtime other than `node`.
**Use Cases:**
- **CI:** This PR allows specifying a custom runtime path in CI, resolving #1686
- **Lightweight Runtimes:** Some authors that develop tree-sitte... | diff --git a/cli/src/generate/mod.rs b/cli/src/generate/mod.rs
index 4838828b1c..7e7a798282 100644
--- a/cli/src/generate/mod.rs
+++ b/cli/src/generate/mod.rs
@@ -44,6 +44,7 @@ pub fn generate_parser_in_directory(
abi_version: usize,
generate_bindings: bool,
report_symbol_name: Option<&str>,
+ runtime... | 3 | 2 | 0 | [{"id": "G0", "claim": "The js-runtime value should be unwrapped at the CLI boundary with a const default of \"node\" so a plain &str, not Option<&str>, is passed down the stack, avoiding a magic default value downstream.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
tree-sitter__tree-sitter__2423 | tree-sitter/tree-sitter | 2,423 | defect | 3f44b896852eb7daaa6df4fb778c9bb52c70c815 | 0344ded07f6e6855d0bd5809261bf3e64e15ef67 | feat!: use `Option<NonZeroU16>` for TSFieldIds | Closes #1452 | diff --git a/cli/src/tests/parser_test.rs b/cli/src/tests/parser_test.rs
index af5f36f5d7..a9815d5c53 100644
--- a/cli/src/tests/parser_test.rs
+++ b/cli/src/tests/parser_test.rs
@@ -665,7 +665,7 @@ fn test_parsing_with_a_timeout() {
assert!(start_time.elapsed().as_micros() < 2000);
#[cfg(target_arch = "spa... | 2 | 2 | 1 | [{"id": "G0", "claim": "Rename the type alias `TSFieldId` to `FieldId`, which matches normal Rust style better.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `FieldId` alias should be `NonZeroU16` with the `Option` outside it, so `field_id_... | null |
tree-sitter__tree-sitter__2445 | tree-sitter/tree-sitter | 2,445 | defect | 0fb816d1f9c6aac9750d30e3a12e2d2064abbe2c | 7601969d4cffdf9375cb96acaef3cfcf24d73340 | fix: do not allow eof to advance states if the new state is the same state | If we have a regex or token repetition that includes the null character, there is a state that loops back to itself because it's meant to match as much as possible for one token. That state looks something like this (for a regex including \x01-\x7f)
```c
case 4:
ACCEPT_TOKEN(aux_sym_source_file_token1);
... | diff --git a/cli/src/generate/render.rs b/cli/src/generate/render.rs
index cb9f6c72a7..378886c3cf 100644
--- a/cli/src/generate/render.rs
+++ b/cli/src/generate/render.rs
@@ -771,7 +771,12 @@ impl Generator {
for (i, state) in lex_table.states.into_iter().enumerate() {
add_line!(self, "case {}:", ... | 2 | 2 | 2 | [{"id": "G0", "claim": "Tests should be added to the PR's EOF-advancing fix to avoid regressions in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `!eof &&` clause should be added unconditionally whenever the character range contains the... | null |
tree-sitter__tree-sitter__2532 | tree-sitter/tree-sitter | 2,532 | defect | ab09ae20d640711174b8da8a654f6b3dec93da1a | 536549409564481eb1b7ab905c58f790aedf0349 | feat!: properly handle predicates used on quantified captures | Closes #2514 | diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs
index 932fc452acd..2d6631e3e4d 100644
--- a/lib/binding_rust/lib.rs
+++ b/lib/binding_rust/lib.rs
@@ -115,7 +115,7 @@ pub struct Query {
ptr: NonNull<ffi::TSQuery>,
capture_names: Vec<String>,
capture_quantifiers: Vec<Vec<CaptureQuantifier>>,... | 2 | 1 | 1 | [{"id": "G0", "claim": "Could the new quantified predicate names be reshaped for consistency — use `not-all-eq?` or `any-not-eq?` instead of `not-any-eq?`, and likewise `any-not-match?` in the match? family?", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G6", "claim": ... | null |
tree-sitter__tree-sitter__2538 | tree-sitter/tree-sitter | 2,538 | defect | c37dd2458b30c3cf9809298f1f140090c73b13de | ffae7d611563f0a7e6fcfafbcb34e14f0c722a9d | fix(safety): mark functions that potentially deref a raw pointer as unsafe | Closes #2537
@oskgo can I get your thoughts on this? | diff --git a/cli/src/tests/highlight_test.rs b/cli/src/tests/highlight_test.rs
index 5cdd0f1da5..c4ca0b49ab 100644
--- a/cli/src/tests/highlight_test.rs
+++ b/cli/src/tests/highlight_test.rs
@@ -496,11 +496,13 @@ fn test_highlighting_via_c_api() {
.iter()
.map(|h| h.as_bytes().as_ptr() as *const c_cha... | 4 | 4 | 1 | [{"id": "G0", "claim": "Not all of the functions that need it were marked unsafe in the PR's change — helper Rust functions and FFI accessors that receive raw pointers were still safe when the comment was made.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
tree-sitter__tree-sitter__3299 | tree-sitter/tree-sitter | 3,299 | defect | a3d338781bdbeb329e26ee7f6218adcb6da9db42 | 5a8e3643ece2ce8970cd45feb4c8c6c513e4ca68 | feat(cli): support `NO_COLOR` | This adds the option to disable colored text in the `test` command's output.
It seemed a bit odd to print the (colored) diff key without colors, so when the `--no-color` option is used the diff key isn't printed, and in `print_diff()` each diff variant is labeled with "correct"/"expected"/"unexpected" in the line di... | diff --git a/cli/src/main.rs b/cli/src/main.rs
index 8447ed92d28..39c3bc3f1ed 100644
--- a/cli/src/main.rs
+++ b/cli/src/main.rs
@@ -638,6 +638,8 @@ fn run() -> Result<()> {
env::set_var("TREE_SITTER_DEBUG", "1");
}
+ let color = env::var("NO_COLOR").is_err();
+
l... | 2 | 2 | 2 | [{"id": "G0", "claim": "Use the NO_COLOR environment variable instead of adding another flag to the `test` command.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "When NO_COLOR is set to an empty value, NO_COLOR should not be used (color should stay on); it... | null |
tree-sitter__tree-sitter__3450 | tree-sitter/tree-sitter | 3,450 | defect | 9d1ac2139221b2e19389ca620767c537607a2f63 | 70c04371c3fae1a6bb8912fdd0178d393fdcc2a1 | fix(lib): an empty root node should not precede an empty range | The problem is, given an empty file, the root node of this file spans 0 bytes. As such, the logic for determining whether or not the node precedes the range fails, and is true when it should be false. Later on, the logic for determining whether a node intersects the range fails because of this edge case, when it should... | diff --git a/cli/src/tests/query_test.rs b/cli/src/tests/query_test.rs
index 6ef683bfa33..e46edca437a 100644
--- a/cli/src/tests/query_test.rs
+++ b/cli/src/tests/query_test.rs
@@ -5171,3 +5171,17 @@ fn test_query_compiler_oob_access() {
// UBSAN should not report any OOB access
assert!(Query::new(&language, ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The two node_precedes_range conditions would be clearer if `is_empty` were factored out of them (`!is_empty && (ts_node_end_byte(node) <= self->start_byte || point_lte(...))`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
tree-sitter__tree-sitter__3833 | tree-sitter/tree-sitter | 3,833 | defect | 36616893892f98614138fa8f44e4b8550c6a61f6 | 91b01d3203d3e6883720b5510e5a83b456265d58 | feat: add the ability to specify a custom decode function | Supersedes #2400
Closes #717 | diff --git a/Cargo.lock b/Cargo.lock
index c92b4865df9..cfa8d884619 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -509,6 +509,15 @@ version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
+[[package]]
+name = "enc... | 1 | 1 | 0 | [{"id": "G0", "claim": "Doc comments are missing on the newly added ts_parser_parse_custom declarations in bindings.rs and api.h, and docs should be added there too.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tree-sitter__tree-sitter__3843 | tree-sitter/tree-sitter | 3,843 | defect | 55bda0a968609a21ce1fb5ed4dcc2d04766807c0 | caa6a14c2d569857cb4f4fcd27ce6c3c36de1a69 | feat: add options to parsing and query execution | Closes #2541
Would like #3833 to extend upon this
### Problem
Currently, users have a hard time having manual control over when parsing or query execution is canceled. The API does offer a few ways to control this, typically by setting a timeout in microseconds or by setting a cancellation flag. However, this ap... | diff --git a/cli/src/parse.rs b/cli/src/parse.rs
index 6fe0f6a5ca8..08966a00f61 100644
--- a/cli/src/parse.rs
+++ b/cli/src/parse.rs
@@ -2,14 +2,17 @@ use std::{
fmt, fs,
io::{self, StdoutLock, Write},
path::Path,
- sync::atomic::AtomicUsize,
+ sync::atomic::{AtomicUsize, Ordering},
time::{Dur... | 4 | 4 | 0 | [{"id": "G0", "claim": "The newly added TSParseState/TSParseOptions wrapper structs have no concrete use case for any field beyond `payload`, and what `ParseState` would actually carry is unspecified, so the reviewer questions their necessity and suggests the state be controlled by the caller.", "category": "design", "... | null |
tree-sitter__tree-sitter__3879 | tree-sitter/tree-sitter | 3,879 | defect | 8588c966917a7ced61f4ec3c9e00e6e50567a1fb | 2b877fe0b4a67fd1a55e92dee2a45efd66118abd | feat: allow css classes in HTML highlighter output, rather than inline styles | fixes #553
when the `--data-highlight` flag is passed along with the `--html` flag, the highlighter will inject `data-tree-sitter-highlight` attributes into the `span` tags, rather than pulling inline styles from the theme.
this makes it significantly easier to use from downstream tools, because we can apply css ... | diff --git a/cli/src/highlight.rs b/cli/src/highlight.rs
index 41e07850643..4e5970c7264 100644
--- a/cli/src/highlight.rs
+++ b/cli/src/highlight.rs
@@ -384,6 +384,7 @@ pub fn html(
source: &[u8],
config: &HighlightConfiguration,
quiet: bool,
+ inline_styles: bool,
print_time: bool,
cancella... | 3 | 3 | 2 | [{"id": "G0", "claim": "Emit CSS classes instead of data-tree-sitter-highlight attributes, splitting compound highlight names on '.' so both parent and child highlights apply.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With --css-classes the generate... | null |
tree-sitter__tree-sitter__3926 | tree-sitter/tree-sitter | 3,926 | defect | 18e4a2405b52ecd3cb9aefdd05d6554e76823473 | a98f1fccdffa162a3e3aed238e77ced8867dee59 | doc(xtask): update doc to use xtask, not scripts | Follow-up of dbe8bbf. Also removed `-l` flag since it's not used anymore.
Closes #3895. | diff --git a/docs/section-6-contributing.md b/docs/section-6-contributing.md
index 4ebedee9164..d8a5e55f7e2 100644
--- a/docs/section-6-contributing.md
+++ b/docs/section-6-contributing.md
@@ -32,7 +32,7 @@ cd tree-sitter
Optionally, build the WASM library. If you skip this step, then the `tree-sitter playground` comm... | 2 | 2 | 1 | [{"id": "G0", "claim": "The rewritten docs tell users to run `cargo xtask generate-fixtures-wasm`, which is not a command; the reviewer thinks `cargo xtask generate-fixtures --wasm` was meant.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rew... | null |
tree-sitter__tree-sitter__3927 | tree-sitter/tree-sitter | 3,927 | defect | 473f0a1a4dfe26c22d8089b6e756de274210e189 | 4a2e6e2848cf3c6299be5caaa3e97d8dfb9a433c | feat(cli): check highlighting for consecutive carat `^` columns | Hey there! I'm super new to Rust, but I've tried to preserve the code style in the remaining file and not to refactor any existing loops or logic. Just slightly adjusted it to make tree-sitter's highlighting tests actually be Sublime-like.
From [Tree-sitter docs on Unit testing of syntax highlighting](https://tree-s... | diff --git a/cli/src/query_testing.rs b/cli/src/query_testing.rs
index 81ea18fb77..775ad559ab 100644
--- a/cli/src/query_testing.rs
+++ b/cli/src/query_testing.rs
@@ -62,6 +62,7 @@ pub struct CaptureInfo {
#[derive(Debug, PartialEq, Eq)]
pub struct Assertion {
pub position: Utf8Point,
+ pub length: usize,
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Refactor so the `Assertion` type stores a `length` field covering consecutive carats, instead of creating a new `Assertion` object for each individual carat, changing the code where assertions are used to account for it.", "category": "performance", "verdict": "supported", "priority": "P2", "sco... | null |
tree-sitter__tree-sitter__3938 | tree-sitter/tree-sitter | 3,938 | defect | 015547c526f8e3ae9ed95c19dc7a13e2df2fd30d | ec586c0b7953b362c09f95059897caae2ac3e4d6 | feat: get supertype info | Introduces a new function that takes in a supertype symbol and returns all associated subtypes. Can be used by query.c to give better errors for invalid subtypes, as well as downstream applications like the query LSP to give better diagnostics.
Fixes #2081 | diff --git a/cli/generate/src/build_tables/build_parse_table.rs b/cli/generate/src/build_tables/build_parse_table.rs
index 353f666768b..ce0e502037d 100644
--- a/cli/generate/src/build_tables/build_parse_table.rs
+++ b/cli/generate/src/build_tables/build_parse_table.rs
@@ -17,7 +17,7 @@ use crate::{
grammars::{
... | 13 | 11 | 5 | [{"id": "G0", "claim": "The Rust bindings look like they read the TSLanguage struct with shifted offsets (field_count returns max_alias_sequence_length, supertype_count returns field_count, etc.) and the author asks for help finding where it comes from.", "category": "correctness", "verdict": "opposed", "priority": "P1... | null |
tree-sitter__tree-sitter__4122 | tree-sitter/tree-sitter | 4,122 | defect | 29e6717c3150c6c8f2855c5ab679569c5654c8b8 | ff3e43ab30acc47f94300ac641fea98936f01af1 | feat: allow parser balancing to be cancellable | - Closes #4019
### Problem
Tree-sitter's timeout functionality does not allow tree-balancing to be canceled. This is problematic, because if a tree is quite large, balancing can take dozens to hundreds of milliseconds, especially on older hardware, which causes noticeable delays in editors. Ideally, balancing sho... | diff --git a/cli/src/tests/parser_test.rs b/cli/src/tests/parser_test.rs
index e5dc15d91dd..6aff4c420a1 100644
--- a/cli/src/tests/parser_test.rs
+++ b/cli/src/tests/parser_test.rs
@@ -962,6 +962,73 @@ fn test_parsing_with_timeout_and_no_completion() {
});
}
+#[test]
+fn test_parsing_with_timeout_during_balanci... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `array_clear`/initial-push setup inside `ts_parser__balance_subtree` undoes work done by other iterations of the function on each call, so it would make sense to take it out of the function and run it once before the `balance` label rather than inside the resumable function.", "category": "d... | null |
tree-sitter__tree-sitter__4176 | tree-sitter/tree-sitter | 4,176 | defect | 16aaed78ae6582ea55a94419828922c7b0960e10 | 74c4bfd5dedc6714c4c26bd180b2456551b888d6 | fix(lib): prevent finished_tree assertion failure | **Problem:** When resetting the parser during subtree balancing, an error is thrown:
```
parser.c:2198: ts_parser_parse: Assertion `self->finished_tree.ptr' failed.
```
**Solution:** Reset `canceled_balancing` to false in `ts_parser_reset()`. | diff --git a/cli/src/tests/parser_test.rs b/cli/src/tests/parser_test.rs
index 0fde31a510..f048cb4dae 100644
--- a/cli/src/tests/parser_test.rs
+++ b/cli/src/tests/parser_test.rs
@@ -1004,6 +1004,31 @@ fn test_parsing_with_timeout_during_balancing() {
assert!(tree.is_none());
assert!(in_balancing);
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new test should be moved into the existing test above rather than duplicating it, calling reset and adding only the additional check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added comment should read \"This... | null |
tree-sitter__tree-sitter__4532 | tree-sitter/tree-sitter | 4,532 | defect | eaa10b279f208b47f65e77833d65763f072f3030 | ccd5dc3e1853fac0be1177ad1ca5ec37570a1e75 | fix(rust): EqCapture accepted cases where number of captured nodes differed by one | I noticed a bug with the implementation of the `eq` predicate in Rust, when using alternations.
The bug becomes apparent when comparing values of captures in different alternations not always using the same capture name.
The fix is very straight forward, I just had to iterate the left and right captured nodes more in... | diff --git a/crates/cli/src/tests/query_test.rs b/crates/cli/src/tests/query_test.rs
index 5486a5372d..f76a2b939a 100644
--- a/crates/cli/src/tests/query_test.rs
+++ b/crates/cli/src/tests/query_test.rs
@@ -2990,6 +2990,61 @@ fn test_query_matches_with_deeply_nested_patterns_with_fields() {
});
}
+#[test]
+fn t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The EqCapture matching should be rewritten to stay closer to the original iteration logic for readability, per the suggested peekable-iterator diff (a while-peek loop over both capture node lists plus a final check that both are exhausted).", "category": "maintainability", "verdict": "supported"... | null |
tree-sitter__tree-sitter__4619 | tree-sitter/tree-sitter | 4,619 | defect | 854f527f6ef9fdf563efb13d016e52df3ee6c45c | 670913739628c7f13c7450c6fadb22a5472c6708 | fix(bindings): correct indices for `Node::utf16_text` | `Node::utf16_text` uses *byte* offsets to index into a slice of `u16`s. These indices need to be adjusted.
I added handling in case these adjusted indices happen to fall on a utf16 [surrogate](https://en.wikipedia.org/wiki/UTF-16#U+D800_to_U+DFFF_(surrogates)). I'm not sure how to construct such a pathological test... | diff --git a/crates/cli/src/tests/text_provider_test.rs b/crates/cli/src/tests/text_provider_test.rs
index ffedc36ba8f..d9ed454efc1 100644
--- a/crates/cli/src/tests/text_provider_test.rs
+++ b/crates/cli/src/tests/text_provider_test.rs
@@ -107,6 +107,19 @@ fn test_text_provider_for_arc_of_bytes_slice() {
check_pa... | 3 | 1 | 1 | [{"id": "G0", "claim": "The `saturating_sub` in the end-byte surrogate check should be removed, otherwise surrogate handling will not work when the end byte is on a pair which is also the last character of the source string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
tree-sitter__tree-sitter__4844 | tree-sitter/tree-sitter | 4,844 | defect | 3c1f02a7f9715029a2ad1778c00e93717192f234 | 0a87fd25f7f10245e4844e0d8e5427ea0d634c14 | wasm: Fix alias map parsing + add test | The current code for parsing wasm grammars doesn't read the alias map correctly, as it fails to offset its internal index to account for the size of the actual `value_count` field itself. This can lead to extraneous data being copied into the language struct, and under the wrong conditions this can result in a segfault... | diff --git a/crates/cli/src/tests/wasm_language_test.rs b/crates/cli/src/tests/wasm_language_test.rs
index 1a84f9a5c9..cda61f3e92 100644
--- a/crates/cli/src/tests/wasm_language_test.rs
+++ b/crates/cli/src/tests/wasm_language_test.rs
@@ -92,6 +92,20 @@ fn test_load_wasm_javascript_language() {
});
}
+#[test]
+... | 2 | 2 | 0 | [{"id": "G0", "claim": "The change of the alias map symbol type from TSSymbol to uint16_t (and the matching sizeof changes) in the wasm alias-map parsing loop is unnecessary and should be reverted.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "... | null |
tree-sitter__tree-sitter__4876 | tree-sitter/tree-sitter | 4,876 | defect | e3294c3faf343bb83b3af09ad9d17eddda96a0cd | 0a19091710bae68df2c01ee7a4d37e3728063fe2 | Clean up tests | This PR has no user-facing changes, it's just some minor cleanup
- Clean up hacky `hang` test
- Prefer assert over panic in tests
- Avoid panicking in user-code where possible
- Update flake | diff --git a/crates/cli/src/tests.rs b/crates/cli/src/tests.rs
index c64744f874..9fc1c71bb8 100644
--- a/crates/cli/src/tests.rs
+++ b/crates/cli/src/tests.rs
@@ -1,11 +1,10 @@
-mod async_context_test;
+mod async_boundary_test;
mod corpus_test;
mod detect_language;
mod helpers;
mod highlight_test;
mod language_tes... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new panic message when building the query fails should include the query error, not just the pattern and seed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The large document in test_tags_cancellation would be more ... | null |
tree-sitter__tree-sitter__5100 | tree-sitter/tree-sitter | 5,100 | defect | df8b62fc509d45e2ebbfa1574a9818beca19eec5 | 71583e327b1592546888c27c942a0c983539c1c3 | Add "containing range" APIs to QueryCursor rebased | This PR is just a rebased copy of the branch from #4919.
Notable changes:
- Drop [847737b](https://github.com/tree-sitter/tree-sitter/pull/4919/commits/847737b6162183f3aa75f8c490d57b220a9e010d)
- The context added to error messages in this commit was addressed in #4925
- Add f0f9284a725d76fba27f333f8c89cc691d2b... | diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs
index e97c9cce1a..20255d6255 100644
--- a/crates/cli/src/main.rs
+++ b/crates/cli/src/main.rs
@@ -448,6 +448,14 @@ struct Query {
/// The range of rows in which the query will be executed
#[arg(long)]
pub row_range: Option<String>,
+ /// The... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comments of the new ts_query_cursor_set_containing_byte_range function — and, similarly below, of the point-range variant — should be expanded to the fuller wording that explains that, in contrast to ts_query_cursor_set_byte_range, the cursor only returns matches where all nodes are full... | null |
tree-sitter__tree-sitter__5223 | tree-sitter/tree-sitter | 5,223 | defect | 630fa52717f2c575a53e21b1d324ade8e528b0bd | 69df005c85facae5a3bc20a1b355b2734420f8c1 | fix: Clarify lifetime parameters; Rust 2018 idioms | My first reason to make a PR was just to fix naming of the lifetime parameters on `TreeCursor`, as the previous name `'cursor` didn't indicate the actual reference target (the `Tree`), and was not consistent with most usages of the type.
Then I noticed that the codebase chose to hide the elided lifetime parameters i... | diff --git a/Cargo.toml b/Cargo.toml
index 84dccaac7b..7e532f8d8a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -79,7 +79,7 @@ unused_self = "allow"
used_underscore_items = "allow"
[workspace.lints.rust]
-mismatched_lifetime_syntaxes = "allow"
+rust_2018_idioms = "deny"
[profile.optimize]
inherits = "release"
dif... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request's changes made to satisfy the anonymous-lifetime lint (the `<'_>` annotations and explicit lifetime parameters such as the multi-line `transmute::<_QueryMatch<'query, 'tree>, QueryMatch<'query, 'tree>>`) add needless verbosity and should be removed, restoring e.g. `std::mem::tra... | null |
tree-sitter__tree-sitter__5529 | tree-sitter/tree-sitter | 5,529 | defect | aff9b9d92e628bdb159189b7066baa00e8f7535e | ebcd188de9dad963ec84788fd89cde98c47605a9 | fix(loader): allow filenames with dots | Currently all dots/periods in a filename are considered an extension. This way you can match filenames like `foo.blade.php` with `blade.php` and not only `php`.
Though there are cases where filenames have dots and you still want to match on a suffix of the extension (or simply the last one).
This commit introduce... | diff --git a/crates/cli/src/tests/detect_language.rs b/crates/cli/src/tests/detect_language.rs
index c543c31e57..b84a7a03c9 100644
--- a/crates/cli/src/tests/detect_language.rs
+++ b/crates/cli/src/tests/detect_language.rs
@@ -127,6 +127,52 @@ fn detect_language_by_double_barrel_file_extension() {
);
}
+#[test]... | 3 | 3 | 2 | [{"id": "G0", "claim": "The tests fail on Windows because the test grammar name \"blade\" in the new test matches another test's, so the blade language's dll stays loaded and Windows does not allow overwriting it; the test language should be renamed to something different, e.g. \"blade_dots\".", "category": "testing", ... | null |
tree-sitter__tree-sitter__775 | tree-sitter/tree-sitter | 775 | defect | a7125feb492ae0f78378d078868bfd66d5b31dc9 | 938eae8536be230c53b16fca112f0a271d788111 | Define infrastructure for unit testing tags queries. | This patch pulls out the code to extract assertion directives from comments (a la `# foo <-` and `# ^ bar`) from the highlighting test to a shared `query_testing` module, and adds a `--test` flag to the `tree-sitter query` command that parses this assertion information and runs it.
As always, nitpicks re. Rust best ... | diff --git a/cli/src/lib.rs b/cli/src/lib.rs
index 97c288a17c..e00323b78b 100644
--- a/cli/src/lib.rs
+++ b/cli/src/lib.rs
@@ -6,6 +6,7 @@ pub mod loader;
pub mod logger;
pub mod parse;
pub mod query;
+pub mod query_testing;
pub mod tags;
pub mod test;
pub mod test_highlight;
diff --git a/cli/src/main.rs b/cli/sr... | 5 | 3 | 1 | [{"id": "G0", "claim": "The test fixture test/fixtures/queries/python.py that the pull request adds may not be used anywhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Assertion.expected field should be renamed to capture_name or expect... | null |
treeverse__dvc__10044 | treeverse/dvc | 10,044 | defect | 825c823a37fe91c03b1bfcd21037ea0085d6348d | 6e96bd37acd5f9a10f7fe821f182b78e0eca97a3 | parsing: Add `key` to matrix stages | This commit adds the `key` property to the templaing context of `matrix` stages. Similarly to `foreach` stages, the `key` is available using `${key}` substitution.
Fixes #10043
* [x] ❗ I have followed the [Contributing to DVC](https://dvc.org/doc/user-guide/contributing/core) checklist.
* [x] 📖 If this PR req... | diff --git a/dvc/parsing/__init__.py b/dvc/parsing/__init__.py
index 13d7c53c55..c62ce2c00a 100644
--- a/dvc/parsing/__init__.py
+++ b/dvc/parsing/__init__.py
@@ -499,8 +499,26 @@ def _resolve_matrix_data(self) -> Dict[str, List]:
iterable = self.context.resolve(self.matrix_data, unwrap=False)
exc... | 3 | 3 | 0 | [{"id": "G0", "claim": "Don't hardcode the \"key\" and \"item\" strings here; warn about the context keys by using the pair's own key and value.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Unroll the dict-comprehension in test_matrix_key_pres... | null |
treeverse__dvc__10316 | treeverse/dvc | 10,316 | defect | 89537a77b5b5947ebfec68231316c9aea76159af | 3309e1562386b20bd87d3af4012679a11ad25142 | dvc.api for dataset | On top of #10287. Closes #10313.
### Usage
```python
from dvc.api import get_dataset
get_dataset("<dataset_name>")
```
The `get_dataset()` API returns a dict with values depending on the type of dataset.
## Examples:
### dvcx
```python
from dvc.api import get_dataset
from dvcx.query import DatasetQue... | diff --git a/dvc/api/dataset.py b/dvc/api/dataset.py
new file mode 100644
index 00000000000..75b28bb2fbc
--- /dev/null
+++ b/dvc/api/dataset.py
@@ -0,0 +1,61 @@
+from typing import Literal, TypedDict, Union
+
+
+class DVCXDataset(TypedDict):
+ type: Literal["dvcx"]
+ name: str
+ version: int
+
+
+class DVCData... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `sha` field of `DVCDataset` in dvc/api/dataset.py should be named `rev` to match the rest of the API.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new dataset lookup should be exposed as a top-level `dvc.api` meth... | null |
treeverse__dvc__10386 | treeverse/dvc | 10,386 | defect | 72a353d8b9bb7a41c13b66b1200ed1c1bf300c23 | 8775bbe966eda55072040051e11a7e50f48a07da | artifacts: add support for monorepo | Closes #10382.
This PR:
1) adds support for `artifacts_show()` for monorepos.
2) adds support for `dvc artifacts get` for monorepos.
3) Always returns the path from `artifacts_show()` as a git root relative path, instead of dvc repo root relative path (**breaking**)
4) Expects the `name` passed to `artifacts_s... | diff --git a/dvc/api/artifacts.py b/dvc/api/artifacts.py
index 687fc86a834..3bb2974aab0 100644
--- a/dvc/api/artifacts.py
+++ b/dvc/api/artifacts.py
@@ -36,12 +36,16 @@ def artifacts_show(
if version and stage:
raise ValueError("Artifact version and stage are mutually exclusive.")
+ from dvc.repo.art... | 7 | 1 | 1 | [{"id": "G0", "claim": "The PR author asks whether using `Artifacts` always requires a git repo, and otherwise suggests falling back to the dvc root.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change makes `get_path()` return a git-root relative ... | null |
treeverse__dvc__10446 | treeverse/dvc | 10,446 | defect | 8f8d49d02322944eb5cb17f9901642f487b4ccd3 | 897af4a66b98faea11d6d87acf8b366408f96ecf | fix(pull): normalize dependency path | Fixes #10426
* [x] ❗ I have followed the [Contributing to DVC](https://dvc.org/doc/user-guide/contributing/core) checklist.
* [ ] 📖 If this PR requires [documentation](https://dvc.org/doc) updates, I have created a separate PR (or issue, at least) in [dvc.org](https://github.com/iterative/dvc.org) and linked it ... | diff --git a/dvc/dependency/repo.py b/dvc/dependency/repo.py
index eaf776a2e0..c5a1e55c66 100644
--- a/dvc/dependency/repo.py
+++ b/dvc/dependency/repo.py
@@ -35,7 +35,7 @@ def __init__(self, def_repo: dict[str, Any], stage: "Stage", *args, **kwargs):
super().__init__(stage, *args, **kwargs)
self.fs... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test should only be parametrized with the first two scenarios (\"dir\", \"dir/\") instead of testing every scenario that normpath normalizes to, which would also simplify the test assertions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treeverse__dvc__10711 | treeverse/dvc | 10,711 | defect | 31270c14e30901ae5b178f72c67a83efe070768c | 825073bcf6255061267756733b60e1a94bc4178b | remote: show default when run "dvc remote list" | Fixes #10708
* [x] ❗ I have followed the [Contributing to DVC](https://dvc.org/doc/user-guide/contributing/core) checklist.
* [ ] 📖 If this PR requires [documentation](https://dvc.org/doc) updates, I have created a separate PR (or issue, at least) in [dvc.org](https://github.com/iterative/dvc.org) and linked it ... | diff --git a/dvc/commands/remote.py b/dvc/commands/remote.py
index 4b6921dd75..49a40094cb 100644
--- a/dvc/commands/remote.py
+++ b/dvc/commands/remote.py
@@ -108,9 +108,29 @@ def run(self):
class CmdRemoteList(CmdRemote):
+ @staticmethod
+ def _default_remote(conf):
+ try:
+ return conf["c... | 6 | 6 | 1 | [{"id": "G0", "claim": "The new test_list_shows_default should assert the output more strictly (suggested asserting the exact expected multi-line output).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The other (non-default) remotes should be indented ... | null |
treeverse__dvc__10719 | treeverse/dvc | 10,719 | defect | 6cc349edb4ecdee43c6020cf2c76d904593e3c7d | d03f25e51eabe92f55049ea96ad4fce00d3bae4c | Forward args to _get_remote_config() and honour core/no_scm if present | This is a proposed fix for #10608, the code here makes steps 9 and 10 described in the issue work.
**Summary:**
This change allows a user to access the dvc information in an environment that is disconnected from the original Git backend (e.g. in a deployed container, see #10608), by using something like:
```pyth... | diff --git a/dvc/repo/open_repo.py b/dvc/repo/open_repo.py
index 43efce100a5..fcc03055054 100644
--- a/dvc/repo/open_repo.py
+++ b/dvc/repo/open_repo.py
@@ -50,7 +50,7 @@ def open_repo(url, *args, **kwargs):
if os.path.exists(url):
url = os.path.abspath(url)
try:
- config = _get_remote... | 4 | 2 | 1 | [{"id": "G0", "claim": "Pass the caller's config straight through to `Repo()` (`Repo(url, config=kwargs.get(\"config\"))`) instead of special-casing and handling `core.no_scm` in `_get_remote_config()`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
treeverse__dvc__10749 | treeverse/dvc | 10,749 | defect | b7e13dbd07a41b07ee1dc6d25c90ce40c0e651e6 | b5a6a5839206c6120e8c27c90bab44d1217945f0 | feat: ignore files not in remote when push is false | Fixes #10317
Enables opt-in to remove `push: false` stage outputs from `not_in_remote` data status results.
Notable changes:
- Add `outs_no_push` to `dvc.stage.utils.fill_stage_outputs` keys, to facilitate making outputs with `push: false`.
- In `status`, when flag enabled, filter through files reported as `no... | diff --git a/dvc/commands/data.py b/dvc/commands/data.py
index a9ea6e038e4..d86aa6bb085 100644
--- a/dvc/commands/data.py
+++ b/dvc/commands/data.py
@@ -112,6 +112,7 @@ def run(self) -> int:
untracked_files=self.args.untracked_files,
not_in_remote=self.args.not_in_remote,
... | 8 | 7 | 3 | [{"id": "G0", "claim": "The new --respect-no-push flag should be enabled by default, since `dvc status` already respects `push: false`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The not_in_remote paths should not be filtered out of the uncommitted (... | null |
treeverse__dvc__10778 | treeverse/dvc | 10,778 | defect | 346b1c064e4e9f0a63c08fda669ac07fefb29fd6 | 1d169cfce7968762feb420e5a04e1f68d4d06c2a | (fix) `DVC_SITE_CACHE_DIR` environment variable should override `core.site_cache_dir` | Fixes #10777
Currently: `Repo.site_cache_dir()` in `dvc/repo/__init__.py` selects first the configuration read in the config file, and if it does not exist it relies on `dirs.site_cache_dir()` to pick a value.
The documentation states that `DVC_DITE_CACHE_DIR` should override this configuration, therefore the ord... | diff --git a/dvc/dirs.py b/dvc/dirs.py
index 881a30840a..b87666d29e 100644
--- a/dvc/dirs.py
+++ b/dvc/dirs.py
@@ -20,13 +20,16 @@ def global_config_dir():
)
-def site_cache_dir():
+def site_cache_dir(config_site_cache_dir: str | None = None):
from platformdirs import PlatformDirs
from platformdirs.u... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new `site_cache_dir` signature annotates the parameter with PEP 604 `str | None`, which is not compatible with Python 3.9 that the project still supports, and should use `Optional[str]` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
treeverse__dvc__10784 | treeverse/dvc | 10,784 | defect | c7c7ba69fbe093b0889228119964f357653e6973 | 897aa23afaef1e903ed21caee7fb0e7c621b302f | [cli,lock] Allow wait_for_lock | If we are running multiple instances of DVC in parallel in the same repo, commands can crash because they can't acquire a lock.
This is reasonable in most use-cases, but I've been using DVC in my bazel pipelines, which runs jobs in parallel. Therefore, I've added a `--wait-for-lock` flag that allows a process to be... | diff --git a/dvc/cli/command.py b/dvc/cli/command.py
index 928e96ca25..5d0bd5da00 100644
--- a/dvc/cli/command.py
+++ b/dvc/cli/command.py
@@ -18,7 +18,10 @@ def __init__(self, args: Any):
os.chdir(args.cd)
- self.repo: Repo = Repo(uninitialized=self.UNINITIALIZED)
+ self.repo: Repo = Repo(
+... | 4 | 3 | 1 | [{"id": "G0", "claim": "The Repo keyword should be kept private for now (`_wait_for_lock`) and `args.wait_for_lock` used directly instead of `getattr(args, \"wait_for_lock\", False)`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two branches of Loc... | null |
treeverse__dvc__10798 | treeverse/dvc | 10,798 | defect | da55c0da1fe63c39025184720a96ee3a9510cde7 | d4e4ae9e3cae1221b245c72da5251c29a4381c2d | exp: add --hide-workspace flag to exp show | Fixes #10741 | diff --git a/dvc/commands/experiments/show.py b/dvc/commands/experiments/show.py
index 8f33708356b..6a23a41eab7 100644
--- a/dvc/commands/experiments/show.py
+++ b/dvc/commands/experiments/show.py
@@ -150,6 +150,7 @@ def run(self):
all_commits=self.args.all_commits,
hide_queued=self.ar... | 4 | 4 | 2 | [{"id": "G0", "claim": "The blank line added at the end of add_parser in dvc/commands/experiments/show.py is an unnecessary change and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The collect() code needlessly reconstructs a... | null |
treeverse__dvc__10826 | treeverse/dvc | 10,826 | defect | 08f3197cdd903223969d8f806b8527bb1eb40497 | 8ea8e9dbc7b324fa1bd7f45d90931d2629a4271d | hashing: Add usedforsecurity=False on hashlib calls | * [x] ❗ I have followed the [Contributing to DVC](https://dvc.org/doc/user-guide/contributing/core) checklist.
* [x] 📖 If this PR requires [documentation](https://dvc.org/doc) updates, I have created a separate PR (or issue, at least) in [dvc.org](https://github.com/iterative/dvc.org) and linked it here.
Communi... | diff --git a/dvc/lock.py b/dvc/lock.py
index 3f49a8f4bc..df03188fbf 100644
--- a/dvc/lock.py
+++ b/dvc/lock.py
@@ -212,7 +212,7 @@ def _set_claimfile(self):
if self._tmp_dir is not None:
# Under Windows file path length is limited so we hash it
- hasher = hashlib.md5(self._claimfile.e... | 3 | 1 | 0 | [{"id": "G0", "claim": "usedforsecurity=False should not be applied when hashing actual data or objects (e.g. via bytes_hash), as that could become a compliance issue.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The usedforsecurity=False flag is unneces... | null |
treeverse__dvc__10866 | treeverse/dvc | 10,866 | defect | b39a888948ad770cbd77e74c50aa74b901375231 | e4897b62ec01e219d098aa54038674a6b9f1c0cd | exp: add support for --no-hydra flag | Introduces --no-hydra in the CLI of dvc exp run, which disables automatically inserting Hydra config into params.yaml.
Fixes #10863
* [x] ❗ I have followed the [Contributing to DVC](https://dvc.org/doc/user-guide/contributing/core) checklist.
* [ ] 📖 If this PR requires [documentation](https://dvc.org/doc) up... | diff --git a/dvc/commands/experiments/run.py b/dvc/commands/experiments/run.py
index dc46a82c25..901ce15cf1 100644
--- a/dvc/commands/experiments/run.py
+++ b/dvc/commands/experiments/run.py
@@ -20,6 +20,7 @@ def run(self):
tmp_dir=self.args.tmp_dir,
copy_paths=self.args.copy_paths,
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Passing `--no-hydra` may still leave sweeps/queued experiments hydrated by Hydra, since `_update_params` in dvc/repo/experiments/queue/base.py may also need the new `no_hydra` flag.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
treeverse__dvc__10945 | treeverse/dvc | 10,945 | defect | 7ed8d896dfda87f0d727d071be710571dc86fa9c | ec159f3698655049c08356ebc0468398a8af64a9 | Add option to collapse foreach/matrix stages into a single stage | * [X] ❗ I have followed the [Contributing to DVC](https://dvc.org/doc/user-guide/contributing/core) checklist.
* [X] 📖 If this PR requires [documentation](https://dvc.org/doc) updates, I have created a separate PR (or issue, at least) in [dvc.org](https://github.com/treeverse/dvc.org) and linked it here.
This wi... | diff --git a/dvc/commands/dag.py b/dvc/commands/dag.py
index 221e83c638..e063c07d9e 100644
--- a/dvc/commands/dag.py
+++ b/dvc/commands/dag.py
@@ -127,10 +127,54 @@ def _filter(graph, targets, full):
return new_graph
-def _build(repo, target=None, full=False, outs=False):
+def _collapse_get_nodes(graph):
+ ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Rename the CLI option and the related kwargs/helpers away from the unused 'substages' terminology to the more descriptive --collapse-foreach-matrix naming, keeping the CLI option and the internal names consistent.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
treeverse__dvc__9365 | treeverse/dvc | 9,365 | defect | e1bf418e722bc03acdbafea71f8332946099630e | f8f9a43e1689b34edc4685bdc1015620838b1b09 | Fix: Prettifying unexpected error on FileExists for get/get-url/imp-url/add and introducing --force | * [x] ❗ I have followed the [Contributing to DVC](https://dvc.org/doc/user-guide/contributing/core) checklist.
* [x] 📖 If this PR requires [documentation](https://dvc.org/doc) updates, I have created a separate PR (or issue, at least) in [dvc.org](https://github.com/iterative/dvc.org) and linked it here.
Thank y... | diff --git a/dvc/commands/get.py b/dvc/commands/get.py
index c8cc8179506..9ede8bfd9a8 100644
--- a/dvc/commands/get.py
+++ b/dvc/commands/get.py
@@ -36,6 +36,7 @@ def _get_file_from_repo(self):
out=self.args.out,
rev=self.args.rev,
jobs=self.args.jobs,
+ ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The internal argument names this PR adds to resolve_output and its call sites should be renamed away from `override` — reviewers suggested naming them `force` (M004), or at least `overwrite` instead of `override` (M005).", "category": "maintainability", "verdict": "supported", "priority": "P2", ... | null |
treeverse__dvc__9846 | treeverse/dvc | 9,846 | defect | 27c548575ca26581154163441976c04be00a9662 | 8a17b53da1b736db68f63942a5775b14f9ebb307 | exp: make run/save less noisy | Closes #9239
Not sure if we need additional tests for this
| diff --git a/dvc/commands/experiments/save.py b/dvc/commands/experiments/save.py
index 227aa0f90a..d81f1579b5 100644
--- a/dvc/commands/experiments/save.py
+++ b/dvc/commands/experiments/save.py
@@ -27,10 +27,6 @@ def run(self):
else:
name = self.repo.experiments.get_exact_name([ref])[ref]
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The caplog parameter in test_experiments_save was added by accident and should be reverted to the signature without it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "QUIET should also be removed from TempLocalExecutor, s... | null |
treeverse__dvc__9952 | treeverse/dvc | 9,952 | defect | bf2af86397c3e1ceb8b4f246e48669a3abb6065d | dd1028598b62a94425a9d90bc906eceeeee76c9c | gc: add dry option and log num removed objs | ~Requires https://github.com/iterative/dvc-data/pull/441 (and need to add a version bump here).~
Closes #9330
Adds `gc --dry` option and reports the number of files removed for each cache.
Before this PR (a file is removed here but it look like nothing happened):
```console
$ dvc gc -w
WARNING: This will... | diff --git a/dvc/commands/gc.py b/dvc/commands/gc.py
index 46250c2e2e..1350b9362c 100644
--- a/dvc/commands/gc.py
+++ b/dvc/commands/gc.py
@@ -81,6 +81,7 @@ def run(self): # noqa: C901, PLR0912
rev=self.args.rev,
num=self.args.num,
not_in_remote=self.args.not_in_remote,
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the second `if not num_removed:` statement with an `else:` clause on the first `if` in dvc/repo/gc.py.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
treeverse__lakeFS__10002 | treeverse/lakeFS | 10,002 | defect | 618a02e56440496c5159343b3da65c822f6a8221 | d123ccfffa41f3509ad5311a70aff6b085f45f69 | Add Lua Hooks Tests | Closes #9976
## Change Description
Restructured the existing hooks infra which previously covered only webhook hooks so I can add Lua hook tests.
In this PR the Lua hook tests run with sync commit and merge.
### Testing Details
Ran all the tests I changed in Esti locally.
<!--start_gitstream_placeholder... | diff --git a/esti/hooks.go b/esti/hooks.go
index f1471954139..dd435831a64 100644
--- a/esti/hooks.go
+++ b/esti/hooks.go
@@ -18,6 +18,18 @@ import (
"github.com/treeverse/lakefs/pkg/api/apiutil"
)
+var LuaActionTmpl = template.Must(template.New("lua-action").Parse(`name: Test Lua {{.EventType}}
+on:
+ {{.EventTyp... | 5 | 3 | 0 | [{"id": "G0", "claim": "The hooks tests running in parallel against the single shared S3 bucket hit 503 SlowDown failures in CI, and the author asks whether the jobs should stop sharing one S3 bucket or avoid running everything in parallel.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "in... | null |
treeverse__lakeFS__10033 | treeverse/lakeFS | 10,033 | defect | 7bd8f56b584aaa9bc66ae6ff4cd0ac4ec94f0ee8 | e00483f3d0267e81f4e7ec6b1c0e473b76f64b2b | Add metrics and audit logging for async operations | ## Change Description
Adds Prometheus metrics and structured logging for async task lifecycle (dump_refs, restore_refs, gc_prepare_commits). Async operations return immediately so existing middleware only captures initial request/response metrics - this change tracks the complete async lifecycle.
### Implementati... | diff --git a/cmd/lakefs/cmd/run.go b/cmd/lakefs/cmd/run.go
index 0b2d1e25b57..dfbb3c76f84 100644
--- a/cmd/lakefs/cmd/run.go
+++ b/cmd/lakefs/cmd/run.go
@@ -169,6 +169,7 @@ var runCmd = &cobra.Command{
PathProvider: upload.DefaultPathProvider,
ConflictResolvers: catalogfactory.BuildConflictReso... | 7 | 7 | 2 | [{"id": "G0", "claim": "The BuildTaskObserver doc comment should describe a no-op observer for every Task created by the catalog rather than only async-operation lifecycle events, and should not mention Enterprise.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
treeverse__lakeFS__10069 | treeverse/lakeFS | 10,069 | defect | 2f269537ba6aeedc4a891de9eb8a161b57302ab3 | 844fb417ca1cace508c27425b2fe1fe6733ed3c0 | Add list repositories filter | Please see parent issue for full context!
Closes #10067
## Change Description ... | diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index 51d8407035c..2547c06f8c3 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -2296,18 +2296,45 @@ func (c *Controller) HealthCheck(w http.ResponseWriter, r *http.Request) {
}
func (c *Controller) ListRepositories(w http.ResponseWriter, r... | 4 | 2 | 1 | [{"id": "G0", "claim": "The reviewer asks why ErrNotImplemented is special-cased, questioning whether that path falls back to allowing all repositories without the c.authorize() check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer sugg... | null |
treeverse__lakeFS__10071 | treeverse/lakeFS | 10,071 | defect | 2f269537ba6aeedc4a891de9eb8a161b57302ab3 | e8cfabf6c9bb2ba92b816383aef76e50543574e5 | Add list repositories filter for gateway | Closes #10068
Add code to support policy based list repositories filtering in S3 Gateway
Relies on existing tests for backwards compatibility
Additional tests: https://github.com/treeverse/lakeFS-Enterprise/issues/1602 | diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index 51d8407035c..5d81435b9f1 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -2307,7 +2307,35 @@ func (c *Controller) ListRepositories(w http.ResponseWriter, r *http.Request, pa
ctx := r.Context()
c.LogAction(ctx, "list_repos", r, "", ""... | 2 | 1 | 0 | [{"id": "G0", "claim": "When ListEffectivePolicies returns ErrNotImplemented the operation falls back to allowing, listing all repositories with no permission filtering, and the reviewer asks whether that is so.", "category": "security", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
treeverse__lakeFS__10095 | treeverse/lakeFS | 10,095 | defect | 207f6860780bdb9653e40b1f53c8fc2b73fcd528 | 43f6ce44a9eea6b72763a6803ea4973529be25e6 | fix(lakectl): report per-object errors in recursive rm and batch deletions correctly | ## Summary
`POST /api/v1/repositories/{repo}/branches/{branch}/objects/delete` can return 200 response with `errors` in the json response for individual objects.
https://github.com/treeverse/lakeFS/blob/b988401f9da3185e8b407b18e8c010de51ff28da/api/swagger.yml#L901-L909
Since the response was 200, the error mes... | diff --git a/cmd/lakectl/cmd/fs_rm.go b/cmd/lakectl/cmd/fs_rm.go
index 86537adc042..de30046cbd6 100644
--- a/cmd/lakectl/cmd/fs_rm.go
+++ b/cmd/lakectl/cmd/fs_rm.go
@@ -13,6 +13,18 @@ import (
"github.com/treeverse/lakefs/pkg/uri"
)
+type ObjectDeleteError struct {
+ apigen.ObjectError
+}
+
+func (e *ObjectDeleteE... | 5 | 2 | 0 | [{"id": "G0", "claim": "It would be more efficient to distribute objects to workers in full 1000-object batches on the producer side instead of letting each of the 50 workers batch on its own (e.g. 2500 objects across 50 workers leads to 50 small API calls instead of 3 full 1000-object batches).", "category": "performa... | null |
treeverse__lakeFS__10116 | treeverse/lakeFS | 10,116 | defect | 5fdf72032dbe26f40aeafe29e2b27c06c151a420 | 67528be0b887e7ec561777f42df80e25938db3d0 | distributed: serialize ownership attempts per key in MostlyCorrectOwner | ## Summary
Serialize in-process ownership attempts per key in `MostlyCorrectOwner` so only one goroutine per branch polls KV at a time, reducing contention under concurrent branch writes.
## Key changes
- **`InProcessKeyedLock`** — new FIFO keyed lock in `pkg/distributed/` that provides context-aware, per-key ... | diff --git a/pkg/distributed/in_process_keyed_lock.go b/pkg/distributed/in_process_keyed_lock.go
new file mode 100644
index 00000000000..622cbfa0fac
--- /dev/null
+++ b/pkg/distributed/in_process_keyed_lock.go
@@ -0,0 +1,82 @@
+package distributed
+
+import (
+ "context"
+ "sync"
+)
+
+// InProcessKeyedLock serializes ... | 3 | 3 | 1 | [{"id": "G0", "claim": "The Acquire doc comment should use active tense, rewording the last sentence to \"If successful it returns a release function is idempotent and must be called after successful Acquire\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1",... | null |
treeverse__lakeFS__10144 | treeverse/lakeFS | 10,144 | defect | 51e749948318c8c9078c84689fd9bee12afe1606 | 702e89e6426091c3f5ddad511013bddf8cce24b1 | Improve lakectl actions valdiate by checking required properties | Fix https://github.com/treeverse/lakeFS/issues/9934
## Summary
- Add early validation of hook properties during action parsing, catching
configuration errors at parse time instead of runtime
- Introduce `requireProperties` helper in `hook.go` that validates required
property groups: each group is an OR (any ... | diff --git a/pkg/actions/action.go b/pkg/actions/action.go
index e6ec84573f8..da3f79b1cb3 100644
--- a/pkg/actions/action.go
+++ b/pkg/actions/action.go
@@ -96,6 +96,11 @@ func (a *Action) Validate() error {
if _, found := hooks[hook.Type]; !found {
return fmt.Errorf("hook[%d] type '%s' unknown: %w", i, hook.ID,... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `hookType` parameter of `requireProperties` is unnecessary since it exists only to add the type to the error message; the caller in `action.go` knows the hook type and can add it there by wrapping the error (e.g. `fmt.Errorf(\"hook[%d] type: '%s': %w\", hook.Type, i, err)`).", "category": "d... | null |
treeverse__lakeFS__10216 | treeverse/lakeFS | 10,216 | defect | 29accdbcda7cb33c20c470d0caf5e37dc668be08 | edd5c15585ad195174008d2b24a62b1cd7371111 | feat(webUI): add additional fields to setup page | ### Description
This PR adds additional fields to the setup page alongside the existing email field.
In WebUI, all of these fields are optional as discussed on https://github.com/treeverse/product/issues/1087.
In API, the new fields are also optional to maintain forward compatibility with the older clients.
Re... | diff --git a/api/swagger.yml b/api/swagger.yml
index 99a0a54680e..ed71f2e02d4 100644
--- a/api/swagger.yml
+++ b/api/swagger.yml
@@ -1070,9 +1070,18 @@ components:
CommPrefsInput:
type: object
properties:
+ firstName:
+ description: the provided first name
+ type: string
+ ... | 13 | 3 | 2 | [{"id": "G0", "claim": "GetCommPrefs returns the stored FirstName/LastName/CompanyName values as-is while UpdateCommPrefs base64-encodes them before writing, so future callers would receive base64 strings; the helper (and the email handling) should decode, or the values be stored consistently, with invalid base64 handl... | null |
treeverse__lakeFS__10228 | treeverse/lakeFS | 10,228 | defect | 1ab6ab4c782b2aa33a812ce541b7aa0e2fea678a | a00bfa44e5a5ee81f114fa111d5eee106f2edbf5 | GC: Fix GCS protobuf shading conflict | Closes #10136 | diff --git a/.github/workflows/esti.yaml b/.github/workflows/esti.yaml
index 9c6034720e0..1aed2ed3df3 100644
--- a/.github/workflows/esti.yaml
+++ b/.github/workflows/esti.yaml
@@ -172,7 +172,7 @@ jobs:
docker_password: ${{ steps.login-ecr.outputs.docker_password_977611293394_dkr_ecr_us_east_1_amazonaws_com }}
... | 4 | 4 | 1 | [{"id": "G0", "claim": "The verification should run in the CI workflow after the client is built rather than rely on a separate manual script, so regressions are caught without duplicating the list of shaded classes between the script and the SBT task.", "category": "maintainability", "verdict": "supported", "priority"... | null |
treeverse__lakeFS__10249 | treeverse/lakeFS | 10,249 | defect | 0bc67db58f05218c4cb93deb26968f429f7c2c50 | 7061f6f39cbaf2a9eba472376bf5519c55ca20d7 | Support StringLike condition operator in policy evaluation | Closes #10248
This change is needed for the [RBAC for Iceberg: Update the implementation of the listTables and listViews](https://github.com/treeverse/lakeFS-Enterprise/pull/1851) Enterprise PR.
| diff --git a/pkg/auth/condition.go b/pkg/auth/condition.go
index be0781a06e1..9726366add0 100644
--- a/pkg/auth/condition.go
+++ b/pkg/auth/condition.go
@@ -5,11 +5,15 @@ import (
"fmt"
"net"
"strings"
+
+ "github.com/treeverse/lakefs/pkg/auth/wildcard"
)
const (
- OperatorNameIpAddress = "IpAddress"
- Ope... | 1 | 1 | 0 | [{"id": "G0", "claim": "The StringLikeOperator struct should get a different name and/or an updated comment stating that it implements both the Like and NotLike operators.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treeverse__lakeFS__10276 | treeverse/lakeFS | 10,276 | defect | 202d4be8f4b87064712addd0e089f6b3a442c28e | 30217ad7f533c10c92bcdb4b1505546abb21ff91 | feat(setup): collect comm prefs during setup and validate email | Closes #10269
## Change Description
### Background
The setup flow currently uses two API calls:
1. `POST /setup_lakefs` migrates the database, creates the initial admin user, and returns one-time credentials.
2. `POST /setup_comm_prefs` saves email and communication preferences.
This becomes risky once ... | diff --git a/api/swagger.yml b/api/swagger.yml
index ed71f2e02d4..4f76969a511 100644
--- a/api/swagger.yml
+++ b/api/swagger.yml
@@ -1064,6 +1064,24 @@ components:
type: string
key:
$ref: "#/components/schemas/AccessKeyCredentials"
+ firstName:
+ description: the provided ... | 13 | 4 | 2 | [{"id": "G0", "claim": "Unconditionally calling UpdateCommPrefs in POST /setup_lakefs clears comm_prefs_set on username-only setup even when comm prefs were already saved via /setup_comm_prefs, so the username-only path should avoid overwriting an already-set comm prefs state; the pkg/testutil/setup.go helper regresses... | null |
treeverse__lakeFS__10297 | treeverse/lakeFS | 10,297 | defect | 24b4cf6acea4dcff2449a01ad8af8f01147a1409 | 2c5a502526083f4b13e5b29ba223a325b827ef97 | print multi resources as array instead of string | Closes https://github.com/treeverse/lakeFS/issues/8898
## Change Description
### Background
Policies' resources are defined as `string` fields in the swagger. Multiresources is supported by filling the `resource` field with an string array
```
"resource": [\"arn:lakefs:fs:::repository/ddd/object/policy/README.... | diff --git a/cmd/lakectl/cmd/auth_policies_create.go b/cmd/lakectl/cmd/auth_policies_create.go
index 6748f87a34b..cb9cb9aaf40 100644
--- a/cmd/lakectl/cmd/auth_policies_create.go
+++ b/cmd/lakectl/cmd/auth_policies_create.go
@@ -50,14 +50,20 @@ var authPoliciesCreate = &cobra.Command{
}
createdPolicy := resp.JS... | 4 | 3 | 1 | [{"id": "G0", "claim": "The create command still writes policy details using the old StatementDoc with []apigen.Statement, so multi-resource policies will still display as an ugly string after lakectl auth policies create; the same fix applied to show should be applied there too.", "category": "correctness", "verdict":... | null |
treeverse__lakeFS__10326 | treeverse/lakeFS | 10,326 | defect | 82c8a6ad1e88c52b768882d6002041ab2aedf552 | 499dc957293eb52b3118be104b4458ffc38c5026 | lakectl: warn when connected to Enterprise server | ## Summary
- Warn when lakectl connects to a non-OSS lakeFS server (e.g. lakeFS Enterprise)
- Uses the existing `GetConfig` endpoint and checks `VersionConfig.VersionContext` instead of calling `GetLicense`
- Check runs once in `PersistentPreRun`, no changes needed to individual command files
- Skipped during shell... | diff --git a/cmd/lakectl/cmd/root.go b/cmd/lakectl/cmd/root.go
index 3eb03eb25c0..052cdf4d0f6 100644
--- a/cmd/lakectl/cmd/root.go
+++ b/cmd/lakectl/cmd/root.go
@@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
+ "io"
"net/http"
"net/url"
"os"
@@ -11,6 +12,7 @@ import (
"path/filepath"
"reflect"
"slic... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Enterprise-server warning message should give actionable feedback, telling the user to use enterprise lakectl or set LAKECTL_SKIP_ENTERPRISE_CHECK=1 to suppress the warning.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treeverse__lakeFS__8531 | treeverse/lakeFS | 8,531 | defect | 0e158167669b6a762d67005ef435ef6bd13d1536 | 25428554dfdf3b29e2492bc527f8e9b6c0b832fd | 8422 list multipart uploads | Closes #8422
Introducing List Multiupart uploads command to the s3 gateway.
example command:
✗ aws s3api --endpoint-url=http://127.0.0.1:8000/ list-multipart-uploads --bucket itamar --profile default
This will return all multipart uploads (upload id and path) that are held by the tracker.
| diff --git a/esti/s3_gateway_test.go b/esti/s3_gateway_test.go
index c1037d16d52..c119529fb87 100644
--- a/esti/s3_gateway_test.go
+++ b/esti/s3_gateway_test.go
@@ -289,6 +289,88 @@ func TestS3IfNoneMatch(t *testing.T) {
}
}
+func TestListMultipartUploads(t *testing.T) {
+ ctx, logger, repo := setupTest(t)
+ defer... | 16 | 14 | 4 | [{"id": "G0", "claim": "Remove the leftover fmt.Println(str) debug print from the test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change of HandleUnsupported to encode ErrAllAccessDisabled instead of ERRLakeFSNotSupported is unrelated d... | null |
treeverse__lakeFS__8557 | treeverse/lakeFS | 8,557 | defect | 9d179c7744c758b4cdb733b97fbbf62e83a7197a | ad9e32cb3b8f3bfbc5f3452700f5b7e27d234b43 | Add --storage-id flag to Repo Create CLI | Closes #8511.
## Change Description
Support creating a repository with storageID in the CLI.
| diff --git a/cmd/lakectl/cmd/repo_create.go b/cmd/lakectl/cmd/repo_create.go
index c8c5c998527..a875754bc0a 100644
--- a/cmd/lakectl/cmd/repo_create.go
+++ b/cmd/lakectl/cmd/repo_create.go
@@ -16,7 +16,7 @@ const (
// repoCreateCmd represents the create repo command
var repoCreateCmd = &cobra.Command{
- Use: ... | 5 | 5 | 4 | [{"id": "G0", "claim": "Do not document the --storage-id flag for now: keep it out of the usage strings and CLI docs and define it once globally as a hidden (MarkHidden) flag so it won't show up in the CLI docs.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
treeverse__lakeFS__8575 | treeverse/lakeFS | 8,575 | defect | aeeaf5f6f5d73caf2f22e5438f9e2f3832e3f84a | 9f37ebd5a466edf9c8b232723c8a694825073ddc | Refactor block adapter walker | Closes #8570
## Change Description
### Background
Remove usage of ingest store factory and catalog walker interface.
Catalog will now use underlying block adapter implementation of walker
| diff --git a/esti/lakectl_test.go b/esti/lakectl_test.go
index 4068e171430..7f8198457b5 100644
--- a/esti/lakectl_test.go
+++ b/esti/lakectl_test.go
@@ -867,6 +867,7 @@ func TestLakectlFsStat(t *testing.T) {
func TestLakectlImport(t *testing.T) {
// TODO(barak): generalize test to work all supported object stores
... | 9 | 4 | 0 | [{"id": "G0", "claim": "Restore the wrapped error message (\"creating object-store walker on path %s: %w\") instead of returning the bare error in importAsync and WriteRange.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unused Config field... | null |
treeverse__lakeFS__8613 | treeverse/lakeFS | 8,613 | defect | 0a30ccaada9f6d8a82e582ec023ca3a6c97c7469 | a1ee81dbbb554412b581544bedec0e4e8cc4906d | Accelerate large files download using concurent chunks for lakectl download recursive | The current `lakectl fs download` supports downloading large files by splitting the files and downloading the content in parallel.
This change add the same support to the recursive option with the support to run multiple downloads (of parallel chunks) in parallel.
Close #8383
| diff --git a/cmd/lakectl/cmd/fs_download.go b/cmd/lakectl/cmd/fs_download.go
index aeaae79cf52..ba0d1697e25 100644
--- a/cmd/lakectl/cmd/fs_download.go
+++ b/cmd/lakectl/cmd/fs_download.go
@@ -6,12 +6,14 @@ import (
"os"
"path/filepath"
"strings"
+ "sync"
+ "time"
"github.com/go-openapi/swag"
+ "github.com/je... | 2 | 1 | 1 | [{"id": "G0", "claim": "The recursive download should still show the download summary output to the user that the removed sync-based code used to print, and that the deleted test assertion covered.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Benc... | null |
treeverse__lakeFS__8616 | treeverse/lakeFS | 8,616 | defect | b3e4d90b2057b705fe78146a43c0c12aeb848eaf | e949143c9b5dfb89c1202df3b99609b6e15f52e7 | Tests for non-empty string storageID tierFS | Closes #8603
## Change Description
- Test that writes with SAME StorageID happened to DIFFERENT places-- this failed and required code fixes!
- Test that writes to non-default StorageIDs work | diff --git a/pkg/block/mem/adapter.go b/pkg/block/mem/adapter.go
index d1a8bbb7118..d742cbb4c37 100644
--- a/pkg/block/mem/adapter.go
+++ b/pkg/block/mem/adapter.go
@@ -75,7 +75,11 @@ func getKey(obj block.ObjectPointer) string {
if obj.IdentifierType == block.IdentifierTypeFull {
return obj.Identifier
}
- retur... | 6 | 5 | 0 | [{"id": "G0", "claim": "Use the existing config constant (config.SingleBlockstoreID) instead of the \"\" empty-string literal for the single-blockstore storage ID in getKey, parseNamespacePath, and the test constant defaultStorageID.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i... | null |
treeverse__lakeFS__8619 | treeverse/lakeFS | 8,619 | defect | 3f4af4fda05551abeeba802cd4f8f3ed487d33f6 | 9b893be4f06614cfedf0f05202c81076171ea424 | Validate storage ID on repository creation | Closes #8618
## Change Description
### Background
This change completes the validation process of the storage ID while creating a repository
### Testing Details
Added controller tests to cover all the scenarios
### Breaking Change?
No
| diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index 2392e94c4c2..7f60605dcf0 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -16,6 +16,7 @@ import (
"path/filepath"
"reflect"
"regexp"
+ "slices"
"strings"
"time"
@@ -2020,6 +2021,12 @@ func (c *Controller) CreateRepository(w ht... | 1 | 1 | 1 | [{"id": "G0", "claim": "GetStorageIDs should return []string{SingleBlockstoreID} instead of []string{\"\"}, and the same constant should be used by GetStorageByID below.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
treeverse__lakeFS__8698 | treeverse/lakeFS | 8,698 | defect | 19316d65aee7832fb8471526b729523ff3d6663d | 78f99e3710960a9effdeaabbef945108d73e74ca | Test non-empty StorageIDs | Closes #8697.
## Change Description
In order to provide better coverage:
1. Changing some of the unit-tests to run with a non-empty StorageID.
2. Replace empty StorageIDs with `config.SingleBlockstoreID`.
| diff --git a/pkg/catalog/catalog_test.go b/pkg/catalog/catalog_test.go
index 3e78f699180..f21230cd9d3 100644
--- a/pkg/catalog/catalog_test.go
+++ b/pkg/catalog/catalog_test.go
@@ -16,6 +16,7 @@ import (
"github.com/treeverse/lakefs/pkg/block"
"github.com/treeverse/lakefs/pkg/catalog"
cUtils "github.com/treeverse... | 3 | 3 | 3 | [{"id": "G0", "claim": "The changed tests should have twice as many cases - each exercised once with \"\" (config.SingleBlockstoreID) and once with a non-empty StorageID such as \"sid1\" - instead of switching some existing cases to non-empty IDs and leaving the coverage split, so the tests are less comprehensive than ... | null |
treeverse__lakeFS__8804 | treeverse/lakeFS | 8,804 | defect | 4891a8566b312fadd0741a67454adc8701c52e90 | 9d911f9570eaccebd20566f547159a0a38b8de71 | Actions: Add pre-post revert hooks | Closes #8615
## Change Description
### Background
Add capability to trigger hooks on pre/post revert operations
Discovered https://github.com/treeverse/lakeFS/issues/8801 as part of this task
### New Feature
Introduced new action triggers `EventTypePreRevert` `EventTypePostRevert`
Which trigger during ... | diff --git a/docs/howto/hooks/index.md b/docs/howto/hooks/index.md
index e08aa349bfa..84aa7229d26 100644
--- a/docs/howto/hooks/index.md
+++ b/docs/howto/hooks/index.md
@@ -62,17 +62,17 @@ By default, when `if` is empty or omitted, the step will run only if no error oc
#### Action File schema
-| Property ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hooks success test should match the action id the test produced (rather than only counting runs and checking event types), so it verifies the right action was added and not just that something new was added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
treeverse__lakeFS__8821 | treeverse/lakeFS | 8,821 | defect | 76baa46804b5131a245d7aeac221373c73167915 | 2149ef79d3ff1ed39879b67394264203d30186c2 | Add and use auth factory | Closes #8822
Additional Manual testing performed:
1. Upgrade OSS version (No auth)
2. Upgrade OSS no RBAC to RBAC (on-prem solution) | diff --git a/cmd/lakefs/cmd/run.go b/cmd/lakefs/cmd/run.go
index 8b7a380a133..76269046940 100644
--- a/cmd/lakefs/cmd/run.go
+++ b/cmd/lakefs/cmd/run.go
@@ -18,12 +18,11 @@ import (
"github.com/go-co-op/gocron"
"github.com/spf13/cobra"
"github.com/spf13/viper"
+ authfactory "github.com/treeverse/lakefs/modules/au... | 8 | 4 | 2 | [{"id": "G0", "claim": "The per-type cache wrappers in pkg/auth/cache.go look like copy-paste for each cached type and should start using generics.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The errSimplifiedOrExternalAuth error string in pk... | null |
treeverse__lakeFS__8831 | treeverse/lakeFS | 8,831 | defect | d2b8b9c39a450036a9e866fc6a65c773d133c164 | 09ca097105d03d7c8c50bad5e070bb646c053fa2 | Add lakectl support for configuration via environment variable | Closes #7519
Note - Relevant only for lakectl, not python sdk !
## Change Description
Previously, the config file could only be set via a flag or defaulted to the user's home directory. This change adds support for specifying the config file using the `LAKECTL_CONFIG_FILE` environment variable. | diff --git a/cmd/lakectl/cmd/root.go b/cmd/lakectl/cmd/root.go
index 0273b6c1ccf..ade6cd0432c 100644
--- a/cmd/lakectl/cmd/root.go
+++ b/cmd/lakectl/cmd/root.go
@@ -598,6 +598,11 @@ func initConfig() {
if cfgFile != "" {
// Use config file from the flag.
viper.SetConfigFile(cfgFile)
+ print("Using config file ... | 5 | 4 | 2 | [{"id": "G0", "claim": "Please remove the debug print statements from initConfig.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds configuration-loading behaviour without any tests; where are the tests?", "category": "testing... | null |
treeverse__lakeFS__8891 | treeverse/lakeFS | 8,891 | defect | 89af1464caf3a666f68c4dded04d94fdf383deaa | 62503140339b2e0c38e84555f7efad479f27f100 | Support array env variables for config | Closes #8696.
## Change Description
For server configuration with array values,
Allow setting such values using environment variables.
Note: The code of `StringToSliceWithBracketHookFunc` and `StringToStructHookFunc` was basically copied from [here](https://github.com/spf13/viper/issues/339#issuecomment-14343... | diff --git a/pkg/config/config.go b/pkg/config/config.go
index a492460ed55..f7e290f2a9f 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -2,6 +2,7 @@ package config
import (
"encoding/hex"
+ "encoding/json"
"errors"
"fmt"
"reflect"
@@ -557,6 +558,8 @@ func UnmarshalKey(key string, rawVal any) ... | 4 | 4 | 1 | [{"id": "G0", "claim": "Move the new hook functions StringToSliceWithBracketHookFunc and StringToStructHookFunc out of config.go into types.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Both new hook functions require extensive documentatio... | null |
treeverse__lakeFS__8907 | treeverse/lakeFS | 8,907 | defect | 8ceb5396d0b5d90e50dc194da76c04b5dcee02d8 | 548bc8231fa158384a3dbd9fb4dad234e09da895 | Support multiple resources policies PART 2 | Closes #8857 (second part, see [first part](https://github.com/treeverse/lakeFS/pull/8823))
This PR leverages the parser func introduced in the first PR, to parse the `resource` string and allow multiple resources statements.
| diff --git a/pkg/api/controller_test.go b/pkg/api/controller_test.go
index 5e9de73a4bc..1ec22f386dd 100644
--- a/pkg/api/controller_test.go
+++ b/pkg/api/controller_test.go
@@ -5726,6 +5726,162 @@ func TestCheckPermissions_UnpermittedRequests(t *testing.T) {
}
}
+func TestCheckPermissions_multipleResources(t *test... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new test case should be named \"read second resource, denied\" instead of \"read second resource, unpermitted\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a test with two policies, one allowing and one denyin... | null |
treeverse__lakeFS__8917 | treeverse/lakeFS | 8,917 | defect | 8ceb5396d0b5d90e50dc194da76c04b5dcee02d8 | 5a60c51667b724f0bee8dfa29e73a0e0a3729e13 | Import: prohibit import from storage namespace | Closes #8735
## Change Description
### Background
Prevent imports from repository namespace as this might cause unexpected behavior
### Bug Fix
Go over import path and return an error in case any of them are in the destination repo namespace
### Testing Details
Added esti tests
| diff --git a/esti/import_test.go b/esti/import_test.go
index 3aee101eebf..a09d16d1f3a 100644
--- a/esti/import_test.go
+++ b/esti/import_test.go
@@ -138,10 +138,12 @@ func verifyImportObjects(t testing.TB, ctx context.Context, repoName, prefix, im
}
func TestImport(t *testing.T) {
+ t.Parallel()
blockstoreType, i... | 1 | 1 | 1 | [{"id": "G0", "claim": "Checking the import path against the storage namespace only at the request level (in catalog.go) does not stop a prefix import path that contains the storage namespace, so the import scan would still import objects from within the storage namespace.", "category": "correctness", "verdict": "suppo... | null |
treeverse__lakeFS__8957 | treeverse/lakeFS | 8,957 | defect | 52609b6e088d377d14e27e67bab4867d54f6281a | b8ec22bc65af4eb5ed46885b3226769a039a8406 | Add table_def_changes function for lua unity exporter | Closes #8292
## Change Description
Create a new method in lua:
delta_exporter.table_def_changes takes a list of all table defs and returns only the ones that have changed. This dovetails well with the delta_exporter.export_delta_log function which accepts a list of tables. This way we are only exporting the table... | diff --git a/pkg/actions/lua/lakefs/catalogexport/delta_exporter.lua b/pkg/actions/lua/lakefs/catalogexport/delta_exporter.lua
index 62c44326a93..bde759f299d 100644
--- a/pkg/actions/lua/lakefs/catalogexport/delta_exporter.lua
+++ b/pkg/actions/lua/lakefs/catalogexport/delta_exporter.lua
@@ -34,6 +34,18 @@ local functi... | 10 | 9 | 3 | [{"id": "G0", "claim": "The new table_def_changes function needs documentation written and finished in the lua docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "table_def_changes still inserts every table unconditionally because the filter is a... | null |
treeverse__lakeFS__8994 | treeverse/lakeFS | 8,994 | defect | b0d12e825577cc16348b5ca647bae29915375689 | 4dad5ffc010dd58c62e7b897610a420d490cdaae | AWS IAM: lakefs IDP interface | Closes #8992
To make further IAM auth implementations easier, I moved JWT retrieval logic into lakeFS and put it behind a small interface.
# Edit by isan for CHANGELOG:
This PR introduces new configuration for IAM Login support for lakectl, the feature itself is not implemented yet.
Using the new configura... | diff --git a/pkg/authentication/externalidp/aws_client.go b/pkg/authentication/externalidp/aws_client.go
new file mode 100644
index 00000000000..95a245caf26
--- /dev/null
+++ b/pkg/authentication/externalidp/aws_client.go
@@ -0,0 +1,203 @@
+package authentication
+
+import (
+ "context"
+ "encoding/base64"
+ "encoding/... | 18 | 17 | 4 | [{"id": "G0", "claim": "The new file should live at pkg/authentication/external_idp/aws_client.go instead of pkg/authentication/externalidp/aws_client.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The package mixes generic and AWS-specific ... | null |
treeverse__lakeFS__9009 | treeverse/lakeFS | 9,009 | defect | 414bf4af8c98b095da9d9730776e65891d18e74f | dabc1e6696d775b6ded2fcabc063d44ae3128c88 | Support Unsigned Payload Trailers | Closes #7939
## Change Description
### Background
Depending on the different S3 clients, region and other dependencies your S3 Signature might use different signing methods.
This PR adds support to trailing chunks in STREAMING-UNSIGNED-PAYLOAD-TRAILER requests.
It also verifies the checksum of the payload wi... | diff --git a/Makefile b/Makefile
index df5a988b440..a21b98ec9af 100644
--- a/Makefile
+++ b/Makefile
@@ -180,7 +180,9 @@ gen-code: gen-api ## Run the generator for inline commands
./tools/wrapgen/testcode
LD_FLAGS := "-X github.com/treeverse/lakefs/pkg/version.Version=$(VERSION)-$(REVISION)"
-build: gen docs ## D... | 8 | 8 | 1 | [{"id": "G0", "claim": "The pull request adds clear-text logging of sensitive information: fmt.Printf calls in pkg/gateway/sig/v4.go that print the full HTTP request headers and the signature context, so sensitive data returned by the headers flows to a logging call.", "category": "security", "verdict": "supported", "p... | null |
treeverse__lakeFS__9097 | treeverse/lakeFS | 9,097 | defect | 3b5ce11f21f964f2c4315b2c7394b8c01cd46a25 | 3a09dcb8f787eb037fa40726be09a73b5cab969b | fix: reduce API test memory consumption from 8.26GB to 1.57GB (#8263) | # Memory Optimization Fix for API Tests - Issue #8263
API tests were consuming excessive memory (>40 GiB virtual, >6 GiB resident), causing slower test execution and reduced developer adoption.
## RCA
### Memory Profile Findings (Before Optimization)
- **Total Memory Allocation**: 8.26 GB
- **Ristretto Cac... | diff --git a/pkg/api/serve_test.go b/pkg/api/serve_test.go
index 547361a9cfd..3de0ce81e05 100644
--- a/pkg/api/serve_test.go
+++ b/pkg/api/serve_test.go
@@ -113,6 +113,11 @@ func setupHandler(t testing.TB) (http.Handler, *dependencies) {
// Add endpoint so that 'IsAdvancedAuth' will be in effect
viper.Set("auth.api... | 3 | 3 | 0 | [{"id": "G0", "claim": "Remove the explanatory comment above the cache sizes in serve_test.go because keeping it in sync with defaults.go will not happen, and raise the local cache size from 8MB to 24MB since hitting 8MB in a small test would slow the API test down.", "category": "maintainability", "verdict": "supporte... | null |
treeverse__lakeFS__9377 | treeverse/lakeFS | 9,377 | defect | 53ec7662d31376f00e23980bcbad3102b80e8811 | 454e38e0d82fea4d0fa3165c87e14a4d9b0bca8a | Feature/delete default branch error | Closes #9224
## Change Description
### Background
When a user attempts to delete a repository's default branch, the API currently returns a generic HTTP transport error. This message is confusing as it doesn't explain why the action failed, leading users to believe there might be a network or server issue. This ch... | diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index 1794e8e7656..8dc2245af8a 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -2898,8 +2898,17 @@ func (c *Controller) DeleteBranch(w http.ResponseWriter, r *http.Request, reposi
}
ctx := r.Context()
c.LogAction(ctx, "delete_branch", r,... | 3 | 2 | 2 | [{"id": "G0", "claim": "Graveler already handles default-branch deletion by returning ErrDeleteDefaultBranch, so the controller should just add a case capturing that error and returning 403 Forbidden with the error value instead of the PR's bespoke default-branch check.", "category": "design", "verdict": "supported", "... | null |
treeverse__lakeFS__9500 | treeverse/lakeFS | 9,500 | defect | d9bd9f6edf7a5d6e07c7a33e146130c79c406c9b | 9eab33ce37f081d6ef8cc650288f0942e49d48fa | API: copy object will clone object metadata when possible | Create a shallow copy (more efficient) of an object when requested.
This operation is limited to objects within the same repository and branch, subject to a configurable grace time.
When copying an object, the code will verify that the object’s creation time and the storage’s last update time fall within the grace ... | diff --git a/api/swagger.yml b/api/swagger.yml
index 7d05f4e5d18..cdbe9512e27 100644
--- a/api/swagger.yml
+++ b/api/swagger.yml
@@ -5240,6 +5240,18 @@ paths:
required: true
schema:
type: string
+ - in: query
+ name: mode
+ description: |
+ physical - Default. Us... | 16 | 11 | 3 | [{"id": "G0", "claim": "The swagger description of the new mode parameter should be rewritten so it clearly explains what physical and logical copying do.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of a separate opt-in clone path, Copy... | null |
treeverse__lakeFS__9540 | treeverse/lakeFS | 9,540 | defect | 8f35ed92cc1ba180b097eec32903f9ad78e77854 | 8d1a542dd206aa57a9c35c5af9cc8342e542005c | Use internal errors status codes during authentication flow | Closes #9539 | diff --git a/pkg/api/auth_middleware.go b/pkg/api/auth_middleware.go
index 5029453fc0e..e523aedb182 100644
--- a/pkg/api/auth_middleware.go
+++ b/pkg/api/auth_middleware.go
@@ -70,7 +70,7 @@ func GenericAuthMiddleware(logger logging.Logger, authenticator auth.Authenticat
return http.HandlerFunc(func(w http.ResponseW... | 2 | 2 | 2 | [{"id": "G0", "claim": "Returning an error when adding an external user to a group changes behavior for both SAML and OIDC: the user is already created at that point, re-running will not re-attach it, and enhanceWithFriendlyName will not run, so the flow should either be left as-is or the order of operations changed.",... | null |
treeverse__lakeFS__9552 | treeverse/lakeFS | 9,552 | defect | 93eae2df6295ac285052f89ccdd4f8dba7623769 | 7b103f9ff48ea5a0eef840d3fb870fbaf5864be2 | Extend merge conflicts resolution [v2] | ## Change Description
Allowing an extension for the merge conflict resolution logic.
Will be used by the (Enterprise) compaction conflicts resolver.
| diff --git a/cmd/lakefs-loadtest/cmd/entry.go b/cmd/lakefs-loadtest/cmd/entry.go
index 095896d127e..5654f44de8e 100644
--- a/cmd/lakefs-loadtest/cmd/entry.go
+++ b/cmd/lakefs-loadtest/cmd/entry.go
@@ -75,7 +75,7 @@ var entryCmd = &cobra.Command{
Config: confInterface,
KVStore: kvStore,
PathProvid... | 10 | 7 | 2 | [{"id": "G0", "claim": "The conflict resolvers should be an option in catalog.Config rather than an extra argument to catalog.New, since Config exists so callers do not pass many args.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The graveler level sho... | null |
treeverse__lakeFS__9604 | treeverse/lakeFS | 9,604 | defect | 0a884a8c49398c77fd6bf1862393b839c6001436 | 505298abec495e9953dd8bb64aecb1aeaae1d304 | Allow non-ASCII values in S3 PutObject user metadata | Q-encode (RFC 2047) all metadata operations on the S3 gateway, in both directions. This conforms with [the S3 docs about user metadata](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html#UserMetadata). Test using both ASCII and non-ASCII values, reading both through the S3 API _and_ through the ... | diff --git a/esti/s3_gateway_test.go b/esti/s3_gateway_test.go
index e5a16c647a2..e97c79caab6 100644
--- a/esti/s3_gateway_test.go
+++ b/esti/s3_gateway_test.go
@@ -3,6 +3,7 @@ package esti
import (
"bytes"
"context"
+ "errors"
"fmt"
"io"
"math/rand"
@@ -20,6 +21,7 @@ import (
"github.com/aws/smithy-go/mid... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the metadata-decode error paths added to postobject.go and putobject.go (handleCopy and handlePut), a return is missing after EncodeError, so the handler keeps executing after writing the error response.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
treeverse__lakeFS__9641 | treeverse/lakeFS | 9,641 | defect | 078a850847fa66334df9ee9850d076166d5efb28 | e04f95ca00cbe412f2c80063c1b62845d8a6a571 | Support Iceberg Sync Controller | ## Change Description
Adding support for Iceberg Catalog Sync, that is responsible for `/pull` and `/push`.
This part includes implementation for `/push`.
More details are in the Enterprise PR.
| diff --git a/cmd/lakefs/cmd/run.go b/cmd/lakefs/cmd/run.go
index e07c376ca17..9a01368b4d5 100644
--- a/cmd/lakefs/cmd/run.go
+++ b/cmd/lakefs/cmd/run.go
@@ -25,6 +25,7 @@ import (
catalogfactory "github.com/treeverse/lakefs/modules/catalog/factory"
configfactory "github.com/treeverse/lakefs/modules/config/factory"
... | 2 | 1 | 1 | [{"id": "G0", "claim": "Since the SyncManager operations use the generated open-api code, the interface should be modeled as a controller matching the generated controller interface (or its types and errors converted to call it from the API controller) - the PR needs to pick one of the two approaches.", "category": "de... | null |
treeverse__lakeFS__9642 | treeverse/lakeFS | 9,642 | defect | 078a850847fa66334df9ee9850d076166d5efb28 | f5b62249bce1ba0ab8d7902e086f540764689bc7 | [bug] Support multiple template colours in lakectl console output | Now e.g. `{{... | bold | red}}` formats both both _and_ red (previously this
would only be red). | diff --git a/cmd/lakectl/cmd/common_helpers.go b/cmd/lakectl/cmd/common_helpers.go
index c66a5e771c8..b58032c06b2 100644
--- a/cmd/lakectl/cmd/common_helpers.go
+++ b/cmd/lakectl/cmd/common_helpers.go
@@ -88,23 +88,58 @@ type Pagination struct {
After string
}
+// ColoredText is text with an array of colors appl... | 3 | 2 | 1 | [{"id": "G0", "claim": "The doc comment on ColoredText.Add says 'It modifies c' although the method returns a new ColoredText without mutating the receiver, and the comment should be rewritten to say so.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
treeverse__lakeFS__9675 | treeverse/lakeFS | 9,675 | defect | 7c90e2c32cb22e91301b381ae11b1188b70900c0 | e8e18266520d918428798531879725619f7a6947 | Deprecate disable usage report | Closes #9674
## Change Description
This PR deprecates the configuration value: `usage_report.enabled` which will be ignored from now on.
Usage counters will always be collected and persisted and the `GetUsageReportSummary` endpoint will always return
usage results
### Testing Details
Existing tests
##... | diff --git a/cmd/lakefs/cmd/run.go b/cmd/lakefs/cmd/run.go
index 9b17bff72d7..310de92817c 100644
--- a/cmd/lakefs/cmd/run.go
+++ b/cmd/lakefs/cmd/run.go
@@ -167,12 +167,11 @@ var runCmd = &cobra.Command{
}
defer func() { _ = c.Close() }()
- // usage report setup - default usage reporter ids a no-op
- usageRep... | 4 | 3 | 1 | [{"id": "G0", "claim": "Stop checking the 'usage_report.enabled' field in run.go and remove the default that sets it to true, warning instead via viper.IsSet(...) in case a user sets the value.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep the comm... | null |
treeverse__lakeFS__9702 | treeverse/lakeFS | 9,702 | defect | a33e0827caa2b3fedb5fa73966ef5c2f76ffacb2 | 26d51094ffa35c4be3f468591b5a71573bb596e6 | Auth policy: support for NotIpAddress condition operator | Introduce an operator NotIpAddress that performs the logical NOT operation on the IpAddress function, returning true if the provided value is not equal to the specified IP address.
Closes #9701
| diff --git a/docs/src/security/rbac.md b/docs/src/security/rbac.md
index 241501cd63f..4d086e2b4ac 100644
--- a/docs/src/security/rbac.md
+++ b/docs/src/security/rbac.md
@@ -77,9 +77,9 @@ Conditions are added to policy statements using the optional `condition` field:
### Supported Condition Operators
-#### IpAddres... | 2 | 1 | 1 | [{"id": "G0", "claim": "The newly added empty-values check makes a condition field with no configured values (e.g. IpAddress set to an empty list) fail the condition outright, so with a deny action it would always deny.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id"... | null |
treeverse__lakeFS__9743 | treeverse/lakeFS | 9,743 | defect | 472daf2110908ce6411f22b96b70ea7b45cac838 | ec65043f9da9e6dcf8ceeb6ae66389ff05ca9d47 | Fix: Return Content-Range header on ErrUnsatisfiableRange | ## Change Description
### Background
According to [spec](https://www.rfc-editor.org/rfc/rfc9110.html#name-416-range-not-satisfiable)
Content-Range must be provided on 416 error
| diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index ee44bcb4415..d21f73e11db 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -5064,6 +5064,9 @@ func (c *Controller) GetObject(w http.ResponseWriter, r *http.Request, repositor
if params.Range != nil {
rng, err := httputil.ParseRange(*p... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test case to the existing get-object handler tests in controller_test.go covering the new Content-Range behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
treeverse__lakeFS__9749 | treeverse/lakeFS | 9,749 | defect | 6d738635778e706fcacc29039d019b05ee01956c | 56362185bfa69a8d48aadbf0ed63cdf9aa6e39bc | Use heap.Push not [slice].Push to initialize a Heap | Fixes #9748.
As a bonus, add a commit_iterator_test! In fact only _one_ line is the fix, the other 100+ are to add that test.
This commit _also_ shows that no breakage was possible even before this change! Indeed, the mistaken call to Push() occurs during initialization, and the heap is empty. On an _empty_ he... | diff --git a/pkg/graveler/ref/commit_iterator.go b/pkg/graveler/ref/commit_iterator.go
index 6b45653fa0b..c62f3c83798 100644
--- a/pkg/graveler/ref/commit_iterator.go
+++ b/pkg/graveler/ref/commit_iterator.go
@@ -9,7 +9,7 @@ import (
)
type CommitIterator struct {
- manager graveler.RefManager
+ manager Com... | 1 | 1 | 0 | [{"id": "G0", "claim": "The exported field holding the CommitGetter should be named `Getter` (so the member name matches its type) rather than `Manager`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treeverse__lakeFS__9768 | treeverse/lakeFS | 9,768 | defect | ba277b5505f8b201153999fc4293d888f77bfbcd | 66ab7b7b6e23a77f620e9da44a8abe3a3dc9e50a | Add cli runner for prepare gc commits | Closes #9755.
Add a command `lakefs gc simulate` which runs the logic of prepare GC commits and allows profiling.
Method:
- Load result of `kv scan` (see issue) back to a KV
* Use a mem KV to rule out performance issues on other KVs
* (#9766 makes mem KV actually fast enough for this to be useful)
- Set u... | diff --git a/cmd/lakefs/cmd/gc.go b/cmd/lakefs/cmd/gc.go
new file mode 100644
index 00000000000..179bed6be2e
--- /dev/null
+++ b/cmd/lakefs/cmd/gc.go
@@ -0,0 +1,310 @@
+package cmd
+
+import (
+ "bufio"
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "net/http"
+ "os"
+ "runtime/pprof"
+ "strings"
+ "time"
+
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `lakefs gc` command's Short description should present it as GC-prepare functionality rather than \"Manually run garbage collection\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A CLI has no real use for the pprof w... | null |
treeverse__lakeFS__9775 | treeverse/lakeFS | 9,775 | defect | 6e8232f27e99a2bde735c372bb50d6d9fb75edeb | 2eee3fbb1eb08b111fce286b42eb6ab494906b50 | Fix missing error in UI after failed login | Closes #9662
## Change Description
### Background
The Login endpoint was not checking for errors from the authenticator that would indicate invalid credentials (ErrNotFound and ErrInvalidSecretAccessKey). These errors would fall through and result in 500 responses instead of 401 to indicate invalid credentials.... | diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index b8fdca0e37c..a86462d2d72 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -772,8 +772,12 @@ func (c *Controller) Login(w http.ResponseWriter, r *http.Request, body apigen.L
ctx := r.Context()
user, err := userByAuth(ctx, c.Logger, c.A... | 2 | 2 | 1 | [{"id": "G0", "claim": "The Login handler should probably use the existing handleApiErrorCallback error-handling mechanism instead of in-lining the authentication error checks.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The message shown for... | null |
treeverse__lakeFS__9776 | treeverse/lakeFS | 9,776 | defect | ba277b5505f8b201153999fc4293d888f77bfbcd | 55d4030a5632b7b1c1d1a6b5c09b2b6aafbcad43 | Add space-efficient arena-based maps | Introduce memory-efficient map implementations using arena allocation,
designed to reduce memory overhead for storing large numbers of small
objects.
### Components
#### arena.Arena
- Stores objects contiguously in a single slice
- Returns `Index` references (8 bytes) instead of pointers
- Supports fast ra... | diff --git a/cmd/lakefs/cmd/gc.go b/cmd/lakefs/cmd/gc.go
new file mode 100644
index 00000000000..179bed6be2e
--- /dev/null
+++ b/cmd/lakefs/cmd/gc.go
@@ -0,0 +1,310 @@
+package cmd
+
+import (
+ "bufio"
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "net/http"
+ "os"
+ "runtime/pprof"
+ "strings"
+ "time"
+
... | 11 | 9 | 0 | [{"id": "G0", "claim": "The dedupe loop in boundedArenaMap.Optimize should skip the assignment for duplicate keys instead of keeping the redundant else block that re-copies the later entry.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cons... | null |
treeverse__lakeFS__9779 | treeverse/lakeFS | 9,779 | defect | ba277b5505f8b201153999fc4293d888f77bfbcd | 4fe6326c309f89de1cfa3e64dbe22854fc9be0fd | Reduce memory consumption of prepare gc active commits | - Hold commits map as a space-efficient arena map (h/t @nopcoder)
- Reduce first-parents memory usage by changing it from `map[string]bool` to `map[string]struct{}`
Together (of course the first does almost all the work) this reduces memory usage by almost a half. | diff --git a/cmd/lakefs/cmd/gc.go b/cmd/lakefs/cmd/gc.go
new file mode 100644
index 00000000000..179bed6be2e
--- /dev/null
+++ b/cmd/lakefs/cmd/gc.go
@@ -0,0 +1,310 @@
+package cmd
+
+import (
+ "bufio"
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "net/http"
+ "os"
+ "runtime/pprof"
+ "strings"
+ "time"
+
... | 7 | 5 | 1 | [{"id": "G0", "claim": "The comment says \"CreationSecs\" but the field is named CreationUsecs; the comment should use the field name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment \"This check should happen at compile time but cannot... | null |
treeverse__lakeFS__9787 | treeverse/lakeFS | 9,787 | defect | ad20e5c55e35b264b2d8df331f1e3360f231dc40 | 9bedef7e98c1c875788bd2fd48d591a5a1e18c11 | pyramid: fix file handle and goroutine leaks, add proper cleanup | ## Summary
This PR fixes and improves the pyramid package, which handles the local caching layer for range and meta-range files.
### Key Changes
**Resource Management:**
- Add `Close()` method to `FS` interface and `TierFS` implementation to properly clean up resources
- Add `Close()` method to `Eviction` in... | diff --git a/pkg/catalog/catalog.go b/pkg/catalog/catalog.go
index 493d6c536e0..13717fab69c 100644
--- a/pkg/catalog/catalog.go
+++ b/pkg/catalog/catalog.go
@@ -362,6 +362,8 @@ func New(ctx context.Context, cfg Config) (*Catalog, error) {
committedManager, closers, err := buildCommittedManager(cfg, pebbleSSTableCac... | 3 | 1 | 0 | [{"id": "G0", "claim": "A queue holding up to 1000 pending directory deletions is a lot and, as deletions are delayed, risks going over the allowed disk space; at the minimum the length of the queue should be monitored.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
treeverse__lakeFS__9798 | treeverse/lakeFS | 9,798 | defect | 7523b5f2718e8e6bd792a0c7a2c6c72b6e9affd8 | 59553f9209e929d3ed047a18ed3514467813f093 | s3 GW - Add prefix to ListBuckets operation | Closes #8425
Added the option to list repositories with a common prefix.
```
aws s3 ls --endpoint-url http://localhost:8000 --profile default --bucket-name-prefix prefix
``` | diff --git a/docs/src/reference/s3.md b/docs/src/reference/s3.md
index f404de9e851..9de9dc79bda 100644
--- a/docs/src/reference/s3.md
+++ b/docs/src/reference/s3.md
@@ -16,6 +16,7 @@ lakeFS supports the following API operations:
1. [SIGv2](https://docs.aws.amazon.com/general/latest/gr/signature-version-2.html){:ta... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request's new ListBuckets prefix functionality ships with no test covering it; a test should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Input validation for the new prefix query parameter should be checked ... | null |
treeverse__lakeFS__9804 | treeverse/lakeFS | 9,804 | defect | 7523b5f2718e8e6bd792a0c7a2c6c72b6e9affd8 | fde7a77be50ee3920b4d41060f68c2649b6d6213 | fix precondition 500 | Closes #6457
## Change Description
### Bug Fix
We return 500 on precondition failed when really we should be returning 412
Details:
Catalog.CreateEntry can return kv.ErrPredicateFailed when there's a race condition during concurrent writes to the same staging token.
### Testing Details
Unit test
... | diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index 973b8400485..093b22674ba 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -3208,7 +3208,8 @@ func handleApiErrorCallback(log logging.Logger, w http.ResponseWriter, r *http.R
log.Debug("KV Throttling")
cb(w, r, http.StatusServiceUnav... | 5 | 4 | 2 | [{"id": "G0", "claim": "The PR creates a new pkg/api/controller_internal_test.go without justification when the existing controller tests file could have been used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Mapping kv.ErrPredicateFailed to ... | null |
treeverse__lakeFS__9825 | treeverse/lakeFS | 9,825 | defect | 0bc78c2a7089b562e0db88467d434a2a80101d0e | bdcfcb3474b2ea95226f4e9f889dda034ec33f55 | Fix logging for requests from remote addresses without port | Closes #7482
## Change Description
### Bug Fix
The function to determine the source IP for log statements (`SourceIP`) had a bug where it returned an error string for `RemoteAddr` values that didn't contain a port, resulting in confusing logs instead of the actual address.
Rather than fix the function, this c... | diff --git a/pkg/api/controller.go b/pkg/api/controller.go
index 973b8400485..7e5a9a606d4 100644
--- a/pkg/api/controller.go
+++ b/pkg/api/controller.go
@@ -6348,8 +6348,6 @@ func (c *Controller) LogAction(ctx context.Context, action string, r *http.Reque
ev.UserID = user.Username
}
- sourceIP := httputil.Source... | 1 | 1 | 1 | [{"id": "G0", "claim": "Replace the leftover httputil SourceIP helper: use the same approach everywhere it was used, and give a reliable way of identifying the Lua-originated requests in the logs (e.g. writing \"[internal (lua)]\") instead of the broken \"error source_ip\" message.", "category": "design", "verdict": "s... | null |
treeverse__lakeFS__9835 | treeverse/lakeFS | 9,835 | defect | e44657c92d0a81df73e6e5b11f880e2d2ed6630a | db9e2813a24e0f88c6bb1fa0415b7ba7b8de9a5a | tests: Use t.Context() as the default context | Closes #9834 | diff --git a/Makefile b/Makefile
index 36ac0f7270d..bb15135f2cd 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ GOTESTRACE=$(GOTEST) -race
GOGET=$(GOCMD) get
GOFMT=$(GOCMD)fmt
-GOTEST_PARALLELISM=4
+GOTEST_PARALLELISM=$(shell nproc)
LAKEFS_BINARY_NAME=lakefs
LAKECTL_BINARY_NAME=lakectl
diff --git a/cmd/l... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the GOTEST_PARALLELISM variable and instead introduce a GOTEST_FLAGS variable so that any extra flags passed to GOTEST (e.g. -race -failfast) can be controlled and override the defaults.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treeverse__lakeFS__9839 | treeverse/lakeFS | 9,839 | defect | 6136b2aebbfa6b85a80c80e37c4030d0ac094b15 | 55f613aec513606e5d9566078f0fb1b93c46cbbc | Add IsProductionSafe to Blockstore metadata [v2] | Closes #8681.
Recreates #9822 (for technical reasons).
[This PR](https://github.com/treeverse/lakeFS-Enterprise/pull/1443) is used for Enterprise.
---
## Change Description
Making production warning for blockstores part of the Blockstore Adapter metadata.
### Testing Details
Tested the warning loca... | diff --git a/cmd/lakefs/cmd/run.go b/cmd/lakefs/cmd/run.go
index 0d27a3534e4..0b2d1e25b57 100644
--- a/cmd/lakefs/cmd/run.go
+++ b/cmd/lakefs/cmd/run.go
@@ -139,12 +139,6 @@ var runCmd = &cobra.Command{
logger.WithError(err).Fatal("failed to create login token provider")
}
- blockstoreType := baseCfg.Blocksto... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR marks the local blockstore adapter as production safe (IsProductionSafe: true), and the reviewer questions how the local adapter can be considered production safe, given customers run it in production only informally.", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.