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
Netflix__lemur__4738
Netflix/lemur
4,738
defect
02c9066d1ba7abb6a17322a9dcb189706b92fe59
998f066399d64f11b305618f7e6e2a75875c8112
Allow filtering with SAN in certificates/valid endpoint
Added supported to filter with a SAN. This is useful for the certs without CN, as CN could be optional. Lookup could be extended to support lookup by multiple hostnames/SAN instead of just one. However, given the fact that domain table does not hold unique entries, performance will degrade when filtered with many SA...
diff --git a/lemur/certificates/service.py b/lemur/certificates/service.py index 7b40861fd3..9337e356f7 100644 --- a/lemur/certificates/service.py +++ b/lemur/certificates/service.py @@ -721,13 +721,15 @@ def query_name(certificate_name, args): def query_common_name(common_name, args): """ - Helper function ...
1
1
1
[{"id": "G0", "claim": "Additional tests should be added to validate that querying certificates by SAN works as expected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__lemur__4816
Netflix/lemur
4,816
defect
e8faf188417fed4549386cd4e63e67ef9f0bba3e
945974d67eb51170e828b821a6dc48c0f39a1252
Issuer plugin for Google CA Manager
A plugin that handles certificate issuance via Google CA Manager. The plugin requires `GOOGLE_ACCOUNT_CREDENTIALS` config variable, which should point at the file containing credentials that Lemur is using to connect to Google Cloud Platform. These credentials normally would be for a service account that has permi...
diff --git a/lemur/plugins/lemur_google_ca/__init__.py b/lemur/plugins/lemur_google_ca/__init__.py new file mode 100644 index 0000000000..f8afd7e35f --- /dev/null +++ b/lemur/plugins/lemur_google_ca/__init__.py @@ -0,0 +1,4 @@ +try: + VERSION = __import__("pkg_resources").get_distribution(__name__).version +except E...
6
6
2
[{"id": "G0", "claim": "The 'CA is not enabled' exception should include the CA path to help with debugging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated import of google.cloud.security.privateca_v1 as privateca_v1 should be rem...
null
Netflix__maestro__125
Netflix/maestro
125
defect
9b5df5b2bd14db6847207d795cdf8c16762effb0
68be209f8f1123775487a50a8be60b2fae8b6fc1
Add a Redis-based InstanceStepConcurrencyHandler implementation.
Pull Request type ---- - [ ] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any forma...
diff --git a/maestro-aws/build.gradle b/maestro-aws/build.gradle index 1e143566..5ba41ae2 100644 --- a/maestro-aws/build.gradle +++ b/maestro-aws/build.gradle @@ -5,6 +5,7 @@ dependencies { implementation('io.awspring.cloud:spring-cloud-aws-starter-sqs:3.+') { exclude group: 'ch.qos.logback' } + i...
6
1
0
[{"id": "G0", "claim": "The catch block's warning log in RedisInstanceStepConcurrencyHandler.addInstance uses idWithHash (the depth-0 key) instead of the actual depth-specific key or raw concurrencyId; use idWithDepth or concurrencyId for clearer and accurate logging.", "category": "correctness", "verdict": "uncertain"...
null
Netflix__maestro__129
Netflix/maestro
129
defect
6cf77e2b541ddb79427d54194e583e6140223953
7a0620ff101439d6b6222d6e635dac3570cdca01
Improve the queue performance by adding an explicit lock mechanism
Pull Request type ---- - [ ] Bugfix - [ ] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [x] Other (please describe): performance improvement **NOTE**: Please remember to run `./gradlew spotles...
diff --git a/maestro-engine/src/main/java/com/netflix/maestro/engine/steps/SubworkflowStepRuntime.java b/maestro-engine/src/main/java/com/netflix/maestro/engine/steps/SubworkflowStepRuntime.java index bc85b7fd..02a34210 100644 --- a/maestro-engine/src/main/java/com/netflix/maestro/engine/steps/SubworkflowStepRuntime.ja...
5
2
0
[{"id": "G0", "claim": "The nested try-with-resources blocks and conditional logic in dequeueUnownedMessages should be extracted into separate methods to improve readability and maintainability.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
Netflix__maestro__132
Netflix/maestro
132
defect
e14b3524f55e4e4534b15201447761ee8dc0c61d
cffc244cb3afce5585c65fe7e9397459c70b3d4e
Fix edge case where unblocking workflow doesn't enqueue job event
Pull Request type ---- - [x] Bugfix - [ ] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any forma...
diff --git a/maestro-engine/src/main/java/com/netflix/maestro/engine/dao/MaestroWorkflowInstanceDao.java b/maestro-engine/src/main/java/com/netflix/maestro/engine/dao/MaestroWorkflowInstanceDao.java index 4965ac93..e7de22fd 100644 --- a/maestro-engine/src/main/java/com/netflix/maestro/engine/dao/MaestroWorkflowInstance...
1
1
0
[{"id": "G0", "claim": "The comment in the new test explaining the batch-size scenario could be improved.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__maestro__140
Netflix/maestro
140
defect
4fd3fb3e8e10c6e191c87c1dc183b7a41395d281
c5b8416427224e02dd664b8fd66139cbd8343a41
Check if map param is literal before returning the value.
Pull Request type ---- - [ ] Bugfix - [ ] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [x] Other (please describe): error handling improvement **NOTE**: Please remember to run `./gradlew spot...
diff --git a/maestro-engine/src/main/java/com/netflix/maestro/engine/params/ParamsMergeHelper.java b/maestro-engine/src/main/java/com/netflix/maestro/engine/params/ParamsMergeHelper.java index 4f45bbc1..8653a7a8 100644 --- a/maestro-engine/src/main/java/com/netflix/maestro/engine/params/ParamsMergeHelper.java +++ b/mae...
1
1
0
[{"id": "G0", "claim": "The test's expected-error message contains redundant text and should read \"literal string map param\" instead of \"string literal string map param\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Netflix__maestro__141
Netflix/maestro
141
defect
a9614cf589bd1055dc47183e3ceb6253b5909bd9
ce1508ca28c0bd1e259e2b2cd9ea401de347e839
Maestro workers should not retry in certain cases
While a worker processes a job, the business logic might throw MaestroNotFoundException, e.g. the workflow is deleted. The worker should not retry in this case. Pull Request type ---- - [x] Bugfix - [ ] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./...
diff --git a/maestro-queue/src/main/java/com/netflix/maestro/queue/metrics/MetricConstants.java b/maestro-queue/src/main/java/com/netflix/maestro/queue/metrics/MetricConstants.java index d6307c7f..68505812 100644 --- a/maestro-queue/src/main/java/com/netflix/maestro/queue/metrics/MetricConstants.java +++ b/maestro-queu...
3
2
0
[{"id": "G0", "claim": "The log message should use the article 'a' instead of 'an' before 'non-retryable'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The log message should read 'ignoring it' instead of 'ignore it' for proper grammar.", "categ...
null
Netflix__maestro__146
Netflix/maestro
146
defect
2b00e322d93c09e38e1b7a3e0e2138220185beaa
a48b307f07fa398b8f8f8caab336340d18939538
Invalid job event should be removed from the queue.
Pull Request type ---- - [x] Bugfix - [ ] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any forma...
diff --git a/maestro-engine/src/main/java/com/netflix/maestro/engine/steps/ForeachStepRuntime.java b/maestro-engine/src/main/java/com/netflix/maestro/engine/steps/ForeachStepRuntime.java index 136931f7..23d7af5b 100644 --- a/maestro-engine/src/main/java/com/netflix/maestro/engine/steps/ForeachStepRuntime.java +++ b/mae...
1
1
0
[{"id": "G0", "claim": "The log message should say 'and removing it' instead of 'and deleting it' to be consistent with the method name remove().", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Netflix__maestro__160
Netflix/maestro
160
defect
3275301b36f6a7e6f9ce58062545d282545da137
24d8ce613e2dd77d0d1523a814d2722aae192c8c
Improve actors to cancel the scheduled task ping action during activate/wakeup
Pull Request type ---- - [ ] Bugfix - [ ] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [x] Other (please describe): optimize activate action handling in task actor **NOTE**: Please remember ...
diff --git a/maestro-flow/src/main/java/com/netflix/maestro/flow/actor/BaseActor.java b/maestro-flow/src/main/java/com/netflix/maestro/flow/actor/BaseActor.java index df54d972..adc7298b 100644 --- a/maestro-flow/src/main/java/com/netflix/maestro/flow/actor/BaseActor.java +++ b/maestro-flow/src/main/java/com/netflix/mae...
2
2
1
[{"id": "G0", "claim": "Creating a new Action.TaskPing object for the map lookup on every activation is inefficient due to the allocation; the scheduled action should be stored as a constant or looked up more efficiently.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
Netflix__maestro__172
Netflix/maestro
172
defect
739a67b36e3cd84113d94cf2cfa31bb61b0b33ec
29e961b094202aabe385c51cdc088e9dadc881dc
Support tags in job template definition.
Pull Request type ---- - [ ] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any forma...
diff --git a/maestro-common/src/main/java/com/netflix/maestro/models/definition/Tag.java b/maestro-common/src/main/java/com/netflix/maestro/models/definition/Tag.java index 227f6745..805e0d70 100644 --- a/maestro-common/src/main/java/com/netflix/maestro/models/definition/Tag.java +++ b/maestro-common/src/main/java/com/...
4
1
0
[{"id": "G0", "claim": "The Javadoc on loadTags incorrectly says 'Load runtime parameters' and '@return a collection of runtime generated parameters to inject'; it should say the method loads runtime tags.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
Netflix__maestro__181
Netflix/maestro
181
defect
829832bb4b777d582497b202bd65a6f39239bbf9
f597ff08c38a9246a51c4ab2b4de41394886a6cc
Code refactoring to improve output controller and kubernetes step run…
Pull Request type ---- - [x] Bugfix - [ ] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [x] Other (please describe): refactoring to improve the **NOTE**: Please remember to run `./gradlew spo...
diff --git a/maestro-dsl/src/main/java/com/netflix/maestro/dsl/parsers/ParamParser.java b/maestro-dsl/src/main/java/com/netflix/maestro/dsl/parsers/ParamParser.java index 092d0575..1a905fed 100644 --- a/maestro-dsl/src/main/java/com/netflix/maestro/dsl/parsers/ParamParser.java +++ b/maestro-dsl/src/main/java/com/netfli...
3
2
0
[{"id": "G0", "claim": "The array placeholder reuses the string placeholder constant, creating a semantic inconsistency where string and array placeholders are identical instead of having distinct values for each type, and should use a separate value.", "category": "correctness", "verdict": "uncertain", "priority": "P3...
null
Netflix__maestro__183
Netflix/maestro
183
defect
026fadbbc80d5a43c51fcc175595ac94bcb8c502
a63fafb9e34652ae8cf384dadde345840dc4b04d
Add an endpoint to return all job templates for a specific version.
Pull Request type ---- - [ ] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any forma...
diff --git a/maestro-engine/src/main/java/com/netflix/maestro/engine/dao/MaestroJobTemplateDao.java b/maestro-engine/src/main/java/com/netflix/maestro/engine/dao/MaestroJobTemplateDao.java index 88dad93e..e1ec1738 100644 --- a/maestro-engine/src/main/java/com/netflix/maestro/engine/dao/MaestroJobTemplateDao.java +++ b/...
4
3
0
[{"id": "G0", "claim": "The jobTemplates list declared outside the query lambda could accumulate duplicate entries across retry attempts, so it should be initialized inside the lambda for a fresh list on each retry.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
Netflix__maestro__185
Netflix/maestro
185
defect
ce2c3a1a0a5bf84b5dfaab94bb496bf95aa5d0ae
34e0df80a97d815ecb6d0aa52b0f77df10966039
Add URL validation for SSRF protection
Pull Request type ---- - [ ] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any forma...
diff --git a/maestro-http/README.md b/maestro-http/README.md index bf7dfe06..338348f4 100644 --- a/maestro-http/README.md +++ b/maestro-http/README.md @@ -10,6 +10,7 @@ This module enables workflows to make HTTP/HTTPS calls as step executions and sa - **HttpRuntimeExecutor**: Interface for executing HTTP requests -...
4
2
0
[{"id": "G0", "claim": "The Javadoc should read 'an allow-list' instead of 'a allow-list'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test fixture misspells 'disallowed' as 'disalowed' and should be corrected.", "category": "documentation"...
null
Netflix__maestro__195
Netflix/maestro
195
defect
7c6ec84464945e62459aeae073f90886914e2763
13255e8af3ade22ca102e0e190094798fda31915
Port internal Postgres improvements to OSS
## Pull Request type - [x] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any format...
diff --git a/maestro-common/src/testFixtures/resources/fixtures/instances/sample-step-instance-failed-with-null-byte.json b/maestro-common/src/testFixtures/resources/fixtures/instances/sample-step-instance-failed-with-null-byte.json new file mode 100644 index 00000000..838d1b94 --- /dev/null +++ b/maestro-common/src/te...
1
1
0
[{"id": "G0", "claim": "The markTransactionSerializable(Connection, boolean) overload is redundant because callers always pass false, making it equivalent to the single-argument method, so it could be renamed (e.g. markTransactionSerializableReadOnly) or used directly only when read-only is needed.", "category": "desig...
null
Netflix__maestro__199
Netflix/maestro
199
defect
e9fee9130518db6acc90b151cc323af2be33b251
a7979aa16d32f59e16a12dd4acd636963bcea05a
Endpoint to get a summary of runs for a given workflow instance
Pull Request type ---- - [ ] Bugfix - [x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any forma...
diff --git a/maestro-common/src/main/java/com/netflix/maestro/models/instance/WorkflowRunSummary.java b/maestro-common/src/main/java/com/netflix/maestro/models/instance/WorkflowRunSummary.java new file mode 100644 index 00000000..0e330960 --- /dev/null +++ b/maestro-common/src/main/java/com/netflix/maestro/models/insta...
3
2
1
[{"id": "G0", "claim": "The runs endpoint should return WorkflowInstance objects for consistency with the other endpoints instead of introducing a new WorkflowRunSummary model, and should be paginated like the /{workflowId}/instances endpoint.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "...
null
Netflix__maestro__201
Netflix/maestro
201
defect
e9fee9130518db6acc90b151cc323af2be33b251
90d59de3b21bb3ce18e2a68095d534ffedf9bb9f
Make step param separator configurable to allow __ in step IDs and param names
Pull Request type ---- - [ ] Bugfix - [ x] Feature - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes (Please run `./gradlew build --write-locks` to refresh dependencies) - [ ] Other (please describe): **NOTE**: Please remember to run `./gradlew spotlessApply` to fix any fo...
diff --git a/maestro-common/src/main/java/com/netflix/maestro/utils/StepParamSeparator.java b/maestro-common/src/main/java/com/netflix/maestro/utils/StepParamSeparator.java new file mode 100644 index 00000000..d16b7307 --- /dev/null +++ b/maestro-common/src/main/java/com/netflix/maestro/utils/StepParamSeparator.java @@...
6
4
0
[{"id": "G0", "claim": "The reviewer asks whether the deletion of markTransactionSerializable from AbstractDatabaseDao is intentional, since an unexplained removal in an unrelated file may be unintended.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
Netflix__mantis__145
Netflix/mantis
145
defect
9f67db4ca7e8d262362d2edc7531535b1fcf8d11
6ca04402ad9428a72119db1242c7445e8d486162
[Part 1]: Support for hot task executors in Mantis
### Context As we are approaching adding support for Mantis on Titus, one of the first goals is to be able to support task executors that are fully loaded (hot) and capable of executing Mantis stages on demand. This diff is the first step in that direction. This change introduces a new API on the server-side that es...
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 30024b173..2089d512f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @codyrioux @neerajrj @nickmahilani @jeffchao @piygoyal @calvin681 @sundargates @Andyz26 +* @codyrioux @nickmahilani @jeffchao @piygoyal @calvin681 @sundargates @Andyz26...
6
3
0
[{"id": "G0", "claim": "The instance fromJSON overloads should be made static, or their semantic difference from the static toJson should be called out in comments.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The resourceID field of ClusterID should b...
null
Netflix__mantis__676
Netflix/mantis
676
defect
d773089b5dd0a79b2f09770b13a67908e5e7c4ee
7e6835f09143092333efe8e6b65eafdb434af61b
Emit failover events into the job autoscaler events to allow autoscaling decisions
### Context Explain context and other details for this pull request. ### Checklist - [ ] `./gradlew build` compiles code correctly - [ ] Added new tests where applicable - [ ] `./gradlew test` passes all tests - [ ] Extended README or added javadocs where applicable
diff --git a/docs/docs/operate/autoscalingstrategies.md b/docs/docs/operate/autoscalingstrategies.md index ff4d9aa7b..7d98d4d37 100644 --- a/docs/docs/operate/autoscalingstrategies.md +++ b/docs/docs/operate/autoscalingstrategies.md @@ -3,25 +3,42 @@ many workers to scale up/down a stage. They fall into 2 main categori...
4
4
1
[{"id": "G0", "claim": "The condition `reason == ScalingReason.AutoscalerManager` that makes a scale-up jump straight to maxWorkersForStage is no longer correct (the author's own todo on the line).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
Netflix__mantis__689
Netflix/mantis
689
defect
c1c7f34a1cdf2fea6a84575eb6f6b94eb3dc71a7
39b131f4107bbfcc43fa374139ea0e4b51eca05d
expose jobVersion, jobJarUrl as part of RuntimeTask interface
### Context Expose `jobVersion`, `jobJarUrl` as part of RuntimeTask interface. This allows us to add version and sha labels to our job metrics. We'd like these metric labels so we can monitor our automated job deploys. ### Checklist - [x] `./gradlew build` compiles code correctly - [ ] Added new tests where ...
diff --git a/mantis-control-plane/mantis-control-plane-core/src/main/java/io/mantisrx/server/core/ExecuteStageRequest.java b/mantis-control-plane/mantis-control-plane-core/src/main/java/io/mantisrx/server/core/ExecuteStageRequest.java index ef696d107..349e6ca3a 100644 --- a/mantis-control-plane/mantis-control-plane-cor...
2
2
1
[{"id": "G0", "claim": "Specific job metadata/metrics should not be added to the RuntimeTask entry interface; the reviewer prefers job version/jar-url accessors be kept off it and such metrics be constructed in the worker runtime (where MetricsRegistry and existing metrics paths live) instead.", "category": "design", "...
null
Netflix__mantis__715
Netflix/mantis
715
defect
a59f5f659ad105e0c5aea948dadd748655c09911
19ed6e62a4a474e0e5b9e13121ba7ded2b1a851a
ConsistentHashingRouter: Use XXH3 instead of 4 byte ketama for consis…
Eliminates a repeatable hash collision with a 40 worker stage 2. We can either go with extending the bits in `ketama` or using `xxh3`. I'm recommending `xxh3`. ### Context We ran into hash collisions when hashing slots on a 40 worker stage 2. This was a bit unexpected but very repeatable in the unit tests. If eith...
diff --git a/mantis-network/build.gradle b/mantis-network/build.gradle index 006f068ed..c7196b9b7 100644 --- a/mantis-network/build.gradle +++ b/mantis-network/build.gradle @@ -22,10 +22,11 @@ ext { dependencies { api "io.netty:netty-handler:$nettyVersion" implementation "io.mantisrx:mql-jvm:$mqlVersion" + ...
2
2
0
[{"id": "G0", "claim": "The zero-allocation-hashing dependency should not be pinned to version 0.16 in build.gradle.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ketamaExtended HashFunction is no longer needed now that the default implemen...
null
Netflix__mantis__728
Netflix/mantis
728
defect
880d2fcd5bd10ba95ed0f5cc7dc5c04536795c78
c52761610a69bf4db77b6553fbe0f76d108f8d9a
Fix Incorrect Cluster Size Update in ExperimentalControlLoop When Scaling Down is Disabled
## Context ### Background While monitoring the autoscaling behavior of our clusters, I observed an unexpected scale-down event in the shared MRE source ~3 AM PST, despite having scaling down disabled (new feature introduced for the next live event). This anomaly was not present in the PlayAPI source, which behave...
diff --git a/mantis-runtime-executor/src/main/java/io/mantisrx/server/worker/jobmaster/JobAutoScaler.java b/mantis-runtime-executor/src/main/java/io/mantisrx/server/worker/jobmaster/JobAutoScaler.java index c14d54625..c039f255a 100644 --- a/mantis-runtime-executor/src/main/java/io/mantisrx/server/worker/jobmaster/JobAu...
2
1
0
[{"id": "G0", "claim": "The scale request in scaleDownStage goes through masterClientApi.scaleJobStage as an observable/stream, which the reviewer suggests is not needed here.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a comment explaining what...
null
Netflix__mantis__732
Netflix/mantis
732
defect
735435f16f8806d77404164322f775fc747bec63
c7297cea45791c576a7f3a0faad26e82f3745495
report error creating cron
### Context Currently, initializing a job cluster with an incorrect cron schedule that cannot be parsed by Quartz silently errors with a warning log. We should return a response instead ### Checklist - [ ] `./gradlew build` compiles code correctly - [ ] Added new tests where applicable - [ ] `./gradlew test`...
diff --git a/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/jobcluster/JobClusterActor.java b/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/jobcluster/JobClusterActor.java index c9414cb17..a64b8b148 100644 --- a/mantis-control-plane/mantis-control-p...
2
2
2
[{"id": "G0", "claim": "The catch block should separate known cron errors (SchedulerException) from other exceptions and use a different error code and message for each.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "On a cron initialization error the ac...
null
Netflix__mantis__733
Netflix/mantis
733
defect
735435f16f8806d77404164322f775fc747bec63
eedfbd6ba54eeb001c409fec9cc4a95c1360276e
Fix scheduler double booking task executors
### Context Problem: When a TE is returned from here to be used for scheduling, its state remain active until the scheduler trigger another message to update (lock) the state. However when large number of the requests are active at the same time on same sku, the gap between here and the message to lock the state ca...
diff --git a/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/resourcecluster/ExecutorStateManagerImpl.java b/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/resourcecluster/ExecutorStateManagerImpl.java index 02489a5d0..59bec4297 100644 --- a/mantis-co...
1
1
0
[{"id": "G0", "claim": "Nit: format the new getLastSchedulerLeasedDuration() declaration so its opening-brace placement matches the file's style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Netflix__mantis__734
Netflix/mantis
734
defect
e90032d3ea94088c5858550aea44f91523551903
4fb26082b181a37e29472b746ffbf327f30b2810
Fix worker no heartbeat race condition
### Context A race condition was introduced from #731 when a heartbeat check happened between launch event and first heartbeat and can trigger NPE on the actor. Refactored the condition check on the case above + improve UTs to cover the related states. ### Checklist - [ ] `./gradlew build` compiles code corr...
diff --git a/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/jobcluster/job/JobActor.java b/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/jobcluster/job/JobActor.java index 6c6f457db..69005b140 100644 --- a/mantis-control-plane/mantis-control-plane-s...
1
1
0
[{"id": "G0", "claim": "Place the '// no heartbeat or heartbeat too old' comment above line 1946 (above the worker heartbeat-staleness if-condition) in JobActor.checkHeartBeats.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Netflix__mantis__784
Netflix/mantis
784
defect
be1148fef5677fdd8637bfff8a6d3c85a9480f31
eb0e8ad165980eb4d9227102979fc382cb5ea3f2
Handle out of sync restarted TE
### Update * Move the trigger from registration to onHeartbeat: registration is always on new container. what matters is the one reporting available after crash which is on heartbeat path. * Switched to use terminate worker event to ensure the actual list is refreshed. ### Context From https://github.com/Netflix/...
diff --git a/context/context-te-state-sync.md b/context/context-te-state-sync.md new file mode 100644 index 000000000..6316602af --- /dev/null +++ b/context/context-te-state-sync.md @@ -0,0 +1,123 @@ +# Problem +We recently hit a weird case that seems like a potential bug, or maybe a limitation. + +We have a 2 stage jo...
1
1
1
[{"id": "G0", "claim": "The targeted TaskExecutorReconnectedEvent notification only fires when a previous worker id was recorded on disconnection, so if the disconnection event was dropped (e.g. by a JVM segfault) the out-of-sync worker is never handled; the reviewer asks whether the design should instead broadcast (e....
null
Netflix__mantis__814
Netflix/mantis
814
defect
dfb4ed1108cfb96b906eecd0a42aa215e775f7bb
7f0e559d64affe0ab6e982f645fef0f3e316d830
Add job principal field for job cluster submit
### Context - Enable access control for the job cluster - Add new field job principal to allow user specify the principal when create the new job cluster, the principal will be used to enforce the job cluster management. Explain context and other details for this pull request. ### Backward compatibility R...
diff --git a/mantis-common/src/main/java/io/mantisrx/runtime/JobPrincipal.java b/mantis-common/src/main/java/io/mantisrx/runtime/JobPrincipal.java new file mode 100644 index 000000000..7afc53eaa --- /dev/null +++ b/mantis-common/src/main/java/io/mantisrx/runtime/JobPrincipal.java @@ -0,0 +1,58 @@ +/* + * Copyright 2019...
1
1
1
[{"id": "G0", "claim": "Adding the jobPrincipal field to NamedJobDefinition's constructor and JSON contract must be fully backward compatible, so existing payloads and clients without jobPrincipal keep working.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__mantis__843
Netflix/mantis
843
defect
bd6ecdf4176647c419d9f1ccd31f958a818ef572
01240fd245bd0e5033e72052daa746ef20d707df
Healthcheck Endpoint
### Context Adds a health check endpoint that verifies that all workers for every active job in a given job cluster have the status of `started`. Originally, the plan was to also include an interface that would allow plugging in custom health checks ([experimented with this here](https://github.com/Netflix/mantis/pu...
diff --git a/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/JobClustersManagerActor.java b/mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/JobClustersManagerActor.java index 00b2ebbd6..14716584f 100644 --- a/mantis-control-plane/mantis-control-plane-s...
6
3
0
[{"id": "G0", "claim": "The healthcheck response labels non-started (pending) workers as failed, and the types should be renamed to convey not-ready instead (suggested name: notReady).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The health lo...
null
Netflix__metacat__468
Netflix/metacat
468
defect
fcd1787bba10e00cba3e97a1fb23f8fb0580ba0d
0816042ac47189110e5caa604eca789ab37c88f5
added functional test for polaris
we start a single-node crdb container and run tests against it.
diff --git a/metacat-connector-polaris/build.gradle b/metacat-connector-polaris/build.gradle index a34627d63..87ad9cc9e 100644 --- a/metacat-connector-polaris/build.gradle +++ b/metacat-connector-polaris/build.gradle @@ -16,6 +16,18 @@ * */ +apply plugin: 'nebula.facet' + +facets { + functionalTest { + ...
4
2
0
[{"id": "G0", "claim": "The postgresql test dependency should be declared without a hardcoded version in build.gradle.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Setting spring.datasource.platform to h2db in the smoke-test config would insta...
null
Netflix__metacat__477
Netflix/metacat
477
defect
0328634659cabd0d52a42200f99080e6a8862f10
34209c3f83ce1343a255113d7ccd734fd2d2ae94
Add entity and storage classes for user metadata
- Added basic tests. Will add storage APIs in the next PR.
diff --git a/build.gradle b/build.gradle index 410c024f4..ff5e9a120 100755 --- a/build.gradle +++ b/build.gradle @@ -155,6 +155,7 @@ configure(javaProjects) { all*.exclude module: "slf4j-jdk14" all*.exclude module: "slf4j-log4j12" all*.exclude module: "log4j-to-slf4j" + all*.exclude mo...
6
2
1
[{"id": "G0", "claim": "Asks whether the crdb schema should use BIGINT instead of TIMESTAMP for date columns, given that on MySQL timestamp/date query performance (sort/index) was worse than bigint.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whe...
null
Netflix__metacat__490
Netflix/metacat
490
defect
81ca654409c6b5a4b94cf70be4ae6c09924afb2b
9b28ccb76c402eeab5e42ceb45fe400bf2d3ceae
Add polaris test catalog to integration tests
- Enable createDatabase tests - Enable plugin creation and init of the polaris connector with the rest of the metacat app.
diff --git a/metacat-connector-polaris/src/main/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseService.java b/metacat-connector-polaris/src/main/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseService.java index 248169ae0..ac7f95a96 100644 --- a/metacat-connector-polaris/src/main/...
1
1
1
[{"id": "G0", "claim": "Consider adding ON DELETE CASCADE to the TBLS foreign key on DBS(name) in the new crdb test-cluster schema.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__metacat__532
Netflix/metacat
532
defect
0efc6f6ae6fe67d2e902dbb7c004f559cf92b6e4
6e1c17374340c08dd536b05a97db0ac98d604139
Implement partition APIs for polaris connector
* Implemented the read-only APIs except the getPartitionNames. * All write APIs throw unsupported operation exception * Moved some common Iceberg specific code to IcebergTableHandler from the hive connector so we can reuse them in the polaris connector * Split the checkstyle rules for test with some rules relaxed: ...
diff --git a/build.gradle b/build.gradle index 6d66f0023..f1d4e7898 100755 --- a/build.gradle +++ b/build.gradle @@ -202,6 +202,10 @@ configure(javaProjects) { configFile = new File(project.parent.projectDir, "codequality/checkstyle/checkstyle.xml") } + checkstyleTest { + configFile = new File...
2
1
0
[{"id": "G0", "claim": "The new checkstyle-test.xml would be nicer refactored as a base config plus an override config to avoid duplicating checkstyle.xml, though the reviewer notes there seems to be no standard paved path for that currently.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "sco...
null
Netflix__metacat__565
Netflix/metacat
565
defect
2c0f4380536c776db8c0dc4731810946262998bb
186479753c1c9f5eee677f82efcd46b808d46bc3
use as of system time when listing tables to improve performance
**Context:** In the context of Polaris, some database may have large number of tables, and when listing them, crdb will hold the lock and prevents other db write operations to be performed, leading to high latency. **Blocker** Initially, I thought we can simply include the AS OF SYSTEM in @Query for JPA, which t...
diff --git a/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorTableServiceFunctionalTest.java b/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorTableServiceFunctionalTest.java new file mode 100644 index 000000...
3
1
0
[{"id": "G0", "claim": "The functional tests should not need Thread.sleep(10000) waits around create calls, because the create call should be synchronous and return the created object once it is done.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Concu...
null
Netflix__metacat__566
Netflix/metacat
566
defect
b4f73aaefdfc98a849b0936c80919245d0c50b1e
c39b912f20e737f8deebd14ab6aacb00971f7352
list table names with snapshot
Also makes list table names using the AS OF SYSTEM TIME semantics. 1. Basically reuse the previous AS OF SYSTEM TIME implementation to include used case for listing table names 2. Move some unit tests to functional tests related to list table names since AS OF SYSTEM TIME is only supported in crdb
diff --git a/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorTableServiceFunctionalTest.java b/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorTableServiceFunctionalTest.java index c94d04b57..5b647e348 100644...
3
3
0
[{"id": "G0", "claim": "The hardcoded page-size literal 1000 in the listNames getTables call should be extracted into a named constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded page-size literal 1000 in the getTableNames getT...
null
Netflix__metacat__589
Netflix/metacat
589
defect
ea1c8c168ab812cb8d0060b910527fc7d9323503
289adeeece4a0292ba1a22aa7717fe3030a8feda
Yingjianw/list db with follower reader timestamp
As we see more dbs added to our metadata service, the load on crdb increases when there are many listDB calls, and we see only subset of certain nodes in our cluster experiencing high cpu usage. Thus, in order to better spread the traffic, for list dbs operation, we are going to use the read_follower_timestamp. U...
diff --git a/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceFunctionalTest.java b/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceFunctionalTest.java new file mode 100644 index ...
4
2
2
[{"id": "G0", "claim": "The revert changes should be separated out from the core logic changes to make the pull request cleaner.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The @Transactional annotation added to the delete method should be remov...
null
Netflix__metacat__636
Netflix/metacat
636
defect
4fd881b112f70076b58d85a0e0eba02e8fcfc512
8247d8f4eeda8e1f3ac0ca3cc2298ef498d66469
Adding common view support to the Polaris Connector
- Added support for table parameters in Polaris - Added support for handling common views during CREATE/READ/UPDATE in PolarisConnectorTableService - Repurposed the existing CommonViewHandler to replicate existing behavior.
diff --git a/metacat-connector-polaris/src/functionalTest/resources/schema.sql b/metacat-connector-polaris/src/functionalTest/resources/schema.sql index aae7a9c23..9b91312fd 100644 --- a/metacat-connector-polaris/src/functionalTest/resources/schema.sql +++ b/metacat-connector-polaris/src/functionalTest/resources/schema...
3
3
3
[{"id": "G0", "claim": "The PR should skip writing and loading table params for normal iceberg tables and restrict the params logic to views only, to optimize the common case and avoid unintended behavior changes for tables.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
Netflix__metacat__676
Netflix/metacat
676
defect
885d2ea07f4fc2428195e2e021e8a6cd94dd8984
b8687e3c27886acc29a99eba4ad503292a39a350
Adding support for DBS_PARAMS in the polaris connector so it is in parity with hms
Adding support for key/value metadata on polaris dbs in parity of older HMS dbs. This will support full polaris migration and allow us to support the existing HMS dbs behavior. - Adding params `Map<String, String>` to polaris DBS entity to support key value metadata - Updating Mappers/Connectors/Store to read/write...
diff --git a/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceFunctionalTest.java b/metacat-connector-polaris/src/functionalTest/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceFunctionalTest.java index 5bf9bdb1f..c465c52ab ...
2
2
1
[{"id": "G0", "claim": "The null-to-empty-HashMap conversion checks in PolarisDatabaseMapper (toInfo and toEntity) are unnecessary because StringParamsConverter already converts null db values to empty maps and null or empty entity values to null.", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
Netflix__metaflow__1034
Netflix/metaflow
1,034
defect
d977cd44839e82e70de3c019a9c6e6f89a3e9a04
ba8e80d1a3e6f00ba23b26ea9560d4b87cc47eb5
Address issues with S3 get and ranges
This addresses two issues: - get and get_many would not properly populate the range_info in S3Object - get_many on different ranges of the same file would return incorrect results
diff --git a/metaflow/datatools/s3.py b/metaflow/datatools/s3.py index 8733f1eeb75..7d42384de9d 100644 --- a/metaflow/datatools/s3.py +++ b/metaflow/datatools/s3.py @@ -1,5 +1,6 @@ import json import os +import re import sys import time import shutil @@ -60,6 +61,8 @@ def ensure_unicode(x): "RangeInfo", "tota...
2
2
0
[{"id": "G0", "claim": "The invalid-range branch should use S3's documented error code 416 instead of the internal code 601, for consistency with S3's interface.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unconditional DO_TEST_RUN guard arou...
null
Netflix__metaflow__1039
Netflix/metaflow
1,039
defect
d977cd44839e82e70de3c019a9c6e6f89a3e9a04
ec0561c1985cac3afac86b171fa89a875adcfa6e
[tag-mutation-project] Stash system info in task metadata
This is part of project to add tag mutation support. RFC [here](https://www.notion.so/outerbounds/RFC-Implementing-tag-mutation-98ef6ba39aee4aeeb9c6150b4cffea2a) (see "Consolidate tagging to Runs") A side effect of consolidating tagging to Runs on the read paths is that Task-level tags and system_tags are no longer ...
diff --git a/metaflow/metadata/metadata.py b/metaflow/metadata/metadata.py index c20b441f09e..6ec557e2c49 100644 --- a/metaflow/metadata/metadata.py +++ b/metaflow/metadata/metadata.py @@ -6,8 +6,7 @@ from datetime import datetime from metaflow.exception import MetaflowInternalError -from metaflow.util import get_u...
5
4
0
[{"id": "G0", "claim": "The date should not be stored as system information (see the linked PR 917 discussion), and the PR summary should note its removal.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "add_sticky_tags in MetadataObject.__init__ will sti...
null
Netflix__metaflow__1043
Netflix/metaflow
1,043
defect
d977cd44839e82e70de3c019a9c6e6f89a3e9a04
d09821ef2d0143db007462942fdadafa4aa2998a
[tag-mutation-project] Local metadata provider - object read paths to return ancestral Run tags
This is part of project to add tag mutation support. RFC [here](https://www.notion.so/outerbounds/RFC-Implementing-tag-mutation-98ef6ba39aee4aeeb9c6150b4cffea2a) (see "Consolidate tagging to Runs") This is analogous to [this change](https://github.com/Netflix/metaflow-service/pull/315) on metadata service. The ma...
diff --git a/metaflow/client/core.py b/metaflow/client/core.py index 9df206adb5d..5e26ea0627c 100644 --- a/metaflow/client/core.py +++ b/metaflow/client/core.py @@ -1488,10 +1488,7 @@ def control_task(self): Task A control task in the step """ - children = super(Step, self).__iter_...
6
6
0
[{"id": "G0", "claim": "The task-metadata scan in Step.control_tasks can be skipped with a fast path when is_control_task is already true.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment lines added in Step.control_tasks are too long and ...
null
Netflix__metaflow__1174
Netflix/metaflow
1,174
defect
6a159ffb1a96e8dc82f6aac83b99bda58bf75ec0
9bc8efdaca6742a54476f889763b801935489920
Fix `._orig` access for submodules for MF extensions
This addresses an issue where submodules like `mymodule._orig.submodule` would not load properly. This will properly load things like `from .foofa import xyz` from a module or sub-module in the original location but currently does not work if the import path is absolute.
diff --git a/metaflow/extension_support.py b/metaflow/extension_support.py index 829889d5960..38b0480721b 100644 --- a/metaflow/extension_support.py +++ b/metaflow/extension_support.py @@ -924,15 +924,22 @@ def exec_module(self, module): class _OrigLoader(Loader): - def __init__(self, fullname, orig_loader, pre...
1
1
1
[{"id": "G0", "claim": "The PR's changes would merit some additional tests (e.g. a test extension that overrides something simple and accesses _orig), which the reviewer offers to add if the author thinks it worthwhile.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__metaflow__1236
Netflix/metaflow
1,236
defect
091e9e2649eef1f63ae43beda4e95d0535f5bb7b
b080d78ece4d459671c6b3d86b81e508a01adea3
Add kubernetes labels
This adds support for adding kubernetes labels to pods. Either via the kubernetes decorator with `labels={"label": "value", "label2": "value2"}`, with an env var `METAFLOW_KUBERNETES_LABELS="label=value,label2=value2"`, or add to the with command `python hello_world.py run --with kubernetes:labels="cli_label=cli_value...
diff --git a/metaflow/metaflow_config.py b/metaflow/metaflow_config.py index 8bc78adee99..23528767f4a 100644 --- a/metaflow/metaflow_config.py +++ b/metaflow/metaflow_config.py @@ -244,6 +244,8 @@ KUBERNETES_NODE_SELECTOR = from_conf("KUBERNETES_NODE_SELECTOR", "") KUBERNETES_TOLERATIONS = from_conf("KUBERNETES_TOLER...
18
12
5
[{"id": "G0", "claim": "The new labels attribute should be validated (e.g. along the lines of Airflow's label generator and the Kubernetes label syntax rules).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Reviewer asks whether metaflow tags and th...
null
Netflix__metaflow__1436
Netflix/metaflow
1,436
defect
74a87900bc4483dc43724917c64c98cf715f54f5
5b300268eaf420f8a8a646100396b2c18394886f
feat: ability to use ServerSideEncryption for S3 uploads
This PR allows users to enable Server-Side Encryption (SSE) for S3 uploads through the use of the `METAFLOW_S3_SERVER_SIDE_ENCRYPTION` configuration setting. See [this PR](https://github.com/Netflix/metaflow/pull/1382) for prior conversations regarding the topic.
diff --git a/metaflow/metaflow_config.py b/metaflow/metaflow_config.py index e662bf22bf3..aee36253910 100644 --- a/metaflow/metaflow_config.py +++ b/metaflow/metaflow_config.py @@ -74,6 +74,9 @@ S3_ENDPOINT_URL = from_conf("S3_ENDPOINT_URL") S3_VERIFY_CERTIFICATE = from_conf("S3_VERIFY_CERTIFICATE") +# Set ServerSi...
1
1
0
[{"id": "G0", "claim": "Run the pull request's code through Black formatting so the repository's pre-commit code-style step passes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__metaflow__1546
Netflix/metaflow
1,546
defect
2b1eab83f64f8d6034504f51ca9aa828400e0d05
64e0938ad2688d27c67beb919ad42abb422f54e0
Check for the first finished parallel proccess
This fixes https://github.com/Netflix/metaflow/issues/1316 to optimize the parallel map runs by checking for the first finished process instead of waiting for the first process before checking others.
diff --git a/metaflow/multicore_utils.py b/metaflow/multicore_utils.py index 1ac81039c12..55704623d5b 100644 --- a/metaflow/multicore_utils.py +++ b/metaflow/multicore_utils.py @@ -4,6 +4,7 @@ from itertools import islice from multiprocessing import cpu_count from tempfile import NamedTemporaryFile +import time t...
1
1
1
[{"id": "G0", "claim": "The fixed 1-second sleep between waitpid polls makes very short tasks take at least 1 second; the reviewer asks to either skip the sleep (tight polling) or start with no sleep and add one only after a while.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
Netflix__metaflow__1568
Netflix/metaflow
1,568
defect
0c495247a1b6860c3d47180ff8d24c2fe8ffb1d4
8464b54e97c926f197047bf92acebadc5a4ad307
feature: custom annotations revisited
reintroduces the feature first merged in #1442 which had to be reverted in #1516 due to a regression that broke annotations for recording user and project info. This feature keeps the 'system annotations' outside of the decorator scope, as in many cases the `current` singleton is not initialized to its full extent. ...
diff --git a/metaflow/metaflow_config.py b/metaflow/metaflow_config.py index 71d9beecb6a..ccc7c9ec2e1 100644 --- a/metaflow/metaflow_config.py +++ b/metaflow/metaflow_config.py @@ -283,6 +283,8 @@ KUBERNETES_SECRETS = from_conf("KUBERNETES_SECRETS", "") # Default labels for kubernetes pods KUBERNETES_LABELS = from_c...
9
5
2
[{"id": "G0", "claim": "The convenience annotations (production_token, owner, user, flow_name) set in the shared helper are applied to all Argo objects including Sensors, and the author asks whether they make sense for all objects or should be kept out of the helper.", "category": "design", "verdict": "uncertain", "pri...
null
Netflix__metaflow__1956
Netflix/metaflow
1,956
defect
d4a95dc6f5eab2ba006a8bd079052260e3423015
89424e4194cf733d836c7024fd3e1791b723ae7f
[Ready for Review] Fix issue where resuming on successful run will fail.
when running resume with `python flow.py resume {step_name}`, user may want to rerun the "step" and continue with the execution. In current code, we will blindly copy everything as long as the step was successful. The proposed change will look at step in topological order and skip cloning the ones on and after the s...
diff --git a/metaflow/cli.py b/metaflow/cli.py index 93e8463dbdf..b7031ae169c 100644 --- a/metaflow/cli.py +++ b/metaflow/cli.py @@ -650,7 +650,7 @@ def resume( ) if step_to_rerun is None: - clone_steps = set() + rerun_steps = set() else: # validate step name if ...
7
6
1
[{"id": "G0", "claim": "The single pass of _update_rerun_steps over sorted_nodes probably needs to be run until stability to capture all rerun steps.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Clean out the may_clone flags and remove all resume st...
null
Netflix__metaflow__2282
Netflix/metaflow
2,282
defect
a19e782bada0bb62f718379702da269c39f9f097
4045d55e2d4dafe2eedc897b500b68a93157fa08
Add metaflow-diff to main CLI
Had to shorten the help text to prevent it being chopped off: ``` metaflow help Usage: metaflow [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Commands: admin Execute admin commands. code Metaflow code commands debug Post/Pre Step debugging comman...
diff --git a/metaflow/cmd/code/__init__.py b/metaflow/cmd/code/__init__.py new file mode 100644 index 00000000000..6121ce62b73 --- /dev/null +++ b/metaflow/cmd/code/__init__.py @@ -0,0 +1,226 @@ +import os +import shutil +import sys +from subprocess import PIPE, CompletedProcess, run +from tempfile import TemporaryDire...
10
7
2
[{"id": "G0", "claim": "The patch command's docstring should read 'Create a patch by comparing current dir with a Metaflow run.' instead of 'Create a patch file for the current dir with a Metaflow run.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
Netflix__metaflow__2306
Netflix/metaflow
2,306
defect
dd6588261bc92fb19347208700f9d6f4c4a0b3d6
744cba95517c48c2014400064502587fc29a5f9a
@pypi/@conda parsers ...
... for requirements.txt, conda.yaml, pyproject.toml ``` from metaflow import Config, pypi, FlowSpec, requirements_txt_parser, step class MyFlow(FlowSpec): reqs = Config("reqs", default="requirements.txt", parser=requirements_txt_parser) @pypi(**reqs) @step def start(self): self.ne...
diff --git a/metaflow/__init__.py b/metaflow/__init__.py index 418940216b5..de527614236 100644 --- a/metaflow/__init__.py +++ b/metaflow/__init__.py @@ -119,6 +119,13 @@ class and related decorators. # Decorators from .decorators import step, _import_plugin_decorators +# Config parsers +from .plugins.pypi.parsers i...
3
2
1
[{"id": "G0", "claim": "The parsers should raise a MetaflowException-derived exception instead of ValueError, since ValueError bubbles up uncaught and dumps a full stack trace to stdout.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parser should ei...
null
Netflix__metaflow__2329
Netflix/metaflow
2,329
defect
71a5e8c89054d6ffbd953233abb3e5d4cbfa8e49
e71b699c8d6ffa0182633d475f5c24132b59fcc7
[RFR] S3 bugfixes
This PR fixes several issues which caused s3op to be stuck: 1. Need to call `queue.cancel_join_thread()` so that the workers can exit without flushing the queue, otherwise there is a deadlock 2. Catch the correct exceptions in download/upload (they don't actually raise `ClientError`) 3. Handle `InternalError` 4. Ha...
diff --git a/.github/workflows/metaflow.s3_tests.yml b/.github/workflows/metaflow.s3_tests.yml index b7f47ac8490..5ffbcb02b5f 100644 --- a/.github/workflows/metaflow.s3_tests.yml +++ b/.github/workflows/metaflow.s3_tests.yml @@ -14,7 +14,7 @@ permissions: read-all jobs: test_data: - if: (github.event.action ==...
10
7
0
[{"id": "G0", "claim": "convert_to_client_error parses a botocore error-message format that is not an interface guaranteed by boto3 and can change at any point, so the matching may break.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assert in ...
null
Netflix__metaflow__2616
Netflix/metaflow
2,616
defect
cf0bf63077f5f3abe818e4f9299f54e5af56f981
8ca38c75a25ed4938e7b55f8c9cea89c0abed0eb
[S3] Log original error code for transient errors
Currently, it's difficult to tell why transient S3 operations are retrying. Added the original error code to the logs. Example: ``` Transient S3 failure (attempt #1) -- total success: 1, last attempt 1/2 -- remaining: 1 (ParamValidationError) Transient S3 failure (attempt #2) -- total success: 1, last attempt 0/1...
diff --git a/metaflow/plugins/datatools/s3/s3.py b/metaflow/plugins/datatools/s3/s3.py index e6f3b2984b4..f9f22de50b4 100644 --- a/metaflow/plugins/datatools/s3/s3.py +++ b/metaflow/plugins/datatools/s3/s3.py @@ -1760,15 +1760,30 @@ def try_s3_op(last_ok_count, pending_retries, out_lines, inject_failures): ...
3
1
0
[{"id": "G0", "claim": "The result-parsing loop overwrites transient_error_type for each transient error found, so if different workers encounter different transient error types only the last one processed is retained, potentially losing important diagnostic information.", "category": "correctness", "verdict": "uncerta...
null
Netflix__metaflow__2703
Netflix/metaflow
2,703
defect
db6fc5e7b1eae699801fb7032613bbabce182415
ecc84aa5052cb4d1c8caf1fbe049c0a811808e1c
[S3] raise error on s3 retry exhaustion
When `put_many()` or `put_files()` exhausted all transient retry attempts, the operations would silently return partial results instead of raising an exception.
diff --git a/metaflow/plugins/datatools/s3/s3.py b/metaflow/plugins/datatools/s3/s3.py index 850b9ff5d07..e60974a2668 100644 --- a/metaflow/plugins/datatools/s3/s3.py +++ b/metaflow/plugins/datatools/s3/s3.py @@ -1371,7 +1371,9 @@ def _check(): def _one_boto_op(self, op, url, create_tmp_file=True): erro...
2
2
0
[{"id": "G0", "claim": "Remove the stale comment fragment 'per top-level retry' from the transient_retry_count initialization line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Reword the comment block about the transient-failure special cas...
null
Netflix__metaflow__2933
Netflix/metaflow
2,933
defect
1559be9d93156b8dd2fd819d4bca20b7d2f1cdf5
0399125d42650541479c04403a1b8f7ca7537e2a
Fix #2923: Changed CSV Parsing to DictReader in tutorial 01 and 02
## PR Type <!-- Check one --> - [x] Bug fix - [ ] New feature - [ ] Core Runtime change (higher bar -- see [CONTRIBUTING.md](../CONTRIBUTING.md#core-runtime-contributions-higher-bar)) - [ ] Docs / tooling - [ ] Refactoring ## Summary There was an inaccuracy in parsing CSV to dataframe in [playlist.py](h...
diff --git a/metaflow/tutorials/01-playlist/playlist.py b/metaflow/tutorials/01-playlist/playlist.py index f1a89f58a91..edbc17abb17 100644 --- a/metaflow/tutorials/01-playlist/playlist.py +++ b/metaflow/tutorials/01-playlist/playlist.py @@ -50,25 +50,17 @@ def start(self): Parse the CSV file and load the value...
7
4
2
[{"id": "G0", "claim": "The dataframe keys are duplicated in the dict literal and in the append calls, so the keys should live in one array that the code loops over.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Using csv.DictReader(self.movie_...
null
Netflix__metaflow__2943
Netflix/metaflow
2,943
defect
9770c473b585828748e53fa6dd551a32e2a74e0e
d1351da5863f507be6aa9695363ceaa000496cff
fix: use `path_key` instead of stale `path` in `load_blobs` error messages
## PR Type - [x] Bug fix ## Summary Fix `ContentAddressedStore.load_blobs` so error messages report the actually-failing blob's path. The three `DataException` raises in the inner loop referenced a stale outer-loop variable, causing diagnostics to point at the wrong blob. ## Issue No tracking issue. Found by code ...
diff --git a/metaflow/datastore/content_addressed_store.py b/metaflow/datastore/content_addressed_store.py index 9b24a482a89..0a34b7a9992 100644 --- a/metaflow/datastore/content_addressed_store.py +++ b/metaflow/datastore/content_addressed_store.py @@ -177,7 +177,7 @@ def load_blobs(self, keys, force_raw=False, is_tran...
1
1
1
[{"id": "G0", "claim": "The PR description/checklist claims unit tests were added, but the diff contains no test changes, leaving the three load_blobs error branches untested; include the promised unit tests (or update the description to match what is merged).", "category": "testing", "verdict": "supported", "priority"...
null
Netflix__metaflow__3132
Netflix/metaflow
3,132
defect
c6373f9be04a772519e43c61a5ac537e3fdcf05c
7b21e8262e2e2f485122c596ce87b221082592d6
Preserve dashed tags in metaflow version parsing and public-version stripping
## Summary `format_git_describe` crashed with `ValueError: too many values to unpack (expected 3)` when the latest reachable tag contained a dash (e.g. a PEP 440 pre-release like `v1.0-rc.1`). The crash happened during interpreter startup in `get_version()`, before the fallback to the recorded `__version__` could run,...
diff --git a/metaflow/metaflow_version.py b/metaflow/metaflow_version.py index ee367d5e77a..90a16f1d53e 100644 --- a/metaflow/metaflow_version.py +++ b/metaflow/metaflow_version.py @@ -106,13 +106,20 @@ def format_git_describe(git_str, public=False): if git_str is None: return None splits = git_str.s...
2
1
0
[{"id": "G0", "claim": "When the dirty branch is reached with only three dash-separated tokens (e.g. \"a-b-dirty\"), the tag becomes an empty string, so the branch deserves its own minimum-length guard returning None for robustness against malformed input.", "category": "correctness", "verdict": "supported", "priority"...
null
Netflix__pollyjs__185
Netflix/pollyjs
185
defect
760514cae28674c615d5e3af4da11128bfecc533
ef3ddcf12e524a5191eccbe3a6edcaaae0194744
feat: Add `error` event and improve error handling
Resolves #181 ```js server.any().on('error', (req, error) => { console.error(error); process.exit(1); }); ```
diff --git a/docs/server/events-and-middleware.md b/docs/server/events-and-middleware.md index cfbb27ff..05aef597 100644 --- a/docs/server/events-and-middleware.md +++ b/docs/server/events-and-middleware.md @@ -126,6 +126,24 @@ server.any().on('beforeReplay', (req, recording) => { }); ``` +### error + +Fires when a...
2
1
0
[{"id": "G0", "claim": "The `xhr.status || 500` fallback in the test util could mask a future bug in the test suite (i.e. can it be avoided?).", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be left on why the adapter aborts the requ...
null
Netflix__pollyjs__216
Netflix/pollyjs
216
defect
741762726648d35cdc2b94cd48ceaf52fac905c0
172d3d95372559dc62d4955f95bd7e84a3d76dc1
feat(adapter-xhr): Support `context` option
<!--- Provide a general summary of your changes in the Title above --> ## Description Add support for mocking the XHR global on a given context (like we currently support with the fetch adapter). ```js { adapterOptions: { xhr: { context: win } } } ``` ## Motivation and Context Resolves #20...
diff --git a/docs/adapters/xhr.md b/docs/adapters/xhr.md index 6782d8c5..0066d2a9 100644 --- a/docs/adapters/xhr.md +++ b/docs/adapters/xhr.md @@ -44,3 +44,25 @@ polly.connectTo('xhr'); // Disconnect using the `disconnectFrom` API polly.disconnectFrom('xhr'); ``` + +## Options + +### context + +_Type_: `Object` +_De...
1
1
0
[{"id": "G0", "claim": "Use a WeakMap/WeakSet to track stubbed XHRs instead of adding an extra IS_STUBBED property to the objects we don't own.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__pollyjs__259
Netflix/pollyjs
259
defect
28cdcde3a7c7c866c68176f81392666fcb82aa5a
5d2cb036fa34db1c37c3a1f1829f74657f8c5846
fix(adapter-fetch): Correctly handle Request instance passed into fetch
<!--- Provide a general summary of your changes in the Title above --> ## Description Correctly handle passing a Request instance to fetch. ```js fetch(new Request('/api/foo', { method: 'POST' }), { body: 'bar' }); ``` ## Motivation and Context Resolves #255. The approach taken to solve for this is...
diff --git a/packages/@pollyjs/adapter-fetch/src/index.js b/packages/@pollyjs/adapter-fetch/src/index.js index ee4ec029..6d4ad77f 100644 --- a/packages/@pollyjs/adapter-fetch/src/index.js +++ b/packages/@pollyjs/adapter-fetch/src/index.js @@ -5,6 +5,8 @@ import serializeHeaders from './utils/serializer-headers'; con...
2
2
1
[{"id": "G0", "claim": "Tests should be added covering the new patched Request class (the Request stub).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fetch handler could use `instanceof Request` instead of the `IS_REQUEST` prop to detect a Request...
null
Netflix__pollyjs__273
Netflix/pollyjs
273
defect
ee25c77f1f469f20754b458b582319947f727c7b
6251b2e75e8ca0c9bb5cd2c313fc6129ff4769de
feat(adapter-node-http): Upgrade nock to v11.x
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Motivation and Context Resolves #263, #264 ## Types of Changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [...
diff --git a/packages/@pollyjs/adapter-node-http/package.json b/packages/@pollyjs/adapter-node-http/package.json index 03a4ab89..cca72f8a 100644 --- a/packages/@pollyjs/adapter-node-http/package.json +++ b/packages/@pollyjs/adapter-node-http/package.json @@ -46,8 +46,7 @@ "@pollyjs/adapter": "^2.6.3", "@polly...
3
3
0
[{"id": "G0", "claim": "The external dependency list added in rollup.config.test.js should be exported and imported by the rollup configs so only a single set of external deps is maintained.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
Netflix__pollyjs__291
Netflix/pollyjs
291
defect
92f05d2c5f477ab96d8a7a35bb5f6a546f9ea2b9
b985f36b22a83f0ad32d99bc440d69ed14c354b4
fix(core): Disconnect from all adapters when `pause` is called
<!--- Provide a general summary of your changes in the Title above --> ## Description Calling `polly.pause()` will now disconnect from all connected adapters instead of setting the mode to passthrough. Calling `polly.play()` will reconnect to the disconnected adapters before pause was called. ## Motivation and...
diff --git a/docs/api.md b/docs/api.md index dcae96e8..f5f8b2f1 100644 --- a/docs/api.md +++ b/docs/api.md @@ -181,30 +181,36 @@ polly.replay(); ### pause -Puts polly in a paused mode. All requests going forward will pass through -and will not be recorded or replayed. The previous mode will be saved and can -be re...
2
2
0
[{"id": "G0", "claim": "Should add a test asserting on the behavior of _order when a pause and play occurs with requests in between, to prevent a regression and solidify expected behavior.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The node 8 build ...
null
Netflix__pollyjs__294
Netflix/pollyjs
294
defect
4e3163fe51558a382b37f3d868a7390f5173cf8c
8e867dabe379fc01e11748758be83f214f41de4a
fix(adapter): Clone the recording entry before mutating it
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Clone the recording entry before the `beforeReplay` event so any changes will not actually persist to the stored recording. ## Motivation and Context <!--- Why is this change r...
diff --git a/packages/@pollyjs/adapter/src/index.js b/packages/@pollyjs/adapter/src/index.js index 02239cb8..f5f2a472 100644 --- a/packages/@pollyjs/adapter/src/index.js +++ b/packages/@pollyjs/adapter/src/index.js @@ -153,9 +153,18 @@ export default class Adapter { async replay(pollyRequest) { const { config...
1
1
0
[{"id": "G0", "claim": "Create a new variable `clonedRecordingEntry` for the clone instead of reassigning `recordingEntry` to it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__pollyjs__305
Netflix/pollyjs
305
defect
b9306c3acf58aa1cadc8f51d40ffbcd7cec000e6
5b54ecf9b18842f312bdea9db114e5c38ad3d9f3
test: Updates the jest-puppeteer example
fixes #290 Pretty sure our other examples need some love also, I'll deal with them in a future PR.
diff --git a/examples/jest-puppeteer/__recordings__/jest-puppeteer_2726822272/should-be-able-to-navigate-to-all-routes_1130491217/recording.har b/examples/jest-puppeteer/__recordings__/jest-puppeteer_2726822272/should-be-able-to-navigate-to-all-routes_1130491217/recording.har index e4241fa4..afba5617 100644 --- a/examp...
1
1
0
[{"id": "G0", "claim": "The example should declare the polly packages as registry version ranges known to be compatible (rather than file: links to local packages, which force a monorepo build before the tests can run), so the example stays self-contained and its dependencies can be updated at leisure while staying sta...
null
Netflix__pollyjs__320
Netflix/pollyjs
320
defect
c2e9744df68698469e7e4e7f6668a75ac49d54c7
9f302b2f4a8ba35b07099c409eef90ce7837d9a4
fix: Improve abort handling
<!--- Provide a general summary of your changes in the Title above --> ## Description Improve overall abort handling across the adapters. ## Motivation and Context Resolves #316. ## Types of Changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> ...
diff --git a/packages/@pollyjs/adapter-fetch/src/index.js b/packages/@pollyjs/adapter-fetch/src/index.js index 8f84a42f..1edbaa4b 100644 --- a/packages/@pollyjs/adapter-fetch/src/index.js +++ b/packages/@pollyjs/adapter-fetch/src/index.js @@ -134,6 +134,18 @@ export default class FetchAdapter extends Adapter { thi...
2
2
2
[{"id": "G0", "claim": "Tests for abort handling still need to be added to the other adapters (xhr and node-http), since at S1 only the fetch adapter has an aborting test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The abort event listeners register...
null
Netflix__pollyjs__66
Netflix/pollyjs
66
defect
edc45d8e3fea3b82a43c4db445a83e93ee29e471
79e7e23ce444d65bd5f8e5728ab3be67ac961394
feat: Fetch adapter support for `context` provided via adapterOptions
I'll update the docs also. I can't apply the same treatment to the XHR adapter since `nise` doesn't enable providing a context object. I think we spoke about this already, but mentioning again. Resolves #56
diff --git a/packages/@pollyjs/adapter-fetch/src/index.js b/packages/@pollyjs/adapter-fetch/src/index.js index d48a277d..2787ec27 100644 --- a/packages/@pollyjs/adapter-fetch/src/index.js +++ b/packages/@pollyjs/adapter-fetch/src/index.js @@ -1,23 +1,32 @@ import Adapter from '@pollyjs/adapter'; import { Fetch as Fet...
5
4
2
[{"id": "G0", "claim": "The concurrency tests should provide the adapter via `configure` instead of `connectTo` so that the constructor assignment happens and cleanup (i.e. `stop()`) is exercised.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Fetc...
null
Netflix__pollyjs__75
Netflix/pollyjs
75
defect
8d91422de449b7fe45fee7f7941e4394da18478c
41f393ae2ab00723be517816fa85a5db08c42462
feat: Wait for all handled requests to resolve via `.flush()`
Resolves #71.
diff --git a/packages/@pollyjs/adapter/src/index.js b/packages/@pollyjs/adapter/src/index.js index 0afbbcfd..05e5b1f7 100644 --- a/packages/@pollyjs/adapter/src/index.js +++ b/packages/@pollyjs/adapter/src/index.js @@ -87,17 +87,27 @@ export default class Adapter { } } - handleRequest() { - return this[RE...
2
2
0
[{"id": "G0", "claim": "Explain the role of the NOOP callbacks in flush()'s Promise.all mapping, which is unexplained in the code.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "DeferredPromise should be part of @pollyjs/core since it is only used...
null
Netflix__pollyjs__78
Netflix/pollyjs
78
defect
4f845e5fcfde18f55715d98d40dd6fec6e95911b
2fc18e7f69e4114b5a638568218401447a6c3a4a
fix: Improve support for relative URLs
- Create a shared parseUrl utility that will make sure to match the provided URL string to a url-parse instance - Support for protocol-relative URLs (Resolves #76)
diff --git a/packages/@pollyjs/core/src/-private/request.js b/packages/@pollyjs/core/src/-private/request.js index 442b58c4..1251575d 100644 --- a/packages/@pollyjs/core/src/-private/request.js +++ b/packages/@pollyjs/core/src/-private/request.js @@ -3,7 +3,7 @@ import URL from 'url-parse'; import stringify from 'fast...
1
1
1
[{"id": "G0", "claim": "Add a test covering the `true` argument that parseUrl is called with in a few places, since its effect (passing it through to url-parse) is untested and its use was unclear.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__ribbon__190
Netflix/ribbon
190
defect
3545c878624e7170f040ed6f963bb4f084065b88
1c3ff738b2089a12a8393f97b128b4ed4660d265
Throwing a proper RuntimeException when a property could not be loaded f...
...or a client because it didn't have a property name after the namespace The load method throws a `java.lang.StringIndexOutOfBoundsException` currently for properties like this - myclient.ribbon.=baz myclient.ribbon=bar This PR throws a `java.lang.RuntimeException` with the name of the property which is invalid in ...
diff --git a/ribbon-core/src/main/java/com/netflix/client/config/DefaultClientConfigImpl.java b/ribbon-core/src/main/java/com/netflix/client/config/DefaultClientConfigImpl.java index afdbdeaf2..4bceb5664 100644 --- a/ribbon-core/src/main/java/com/netflix/client/config/DefaultClientConfigImpl.java +++ b/ribbon-core/src/...
3
1
1
[{"id": "G0", "claim": "The new test only asserts a RuntimeException, which would have passed before this change since StringIndexOutOfBoundsException is one, so it should use a more specific exception or check the actual property name in the error message.", "category": "testing", "verdict": "supported", "priority": "...
null
Netflix__ribbon__262
Netflix/ribbon
262
defect
33daee0f1582ec4580192f859ee2084bd715c99b
84d88c74b09ed07610fc7ceb481fd907d9cb9f72
Add atomic cyclic counting to RoundRobinRule.
Replaced the AtomicLong implementation of our cyclic counting code with an AtomicInteger that rotates back to 0 if it hits its max value so we do the "right thing". Also did a bit of clean-up and fixed one of the unit tests that was unstable.
diff --git a/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/RoundRobinRule.java b/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/RoundRobinRule.java index 1a07869ac..27512ef6e 100644 --- a/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/RoundRobinRule.java +++ b/ribbon-loadbalancer/sr...
4
3
1
[{"id": "G0", "claim": "The boolean flag constants in RoundRobinRule should be capitalized (e.g. AVAILABLE_ONLY_SERVERS instead of availableOnlyServers).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A cleaner API would add getUpServerList()/ge...
null
Netflix__ribbon__276
Netflix/ribbon
276
defect
a67add6317c157ae213859def963e3091113be4b
d5e5e0d90b9f6bcce948e24ac0cc320cf7ef2b12
(take 2 of) Adding eureka aware Loadbalancers that make use of new notification mechanism from eurekClient
Changes: - Factored update logic out of DynamicServerListLoadBalancer into pluggable ServerListUpdaters. - Provided backwards compatible PollingServerListUpdater - Provided new notification based EurekaNotificationServerListUpdater - Added unit tests How to enable: add to existing set of client props: ``` <some-clie...
diff --git a/build.gradle b/build.gradle index bafdd0bc7..c574dfc96 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'nebula.netflixoss' version '2.2.9' + id 'nebula.netflixoss' version '2.2.10' } // Establish version and status diff --git a/gradle.properties b/gradle.properties in...
6
3
1
[{"id": "G0", "claim": "EurekaClient should be injected directly into DiscoveryEnabledNIWSServerList instead of through a Provider.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "lastUpdated in PollingServerListUpdater should be declared volatile instead...
null
Netflix__ribbon__340
Netflix/ribbon
340
defect
ff4b5feedc7760337e1f748999187270fd327893
64e5ccbe074ec8cc2fb69bf1de048c28bfca2b86
Support configuring scheme for Server
Support for a `Server` to optionally have a scheme. This allows for a `ServerList` to support instances with different schemes which enables the gradual migration to secure services without a big bang flip over. Related to #275 which could not be accepted due to concerns about passivity. This change will allow me to...
diff --git a/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/ConfigurationBasedServerList.java b/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/ConfigurationBasedServerList.java index 90c766007..4e7021dcf 100644 --- a/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/ConfigurationBasedSe...
1
1
0
[{"id": "G0", "claim": "The existing two-arg constructor Server(String host, int port) should also be updated to delegate via this(null, host, port) instead of duplicating the field assignments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__ribbon__365
Netflix/ribbon
365
defect
f8bb8ea3e651ca6c368a1a20e219a4b1209528ec
c13793d64542229f3677484d86b291fcb768a8d2
Fix IndexOutOfBoundsException for WeightedResponseTimeRule
When number of servers in LoadBalancer increases or decreases we should fallback to using RoundRobinRule, because accumulatedWeights may have been calculated for other servers.
diff --git a/ribbon-loadbalancer/build.gradle b/ribbon-loadbalancer/build.gradle index 0aa950e34..c4a487d55 100644 --- a/ribbon-loadbalancer/build.gradle +++ b/ribbon-loadbalancer/build.gradle @@ -8,6 +8,8 @@ dependencies { compile "com.netflix.archaius:archaius-core:${archaius_version}" compile 'com.netflix....
1
1
0
[{"id": "G0", "claim": "Please use individual java.util imports instead of the wildcard * import.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Netflix__ribbon__371
Netflix/ribbon
371
defect
80f33f3779b64937a5f4a067759c99fea1b37494
cda93d8babf8e7a059c5873db0a7e4c6cdd3fae1
Extension points for subclassing and some perf optimizations
I've been experimenting with some different load-balancing mechanisms, and had to initially copy-paste some of the ribbon code to allow overriding and extending. Now thats complete, I'd like to get these changes pushed down into ribbon so that I can remove the duplication. As part of the experimenting, load-testing ...
diff --git a/gradle.properties b/gradle.properties index ada15d304..0e20e3ef7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ rx_netty_version=0.4.9 servo_version=0.10.1 hystrix_version=1.4.3 guava_version=14.0.1 -archaius_version=0.7.4 +archaius_version=0.7.6 eureka_version=1.4.6 jersey_ver...
3
3
0
[{"id": "G0", "claim": "Use the recommended EurekaClientConfig-based zone lookup (with the eureka dependency updated so getEurekaClientConfig() is available) instead of the deprecated DiscoveryClient.getZone when setting the server's zone.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": ...
null
Netflix__servo__429
Netflix/servo
429
defect
2ccc8dd6ed70bfa159f73a06127ba6b7f3e1fa5b
a62151cac3f8047e12f21e8c9b71476dd4128c91
Hooks to dump the JSON payload sent to atlas
Add hooks to be able to dump the JSON payload sent to atlas backends. This is a bit more useful to debug certain use cases than `FileMetricsObserver`
diff --git a/servo-atlas/src/main/java/com/netflix/servo/publish/atlas/AtlasMetricObserver.java b/servo-atlas/src/main/java/com/netflix/servo/publish/atlas/AtlasMetricObserver.java index 25c1feac..b916ce86 100644 --- a/servo-atlas/src/main/java/com/netflix/servo/publish/atlas/AtlasMetricObserver.java +++ b/servo-atlas/...
2
1
0
[{"id": "G0", "claim": "Consider using Files.createTempFile instead of the hand-rolled timestamp-based filename for the dumped payload file.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If there is an easy way to do it with Jackson, format the dum...
null
Netflix__spectator__1003
Netflix/spectator
1,003
defect
b6dc15b609997ad3328703340952b4e3331df702
bf209018b3dffed8e9e99825baeacf8886bab2c1
batch updater for counter, timer, and dist summary
Adds a helper that can be used to batch updates to the delegate meter. The main use-case for this is timers or distributions summaries that need to be updated from a single thread with a high throughput. For counters, this can easily be achieved by the user with a local variable to track the count and then calling i...
diff --git a/spectator-api/src/main/java/com/netflix/spectator/api/Counter.java b/spectator-api/src/main/java/com/netflix/spectator/api/Counter.java index 2a2df0595..bef9e9c15 100644 --- a/spectator-api/src/main/java/com/netflix/spectator/api/Counter.java +++ b/spectator-api/src/main/java/com/netflix/spectator/api/Coun...
1
1
0
[{"id": "G0", "claim": "The per-meter batchUpdaterRefCount field adds overhead for every meter, and the reviewer is worried about that cost in high-cardinality use cases with many, many meters, suggesting it is worth looking at lazy initialization or otherwise avoiding it.", "category": "performance", "verdict": "suppo...
null
Netflix__spectator__1013
Netflix/spectator
1,013
defect
ab7d85a5519df8d98ccf763cd54618be18599c24
261b9af34571003a64a359b18a07932ecc4c9d77
use custom replace for substitutions
The variable substitution when processing JMX data used the `String.replace` function. On java 8 this internally uses regex which is costly to compile. This change switches it to a custom function for replacing the values. On newer java versions the default is more efficient and doesn't use regex, but the custom versio...
diff --git a/spectator-ext-jvm/src/jmh/java/com/netflix/spectator/jvm/MappingExprSubstitute.java b/spectator-ext-jvm/src/jmh/java/com/netflix/spectator/jvm/MappingExprSubstitute.java new file mode 100644 index 000000000..e43622057 --- /dev/null +++ b/spectator-ext-jvm/src/jmh/java/com/netflix/spectator/jvm/MappingExprS...
1
1
0
[{"id": "G0", "claim": "The StringBuilder in the substitution code may be worth sizing with the original string length instead of leaving it unsized.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__spectator__1043
Netflix/spectator
1,043
defect
8a0bac046f74e9e1ff7287c2f860fe86eb9b7d04
285a459a3d7ba47621bb0aec04cb35422b5b1dc0
Add RegisteredNameOrIp cardinality limiter
We have tag values which may be IP addresses, which are very high cardinality and low value, or registered names (Eureka VIPs or DNS hostnames), which are lower cardinality and high value. This limiter allows us to apply different cardinality policies to each case.
diff --git a/spectator-api/src/main/java/com/netflix/spectator/api/patterns/CardinalityLimiters.java b/spectator-api/src/main/java/com/netflix/spectator/api/patterns/CardinalityLimiters.java index b1782f417..a319df42c 100644 --- a/spectator-api/src/main/java/com/netflix/spectator/api/patterns/CardinalityLimiters.java +...
3
2
1
[{"id": "G0", "claim": "As this could be used in a hot path, the IPv4 predicate would probably be better implemented with PatternMatcher than with Pattern.compile.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The IPv6-literal predicate should be a...
null
Netflix__spectator__1101
Netflix/spectator
1,101
defect
59f7ff0fb0c1d058088f2f32a9c2b5efd17b0add
967ee4b74fe295cfb35ee5b4ae85317085cc1801
fix race condition for FirstLimiter
### Description Under contention the `CardinalityLimiters.FirstLimiter` will stop accepting values *before* its limit has been reached. This behavior happens when more than one thread add the same value to the limiter value registry and the `remaining` property is decremented even though no new entry has been added....
diff --git a/spectator-api/src/main/java/com/netflix/spectator/api/patterns/CardinalityLimiters.java b/spectator-api/src/main/java/com/netflix/spectator/api/patterns/CardinalityLimiters.java index 14e3f185f..6726666be 100644 --- a/spectator-api/src/main/java/com/netflix/spectator/api/patterns/CardinalityLimiters.java +...
1
1
0
[{"id": "G0", "claim": "The add() check can just test values.put(s, s) == null, avoiding a second operation on the map in the case the put succeeds.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__spectator__1168
Netflix/spectator
1,168
defect
076b4f6ce565e0695680dca22f7a2ccf2a743345
7f434dce5b914d4069c853f0a8455e0b3bf27669
Add new IPC tags
Added new IPC tags as per the V2 spec: - ipc.source - ipc.method Extended from https://github.com/Netflix/spectator/pull/1155 with amendments.
diff --git a/spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcLogEntry.java b/spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcLogEntry.java index bf7009e4d..9c8f0989c 100644 --- a/spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcLogEntry.java +++ b/spectator-ext-ipc/src/main/java/co...
5
4
3
[{"id": "G0", "claim": "The existing `ipc.client/server.call` enums should probably be kept as is, with new enums created for `api.client/server.call`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Some of the tag values added as `requiredDimensions` fo...
null
Netflix__spectator__1232
Netflix/spectator
1,232
defect
2bdef38910d3c12bb9c046930f5fe02744991a4e
3199c9ccc0ea4d99e2ab681118380cbd2202894f
Add jvm.gc.overhead gauge for OpenJDK 26 and later
This adds a new `jvm.gc.overhead` gauge that finally gives us an accurate measurement of GC versus application CPU utilisation, rather than using `jvm.gc.pause` as a proxy, which only works for the collectors that do no work concurrently.
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 892d07b92..1de382eee 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -18,6 +18,13 @@ jobs: distribution: 'zulu' cache: 'gradle' - run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV + - name: Set up J...
1
1
1
[{"id": "G0", "claim": "The calculation is incorrect: since getTotalGcCpuTime and getProcessCpuTime return total accumulated CPU time in nanoseconds (or -1), the gauge reports cumulative overhead for the life of the process rather than current overhead for the recent interval.", "category": "correctness", "verdict": "s...
null
Netflix__spectator__182
Netflix/spectator
182
defect
98ce5f04b8a9d03cc2a1560dc261799301199113
133d18208b41790257e83ed501ff992b24ee362c
use registry for creating the ids in t-digest lib
Updates the Json utility class to use an injected registry to create the ids rather than using `DefaultId` directly. This change does break backwards compatibility of some of the classes to pass in the registry. However, it is still experimental and our use of those classes is only via tests or via a guice module so i...
diff --git a/spectator-reg-tdigest/src/main/java/com/netflix/spectator/tdigest/FileTDigestReader.java b/spectator-reg-tdigest/src/main/java/com/netflix/spectator/tdigest/FileTDigestReader.java index dd0ea8f07..adbf08c1c 100644 --- a/spectator-reg-tdigest/src/main/java/com/netflix/spectator/tdigest/FileTDigestReader.jav...
2
1
0
[{"id": "G0", "claim": "The static readAll method should be made non-static and use the Registry kept by the class constructor instead of receiving a Registry parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constructors should take a Json o...
null
Netflix__spectator__555
Netflix/spectator
555
defect
da0c8e4a1b75780e5a9876ebc3902f5c92b861ae
05ac3d461079d59afb12a41a62f957874f494164
support bounded threshold for percentile types
The percentile approximation types can be quite expensive due to the number of buckets needed to get a good accuracy for an arbitrary range. This change adds a builder for the types that allows a threshold and accuracy to be specified. The threshold will cap the max value for the computed data distribution. The ...
diff --git a/spectator-api/src/main/java/com/netflix/spectator/api/histogram/PercentileDistributionSummary.java b/spectator-api/src/main/java/com/netflix/spectator/api/histogram/PercentileDistributionSummary.java index 0f0f3bc8d..f0c136370 100644 --- a/spectator-api/src/main/java/com/netflix/spectator/api/histogram/Per...
6
2
0
[{"id": "G0", "claim": "The javadoc of the threshold setter in PercentileDistributionSummary reads \"The threshold is should be\" and the duplicated word \"is\" should be removed.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The build() logic du...
null
Netflix__spectator__768
Netflix/spectator
768
defect
137c15f27c38207dcc52e94370a1a19d6986d9d2
af2d4460fed910b331fc1f2ac6abebe33ee585b2
Update IpcTagKey.java
Add the missing failure injected tag along with documentation.
diff --git a/spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcTagKey.java b/spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcTagKey.java index 7d1425b08..9e381c75e 100644 --- a/spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcTagKey.java +++ b/spectator-ext-ipc/src/main/java/com/netf...
1
1
1
[{"id": "G0", "claim": "Because the set of failureInjected values is fixed, a dedicated enum for that type (similar to IpcResult or IpcStatus) should be added and integrated into IpcMetric's validation to help ensure consistency going forward.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "...
null
Netflix__spectator__775
Netflix/spectator
775
defect
3a398cdb04fe1c2fb7d3418fd798128a2220ffe7
4a65fa2d064f8a0a61ec16721dd97479bb8b715c
optimize the collection of measurements
Removes the allocation of temporary lists from the measure call. Also reduces some of the checks for each meter: - Expiration check can be avoided because the expired meters will get removed in the context where the data is collected. - NaN checks inlined to the gauge type which is the only type where it...
diff --git a/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/AtlasCounter.java b/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/AtlasCounter.java index c43be94cd..9346dffd9 100644 --- a/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/AtlasCounter.java +++ b/spectator-reg-atlas...
1
1
1
[{"id": "G0", "claim": "The finiteness check is applied on set() in AtlasMaxGauge but on measure() in a regular gauge, and the reviewer asks why the two differ, implying the asymmetry may be unintended.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__spectator__941
Netflix/spectator
941
defect
c90eedb60bcbda085831612e42d97da71acdbcb5
d748ba45ff0e4ff66caaed004ded39d3ec56d4bf
support batch record() of metrics in Timer and DistributionSummary
Supports record of many Timer and DistributionSummary metrics in a single call, and provides an optimised implementation for the Atlas implementation.
diff --git a/spectator-api/src/main/java/com/netflix/spectator/api/DistributionSummary.java b/spectator-api/src/main/java/com/netflix/spectator/api/DistributionSummary.java index 6918a2e2d..897ec8992 100644 --- a/spectator-api/src/main/java/com/netflix/spectator/api/DistributionSummary.java +++ b/spectator-api/src/main...
2
2
0
[{"id": "G0", "claim": "The Javadoc on the new Timer batch record methods should say 'statistics kept by the timer' and 'the specified amounts' rather than the copy-pasted 'counter' and 'amount'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In A...
null
Netflix__spectator__966
Netflix/spectator
966
defect
fd5a77422ff6bd59cb21cf51212af4bc778ce238
770f24cf0a475dfa590d2dbe4174006372aa0eb2
improve indexing for :has and :re
Two improvements to make it more efficient to check incoming ids: 1. The :has queries are no longer lumped into the other checks as all that needs to be verified is that the key is present. 2. Uses a prefix tree for the other checks. The pattern matcher for :re queries can be used to extract an exa...
diff --git a/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/impl/Evaluator.java b/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/impl/Evaluator.java index a4a93fecc..35365f05a 100644 --- a/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/impl/Evaluator.java +++ b/spectator-reg...
2
1
1
[{"id": "G0", "claim": "In PrefixTree.remove, after the recursive child removal, the child must be re-fetched with children.get(i) inside the synchronized block to double-check that it has not been emptied, nulled, and replaced by another thread between L120 and L125.", "category": "correctness", "verdict": "supported"...
null
Netflix__spectator__970
Netflix/spectator
970
defect
345c04cd1296294ac543896d038860542a520a08
72cf7c9bdaf075eff60b3f32832b038bb3b65b34
support expanding OR clauses in regex
Add helper to PatternMatcher for expanding OR clauses to a set where the original pattern should match if at least one of the expanded patterns match. This can be a useful first step for other processing such as indexing the query or rewriting for data stores that support a more limited pattern matching.
diff --git a/spectator-api/src/main/java/com/netflix/spectator/impl/PatternMatcher.java b/spectator-api/src/main/java/com/netflix/spectator/impl/PatternMatcher.java index 86ed9a44f..5d9958a0f 100644 --- a/spectator-api/src/main/java/com/netflix/spectator/impl/PatternMatcher.java +++ b/spectator-api/src/main/java/com/ne...
2
2
1
[{"id": "G0", "claim": "In Matcher.expandOrClauses(int), the results ArrayList should optionally be sized to ms.size().", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ZeroOrOneMatcher branch of PatternUtils.expandOrClauses is missing the rs.size...
null
Netflix__spectator__999
Netflix/spectator
999
defect
9e7944f748656847223c044695b02ca2f3f5d655
5353d70cf06241e366853787ca3057a0bf2c8026
Skip sorting in ArrayTagSet for SortedMaps
When tags are supplied in a SortedMap, skip the sorting step. Additionally, skip deduping when tags are supplied in a Map in general.
diff --git a/spectator-api/src/main/java/com/netflix/spectator/api/ArrayTagSet.java b/spectator-api/src/main/java/com/netflix/spectator/api/ArrayTagSet.java index db06b7559..44635eb7f 100644 --- a/spectator-api/src/main/java/com/netflix/spectator/api/ArrayTagSet.java +++ b/spectator-api/src/main/java/com/netflix/specta...
1
1
1
[{"id": "G0", "claim": "The sortedness check should also cover an explicitly supplied natural-order comparator, e.g. via a hasNaturalOrder helper checking ts.comparator() == null || ts.comparator() == Comparator.naturalOrder(), so maps like new TreeMap<>(Comparator.naturalOrder()) are also skipped.", "category": "corre...
null
Netflix__vmaf__1004
Netflix/vmaf
1,004
defect
1eb6454eb7060b51b86b00992f26ad1fc5dc72ca
9c4c1dd27fc17ac39745354460561acb73562992
Fix libvmaf warnings
Fixed some warnings that showed up when building libvmaf. Most of them related to incompatible types (or constness) where a cast is needed.
diff --git a/libvmaf/src/dict.c b/libvmaf/src/dict.c index 2d67ad079d..d7ce5fcdfe 100644 --- a/libvmaf/src/dict.c +++ b/libvmaf/src/dict.c @@ -6,7 +6,7 @@ #include "dict.h" #include "libvmaf/feature.h" -const VmafDictionaryEntry *vmaf_dictionary_get(VmafDictionary **dict, +VmafDictionaryEntry *vmaf_dictionary_get(V...
2
1
0
[{"id": "G0", "claim": "In get_fex_list_entry the return value of vmaf_dictionary_copy is thrown away, and it is unclear whether the pool should fail when the copy fails, since adding `if (err) goto fail;` makes the unit tests (which pass a null dict to vmaf_fex_ctx_pool_aquire) fail.", "category": "correctness", "verd...
null
Netflix__vmaf__1185
Netflix/vmaf
1,185
defect
5ee0051cd7b1337e033558910c30525d73edfd76
02f155c57256886920e8ccc99faf8f3ea17aeb32
[RFC] libvmaf/cuda: revisit vmaf_cuda_* api to support sharing of external CUcontext
This PR includes a change to the `vmaf_cuda_*` APIs to support an optional initialization with external `CUcontext`s. I have opted to modify the current `vmaf_cuda_*` API and have not targeted backwards compatibility. Since we have not had a libvmaf release with CUDA yet, this is not an API break. TL;DR for the API cha...
diff --git a/libvmaf/include/libvmaf/vmaf_cuda.h b/libvmaf/include/libvmaf/libvmaf_cuda.h similarity index 59% rename from libvmaf/include/libvmaf/vmaf_cuda.h rename to libvmaf/include/libvmaf/libvmaf_cuda.h index 482b2fbda7..ac34c24a37 100644 --- a/libvmaf/include/libvmaf/vmaf_cuda.h +++ b/libvmaf/include/libvmaf/libv...
7
3
2
[{"id": "G0", "claim": "The local VmafCudaConfiguration3 type the PR adds to VmafContext in libvmaf.c is marked FIXME, and the reviewer guesses the '3' has to go away, so it should be cleaned up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
Netflix__vmaf__1312
Netflix/vmaf
1,312
defect
807352cc950da0a8d8c35f2cd17877a74438a6ba
42f8bebf912661253f16b0758c8c16b2552660b6
Added implementation for framesync api and integration into vmaf
All features (extract API) have been modified to pass framesync context.
diff --git a/libvmaf/include/libvmaf/libvmaf.h b/libvmaf/include/libvmaf/libvmaf.h index 31c5af7279..798bec69d5 100644 --- a/libvmaf/include/libvmaf/libvmaf.h +++ b/libvmaf/include/libvmaf/libvmaf.h @@ -30,6 +30,8 @@ extern "C" { #endif +#define MAX_VMAF_THREADS 8 // default maximum threads + enum VmafLogLevel { ...
4
4
3
[{"id": "G0", "claim": "The MAX_VMAF_THREADS define should not be in the public header, and the code should not limit the maximum allowable threads.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The VmafFrameSyncContext should be carried inside the Vmaf...
null
Netflix__vmaf__1374
Netflix/vmaf
1,374
defect
b0c34331c79b6b8f066f80f455d7043a1b19a78e
6833db4fd90f06f2c05699841ae28f8affb50460
GSoC 2024: libvmaf: Propagate metadata
Part of the [GSoC 2024](https://summerofcode.withgoogle.com/programs/2024/projects/yma73MGc) project. Supports propagating metadata with modified `feature_vector_append`.
diff --git a/libvmaf/include/libvmaf/libvmaf.h b/libvmaf/include/libvmaf/libvmaf.h index 71d39e6563..24cae8c470 100644 --- a/libvmaf/include/libvmaf/libvmaf.h +++ b/libvmaf/include/libvmaf/libvmaf.h @@ -63,12 +63,12 @@ enum VmafPoolingMethod { * * @param n_threads How many threads can be used to run * ...
5
4
2
[{"id": "G0", "claim": "The metadata callback should be registered through a separate API function that takes an already allocated VmafContext and its own configuration struct (callable more than once to support multiple callbacks) instead of fields on VmafConfiguration.", "category": "design", "verdict": "supported", ...
null
Netflix__vmaf__724
Netflix/vmaf
724
defect
669c29d171624cb890a91efac0364c129650e546
ad10de6fe782b5c9c5fbca37b306a6b317605e92
libvmaf: add support for built-in models
Models can now be compiled into the library and read directly from the executable. This is a feature which is in addition to the current way of doing things, i.e an external model file which must be read from a filesystem. The way that this works, is via meson the *.json model files are turned into c headers via `xxd -...
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ca5ec16930..5acd8b3f16 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -42,7 +42,7 @@ jobs: - uses: msys2/setup-msys2@v2 with: msystem: ${{ matrix.msystem }} - install: ...
3
2
2
[{"id": "G0", "claim": "find_program('xxd') defaults to required=true, so when xxd is not installed meson aborts at that line instead of skipping built-in models as the surrounding `if xxd.found()` fallback intends.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G...
null
Netflix__vmaf__941
Netflix/vmaf
941
defect
d70c679c8278d6da054e86975f971e11b8f5050d
0f238a163e9d24b42d9338ed9a093c1e8e0190ff
Add max_contrast parameter
Add max_contrast parameter to account for larger contrast banding than 4 luma levels @ 10b (e.g., for non-compression banding generated by bit-depth reduction).
diff --git a/libvmaf/src/feature/cambi.c b/libvmaf/src/feature/cambi.c index bc5adecca4..72bbae273f 100644 --- a/libvmaf/src/feature/cambi.c +++ b/libvmaf/src/feature/cambi.c @@ -36,6 +36,9 @@ /* Visibilty threshold for luminance ΔL < tvi_threshold*L_mean for BT.1886 */ #define DEFAULT_CAMBI_TVI (0.019) +/* Max log...
5
5
2
[{"id": "G0", "claim": "The max_log_contrast option help should be written as a multiline string like integer_adm.c's instead of a backslash-continued line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The aligned_malloc calls in set_contrast_...
null
Netflix__vmaf__942
Netflix/vmaf
942
defect
feb8908b698185747e2ea2b746ac3add07dbbb65
7e04032397dbb7a60cc265eb5c8d86f314ac217a
libvmaf: add vmaf_feature_name_from_options
This PR adds a helper function for building parameterized feature names: `vmaf_feature_name_from_options()`. Parameterized feature names are constructed using a base feature name and a set of `VmafOptions` and a state struct. Suffixes are added to the base feature name only when an option has a non-default value in th...
diff --git a/libvmaf/src/feature/feature_name.c b/libvmaf/src/feature/feature_name.c index c8e8ca96f0..681bee3cf2 100644 --- a/libvmaf/src/feature/feature_name.c +++ b/libvmaf/src/feature/feature_name.c @@ -16,11 +16,16 @@ * */ +#include <errno.h> +#include <stdarg.h> #include <stddef.h> #include <stdio.h> +#in...
1
1
1
[{"id": "G0", "claim": "Constructing the feature name by iterating the variadic parameter list lets two calls with differently ordered options produce different feature names for the same numerical results, so the function should either reject unsorted input with an error code or sort the options before constructing th...
null
Netflix__vmaf__968
Netflix/vmaf
968
defect
7067d7a5c3cfd6cfefa6c4121a35c5ed726d5bda
5638dcf103a0c38ea4b6e1a332a200b4871ddd4e
Full-reference mode for CAMBI
Added an optional flag `full_reference` to CAMBI to allow running it as a full-reference metric, subtracting the banding that is already present in the source and obtaining the "amount of banding added" by the encoding process. Added optional parameters `src_width`, `src_height` to allow different processing resolution...
diff --git a/README.md b/README.md index 7fcaadfe34..569280f429 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Also included in `libvmaf` are implementations of several other metrics: PSNR, P ## News +- (2021-12-15) We have added to CAMBI the `full_reference` input parameter to allow running CAMBI as a f...
4
3
0
[{"id": "G0", "claim": "Writing -1 for `cambi_source` and `cambi_full_reference` when the `full_reference` flag is not set is a design workaround to avoid conditionally returning features, and a cleaner way should be found.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
Netflix__vmaf__969
Netflix/vmaf
969
defect
8972c5fc77567fca7ff3be43fa4c951d21e2d9f8
072a9d7e0d6603bc9a3bbb69d63d6626c600c609
CAMBI: support 12-bit and 16-bit inputs by converting them to 10b
CAMBI previously supported 8-bit and 10-bit inputs. This PR adds support for 12-bit and 16-bit inputs. Internally, CAMBI still works at the 10-bit level, and the inputs are upscaled/downscaled appropriately in the preprocessing steps. Added unit tests to cover these cases, also manually upscaled a 10b video to 12b a...
diff --git a/libvmaf/src/feature/cambi.c b/libvmaf/src/feature/cambi.c index df1836ee44..0019970cfd 100644 --- a/libvmaf/src/feature/cambi.c +++ b/libvmaf/src/feature/cambi.c @@ -338,19 +338,27 @@ static int init(VmafFeatureExtractor *fex, enum VmafPixelFormat pix_fmt, } /* Preprocessing functions */ -static void d...
3
3
2
[{"id": "G0", "claim": "Better to read bitdepth from pic->bpc instead of passing it as a separate function parameter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It might be good to handle bit depth of 9 anyway for completeness, even though V...
null
Netflix__vmaf__974
Netflix/vmaf
974
defect
0451745c62631e3f859ee7ea689eebecb2470712
a5e3ac30ff21399f3e276a9233813afcc6463046
More explicit names for enum types VMAF_PIXEL_RANGE_*
Very simple change to have more explicit names. `LIMITED` -> `VMAF_PIXEL_RANGE_LIMITED` `FULL` -> `VMAF_PIXEL_RANGE_FULL`
diff --git a/libvmaf/src/feature/cambi.c b/libvmaf/src/feature/cambi.c index e158931c13..fd6ebad9e5 100644 --- a/libvmaf/src/feature/cambi.c +++ b/libvmaf/src/feature/cambi.c @@ -209,15 +209,15 @@ static FORCE_INLINE inline int clip(int value, int low, int high) { } static bool tvi_condition(int sample, int diff, d...
2
2
0
[{"id": "G0", "claim": "All of the non-static symbols, types and functions from the luminance_tools changes should be prefixed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The `inline` specifier should be removed from the `vmaf_luminance_get_luminan...
null
Netflix__zuul__1146
Netflix/zuul
1,146
defect
4033cadffa10a636d4ec74762df15b1f30183a6f
09ff4b4035039806c68e60f0f9416f523ca5e40c
support Netty io_uring transport
- https://en.wikipedia.org/wiki/Io_uring - https://github.com/netty/netty-incubator-transport-io_uring
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index cf354987b0c..23c21bef500 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -30,7 +30,7 @@ jobs: ~/.gradle/wrapper key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} - name: B...
6
6
1
[{"id": "G0", "claim": "The io_uring fall-through branch in Server.initializeTransport should be placed above the kqueue check.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a toggle so the user can explicitly enable the io_uring transport.", "categ...
null
Netflix__zuul__1483
Netflix/zuul
1,483
defect
73354e35255a144ca1a884facf3fd942745aadd1
c9eda6ae702bf95fdad4af3d0c49a5ad5bcd85ad
Add graceful shutdown method to ClientChannelManager
Adds a method to gracefully shutdown ClientChannelManager. A graceful shutdown will close any idle connections, and allow any in-flight requests to finish.
diff --git a/zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/ClientChannelManager.java b/zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/ClientChannelManager.java index e188eef7f9..358fd1cb85 100644 --- a/zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/ClientChannelManager.java...
2
2
0
[{"id": "G0", "claim": "An explicit close of the connection is not necessary in release() during shutdown; the graceful shutdown should handle closing the connections.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop in drainIdleConnectionsOnEvent...
null
Netflix__zuul__1487
Netflix/zuul
1,487
defect
6a4fdf94b49c50fc03ecd6b21d54ea036ebdd4ee
7f6c03c57156a1873aca0098b8ab281bcb6fa343
Replace PromiseCombiner usage on ClientConnectionsShutdown
ClientConnectionsShutdown is broken in two different ways 1) When `gracefullyShutdownClientChannels()` is called as part of a discovery callback, the use of `ImmediateEventExecutor.INSTANCE` triggers a deadlock check in netty: ``` Caused by: io.netty.util.concurrent.BlockingOperationException: DefaultPromise@7ff...
diff --git a/zuul-core/src/main/java/com/netflix/zuul/netty/server/ClientConnectionsShutdown.java b/zuul-core/src/main/java/com/netflix/zuul/netty/server/ClientConnectionsShutdown.java index 7447aee1d0..5eeae68153 100644 --- a/zuul-core/src/main/java/com/netflix/zuul/netty/server/ClientConnectionsShutdown.java +++ b/zu...
1
1
1
[{"id": "G0", "claim": "Can the 30s graceful-shutdown wait be made configurable, since it is shorter than the old behaviour which could wait significantly longer while rolling out?", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__zuul__1701
Netflix/zuul
1,701
defect
bc7c0dd6f6f3f9d4f8350aa2d9cd02adbae9febe
e11ae4f87935b9a8d6627e018bd8623682bc7a1c
Add a new handler to close on inbound http/2 protocol errors
Handles ~closing the connection~ logging/counting malformed requests like invalid hpack, or invalid stream numbers.
diff --git a/zuul-core/src/main/java/com/netflix/netty/common/channel/config/CommonChannelConfigKeys.java b/zuul-core/src/main/java/com/netflix/netty/common/channel/config/CommonChannelConfigKeys.java index d972941044..f64e617009 100644 --- a/zuul-core/src/main/java/com/netflix/netty/common/channel/config/CommonChannel...
1
1
1
[{"id": "G0", "claim": "Http2ConnectionHandler already has a generic mechanism to send GO_AWAY frames and close on connection errors, so the PR should not duplicate it with its own go-away logic.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__zuul__1749
Netflix/zuul
1,749
defect
aad0fea6b30413d7fc218bb40065bd94c8ad882e
4c335b7238d590e45eb3e6bf3647b2d386aaf1e0
Switch to io.netty.handler.codec.http.cookie.Cookie in order to support cookies with duplicate keys
We've been using the deprecated `io.netty.handler.codec.http.Cookie` and `CookieDecoder.decode`. `CookieDecoder` is unable to handle duplicate key names, so I had to switch us to the newer decoder. I'm also bumping to 2.5.0 since I had to make breaking changes to interfaces
diff --git a/gradle.properties b/gradle.properties index 8b9ae3d2d5..38257c29d7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,5 +4,5 @@ versions_netty=4.1.107.Final versions_netty_io_uring=0.0.25.Final versions_brotli4j=1.16.0 release.scope=patch -release.version=2.4.1-SNAPSHOT +release.version=2.5.1-...
2
1
0
[{"id": "G0", "claim": "The release version should be bumped to 2.5.0-SNAPSHOT instead of 2.5.1-SNAPSHOT.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using ClientCookieDecoder.STRICT here while LAX is used in HttpRequestMessageImpl.java and i...
null