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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scalar__scalar__9149 | scalar/scalar | 9,149 | defect | da3297501d23eba48353a1bb1526fda24dacd823 | ddb417c9bed13d2104fdad22cd6009893299a8da | fix(scalar-app): keep splash until team loads so team workspace reloads stick | Reloading while on a team workspace URL could bounce you back to the local default workspace. That happened because route handling ran before currentTeam finished loading from the API, so the app treated the URL’s team as incompatible with the stale 'local' team context and redirected.
This change defers handleRoute... | diff --git a/.changeset/silent-goats-cheat.md b/.changeset/silent-goats-cheat.md
new file mode 100644
index 00000000000..cb8b2c96eb0
--- /dev/null
+++ b/.changeset/silent-goats-cheat.md
@@ -0,0 +1,5 @@
+---
+'scalar-app': patch
+---
+
+fix: keep splash until team loads so team workspace reloads stick
diff --git a/proje... | 1 | 1 | 1 | [{"id": "G0", "claim": "Setting `isCurrentTeamLoading` to `true` on every `getAccessToken` change — not just the initial load — causes the splash screen to reappear and route handling to be deferred whenever a background token refresh occurs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
scalar__scalar__9151 | scalar/scalar | 9,151 | defect | 416ade073023ad41c6b429197b55e00eeb4802e7 | 75087e14fd03107f8dd90852d2d1b63a1641cf2c | feat(helpers): add `normalizationForm` and `stripAccents` options to `slugify` | <!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Summary
Adds two new options to `SlugifyOptions` (and therefore `slugger`) in `@scalar/helpers`:
### `normalizationForm?: NormalizationForm`
Controls which Unicode normalization form (`'NFC' | 'NFD' | 'NFKC' | 'NFKD'`) is applied before slugifying. Defaults to `'NFC'` (the exis... | diff --git a/.changeset/slugify-normalization-options.md b/.changeset/slugify-normalization-options.md
new file mode 100644
index 00000000000..8800168eb89
--- /dev/null
+++ b/.changeset/slugify-normalization-options.md
@@ -0,0 +1,8 @@
+---
+'@scalar/helpers': patch
+---
+
+feat(helpers): add `normalizationForm` and `st... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add comments explaining what the normalization form values 'NFC', 'NFD', 'NFKC' and 'NFKD' mean, since the reviewer does not know them.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scalar__scalar__9152 | scalar/scalar | 9,152 | defect | 0d2943103f12aa1f0becbf3d40bfd2a9b6f07891 | 3d0327a65f62e6f35267f18fe15722194f3c5c15 | feat(scalar-app): add team switching and associates | ## Problem
We couldn't switch teams on the client.
## Solution
Now we can switch! We need to clean up a few more state things like redirects and first loads. I will do that in another PR or this one depending on when it gets reviewed.
## Checklist
- [x] I explained why the change is needed.
- [x] I adde... | diff --git a/.changeset/four-books-bet.md b/.changeset/four-books-bet.md
new file mode 100644
index 00000000000..caa3dedb446
--- /dev/null
+++ b/.changeset/four-books-bet.md
@@ -0,0 +1,6 @@
+---
+'@scalar/components': patch
+'scalar-app': patch
+---
+
+feat: add team switching to the scalar app
diff --git a/packages/co... | 8 | 5 | 3 | [{"id": "G0", "claim": "The new prop should be named allowAddTeam, defaulting to false and opted into on the org side in another PR, instead of disableAddTeam.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The team and current-team state should be moved... | null |
scalar__scalar__9159 | scalar/scalar | 9,159 | defect | eac135aa4e031ff4365070b97c554d292a02dc6e | 5715675ebfc5d6254c227f396d1e7332133bcf7c | fix(api-reference): rename "OAS" badge to "OpenAPI" and add an AsyncAPI variant | ## Summary
The version badge in the introduction block was hard-coded to "OAS {version}" and only rendered for OpenAPI documents. Renamed `OpenApiVersion` to `DocumentVersion`, switched the label to "OpenAPI", and made it render "AsyncAPI {version}" for AsyncAPI documents. Plumbed `documentVersion` through `Content ... | diff --git a/.changeset/asyncapi-version-badge.md b/.changeset/asyncapi-version-badge.md
new file mode 100644
index 00000000000..0cd99ae667e
--- /dev/null
+++ b/.changeset/asyncapi-version-badge.md
@@ -0,0 +1,5 @@
+---
+'@scalar/api-reference': patch
+---
+
+fix: rename the "OAS" version badge to "OpenAPI" and show an ... | 2 | 1 | 0 | [{"id": "G0", "claim": "If more document types are ever added, the inline documentType computed in Content.vue should be replaced with a getDocumentType helper.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The specificationVersion computed checks isAsy... | null |
scalar__scalar__9197 | scalar/scalar | 9,197 | defect | c84485a0dfbe513b928ee21fb8f67437247abc44 | 7617bbc19d6f706cfcefe964776d57e2e33806fe | fix(scalar-app): history bug + max width | ## Problem
When an operation has made a request and we go to another one and come back it shows a blank response area.
## Solution
We restore the last response like we used to.
Also fixed max width in address bar (again again)
## Checklist
- [x] I explained why the change is needed.
- [x] I added a c... | diff --git a/packages/api-client/src/v2/blocks/operation-block/OperationBlock.test.ts b/packages/api-client/src/v2/blocks/operation-block/OperationBlock.test.ts
index caf816f0403..5800134872e 100644
--- a/packages/api-client/src/v2/blocks/operation-block/OperationBlock.test.ts
+++ b/packages/api-client/src/v2/blocks/op... | 1 | 1 | 1 | [{"id": "G0", "claim": "The history fallback ignores the example key: on a cache miss, `history.at(-1)` restores the most recent entry for the path+method regardless of which example produced it, so with multiple examples having different responses a cache miss for one example can restore a response that belongs to a d... | null |
scalar__scalar__9200 | scalar/scalar | 9,200 | defect | 651b38893abce898b49e5518b6af98231a62dd94 | 6ed9e68b6b0668d69db1daa3d8cc6202e2eb8196 | feat(helpers): better server extraction for partial urls | ## Problem
we wanted to extract servers from google.com/things
## Solution
Added it
## Checklist
- [x] I explained why the change is needed.
- [x] I added a changeset. <!-- pnpm changeset -->
- [ ] I added tests.
- [ ] I updated the documentation.
<!--
Use semantic PR titles:
fix(api-clie... | diff --git a/.changeset/full-impalas-wave.md b/.changeset/full-impalas-wave.md
new file mode 100644
index 00000000000..428712a43bc
--- /dev/null
+++ b/.changeset/full-impalas-wave.md
@@ -0,0 +1,5 @@
+---
+'@scalar/helpers': patch
+---
+
+feat: better server extraction from partial urls
diff --git a/packages/helpers/src... | 2 | 2 | 2 | [{"id": "G0", "claim": "The `!path.includes('://')` guard checks for `://` anywhere in the input, not just at the protocol position, so a bare-hostname URL whose query string, path, or fragment contains `://` (e.g. `api.example.com/auth?redirect=https://app.com/cb`) is incorrectly skipped and the function returns `null... | null |
scalecube__scalecube-cluster__103 | scalecube/scalecube-cluster | 103 | defect | 0d626e11ddaf307dcec6e63ee9dbb57e3def45d4 | 4f26fa00f173854f323b13e84093c0d30a4ad32c | Got rid proto-things | Closes #100 | diff --git a/cluster/src/main/java/io/scalecube/cluster/Member.java b/cluster/src/main/java/io/scalecube/cluster/Member.java
index 889999b6..b934e180 100644
--- a/cluster/src/main/java/io/scalecube/cluster/Member.java
+++ b/cluster/src/main/java/io/scalecube/cluster/Member.java
@@ -12,9 +12,12 @@
*/
public final cla... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer has concerns about the use of io.netty.handler.codec.json.JsonObjectDecoder in the transport pipeline and asks for time to get to know about it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scalecube__scalecube-cluster__162 | scalecube/scalecube-cluster | 162 | defect | ede29d68c3352ae656b3b3a040e3f21c76c28498 | b5367115c4a69e6d65eb33e73e66ed07ae0a402f | Added abstraction over serialization | I want to use other type of serialization but can't because that mechanism inlined. | diff --git a/cluster/src/test/java/io/scalecube/cluster/gossip/GossipRequestTest.java b/cluster/src/test/java/io/scalecube/cluster/gossip/GossipRequestTest.java
index 801ad9a2..c73667d5 100644
--- a/cluster/src/test/java/io/scalecube/cluster/gossip/GossipRequestTest.java
+++ b/cluster/src/test/java/io/scalecube/cluster... | 3 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks whether an SPI-based serialization abstraction (as in scalecube-services) would be a better alternative approach than the builder-injected MessageCodec.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the b... | null |
scalecube__scalecube-cluster__203 | scalecube/scalecube-cluster | 203 | defect | 3aad158d7dc3fdf27685708d63fce3548057550f | 89b5ff8eabd32997c372b8e8533a489840377e56 | Represent metadata as a ByteBuffer | Closes https://github.com/scalecube/scalecube-cluster/issues/30 | diff --git a/cluster/src/main/java/io/scalecube/cluster/Cluster.java b/cluster/src/main/java/io/scalecube/cluster/Cluster.java
index 2b32952c..d582cf03 100644
--- a/cluster/src/main/java/io/scalecube/cluster/Cluster.java
+++ b/cluster/src/main/java/io/scalecube/cluster/Cluster.java
@@ -1,10 +1,11 @@
package io.scalecu... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new test codec SimpleMapMetadataCodec should be typed MetadataCodec<Map<String, ByteBuffer>> or MetadataCodec<MetadataMap> instead of MetadataCodec<Map<String, String>>.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "ClusterConf... | null |
scalecube__scalecube-cluster__268 | scalecube/scalecube-cluster | 268 | defect | c585d0855f4be5472f7c5980661b2f4d4fb9825e | f913278bfaee1f95e4644fa069e4c358e7d8e512 | Fix outdated repeated gossip | Fix outdated repeated gossip using data structure which efficiently store sequence of incremented numbers(gossip sequenceId) which go in a row without missed elements. Each gossip will be checked that it was handled before.
#263 | diff --git a/cluster/src/main/java/io/scalecube/cluster/gossip/Gossip.java b/cluster/src/main/java/io/scalecube/cluster/gossip/Gossip.java
index 146ebdce..358eed7b 100644
--- a/cluster/src/main/java/io/scalecube/cluster/gossip/Gossip.java
+++ b/cluster/src/main/java/io/scalecube/cluster/gossip/Gossip.java
@@ -7,25 +7,3... | 2 | 2 | 0 | [{"id": "G0", "claim": "Log messages should not contain dots unless it is really unavoidable.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "healthCheck lies on the hot path of incoming gossip handling, so it should be moved to a quieter place s... | null |
scalecube__scalecube-services__116 | scalecube/scalecube-services | 116 | defect | f962fb938d256122c635c5a6a77cd3555d9b3cb9 | 898000b018f67c02ce1c001aeccd09500b49f460 | Support service tags | support service tag alternative implementation not using json parser and not using Tag model but Map<String,String> | diff --git a/services/src/main/java/io/scalecube/services/LocalServiceInstance.java b/services/src/main/java/io/scalecube/services/LocalServiceInstance.java
index 8b11a1bc8..016191723 100644
--- a/services/src/main/java/io/scalecube/services/LocalServiceInstance.java
+++ b/services/src/main/java/io/scalecube/services/L... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new ServiceInfoTests test only prints the produced metadata with System.out.println; it should instead use assertEquals to check the string against an expected value.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "LocalServic... | null |
scalecube__scalecube-services__117 | scalecube/scalecube-services | 117 | defect | a81d4fcb312711f68a3924ae64d2a42e447b61ef | e015fa25ece084d123e42c7a21e8d8e50e30f93d | Issue#92 Starting many nodes at once throw exception address already in use | Fixing following issue https://github.com/scalecube/scalecube/issues/92 | diff --git a/transport/src/main/java/io/scalecube/transport/Transport.java b/transport/src/main/java/io/scalecube/transport/Transport.java
index 372ee433d..d61f3441a 100644
--- a/transport/src/main/java/io/scalecube/transport/Transport.java
+++ b/transport/src/main/java/io/scalecube/transport/Transport.java
@@ -32,6 +3... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added that checks the bind exception path when port auto increment is false.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scalecube__scalecube-services__122 | scalecube/scalecube-services | 122 | defect | cea2d376a2df44af7ea82f65b4ee6abe380fef37 | 317f270fd32d69ad337db84b2f87c72fd5301823 | Support service dispatchers | Added support for service calls using dispatchers
the service call is a generic way to call service interface using a message while not using a java proxy api.
this enables more generic approach to address services by service-name and service-method-names and not be strongly restricted by a java proxy interface.
... | diff --git a/services/src/main/java/io/scalecube/services/DispatchingFuture.java b/services/src/main/java/io/scalecube/services/DispatchingFuture.java
index ca3ee41ea..fe92c096c 100644
--- a/services/src/main/java/io/scalecube/services/DispatchingFuture.java
+++ b/services/src/main/java/io/scalecube/services/Dispatchin... | 2 | 2 | 0 | [{"id": "G0", "claim": "ServiceCall creates yet another dedicated scheduler (the delayer) although the code already has enough schedulers, so it should not add one more.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The names ResponseFuture and Dispatch... | null |
scalecube__scalecube-services__178 | scalecube/scalecube-services | 178 | defect | c9be3131088b907b3a578b0ab82534bd7329a6cd | 6631ecfb0c7a2c24303002f4119c604702590e0d | @Inject microservices. | Enable to inject Microservices instance to the services.
- add Inject annotation for injecting instances that requires no special
params.
- fix the test to inject microservices and see its not null.
- add to service proxy the ability to statically set router and timeout.
```java
@Inject
private Microservi... | diff --git a/services/src/main/java/io/scalecube/services/Microservices.java b/services/src/main/java/io/scalecube/services/Microservices.java
index 1ebdf9d76..53ab67c0c 100644
--- a/services/src/main/java/io/scalecube/services/Microservices.java
+++ b/services/src/main/java/io/scalecube/services/Microservices.java
@@ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The injected Microservices field in the test service is redundant since it is only used for a null check, and it would be simpler not to inject greetingService when microservices is not set and check greetingService for null instead.", "category": "design", "verdict": "supported", "priority": "P... | null |
scalecube__scalecube-services__181 | scalecube/scalecube-services | 181 | defect | 392c99cab08d2ead3a5189897e8d893b2039b954 | 361b5fa79f2a043ca3bb756465dc35eb1662798a | enable the possibility to contribute to metadata and not replace | enable the possibility to contribute to metadata and not replace user defined metata when using services
in current solution when using services it will override the cluster
metadata and will put the services metadata on top of the cluster
metadata
this change expose the metadata() accessor from the builder so
... | diff --git a/cluster/src/main/java/io/scalecube/cluster/ClusterConfig.java b/cluster/src/main/java/io/scalecube/cluster/ClusterConfig.java
index d48df1721..db8850b56 100644
--- a/cluster/src/main/java/io/scalecube/cluster/ClusterConfig.java
+++ b/cluster/src/main/java/io/scalecube/cluster/ClusterConfig.java
@@ -231,6 +... | 1 | 1 | 0 | [{"id": "G0", "claim": "Change getClusterConfig to build the merged metadata in a fresh HashMap (putAll the cluster config metadata, then putAll the services metadata, then set it back) instead of reusing the clusterConfig metadata map behind an isEmpty guard.", "category": "design", "verdict": "supported", "priority":... | null |
scalecube__scalecube-services__196 | scalecube/scalecube-services | 196 | defect | 759ef4e4cc4339c6799c79ca7adf9f89473e8f63 | 6f6ba5abc0f10df9f5559c744baeda2fbae9c397 | Add metrics | Add metrics factory support for collecting metrics for collecting service metrics and add initial metrics for
- invoke rate - calls/second
- timer latency remote invoke
- counter mesure pending (uncompleted) service requests.
```java
MetricRegistry registry = new MetricRegistry();
ConsoleReporter reporter... | diff --git a/CHANGES.md b/CHANGES.md
index beec47288..ae0d4bc77 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -2,7 +2,8 @@
## 1.0.7 / NEXT RELEASE
-* introduce ServiceCall.invokeAll service endpoints
+* Introduce ServiceCall.invokeAll service endpoints
+* Metrics added to ServiceCall request / response / error rat... | 2 | 2 | 0 | [{"id": "G0", "claim": "The separate MeterFactory, TimerFactory, CounterFactory etc. interfaces add no value, so remove them and expose getTimer/getMeter-style methods directly on the Metrics class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sending ... | null |
scalecube__scalecube-services__292 | scalecube/scalecube-services | 292 | defect | 617db68f5e8f5cd5f02b740b080bb172641cf5b6 | 202e9a87c7b929702785e3eec990064a77c0c6cc | fix duplicate responses issue #291 #289 | fix for #291 #289
thanks you @rasentry for opening the issue and offering solution.
thanks you @segabriel for providing a reproduction code. | diff --git a/services/src/main/java/io/scalecube/services/RemoteServiceInstance.java b/services/src/main/java/io/scalecube/services/RemoteServiceInstance.java
index 401220fb9..cbe66f325 100644
--- a/services/src/main/java/io/scalecube/services/RemoteServiceInstance.java
+++ b/services/src/main/java/io/scalecube/service... | 4 | 3 | 2 | [{"id": "G0", "claim": "The correlationId filter added on the returned serviceResponses may be redundant with the filtering already done around line 82 of RemoteServiceInstance.listen, and should be removed if so.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G... | null |
scalecube__scalecube-services__342 | scalecube/scalecube-services | 342 | defect | 22423a5eb582f6035f4c933960b9d566b3e3947d | 5af68d1095766fe4c55c450ff94c0932ebe244ef | Simplified service discovery and refactoring of registry events | part of #331
**Motivation**:
For now, we have two approaches to subscribe to an available/unavailable endpoint events. But the way via discovery has a side effect. because we can receiver `registered event` with some endpoint inside it and this endpoint is not registered in the service registry yet. | diff --git a/benchmarks/src/main/java/io/scalecube/services/benchmarks/services/ServicesBenchmarksState.java b/benchmarks/src/main/java/io/scalecube/services/benchmarks/services/ServicesBenchmarksState.java
index ae8445fd1..a0b736453 100644
--- a/benchmarks/src/main/java/io/scalecube/services/benchmarks/services/Servic... | 1 | 1 | 0 | [{"id": "G0", "claim": "The event-specific listen methods added to the ServiceRegistry interface bloat the contract; the interface should be cleaned up, for example with a generic listen(RegistryEvent::reference) / listen(RegistryEvent::endpoint).", "category": "design", "verdict": "supported", "priority": "P2", "scope... | null |
scalecube__scalecube-services__368 | scalecube/scalecube-services | 368 | defect | a8c8d471283ec9e73e8222fc3d132bb5bc4f32fc | c70c2d9ab1845e2e920437f8a27ac36392e7edd9 | Defer address lookup to subscription | When executing a remote call i expect nothing to happen until i subscribe on the publisher (as per [reactor reference](http://projectreactor.io/docs/core/release/reference/#reactive.subscribe) ) | diff --git a/services/src/main/java/io/scalecube/services/ServiceCall.java b/services/src/main/java/io/scalecube/services/ServiceCall.java
index 6b4302a0d..99c0d86fb 100644
--- a/services/src/main/java/io/scalecube/services/ServiceCall.java
+++ b/services/src/main/java/io/scalecube/services/ServiceCall.java
@@ -322,15 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Inline the dataOptional local variable and get rid of the curly-brace block in the doOnError lambda of addressLookup.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}] | null |
scalecube__scalecube-services__43 | scalecube/scalecube-services | 43 | defect | f8d36eaf9291d1b0e60237ef25135f9e7e042796 | 2e5b3c8c6004d0b0a9e1db053fe87d4f2750ff1a | Issue #41 Remove ClusterMessage and TransportMessage | Main change at this PR related to issue https://github.com/servicefabric/servicefabric/issues/41
Also it contains several minor and cosmetic changes:
- Move logback.xml to testlib module
- Clean up transport exceptions model
- Clean up logging at FailureDetector
| diff --git a/benchmark/src/main/java/io/servicefabric/cluster/gossip/ProtostuffGossipBenchmark.java b/benchmark/src/main/java/io/servicefabric/cluster/gossip/ProtostuffGossipBenchmark.java
index dff8b995f..fe6e68a9c 100644
--- a/benchmark/src/main/java/io/servicefabric/cluster/gossip/ProtostuffGossipBenchmark.java
+++ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added @Nullable null guard on the test predicate is unnecessary because ClusterMember input is not really nullable here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For the future: since switching between executors is prove... | null |
scalecube__scalecube-services__46 | scalecube/scalecube-services | 46 | defect | 4c4abb8270404f379510dbcb1b0b8f6d8c623a4b | 9952dbeed3c39ee968cb3ef207dc51beca5cc9d2 | #28 Improve Cluster join API. Make join async. | Motivation:
- There should not be blocking calls in Cluster API
Done:
- Make transport start async
- Make cluster start async
| diff --git a/cluster/pom.xml b/cluster/pom.xml
index 68601b9d7..487e36d24 100644
--- a/cluster/pom.xml
+++ b/cluster/pom.xml
@@ -14,6 +14,10 @@
<artifactId>servicefabric-transport</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <grou... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new try/catch block in TransportTest.createTransport is indented with 4-space steps instead of the project's 2-space formatting.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded rxjava-guava version 1.0.3 ... | null |
scalecube__scalecube-services__481 | scalecube/scalecube-services | 481 | defect | 597037ad050f34c08582f6459185be774e93ab9e | 6d03ac9800427ea847ddd2d274cce4a4cba14642 | Pluggable exceptions mapper | ### Please note, API of `Microservices` is changed.
Example of usage:
https://github.com/scalecube/scalecube-services/blob/6d03ac9800427ea847ddd2d274cce4a4cba14642/services-examples/src/main/java/io/scalecube/services/examples/exceptions/ExceptionMapperExample.java#L23-L66 | diff --git a/services-api/src/main/java/io/scalecube/services/api/ServiceMessage.java b/services-api/src/main/java/io/scalecube/services/api/ServiceMessage.java
index 101a99ae4..3ace862fb 100644
--- a/services-api/src/main/java/io/scalecube/services/api/ServiceMessage.java
+++ b/services-api/src/main/java/io/scalecube/... | 1 | 1 | 0 | [{"id": "G0", "claim": "In ServiceMethodInvoker, the Supplier variables added to dodge a checkstyle indentation alert are ugly, and the reviewer asks whether there is a cleaner way to write this code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scalecube__scalecube-services__510 | scalecube/scalecube-services | 510 | defect | a9761776973df8d990658eeffca7d5025f58b209 | e689629e04efc1c1ab1a40795297c53754cfe7bb | use switchOnFirst replacing HeadAndTail | #509
1. update version 3.2.5.RELEASE
2. refactor and use switchOnFirst. | diff --git a/pom.xml b/pom.xml
index a09166f67..6943d52a5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,8 +26,8 @@
<scalecube-cluster.version>2.2.3</scalecube-cluster.version>
<scalecube-benchmarks.version>1.2.2</scalecube-benchmarks.version>
<scalecube-config.version>0.3.4</scalecube-config.version>
- <r... | 2 | 2 | 0 | [{"id": "G0", "claim": "The 300-second verify timeout added in test_remote_bidi_greeting_expect_IllegalArgumentException is questionable and should be kept at 3 seconds.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The project pins netty 4.1.31.Final ... | null |
scalecube__scalecube-services__521 | scalecube/scalecube-services | 521 | defect | 180ea38392de8b582e668fd36bd11e25343ef424 | 36c74db89427748ae180142cf6c4558d42ce0730 | Issue519 decouple service registry from discovery | Fixes https://github.com/scalecube/scalecube-services/issues/519 | diff --git a/services-api/src/main/java/io/scalecube/services/discovery/api/ServiceDiscoveryFactory.java b/services-api/src/main/java/io/scalecube/services/discovery/api/ServiceDiscoveryFactory.java
deleted file mode 100644
index 2fbcf9bc9..000000000
--- a/services-api/src/main/java/io/scalecube/services/discovery/api/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Set `autoCancel` to false when creating the EmitterProcessor for the ServiceDiscoveryEvent subject.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scalecube__scalecube-services__60 | scalecube/scalecube-services | 60 | defect | d5822751256955b5bd0c1dd132bcdb7d1de4aaf1 | 3e6bc41342582cd52d0d6583a061b8dff60c8c70 | Transport update: setup usage of InetSocketAddress.createUnresolved() | **Updates:**
- no more `new InetSocketAddress()` constructor calls; transport code always create unresolved `InetSocketAddress` from string `host` and `port`.
- made `InetSocketAddress`'s inet address resolution happening exactly in **one** place.
- renamed and updated `ChannelFutureUtils`; made methods more type-frie... | diff --git a/cluster/src/main/java/io/scalecube/cluster/Cluster.java b/cluster/src/main/java/io/scalecube/cluster/Cluster.java
index e98081ba8..d66e28356 100644
--- a/cluster/src/main/java/io/scalecube/cluster/Cluster.java
+++ b/cluster/src/main/java/io/scalecube/cluster/Cluster.java
@@ -68,8 +68,7 @@ private Cluster(C... | 3 | 3 | 0 | [{"id": "G0", "claim": "Don't register a callback on every send; first check that the getOrConnect future is completed and, if so, just call get and send, registering the callback only otherwise.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Return... | null |
scalecube__scalecube-services__615 | scalecube/scalecube-services | 615 | defect | 32ffbde8912ee266002c0938a951f0913fe4403a | 0dd1512b8dfda0bbbd94efbcb7f7183217148819 | Keep-alive rsocket problem and Edge cases | Problems:
1) We have no way to change keep-alive settings, they are adjusting in
```java
RSocketFactory.connect()
.keepAlive(...)
.frameDecoder(PayloadDecoder.ZERO_COPY)
```
2) Everyone should be more careful when implementing a service interface. Need to choose the right operator ... | diff --git a/services/src/test/java/io/scalecube/services/transport/rsocket/EdgeCasesRSocketServiceTransportTest.java b/services/src/test/java/io/scalecube/services/transport/rsocket/EdgeCasesRSocketServiceTransportTest.java
new file mode 100644
index 000000000..644ae2743
--- /dev/null
+++ b/services/src/test/java/io/s... | 3 | 2 | 1 | [{"id": "G0", "claim": "The transport constructors lock users in, so a more flexible way of creating the rsocket client and server transports should be provided, e.g. so keep-alive settings can be adjusted.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim":... | null |
scalecube__scalecube-services__96 | scalecube/scalecube-services | 96 | defect | d1b1cd4c65fa9532caf81a2b39214110eaf45162 | 9b2e996bcc68ffc7dc440ee5b49f9ff5a210c4df | Remove guava futures usage | https://github.com/scalecube/scalecube/issues/90
Use CompletableFuture instead of guava's future,
Decrease null usage
| diff --git a/cluster/src/main/java/io/scalecube/cluster/Cluster.java b/cluster/src/main/java/io/scalecube/cluster/Cluster.java
index 0be1fec94..8c7af9ace 100644
--- a/cluster/src/main/java/io/scalecube/cluster/Cluster.java
+++ b/cluster/src/main/java/io/scalecube/cluster/Cluster.java
@@ -1,8 +1,6 @@
package io.scalecu... | 5 | 4 | 0 | [{"id": "G0", "claim": "In Cluster.join0 the async chaining with MoreExecutors.directExecutor() should be written in a more Java-8 functional style (e.g. Runnable::run), and if a same-thread executor is passed anyway it makes no sense not to simply call thenApply/thenCompose without an executor.", "category": "design",... | null |
scaleway__scaleway-cli__3644 | scaleway/scaleway-cli | 3,644 | defect | c46fb611d44c9733d5e2bac8bf025283b300d644 | ffd75d85f53aa3cec263d4cf31c6345fe1707b6e | fix(vpcgw):add better vizualisation for gateway and IP | close #3009 | diff --git a/internal/namespaces/vpcgw/v1/custom.go b/internal/namespaces/vpcgw/v1/custom.go
index fa44cd9959..248390d6ef 100644
--- a/internal/namespaces/vpcgw/v1/custom.go
+++ b/internal/namespaces/vpcgw/v1/custom.go
@@ -11,6 +11,7 @@ func GetCommands() *core.Commands {
human.RegisterMarshalerFunc(vpcgw.GatewayNe... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the leftover debug log.Println(\"get into the marshaller func\") from the new gateway marshaller.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test with golden files covering the new gateway rendering.", "c... | null |
scaleway__scaleway-cli__3666 | scaleway/scaleway-cli | 3,666 | defect | c39deda92b144a672cd2033e49e75a1d3be4eaee | 811c11238eb59cee9bc554f9550203e9f6d14cb0 | fix(baremetal): better rendering get offer | close #3665 | diff --git a/internal/namespaces/baremetal/v1/custom.go b/internal/namespaces/baremetal/v1/custom.go
index 7cfe0790ec..873b1c136c 100644
--- a/internal/namespaces/baremetal/v1/custom.go
+++ b/internal/namespaces/baremetal/v1/custom.go
@@ -15,6 +15,7 @@ func GetCommands() *core.Commands {
human.RegisterMarshalerFunc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `scw baremetal offer get` command should accept the offer ID as a positional argument instead of requiring `offer-id=`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The rendered offer output shows raw bandwidth values (e.g. ... | null |
scaleway__scaleway-cli__3722 | scaleway/scaleway-cli | 3,722 | defect | 5b4f5d0a0810702de2a17b4659798217a3c42866 | 0bf80a589bf6a47445ec605af85e491cd76c1691 | feat(core): set can handle all positional args together | This PR introduces a new behavior for the `set` verb when there are several positional arguments.
This feature will be helpful for #3597 but for now, there is no `set` command that is using positional arguments, so the test in this PR only shows that the already existing commands with `set` still work. More tests wi... | diff --git a/internal/core/cobra_utils.go b/internal/core/cobra_utils.go
index ab9fb78ead..c41a96c276 100644
--- a/internal/core/cobra_utils.go
+++ b/internal/core/cobra_utils.go
@@ -74,15 +74,31 @@ func cobraRun(ctx context.Context, cmd *Command) func(*cobra.Command, []string)
results := MultiResults(nil)
rawA... | 3 | 3 | 2 | [{"id": "G0", "claim": "Hardcoding the multi-positional handling for every command whose verb is \"set\" feels like magic and would break existing \"set\" commands whose id argument becomes positional; it should be handled in the Command configuration (e.g. an option like Command.AcceptMultiplePositonalArgs) so multipl... | null |
scaleway__scaleway-cli__3727 | scaleway/scaleway-cli | 3,727 | defect | 4407d8865e7a643a80860be4282ca5e8a87b053f | f4951ad7be6775e617b9af7c54a0948a4ff92f4a | feat(core):handle oneof validation | ### Community Note
* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers prioritize this request.
* Please do not leave "+1" or other comments tha... | diff --git a/internal/core/validate.go b/internal/core/validate.go
index b6c56a78ca..339e2bb8ea 100644
--- a/internal/core/validate.go
+++ b/internal/core/validate.go
@@ -20,6 +20,11 @@ type CommandValidateFunc func(ctx context.Context, cmd *Command, cmdArgs interfa
// ArgSpecValidateFunc validates one argument of a c... | 2 | 2 | 2 | [{"id": "G0", "claim": "Tests should be added covering validateRequiredArgs, whose behaviour this pull request changes, since the new tests only cover the OneOfGroupManager helpers.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "The autocomplete documen... | null |
scaleway__scaleway-cli__3762 | scaleway/scaleway-cli | 3,762 | defect | c16e24ec1e62f0b11f8efa0c6d35d65d3fbecdaf | da6f72e891d1f7386688da9c3c37744d7e9958ea | fix(core/reflect): handle missing values in slice with multiple elements | ### Community Note
* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers prioritize this request.
* Please do not leave "+1" or other comments tha... | diff --git a/internal/core/arg_file_content.go b/internal/core/arg_file_content.go
index 21a2a248b8..76385001de 100644
--- a/internal/core/arg_file_content.go
+++ b/internal/core/arg_file_content.go
@@ -19,7 +19,7 @@ func loadArgsFileContent(cmd *Command, cmdArgs interface{}) error {
}
fieldName := strcase.ToPu... | 4 | 4 | 0 | [{"id": "G0", "claim": "Rename the test-struct field PrivateNetworkId to PrivateNetworkID to comply with Go naming conventions.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Drop the stray French comment '// Exemple pour un masque de sous-réseau /2... | null |
scaleway__scaleway-cli__3786 | scaleway/scaleway-cli | 3,786 | defect | a0407a520dd1f6ba6c06dcf405a5f363116fbcc3 | 9ef917896749113e97af270e4e959584c7446903 | feat(core): add support for handling deprecated method | ### Community Note
* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers prioritize this request.
* Please do not leave "+1" or other comments tha... | diff --git a/internal/core/autocomplete.go b/internal/core/autocomplete.go
index 3a26548193..5a791789bd 100644
--- a/internal/core/autocomplete.go
+++ b/internal/core/autocomplete.go
@@ -186,6 +186,9 @@ func BuildAutoCompleteTree(ctx context.Context, commands *Commands) *AutoComplet
globalFlags := getGlobalFlags(ctx)... | 2 | 2 | 0 | [{"id": "G0", "claim": "The deprecated-command template line in internal/core/cobra_builder.go is missing a space after the Deprecated condition, which should be fixed to align output columns.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the go... | null |
scaleway__scaleway-cli__3834 | scaleway/scaleway-cli | 3,834 | defect | 8d8af37aa017978eb469fe16608d568bcc5566a1 | 0e90450dd2a8fc452fdfd844ce30f8fc8f5ca7f2 | fix(apple-silicon): improve vizualization compatible server types | close #3824 | diff --git a/internal/namespaces/applesilicon/v1alpha1/custom.go b/internal/namespaces/applesilicon/v1alpha1/custom.go
index b9cd68bb09..e3a0f51452 100644
--- a/internal/namespaces/applesilicon/v1alpha1/custom.go
+++ b/internal/namespaces/applesilicon/v1alpha1/custom.go
@@ -17,6 +17,7 @@ func GetCommands() *core.Comman... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new OSMarshalerFunc (which alters the golden output for OS display) is untested; add a test covering it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scaleway__scaleway-cli__3950 | scaleway/scaleway-cli | 3,950 | defect | 8d442dbcb9bffb4ef9f565b295456f4fdcea7945 | 82258306357d1d31e5dc445eac0ae785fae83013 | fix(test): delete suffix golden | ### Community Note
* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers prioritize this request.
* Please do not leave "+1" or other comments tha... | diff --git a/internal/core/testing.go b/internal/core/testing.go
index 0a002e1d1e..1ed74fe2d2 100644
--- a/internal/core/testing.go
+++ b/internal/core/testing.go
@@ -686,7 +686,7 @@ func TestCheckS3Golden() TestCheck {
// In order to avoid diff in goldens we set all timestamp to the same date
if *UpdateGoldens {... | 1 | 1 | 1 | [{"id": "G0", "claim": "The debug statement printing the bucket name that the pull request adds to Test_BucketCreate should be removed (empty suggestion block).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scaleway__scaleway-cli__4543 | scaleway/scaleway-cli | 4,543 | defect | 8d67cdfcf47cb0c1a5da166762f11a171f253adf | 627da63eed49d16238427c325e31dc539abf8d9b | feat(object): add support for IAM Access Key syntax | https://www.scaleway.com/en/docs/iam/api-cli/using-api-key-object-storage/#overriding-the-preferred-project-when-making-a-call
### Community Note
* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pul... | diff --git a/docs/commands/object.md b/docs/commands/object.md
index 20d9ae96b7..347262413a 100644
--- a/docs/commands/object.md
+++ b/docs/commands/object.md
@@ -146,6 +146,7 @@ scw object config get [arg=value ...]
|------|---|-------------|
| type | Required<br />One of: `rclone`, `s3cmd`, `mc` | Type of S3 tool y... | 3 | 3 | 3 | [{"id": "G0", "claim": "The default project ID should be optional in newS3Config instead of returning an error when the client has none.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The project ID should not be unconditionally appended to the acce... | null |
scaleway__scaleway-cli__5100 | scaleway/scaleway-cli | 5,100 | defect | 704ebe3cec03270585045c2dff94a9c8de88d377 | e26abc18d52f85d7d4c262b5f3c53fec58f1845d | fix(lint): resolve lint issues |
### Community Note
* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers prioritize this request.
* Please do not leave "+1" or other comments t... | diff --git a/core/cobra_utils_test.go b/core/cobra_utils_test.go
index 3057a04b3b..e6f86ffd3a 100644
--- a/core/cobra_utils_test.go
+++ b/core/cobra_utils_test.go
@@ -4,6 +4,7 @@ import (
"context"
"errors"
"reflect"
+ "strings"
"testing"
"time"
@@ -84,16 +85,16 @@ func testGetCommands() *core.Commands {
... | 3 | 3 | 0 | [{"id": "G0", "claim": "In ListPrompt.View(), builder.WriteString(m.Prompt) and builder.WriteString(\"\\n\\n\") could be merged into a single call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In ListPrompt.View(), builder.WriteString(choice) ... | null |
scaleway__scaleway-cli__5178 | scaleway/scaleway-cli | 5,178 | defect | 40fca90474cf087788c7816ef2c21b486f158783 | 094617a550cedd3f2b704ae81807fdb1f226bb1d | feat(redis): add version settings listing | close [#3713](https://github.com/scaleway/scaleway-cli/issues/3713)
### Community Note
* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers pri... | diff --git a/cmd/scw/testdata/test-all-usage-redis-version-settings-usage.golden b/cmd/scw/testdata/test-all-usage-redis-version-settings-usage.golden
new file mode 100644
index 0000000000..b35dd9b0af
--- /dev/null
+++ b/cmd/scw/testdata/test-all-usage-redis-version-settings-usage.golden
@@ -0,0 +1,23 @@
+🎲🎲🎲 EXIT C... | 2 | 2 | 0 | [{"id": "G0", "claim": "The command's last path segment should be a verb, so `settings` should be named `list-settings`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The httptest-server snippet in TestRedisVersionSettingsCommand is hard to understand a... | null |
scalyr__scalyr-agent-2__1036 | scalyr/scalyr-agent-2 | 1,036 | defect | df2af25420c0a8db236aee608a5732ede79db181 | 8cf944bd25cda1ca163f54cfd2d16ebd17dd5c10 | DSET-1018: Add file template support in syslog_monitor | DSET-1018: Add file template support in syslog_monitor
There are two aspects to the changes here:
- Collection and passing to SyslogHandler.handle of additional info for each syslog message
- Specifically proto, srcip, destport, hostname, appname
- Use of this additional info in the creation of a dynamic set of... | diff --git a/agent_build/requirement-files/main-requirements.txt b/agent_build/requirement-files/main-requirements.txt
index f24b4e918..65e1bd055 100644
--- a/agent_build/requirement-files/main-requirements.txt
+++ b/agent_build/requirement-files/main-requirements.txt
@@ -11,3 +11,5 @@ requests==2.28.1; python_version ... | 2 | 2 | 0 | [{"id": "G0", "claim": "If the agent can be used outside our images, the syslogmp library should be bundled as a third-party library rather than imported as a plain dependency.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The author lines should read `... | null |
scalyr__scalyr-agent-2__1039 | scalyr/scalyr-agent-2 | 1,039 | defect | 7c034d851c80fcbf460eb08fd09e4a19b534ea13 | 9bb956677d778bb3a84c0cf778a7bae45ae8469c | DSET-1106: PR 1024 feedback | - Added debug logs for couple scenarios
- Periodically (every 12 hours) log cache usage stats
- Ensured safe to call `_DLL.__del__` multiple times
- Added support for entry ttl in Cache, added unit test
- Made cache sizes and ttls configurable | diff --git a/docs/monitors/windows_event_log_monitor.md b/docs/monitors/windows_event_log_monitor.md
index 19fb01cf0..ffa559568 100644
--- a/docs/monitors/windows_event_log_monitor.md
+++ b/docs/monitors/windows_event_log_monitor.md
@@ -146,20 +146,24 @@ Log into DataSet and query [monitor = 'windows_process_metrics'](... | 2 | 1 | 0 | [{"id": "G0", "claim": "Since the PR makes cache size and TTL configurable, it would also be helpful to make the cache report interval configurable instead of hardcoding 3600 * 12.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TTL tests sleep a full... | null |
scalyr__scalyr-agent-2__1078 | scalyr/scalyr-agent-2 | 1,078 | defect | 65c2e8b4dd6a81b3d04f191dbba9d6e7ac6b33a4 | 60953c437a8c6393ce73438da374df29c28050c0 | DSET-1628: message_log_template & attributes not applied without checkpoint | - Pass the global config from SyslogMonitor (via SyslogServer) to SyslogHandler
- Then match current log path with potential log config from the global config
- This is needed to know which parser & attributes to apply when creating the logger | diff --git a/benchmarks/micro/test_syslog_parsing.py b/benchmarks/micro/test_syslog_parsing.py
index 9068284f8..229b167e8 100644
--- a/benchmarks/micro/test_syslog_parsing.py
+++ b/benchmarks/micro/test_syslog_parsing.py
@@ -47,6 +47,10 @@ def get(self, key):
except KeyError:
return None
+class ... | 5 | 2 | 0 | [{"id": "G0", "claim": "The per-log-file fnmatch loop over global log configs should add little overhead because this code path only runs when a log file for a specific path does not exist yet and is not called for every syslog message — the author is asked to confirm this reasoning.", "category": "performance", "verdi... | null |
scalyr__scalyr-agent-2__1210 | scalyr/scalyr-agent-2 | 1,210 | defect | 888447321333b7f817739cb06806a461188b3ba7 | f17b3b7f0f8a0a4e2161d1163dc1df2633bc7973 | Fixing the threading issue in the syslog monitor | Requests are read in a thread pool first to release the socket fd as soon as possible to ensure higher throughput.
The data is handled in a separate thread pool.
https://sentinelone.atlassian.net/browse/DTIN-3231 | diff --git a/scalyr_agent/builtin_monitors/syslog_monitor.py b/scalyr_agent/builtin_monitors/syslog_monitor.py
index 561b34f4d..60255e758 100644
--- a/scalyr_agent/builtin_monitors/syslog_monitor.py
+++ b/scalyr_agent/builtin_monitors/syslog_monitor.py
@@ -18,6 +18,10 @@
from __future__ import absolute_import
from ... | 7 | 3 | 0 | [{"id": "G0", "claim": "The new thread_pool.py file should carry the ASF/Apache license header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The syslog_monitor module should get a docstring explaining to developers how request processing works a... | null |
scalyr__scalyr-agent-2__1216 | scalyr/scalyr-agent-2 | 1,216 | defect | 882e3cf815242a000b0ece45ab5b7761eccac69b | 5af72ef5522ac151e8d54a533475986e78aa6dc1 | allow_http_monitors config implementation | Implementation of https://sentinelone.atlassian.net/browse/DTIN-3192.
For FIPS compliant environments we want to have a config (env) flag that will force HTTPS configuration on all relevant monitors.
I've used the same patten as allow_http does.
| diff --git a/.github/workflows/reusable-agent-build-container-images.yml b/.github/workflows/reusable-agent-build-container-images.yml
index 7fd82a124..86b4fdbb9 100644
--- a/.github/workflows/reusable-agent-build-container-images.yml
+++ b/.github/workflows/reusable-agent-build-container-images.yml
@@ -632,7 +632,7 @@... | 3 | 1 | 0 | [{"id": "G0", "claim": "For consistency, the monitor config parameter insecure_http_url should be renamed to allow_http.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ensure_https_url appears to be applied to every config option; it would be be... | null |
scalyr__scalyr-agent-2__1218 | scalyr/scalyr-agent-2 | 1,218 | defect | 882e3cf815242a000b0ece45ab5b7761eccac69b | e7dd24c8ef821fe4051f14c745f6af43ccaeca1d | Fixing support for python2 | Implementing a threading fallback for python2 and syslog monitor server. The fallback uses ThreadingMixin and works the same way as before the change to ThreadPool, which broke the python2 compatibility in the first place.
Added some necessary test fixes and loggings.
Some of the tests were using python3 instead ... | diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml
index 60659ab7ad..c4c4a31812 100644
--- a/.github/workflows/unittests.yml
+++ b/.github/workflows/unittests.yml
@@ -79,6 +79,7 @@ jobs:
fail-fast: false
matrix:
python-version:
+ - "2.7"
- "3.8"
... | 6 | 2 | 1 | [{"id": "G0", "claim": "The win-package smoke image lacks the createlang binary, so the python2 build fails at MySQLDbLogReader initialization (hence the python2 smoke test failures).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "GitHub Actions has... | null |
scalyr__scalyr-agent-2__1260 | scalyr/scalyr-agent-2 | 1,260 | defect | 089af0f113263555e01dd784219443d8d55dd2e4 | 91c30a8edf40ab5258bab236a9b4b78af6dc9702 | Options to omit labels in K8s pod logs | From documentation:
| `k8s_label_include_globs` | Optional, (defaults to ['*']). Specifies a list of K8s labels to be added to logs. |
| `k8s_label_exclude_globs` | Optional, (defaults to []]). Specifies a list of K8s labels to be ignored and not added to logs. |
Follows th... | diff --git a/.github/workflows/reusable-agent-build-linux-packages-new.yml b/.github/workflows/reusable-agent-build-linux-packages-new.yml
index 3f659f1934..bb359502e1 100644
--- a/.github/workflows/reusable-agent-build-linux-packages-new.yml
+++ b/.github/workflows/reusable-agent-build-linux-packages-new.yml
@@ -172,2... | 1 | 1 | 1 | [{"id": "G0", "claim": "Should add a timeout when using requests, since the default is to wait forever.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scalyr__scalyr-agent-2__1263 | scalyr/scalyr-agent-2 | 1,263 | defect | 089af0f113263555e01dd784219443d8d55dd2e4 | a45290136482edaee325cd29e2022a431d5c0b44 | DTIN-3938: Accommodate busy k8s clusters with short-lived pods | - CRIEnumerator._get_containers do not cache unavailable (404) pods if querying by filesystem (see comments)
- Change max_allowed_checkpoint_age to be a proper / configurable option
- Added note about making _K8sCache a fixed-size LRU cache | diff --git a/scalyr_agent/builtin_monitors/kubernetes_monitor.py b/scalyr_agent/builtin_monitors/kubernetes_monitor.py
index 7f65e4652..a2170aed9 100644
--- a/scalyr_agent/builtin_monitors/kubernetes_monitor.py
+++ b/scalyr_agent/builtin_monitors/kubernetes_monitor.py
@@ -1,4 +1,4 @@
-# Copyright 2018 Scalyr Inc.
+# Co... | 1 | 1 | 1 | [{"id": "G0", "claim": "Some of the kubernetes integration tests are failing, apparently related to the short-lived-pods handling (the linux packages test failures can be ignored as a known issue).", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
scalyr__scalyr-agent-2__1332 | scalyr/scalyr-agent-2 | 1,332 | defect | 12d616ee00dabb552b780347498f72729113801c | 3f71fa3d5f8d3f95edcce93e5c037ab157452318 | DTIN-6099: syslog_monitor: Log rotation support for Windows | The title is a misnomer (though that was the original intention), here log rotation support for Windows with the syslog monitor is implemented. | diff --git a/scalyr_agent/builtin_monitors/syslog_monitor.py b/scalyr_agent/builtin_monitors/syslog_monitor.py
index dd6321a2c..a4ac0c08a 100644
--- a/scalyr_agent/builtin_monitors/syslog_monitor.py
+++ b/scalyr_agent/builtin_monitors/syslog_monitor.py
@@ -1,4 +1,4 @@
-# Copyright 2017-2024 Scalyr Inc.
+# Copyright 201... | 4 | 2 | 2 | [{"id": "G0", "claim": "Use a file naming scheme that embeds the month, day of month and time in the log file name (e.g. paloalto.log.07-18-1405) instead of reusing indexed names, handling deletion of the oldest file on creation and checking its state is removed from the checkpoint file.", "category": "design", "verdic... | null |
scalyr__scalyr-agent-2__645 | scalyr/scalyr-agent-2 | 645 | defect | 962926a243c87b989879836335dbb86b5c69e634 | f6b931e6fc8c61586966670fee2b7e5b65eacf89 | Update syslog monitor so we allow messages which span multiple TCP packets and exceed "tcp_max_buffer" in size when "tcp_unlimited_buffer_size" monitor config option is true | This pull request updates syslog monitor so it supports messages / frames which potentially span multiple TCP packets and exceed ``tcp_max_buffer`` in size.
## Background, Context
Currently when running syslog monitor in TCP mode, all the message / frame data needs to fit in a single TCP packet which can be a max... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 369515493..067af540f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -119,6 +119,10 @@ Features:
* New configuration option `max_send_rate_enforcement` allows setting a limit on the rate at which the Agent will upload log bytes to Scalyr. You may wish to set this if you a... | 2 | 1 | 1 | [{"id": "G0", "claim": "Remove the stray debug print(\"innn\") statement that the pull request added in handle().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tcp_unlimited_buffer_size option name may not be the best and alternative names (e.g... | null |
scalyr__scalyr-agent-2__651 | scalyr/scalyr-agent-2 | 651 | defect | 28e1122da1e784a2b399d4030c74355d7d01435c | 83cec3752948ead2218a790d3b6aa273be6e5650 | Warn user on non-UTF-8 coding / locale and other locale related improvements | This pull request updates the agent start up code to log a warning if non ``UTF-8`` coding / locale is detected.
## Background, Context
I was troubleshooting a customer issue and noticed multiple issues which could arise when locale / coding under which the agent is running is not set to UTF-8 and user is trying ... | diff --git a/scalyr_agent/agent_main.py b/scalyr_agent/agent_main.py
index d5aa78214..0668f5163 100755
--- a/scalyr_agent/agent_main.py
+++ b/scalyr_agent/agent_main.py
@@ -100,6 +100,7 @@
)
from scalyr_agent.platform_controller import AgentNotRunning
from scalyr_agent.build_info import get_build_revision
+from scal... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new non-UTF-8 locale warning may also be emitted on Windows, and the reviewer asks whether that is intended or whether the warning should be skipped there.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An entry for this ... | null |
scalyr__scalyr-agent-2__667 | scalyr/scalyr-agent-2 | 667 | defect | a78253488d4cec32f17f274251503fdd28f7946c | 6f0310421e423741141e7833948c5cb94edaefc5 | Stop copying manager workers on agent kill | This PR fixes an issue when the agent process is killed but the orphan child processes of the workers still alive.
Since we use `multiprocessing.managers.SyncManager`, the problem has become a bit more complicated, because the `multiprocessing.managers.SyncManager` itself does not have facilities to detect the paren... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 09b9bc0ee..6a11f976f 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1738,6 +1738,22 @@ jobs:
capture_line_counts: true
cache_key_name: "benchmarks-loaded-agent-growing-log-file-py-35"
+ benchmarks-loaded-agent_2-gr... | 9 | 9 | 3 | [{"id": "G0", "claim": "The new `pid` class attribute on the shared object manager should be renamed to something like `ppid` so it is not mistaken for the actual worker/child process pid.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The watch... | null |
scalyr__scalyr-agent-2__694 | scalyr/scalyr-agent-2 | 694 | defect | 011304facb67882eb0ce07095f2ed8e704c5fdc1 | 4d7c4f41201f468a82f0c7f229e9550a2f6231f1 | Also validate changelog syntax / formatting in the RPM package | This pull request adds small change on top of #692 so we also validate syntax / conformance of changelog file / content which is embedded into the builtrpm package.
RPM seems to be much less strict with changelog formatting than deb, but it also doesn't hurt to have this validation.
In addition to that change, I ... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4e8d1bb61..cb789b0a8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2217,6 +2217,8 @@ jobs:
sudo apt-key update
sudo apt update
sudo apt install -y ruby ruby-dev rubygems rpm build-essential --force-y... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added TODO comment line contains a leftover \"the\" that should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scalyr__scalyr-agent-2__724 | scalyr/scalyr-agent-2 | 724 | defect | d0616da069414b676e80e51fdb7b8c42c8db63b2 | 18526a29363e578f902c23f4b75cb994de8bc2f9 | Move worker session agent log file settings into a separate log config. | This pull request fixes the issue that was caused by to broad glob for the agent log file paths. Because of that, the glob also matched another log files such as `agent_syslog`.
**Solution:**
As a solution, the path in the agent log config is not glob any more, so it matches only the agent log file. For the worker... | diff --git a/scalyr_agent/configuration.py b/scalyr_agent/configuration.py
index a087eceac..e29cb0394 100644
--- a/scalyr_agent/configuration.py
+++ b/scalyr_agent/configuration.py
@@ -73,6 +73,9 @@
MASKED_CONFIG_ITEM_VALUE = "********** MASKED **********"
+# prefix for the worker session log file name.
+AGENT_WOR... | 3 | 1 | 0 | [{"id": "G0", "claim": "It might be better to introduce a dedicated config option for enabling collection of debug logs, instead of requiring users to add a manual log config entry.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "More (end-to-end) tests w... | null |
scalyr__scalyr-agent-2__744 | scalyr/scalyr-agent-2 | 744 | defect | 2fa6a10c2aeaee14097ab590b5900dd403dc633b | c364b14e7eb55e5855e38076b365a2f84ae3d082 | CT-377: Support SSL in the MySQL monitor | Concern: I exposed `ca_file` as a config option for this monitor, which tells pymysql which file to use when using ssl, but it seems to do nothing. Even when passed a non-existent file SSL connects with no issues. Is this just a mac thing maybe? | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b5c562463..f3c33995f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ Packaged by Yan Shnayder <yan@scalyr.com> on Mar 9, 2021 14:00 -0800
Improvements:
* Add support for collecting some metrics Kubernetes when running in a CRI runtime.
+* Add support for S... | 6 | 4 | 1 | [{"id": "G0", "claim": "The SSL options exposed as monitor config options (including ca_file) appear to have no effect on the connection — SSL connects even with a non-existent CA file — apparently because of how they are passed to pymysql.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
scalyr__scalyr-agent-2__753 | scalyr/scalyr-agent-2 | 753 | defect | dbb170e20cdd7d5cc54ca3f5e4956bbbb053bab9 | 3f8dc245428c287e52a427ecf1216fcf09875fd9 | CT-334 Fix copy truncate's wrong file selection | ### A small background:
If the agent detects that the file was "copy-truncated", then it looks for that copied file. This search process is not so trivial because the `logrotate` supports multiple rotated log filename formats.
The previous searching method checked if the candidate file name starts with the same p... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 80a784862..eba7d14a6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ Improvements:
Bug fixes:
* Fix an issue where log lines may be duplicated or lost in the Kubernetes monitor when running under CRI with an unstable connection to the K8s API.
+* Fix an ... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new candidate-file selection assumes the filename has no dot (splitting on '.' and taking parts[0]), so rotated files like web.access.log.1 or web.access.log-20210527 with prefix=web.access would not be matched; the reviewer asks to derive the prefix from the last dot via rfind and check tha... | null |
scalyr__scalyr-agent-2__765 | scalyr/scalyr-agent-2 | 765 | defect | 8392568792fa06534ed9f9ef1892cf91577e3a62 | 575784e90deb6b6884b309922625e061a7b61b5a | Update Windows Event Log monitor to emit a warning when non-suppotred config option is used with new event API | This pull request updates Windows Event Log monitor to log a warning in case ``maximum_records_per_source`` config option is used in combination with the new event API.
This config option is only applicable to the old event log API (should rarely, never? be used these days with frozen binaries and recent versions o... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1d2105f70..b2152acb7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,15 @@
Scalyr Agent 2 Changes By Release
=================================
+## 2.1.22 "TBD" - Aug 30, 2021
+
+<!---
+Packaged by Arthur Kamalov <arthur@scalyr.com> on Aug 30, 2021 21:00 -0800
+... | 2 | 2 | 1 | [{"id": "G0", "claim": "The comment's wording should read 'emit a warning if this' instead of 'emit a warning is this'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The non-default maximum_records_per_source warning should be emitted when the ne... | null |
scalyr__scalyr-agent-2__775 | scalyr/scalyr-agent-2 | 775 | defect | cb98e27bcfac0ad1d318ca9b4f8a1e30cd3c5618 | 9885e74e2c2dfd09af244f917e138ba27fb46da8 | CT-444 - k8s log events truncated at 16KB | It was found that Docker's logging mechanism will split lines at the 16KB point with no way to configure that. Some customers ran into this and assumed it was the Agent splitting the lines.
This PR implements a feature where JSON parsed lines will be merged together depending on if they end in a newline character or... | diff --git a/scalyr_agent/configuration.py b/scalyr_agent/configuration.py
index 4a0a7ffa3..b971e9731 100644
--- a/scalyr_agent/configuration.py
+++ b/scalyr_agent/configuration.py
@@ -1057,6 +1057,13 @@ def include_raw_timestamp_field(self):
message as recorded by those systems."""
return self.__get_... | 7 | 6 | 2 | [{"id": "G0", "claim": "The position of the LogFileIterator must always reflect the exact place in the file to start reading the next line after what readline returned (suggesting the reset-position-to-original approach) so checkpointing keeps working once the partial-line corner case is handled.", "category": "correct... | null |
scalyr__scalyr-agent-2__791 | scalyr/scalyr-agent-2 | 791 | defect | b1c731794a3596cdae61da0df4e604b9bb794394 | 62c2b455bf90a6782efaa8d7ed5b706782258d76 | Add response message to the Scalyr client connection error log. | A small addition to the bad request error log message, so it also contains a response message from the server. | diff --git a/scalyr_agent/scalyr_client.py b/scalyr_agent/scalyr_client.py
index 8c4e2b7ce..dc2e7ff30 100644
--- a/scalyr_agent/scalyr_client.py
+++ b/scalyr_agent/scalyr_client.py
@@ -23,6 +23,7 @@
from __future__ import unicode_literals
from __future__ import absolute_import
+import json
import uuid
__author_... | 2 | 2 | 0 | [{"id": "G0", "claim": "The badParam error logging should use the already-available response_as_json variable instead of re-parsing response with json.loads (avoiding double parsing and the need for a try/catch), and a test case should be added for it.", "category": "maintainability", "verdict": "supported", "priority"... | null |
scalyr__scalyr-agent-2__800 | scalyr/scalyr-agent-2 | 800 | defect | cab9211c7b5614833124d8182405e6a16db32cbe | 863cc875de499ea5703d153e46a7ae18351c21b5 | Add docker images push by tag | This PR adds a new step, in the docker publishing job in the GitHub actions, that verifies the given tag of the repository and publishes appropriate image tags:
- custom image tag.
- or production tag (e.g. 2.1.25) with the `latest` tag. That's only the case when the repo tag matches a pattern of the repo's producti... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index a72360da9..8a4241fe1 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -72,7 +72,7 @@ parameters:
cache_version_py_dependencies:
description: "Cache version suffix used for all the Python dependency caches."
type: string
- defa... | 5 | 3 | 2 | [{"id": "G0", "claim": "The pull request's change of VERSION from 2.1.26 to 2.1.25 may be an accidental change that should be reverted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change of agent-build.yml's reusable-workflow references from ... | null |
scalyr__scalyr-agent-2__801 | scalyr/scalyr-agent-2 | 801 | defect | 9e9458db518cda4e4d893cd5ae809c6fdce3e06c | 780a15a0df3694a8247c8d02a096937082c75535 | Add support for Alpine Linux based Docker images | This pull request includes Dockerfile and other changes which are needed to produce Alpine Linux based Docker images.
Alpine Linux is a popular base image choice since it's smaller than the alternatives.
One of the disadvantages with alpine is that it uses musl and not libc and pre-built musl specific binaries (... | diff --git a/.circleci/smoketest_docker.sh b/.circleci/smoketest_docker.sh
index 0339b2586..8ac4f26f0 100644
--- a/.circleci/smoketest_docker.sh
+++ b/.circleci/smoketest_docker.sh
@@ -109,7 +109,7 @@ echo "Building docker image"
agent_image="agent-ci/scalyr-agent-${log_mode}:${fakeversion}"
# Build image by specif... | 2 | 1 | 1 | [{"id": "G0", "claim": "The 'Get checksum of the base image files' step in the CI test job hardcodes the buster builder name; the reviewer asks whether it should use ${{ matrix.image_distro_name }} instead, so the tests also run for alpine.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "in... | null |
scalyr__scalyr-agent-2__816 | scalyr/scalyr-agent-2 | 816 | defect | 86ed41d272c31f7553ca5294becde96cd964a665 | e45f88b04ebeb87925c531c330e9cc18623757de | Allow debug log level to be set for subset of loggers | ## Background, Context
Today, user can enable debug log level for all the loggers using ``debug_level: [0,5]`` config option.
This sets debug log level for all the loggers.
Problem is that a lot of debug loggers are very noisy and in a lot of scenarios, you only really want to debug subset of the agent (e.g. ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b00d56f06..d82f74cae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,16 @@
Scalyr Agent 2 Changes By Release
=================================
+## 2.1.27 "" - Feb 12, 2022
+
+<!---
+Packaged by Arthur Kamalov <arthurk@sentinelone.com> on Feb 12, 2022 23:04 -080... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test emits the 'debug 1' messages via logger2 instead of logger1 and asserts the debug log contains 'YY Test debug 1', so the case where logger1 is excluded from the debug-level subset is never actually verified (the assertions pass for the wrong reason).", "category": "testing", "verdict": ... | null |
scalyr__scalyr-agent-2__828 | scalyr/scalyr-agent-2 | 828 | defect | 30baadd4215a37d6cc3c2f034547da8037b1c172 | 56f567b3a7e2367420e5a316f74cabc8f3d1c65e | Fix centos 8 ami | Switch centos8 ami to the vault repo source, due the distro's EOL | diff --git a/tests/ami/packages_sanity_tests.py b/tests/ami/packages_sanity_tests.py
index 118c10d0b..49587e768 100644
--- a/tests/ami/packages_sanity_tests.py
+++ b/tests/ami/packages_sanity_tests.py
@@ -456,8 +456,8 @@ def main(
cat_step_timeout = 10
max_tries = 3
else:
- deploy_step_tim... | 1 | 1 | 0 | [{"id": "G0", "claim": "A comment should be added explaining why the repo source is changed to centos vault - CentOS 8 is EOL and its repos are no longer active.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scalyr__scalyr-agent-2__829 | scalyr/scalyr-agent-2 | 829 | defect | 67e60c34a8b597cfa549e7f1109585fec545d4ef | 9baf649a01a06b11bb5d34681aba8bb86588b281 | Refactor package type logic | This PR mostly prepares already existing packages to have the same codebase as in the upcoming frozen binaries. All of that was part of the abandoned frozen binaries PR, but now it was decided it bring changes iteratively without breaking existing packages.
The main change here is to get rid of the `MSI_INSTALL` insta... | diff --git a/build_package.py b/build_package.py
index 4153ba037..fce667173 100644
--- a/build_package.py
+++ b/build_package.py
@@ -31,6 +31,7 @@
import errno
import glob
+import json
import os
import re
import shutil
@@ -282,30 +283,14 @@ def build_win32_installer_package(variant, version):
shutil.copy(ma... | 5 | 5 | 0 | [{"id": "G0", "claim": "The Windows bundle's monitor list may also need to include the recently added kubernetes_openmetrics_monitor module, or alternatively that monitor should be excluded from the Windows bundle.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
scalyr__scalyr-agent-2__843 | scalyr/scalyr-agent-2 | 843 | defect | 032674a3bb0d85976aed5dd889a37edde20afcb0 | 3b2804a2b7171fc2b2d0d53a5023906df586205c | Fix startup checkpointing bug related to ephemeral log files (/var/log/scalyr-agent-2/*.log) on Kubernetes deployments | ## Description
This pull request fixes a bug where we incorrectly preserved checkpoints related state for ephemeral logs in ``/var/log/scalyr-agent-2/`` across agent pod restarts (aka new pods being provisioned).
This issue meant that some of the internal agent log messages which are emitted during the early agen... | diff --git a/.github/workflows/agent-build.yml b/.github/workflows/agent-build.yml
index 2599b106a..8f3cc4bfa 100644
--- a/.github/workflows/agent-build.yml
+++ b/.github/workflows/agent-build.yml
@@ -24,8 +24,10 @@ jobs:
strategy:
fail-fast: false
matrix:
- image-type: [ "docker-json", "docke... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new ignore_checkpoints_on_startup_path_globs default should be added at the code level for the k8s monitor instead of in docker/k8s-config/agent.json, so the k8s config file stays as blank as possible.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"... | null |
scalyr__scalyr-agent-2__863 | scalyr/scalyr-agent-2 | 863 | defect | 237f8f71907822feb2d7c0c9bf5348a9f9e842b7 | 7009106a004208d26350549c07d124acfe65da00 | CT-523 | From [CT-523](https://scalyr.myjetbrains.com/youtrack/issue/CT-523):
This change arranges for server responses that cannot be parsed as json (ie parseResponseFailed from ScalyrClientSession.__receive_response):
- To be logged as info instead of error (from the ticket, perhaps warning is more appropriate?)
- And to... | diff --git a/scalyr_agent/copying_manager/worker.py b/scalyr_agent/copying_manager/worker.py
index 6791de837..2b147ca86 100644
--- a/scalyr_agent/copying_manager/worker.py
+++ b/scalyr_agent/copying_manager/worker.py
@@ -489,6 +489,14 @@ def run(self):
# on the ground and advance.
... | 3 | 1 | 0 | [{"id": "G0", "claim": "Consider also logging the partial server response in the drop-events error log in CopyingManagerWorker, though the reviewer believed it is already logged in the client code.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new par... | null |
scalyr__scalyr-agent-2__881 | scalyr/scalyr-agent-2 | 881 | defect | e031e4bdfde25d17c369b000c8b6fbbf5e6a5e86 | 7793c4eeb519c6a457a29272570bb43e8c95c2ed | Add new Docker k8s image builder for k8s deployment with new Kubernetes Open Metrics monitor | This pull request adds new Docker image builder for Docker images for Kubernetes deployment which has new work in progress and experimental Open Metrics monitor.
Those images are meant to be used as convenience for early adopters of Kubernetes Explorer functionality. | diff --git a/.circleci/config.yml b/.circleci/config.yml
index c69caf0ee..50f30e388 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2127,7 +2127,7 @@ jobs:
- save_cache:
name: Save Python Installer Cache
- key: windows--v2-python-installer-cache-{{ .Branch }}-<< parameters.... | 2 | 2 | 1 | [{"id": "G0", "claim": "The public Docker image name `scalyr-k8s-agent-with-om-monitors` would be more helpful if it spelled out openmetrics instead of the short `om` contraction, e.g. `scalyr-k8s-agent-with-openmetrics-monitors`, even though the author worried the name gets very long.", "category": "maintainability", ... | null |
scalyr__scalyr-agent-2__906 | scalyr/scalyr-agent-2 | 906 | defect | 0c2f732c333dc4afd64f2a9b4fa0dae3dcb82d80 | 7e3999d7d32f7ceb7d18de51ff918825cd0014e8 | Fix invalid end of the json parsing. | ### Issue:
Our custom JSON parser does check for the end of the document after its parsing. For example ,if we put extra closing curly brackets in the middle of the object, it doesn't raise any error and just returns "incomplete" object.
Here the result object will miss the `filed2` filed and won't raise anything.
... | diff --git a/scalyr_agent/json_lib/parser.py b/scalyr_agent/json_lib/parser.py
index b4368d00f..80772abd3 100644
--- a/scalyr_agent/json_lib/parser.py
+++ b/scalyr_agent/json_lib/parser.py
@@ -210,9 +210,29 @@ def parse(input_text, check_duplicate_keys=False):
input_text = six.ensure_text(input_text)
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should add a changelog entry.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new 'Expecting EOF' error message is not user-friendly and should provide more context, ideally including the line number whe... | null |
scalyr__scalyr-agent-2__940 | scalyr/scalyr-agent-2 | 940 | defect | 256ed69074394f31f10c9385bd0d43f335d24eb1 | f97d5caa22ab7007301ff9fb74ba1c44c0fe4e6c | Improvements for the client (agent) side rate calculation | This pull request includes some improvements and fixes for the client side rate calculation functionality to make sure it works correctly when metric contains additional labels (``extra_fields``).
Monitor can produce metrics which look like this:
```bash
process_cpu_seconds_total app="app-1" node="node-1" 155
p... | diff --git a/scalyr_agent/builtin_monitors/kubernetes_openmetrics_monitor.py b/scalyr_agent/builtin_monitors/kubernetes_openmetrics_monitor.py
index c2b709004a..a191def801 100644
--- a/scalyr_agent/builtin_monitors/kubernetes_openmetrics_monitor.py
+++ b/scalyr_agent/builtin_monitors/kubernetes_openmetrics_monitor.py
@... | 2 | 1 | 1 | [{"id": "G0", "claim": "The scalyr_agent.timing module that the pull request's new lines in scalyr_agent/metrics/base.py import (get_empty_stats_dict) had not been added to the repository yet, so the new imports would fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {... | null |
scalyr__scalyr-agent-2__941 | scalyr/scalyr-agent-2 | 941 | defect | 980fa326adeaf456c82a6bec3cd871c6ddf8a65f | 55dc8de1b78e50af8e977914636ed5f397c615cd | Fix config export config | Fix `--import-config`, `--export-config` options of the `scalyr-agent-2-config` comand which is caused by Python2,3 incompatibility.
I also noticed, that docker images don't have `scalyr-agent-2-config` compatibility script, which caused errors on docker images when running config commands. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 329f7f153..091f26d9d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ Windows:
Bug fixes:
* Fix a bug with ``import_vars`` functionality which didn't work correctly when the same variable name prefix was used (e.g. ``SCALYR_FOO_TEST``, ``SCALYR_FOO``).
* F... | 1 | 1 | 0 | [{"id": "G0", "claim": "A changelog entry should also be added for the Docker image, along the lines of making sure the ``scalyr-agent-2-config`` binary is present in the Docker image.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scalyr__scalyr-agent-2__943 | scalyr/scalyr-agent-2 | 943 | defect | 83ee579fee7ee60a047282bb3f68523f743cb791 | 068e7ca51c96af7e00e81ced677c86d247636cf7 | Introduce clean up routine for RateMetricFunction, fix log function argument order | This pull request includes two changes:
1. Fix invalid ``log.info()`` function call arguments order
2. Introduce clean up routine for the ``RateMetricFunction`` function which periodically cleans up old / stale values.
We need periodic clean up routine to ensure internal data structure which stores metric values... | diff --git a/scalyr_agent/configuration.py b/scalyr_agent/configuration.py
index 10896fc64..2fe337057 100644
--- a/scalyr_agent/configuration.py
+++ b/scalyr_agent/configuration.py
@@ -1239,6 +1239,10 @@ def config_change_check_interval(self):
def instrumentation_stats_log_interval(self):
return self.__ge... | 2 | 1 | 0 | [{"id": "G0", "claim": "Consider whether the clean up routine should be disableable by setting the interval to zero, or at least log a warning message when the interval is zero.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The clean up routine reads and ... | null |
scalyr__scalyr-agent-2__974 | scalyr/scalyr-agent-2 | 974 | defect | d7a84ec14b341f86885da4984cfcdc05f66781ce | 78d8cee334bffc6a5bd4d3d83bde4aaecfc4ca61 | Add docker image builder | This PR add refactored[ docker image builders](https://github.com/scalyr/scalyr-agent-2/blob/add-refactored-docker-image-builders/agent_build_refactored/docker_image_builders.py)
The main idea remains the same:
We build base docker image which can be cached by GHA, and the final docker image is built upon this bas... | diff --git a/agent_build_refactored/docker/dockerfiles/base.Dockerfile b/agent_build_refactored/docker/dockerfiles/base.Dockerfile
new file mode 100644
index 000000000..49dc4cf49
--- /dev/null
+++ b/agent_build_refactored/docker/dockerfiles/base.Dockerfile
@@ -0,0 +1,40 @@
+# Base image that creates all necessary depen... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment in install-python-libs.sh reads 'orjson is wheel is not available', where the first 'is' is redundant.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assertion error about the number of found image tarballs ... | null |
scalyr__scalyr-agent-2__997 | scalyr/scalyr-agent-2 | 997 | defect | f3e86bec450c1c348af1d72ec3c8dd92c69a10e8 | d8c3f7099f7488f24fbf20ab1898dd77b8230850 | windows_event_log_monitor: NewJsonApi: Ensure formatting when RateLim… | …itLogFilter is not applied
From investigation into DSET-536 I came across an issue if the scalyr_logging.RateLimiterLogFilter is not applied (eg when monitor_log_write_rate & monitor_log_max_write_burst are both -1: ref scalyr_logging.MetricLogHandler.__init__) then the LogRecord generated by the NewJsonApi will no... | diff --git a/scalyr_agent/builtin_monitors/windows_event_log_monitor.py b/scalyr_agent/builtin_monitors/windows_event_log_monitor.py
index 37f331771..1810ecfb8 100644
--- a/scalyr_agent/builtin_monitors/windows_event_log_monitor.py
+++ b/scalyr_agent/builtin_monitors/windows_event_log_monitor.py
@@ -928,8 +928,13 @@ de... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add tests covering the scenario where the rate limit is disabled and formatting is therefore not applied by RateLimitLogFilter.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sched-ext__scx__1414 | sched-ext/scx | 1,414 | defect | dbb5ae6495e290e2c06ec35ac912677b4f25b924 | 29830099dcefc56b71a57ad3dd0ce84786ebdedd | scx_utils: add helper for updating BPF masks from userspace | As @arighi mentioned in #1399, it would be nice to have a more structured way to update BPF masks from userspace. Ideally, the userspace CPU mask type would have a helper for this operation. However, each scheduler directly or indirectly defines its own CPU mask types, so such a common helper would have to work with al... | diff --git a/rust/scx_utils/src/cpumask.rs b/rust/scx_utils/src/cpumask.rs
index e2a8309199..88c32901c3 100644
--- a/rust/scx_utils/src/cpumask.rs
+++ b/rust/scx_utils/src/cpumask.rs
@@ -266,6 +266,26 @@ impl Cpumask {
}
}
+ /// Write out a CPU mask to a raw memory pointer. We normally use this as pa... | 3 | 2 | 2 | [{"id": "G0", "claim": "The unsafe boundary should live in a pointer-wrapping type like `BitmapSlice` (unsafe to construct, safe read/write methods) instead of marking the whole write_to_ptr method unsafe.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add... | null |
sched-ext__scx__1784 | sched-ext/scx | 1,784 | defect | d78e3308c8d82aad7e5b2469ef97a3e5b9522747 | 862f1b06c21ab454a292c9c090b0e9ef32783b78 | scx_lavd: Common case optimizations for ops.dispatch() and more. | This PR includes optimizations for common cases: notably ops.dispatch(), math in calculating deadlines and time slides, and dealing with CPU utilization. No behavioral changes are intended. | diff --git a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
index 36596f225f..9dd8e220be 100644
--- a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
@@ -10,14 +10,6 @@
static bool consume_dsq(u64 dsq_id)
{
- struct cpdom_ctx *cpdo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added prev-task slice guard in ops.dispatch() could be written more compactly as `taskc_prev = taskc_prev ?: get_task_ctx(prev);` — a nit the reviewer says is free to ignore.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
sched-ext__scx__1828 | sched-ext/scx | 1,828 | defect | 823856c923c738a9bc33b143dd937facf494d97a | 503beeafa3f5145d09228500719f7719ae6ed248 | layered: dont preempt if policy is not sched_ext | Don't preempt tasks with sched policy that is not sched_ext. | diff --git a/scheds/include/scx/common.bpf.h b/scheds/include/scx/common.bpf.h
index 1e129c367b..1fb2a862bc 100644
--- a/scheds/include/scx/common.bpf.h
+++ b/scheds/include/scx/common.bpf.h
@@ -378,6 +378,16 @@ int bpf_iter_bits_new(struct bpf_iter_bits *it, const u64 *unsafe_ptr__ign, u32
int *bpf_iter_bits_next(str... | 3 | 2 | 2 | [{"id": "G0", "claim": "The new eligibility check rq->curr->policy != SCHED_EXT would exclude preempting an idle CPU and misreads SCHED_NORMAL tasks that are on SCX when all tasks are switched, so comparing p->sched_class against ext_sched_class and idle_sched_class would be better.", "category": "correctness", "verdic... | null |
sched-ext__scx__1843 | sched-ext/scx | 1,843 | defect | ba9e18d8c3bc65c24cb743e5437737b5a82a882d | 0262ad9ddca73af572c1a9656ed104c48c5f1c7b | layered: cleanup skip-preempt | Have layered only attempt to skip preemption's that it could not accomplish (i.e. due to tasks with RT sched class) when kallsyms addresses for idle sched class and ext sched class are present.
At the present, layered would exit if those addresses were unobtainable.
still works when kallsyms present for both the ... | diff --git a/scheds/rust/scx_layered/src/bpf/main.bpf.c b/scheds/rust/scx_layered/src/bpf/main.bpf.c
index 4cfa6d5406..e0c14f7869 100644
--- a/scheds/rust/scx_layered/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_layered/src/bpf/main.bpf.c
@@ -60,6 +60,7 @@ const volatile bool enable_gpu_support = false;
/* Delay permitted... | 3 | 2 | 0 | [{"id": "G0", "claim": "The enable_skip_preempt variable can be skipped and the outer check rolled into the inner condition by writing (ext_sched_class_addr != NULL), for terseness.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The warning shown when th... | null |
sched-ext__scx__2093 | sched-ext/scx | 2,093 | defect | 316ba0e63e82e8a0486ef2a9077294c586ffdd7b | d2a0d2de953ec317f6803598fc8abab53f9a98ef | scx_mitosis: log global + per-cell queue counts. | Adds functionality to print:
• total queue placement decisions and share of global work
• per-queue percentages (Local, Default, Hi, Lo)
• affinity-violation percentage
Output is width-aligned and skips empty cells.
Output example:
Total Decisions: 6872 100.0% | L:92.7% D: 5.9% hi: 1.4% lo: 0.0% |... | diff --git a/scheds/rust/scx_mitosis/src/bpf/intf.h b/scheds/rust/scx_mitosis/src/bpf/intf.h
index 80193c843e..ae706b0d2b 100644
--- a/scheds/rust/scx_mitosis/src/bpf/intf.h
+++ b/scheds/rust/scx_mitosis/src/bpf/intf.h
@@ -34,6 +34,9 @@ enum consts {
enum cell_stat_idx {
CSTAT_LOCAL,
CSTAT_GLOBAL,
+ CSTAT_LO_FALLB... | 12 | 12 | 0 | [{"id": "G0", "claim": "When global_queue_decisions is 0 (a state that is never expected), log_all_queue_stats should return an error instead of tracing \"No decisions made\" and returning Ok.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull ... | null |
sched-ext__scx__2186 | sched-ext/scx | 2,186 | defect | f5ee91f292a23f79b1995ef21d9945afad4d779b | 6420eac58889e2a21dc14fd2b713ac8a5ac03aa4 | lib: add selftests | Add a helper crate for running selftests on the code in. the lib/ crate. Also add selftest stubs for the bitmap crate that we will flesh out later, so that the crate is immediately usable. | diff --git a/Cargo.lock b/Cargo.lock
index b3391e2d0b..5486253ef4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2832,6 +2832,15 @@ dependencies = [
"walkdir",
]
+[[package]]
+name = "scx_lib_selftests"
+version = "1.0.0"
+dependencies = [
+ "anyhow",
+ "libbpf-rs",
+ "scx_utils",
+]
+
[[package]]
name = "scx_load... | 2 | 1 | 0 | [{"id": "G0", "claim": "The newly added workspace member entry in Cargo.toml should be put on a separate line instead of inline after `members = [` (style nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Setting `edition = \"2024\"` in rust/... | null |
sched-ext__scx__2237 | sched-ext/scx | 2,237 | defect | a33af09db0b8ab6c3396bde2d2bf3d70ed73f5eb | 0a7b8800f48853ab58f929e846b330633f25d992 | scx_p2dq: Add interactive DSQ | Add a separate DSQ for interactive tasks. This improves latency for interactive tasks by giving them a slight priority boost. The dsq can be optionally disabled via the CLI. | diff --git a/scheds/rust/scx_p2dq/src/bpf/intf.h b/scheds/rust/scx_p2dq/src/bpf/intf.h
index cb5afd4322..9933647c07 100644
--- a/scheds/rust/scx_p2dq/src/bpf/intf.h
+++ b/scheds/rust/scx_p2dq/src/bpf/intf.h
@@ -38,6 +38,7 @@ enum consts {
LOAD_BALANCE_SLACK = 20ULL,
P2DQ_MIG_DSQ = 1LLU << 60,
+ P2DQ_INTR_DSQ = ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The -i short flag of the new interactive_dsq option conflicts with the -i short flag already used by init_dsq_index.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Interactive tasks dispatched to the dedicated interactive DSQ... | null |
sched-ext__scx__2260 | sched-ext/scx | 2,260 | defect | 03555d1950a2fde7ab013cc6a8208f886cc8dd16 | b3985a7a59f46e1bf2ef26b7e7a3008eca668151 | scx: add more support code for unit tests | Add a basic bpf map implementation and then rework the existing p2dq unit tests to be in their own file, and then add a basic unit test for a function that uses the map code to validate everything works. | diff --git a/lib/scxtest/meson.build b/lib/scxtest/meson.build
index 58b04f3b14..4596ffe4bc 100644
--- a/lib/scxtest/meson.build
+++ b/lib/scxtest/meson.build
@@ -2,6 +2,7 @@ scxtest_lib = static_library(
'scxtest',
'scx_test.c',
'overrides.c',
+ 'scx_test_map.c',
c_args: ['-DTEST'],
)
diff --git a/lib/... | 1 | 1 | 0 | [{"id": "G0", "claim": "Suggests looping the lookup test over a collection of indices (seeded random, or N writes then N reads) rather than testing only index 0.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sched-ext__scx__2264 | sched-ext/scx | 2,264 | defect | f932ba1ead131ef88418eb2c558312550ea7e407 | 1d60a5a130fae6a4f580c5fc8a680cb1d3be9ec0 | lib: add initial arena task queue abstraction | Add an arena-based DSQ-like abstraction built on top of a minheap, called arena task QUEUE (ATQ). This abstraction lets us experiment with alternative task queue designs by providing a BPF-based implementation. The abstraction initially supports simple enqueue/dequeue operations and will be expanded as needed to suppor... | diff --git a/lib/atq.bpf.c b/lib/atq.bpf.c
new file mode 100644
index 0000000000..37c1246bab
--- /dev/null
+++ b/lib/atq.bpf.c
@@ -0,0 +1,97 @@
+#include "scxtest/scx_test.h"
+#include <scx/common.bpf.h>
+#include <lib/sdt_task.h>
+
+#include <lib/atq.h>
+
+/*
+ * Arena task queue implementation.
+ */
+
+__weak
+u64 sc... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new abstraction's name should not use \"DSQ\" because it is too confusing, so a different name should be picked (reviewer suggests ARQ).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the shorter `scx_atq_` as the... | null |
sched-ext__scx__2268 | sched-ext/scx | 2,268 | defect | 66b147a6418e985c4fd8c6100de89e1aa009530a | 094cf9d9f360f90764906e70c02905293df5e807 | scx_mitosis: Eliminate fallback dsqs | mitosis has the same logic from layered to assign pinned tasks to fallback dsqs. Cells are determined by having an explicit cpuset so pretty much all tasks in a cell were getting sent to the lo_fallback dsq. The first commit fixes this by only assigning tasks to the fallback dsqs if their pinned cpus aren't a superset ... | diff --git a/scheds/rust/scx_mitosis/src/bpf/intf.h b/scheds/rust/scx_mitosis/src/bpf/intf.h
index a6ec2ea5a1..cbdb0abda7 100644
--- a/scheds/rust/scx_mitosis/src/bpf/intf.h
+++ b/scheds/rust/scx_mitosis/src/bpf/intf.h
@@ -26,8 +26,7 @@ enum consts {
MAX_CELLS = 16,
USAGE_HALF_LIFE = 100000000, /* 100ms */
- HI_F... | 4 | 3 | 3 | [{"id": "G0", "claim": "The wakeup-path guard (`if (!wakeup)`) added in mitosis_enqueue doesn't cover all cases where an idle CPU hasn't been looked for and kicked; htejun suggests using `__COMPAT_is_enq_cpu_selected()` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
sched-ext__scx__2275 | sched-ext/scx | 2,275 | defect | d1409d32c97f07ae9a4ae588bf907f39bf3fbb54 | fa07a60e9f3f3814f2616ee5073a79dac1d8f596 | lib: dynamically allocate minheap and add minheap/ATQ fixups | Minheaps are currently statically allocated because the verifier does not accept data structures with a variable array at the end. Bite the bullet and make the minheap's element array into a separate allocation referred to with a pointer. This allows us to bump the maximum task capacity of an ATQ significantly. Also ad... | diff --git a/lib/atq.bpf.c b/lib/atq.bpf.c
index 4964118adb..62e634b231 100644
--- a/lib/atq.bpf.c
+++ b/lib/atq.bpf.c
@@ -17,7 +17,7 @@ u64 scx_atq_create_internal(bool fifo)
if (!atq)
return (u64)NULL;
- atq->heap = scx_minheap_alloc(SCX_MINHEAP_MAX_CAPACITY);
+ atq->heap = scx_minheap_alloc(SCX_ATQ_MAX_CAPACI... | 2 | 2 | 0 | [{"id": "G0", "claim": "scx_atq_insert should call scx_bpf_error (fail loudly) when the ATQ's type is wrong for the insert, because the scheduling logic is then wrong with respect to the DSQs and return codes may not be checked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existi... | null |
sched-ext__scx__2277 | sched-ext/scx | 2,277 | defect | ebf1a26831f518b9c2dcfd13daca3f53dae6a490 | d3039229655a5c1fcd967509acf023b610334bce | scx_lavd: Use the PCO (Performance vs. CPU Order) table when calculating the number of active CPUs. | When the energy model is available, use the upper bounds of the lowest
performance state and the lower bounds of the highest performance state
as the thresholds for the power save and performance modes, respectively.
Use the PCO table so that we can also utilize the middle states in
the PCO table.
When switching... | diff --git a/rust/scx_utils/src/energy_model.rs b/rust/scx_utils/src/energy_model.rs
index 5b0015d7c6..07036a1a03 100644
--- a/rust/scx_utils/src/energy_model.rs
+++ b/rust/scx_utils/src/energy_model.rs
@@ -50,6 +50,13 @@ pub struct EnergyModel {
}
impl EnergyModel {
+ pub fn has_energy_model() -> bool {
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment should say the capacity is the sum of capacities of all online CPUs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment misspells 'heuristics' as 'heuritics' and should be corrected.", "category": "docum... | null |
sched-ext__scx__2299 | sched-ext/scx | 2,299 | defect | 0d5e925f63dcb115c60ea1b6c20228687671eb17 | f08b20bbda9b9f9549a016f3c128549479f49b8e | scx_p2dq: Fix weight handling | Currently the task weight is handled inversely where low priority (weight) tasks are given priority. Tested with `stress-ng` with a background workload using all CPUs.
`eevdf`:
```
$ nice -n 10 stress-ng -c 8 -t 10 -M
stress-ng: info: [32163] setting to a 10 secs run per stressor
stress-ng: info: [32163] dispa... | diff --git a/scheds/rust/scx_p2dq/src/bpf/main.bpf.c b/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
index 27b1f47d92..e5fd037ed0 100644
--- a/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
@@ -125,7 +125,7 @@ static __always_inline u64 max_dsq_time_slice(void)
static __always_inline... | 3 | 3 | 2 | [{"id": "G0", "claim": "task_slice_ns should use scale_by_task_weight_inverse() from common.bpf.h, or more likely scale_by_task_weight(), since the assigned time slice should be proportional to the task's weight (higher weight == bigger slice).", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
sched-ext__scx__2338 | sched-ext/scx | 2,338 | defect | d082d1fb6d79041227c51b861505c65f63f3f26f | b7ce64e62038d6174094d614b4500212e16e7091 | scx_flash: Improve CPU locality | A set of changes aimed to improve CPU locality without regressing work conservation and system responsiveness when the system becomes saturated or overcommitted.
These changes are still following the idea of keeping tasks running on the same CPU (as long as the CPU is sufficiently idle), using per-CPU DSQs, and move... | diff --git a/rust/scx_loader/src/config.rs b/rust/scx_loader/src/config.rs
index b15abeedcb..2f27ed994f 100644
--- a/rust/scx_loader/src/config.rs
+++ b/rust/scx_loader/src/config.rs
@@ -186,8 +186,8 @@ fn get_default_scx_flags_for_mode(scx_sched: &SupportedSched, sched_mode: SchedM
// scx_rusty doesn't suppor... | 3 | 2 | 0 | [{"id": "G0", "claim": "A comment (and help text) should be added explaining why dynamic lag scaling can increase the throughput of message-passing workloads and reduce the system responsiveness.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
sched-ext__scx__2354 | sched-ext/scx | 2,354 | defect | 6cc80ace36bc81e0965843cfa15c808c22233c95 | 362dccf8bb97235df426e20f0fa440eb34039251 | p2dq/chaos: switch more enqueue cases to be async | p2dq's enqueue has diverged from the implementation when chaos was initially implemented. Then, we had P2DQ_ENQUEUE_COMPLETE but only based on a fixed task condition. Now, _COMPLETE gets hit based on a variety of conditions, many of which include the idle state of the machine. As this state can change, we started hitti... | diff --git a/scheds/rust/scx_chaos/src/bpf/main.bpf.c b/scheds/rust/scx_chaos/src/bpf/main.bpf.c
index eb6f2b9bd0..8656b0638f 100644
--- a/scheds/rust/scx_chaos/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_chaos/src/bpf/main.bpf.c
@@ -396,29 +396,51 @@ s32 BPF_STRUCT_OPS_SLEEPABLE(chaos_init)
return p2dq_init_impl();
}
... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the direct-dispatch paths of async_p2dq_enqueue, ret->kick_if_idle should be set to ret->has_cleared_idle instead of unconditionally true, so the promise only kicks the CPU when idle was actually cleared.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
sched-ext__scx__2428 | sched-ext/scx | 2,428 | defect | fdcbedd88b043fd3f0e0b896ad075710452bc074 | c1ba9cd9ec9100f4de391a908dbe95f530cffcd8 | scx_lavd: Sample dsq_consume latencies | Sample time for scx_bpf_dsq_move_to_local() latencies to determine how much contention is happening at each DSQ. | diff --git a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
index efb4ab0c96..ffc32331ef 100644
--- a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
@@ -149,12 +149,17 @@ static void plan_x_cpdom_migration(void)
sys_stat.nr_stealee ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Put the dsq_consume timestamping under is_monitored so the hot consume_dsq() path avoids timestamp overhead when the scheduler is not monitored, and use bpf_ktime_get_ns() instead of the less precise scx_bpf_now() to measure it.", "category": "performance", "verdict": "supported", "priority": "P... | null |
sched-ext__scx__2462 | sched-ext/scx | 2,462 | defect | 763cea80ad70768302e2829a644468f1febcff49 | 0d8dca77e449dd381551c81ecec70eb78218f530 | scx_cosmos: Introduce preferred idle CPU scan | Commit a937a247 ("scx_cosmos: Introduce flat idle CPU scan") added support for a lightweight flat idle scanning.
This commit extends that logic by changing the iteration order: instead of scanning CPUs sequentially, it is also possible to use CPU ranking, prioritizing faster CPUs first.
This new mode can be enabl... | diff --git a/scheds/rust/scx_cosmos/src/bpf/main.bpf.c b/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
index 320ad23eff..fa715894b2 100644
--- a/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
@@ -5,6 +5,12 @@
#include <scx/common.bpf.h>
#include "intf.h"
+/*
+ * Maximum amount... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment misspells 'descending' as 'descendind' and should be corrected as suggested.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
sched-ext__scx__2470 | sched-ext/scx | 2,470 | defect | 42a596a63920ece3f5fe4ce81d6d1ac200eb8443 | a4f5707a722fa61e092b33912395b00d7c304231 | lib: introduce arena btrees | Add an initial implementation of arena-based btrees. This btree data structure will be useful for general indexing tasks, and may be useful as a backend for ATQs. This patch introduces an insert path for the structure, with subsequent patches introducing removal and merging. | diff --git a/lib/btree.bpf.c b/lib/btree.bpf.c
new file mode 100644
index 0000000000..424e7773e2
--- /dev/null
+++ b/lib/btree.bpf.c
@@ -0,0 +1,513 @@
+/*
+ * SPDX-License-Identifier: GPL-2.0
+ * Copyright (c) 2025 Meta Platforms, Inc. and affiliates.
+ * Copyright (c) 2025 Emil Tsalapatis <etsal@meta.com>
+ */
+
+#inc... | 4 | 3 | 0 | [{"id": "G0", "claim": "The selftest key arrays `keys` and `morekeys` should be declared `static const`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inlining annotations should be uniform: btnode_isleaf is `static inline` while btnode_alloc i... | null |
sched-ext__scx__2510 | sched-ext/scx | 2,510 | defect | 5c19611917843812a251a0684fe2f4b392bfc51e | 1a42fc54f7052fc7bf3a035d0576d18110720e02 | scx_lavd: Improve the ops.enqueue() path. | This PR improves the ops.enqueue() path in two ways:
1) Remove redundant pick_idle_cpu() selection when a CPU was already picked at ops.select_cpu().
2) Use the Power of 2 Random Choices technique when a proper CPU is not chosen to choose a less loaded CPU. | diff --git a/scheds/rust/scx_lavd/src/bpf/idle.bpf.c b/scheds/rust/scx_lavd/src/bpf/idle.bpf.c
index 369341276d..fe81511348 100644
--- a/scheds/rust/scx_lavd/src/bpf/idle.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/idle.bpf.c
@@ -256,6 +256,27 @@ s32 cpumask_any_dsitribute(struct pick_ctx *ctx)
return -ENOENT;
}
+sta... | 1 | 1 | 0 | [{"id": "G0", "claim": "When picking a less loaded CPU with the random-of-two-choices technique, it might be worth also considering queue depths, as with load balancing across LLCs, when the CPUs are close to saturation.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sched-ext__scx__2563 | sched-ext/scx | 2,563 | defect | 7cdfb49af75f68ddf970fea49379bdf59b68fe27 | 11758bacfa8bc9ffc89be7e10ff58b3d6203de50 | scx_lavd: Introduce per cpu dsqs | Adds per-cpu DSQ support for LAVD, micro benchmarks are showing promising results but the load balancing logic requires lots more work and iterations. Here are the schbench comparisons between per-cpu and per-llc DSQs. The performance benefits show up at higher saturation and remains within noise on lightly loaded mach... | diff --git a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
index 3ba28e0402..ca9c6f4ec9 100644
--- a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
@@ -23,7 +23,7 @@ u64 __attribute__ ((noinline)) calc_mig_delta(u64 avg_sc_load, int ... | 8 | 8 | 3 | [{"id": "G0", "claim": "vtime is used uninitialized when the per-CPU DSQ is empty, so the DSQ selection may compare against a garbage value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The nr_cpdoms > 1 guard on the force_to_steal_task() call sho... | null |
sched-ext__scx__2641 | sched-ext/scx | 2,641 | defect | 71cf60a93f6aa2c193e8f0b490c169bd7d13e047 | 1fdc0a651301bce58bdfa11a507cc77cfec878f4 | scx_p2dq: Add task slice tracking | Add a mode to scale individual tasks by slice usage rather than relying on existing slice values. This gives more stable performance for tasks that would jump between short durations and long durations. | diff --git a/scheds/rust/scx_p2dq/src/bpf/main.bpf.c b/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
index 95f36a871b..982571b4d7 100644
--- a/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
@@ -116,6 +116,7 @@ const volatile struct {
bool atq_enabled;
bool cpu_priority;
+ bool tas... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the division by 10 in the slice-scaling threshold with a multiply/shift equivalent such as 7/8 or 15/16 to optimise the division.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sched-ext__scx__2677 | sched-ext/scx | 2,677 | defect | 9f10ae4e61740a3b3c4ecf8736781c0bebaf7236 | 96053486e2e4525c16eee38bf8494b173d779154 | lib/selftest: add C based runner | Introduce a C-based selftest runner for the arena library code. This additional runner is both more convenient than the Rust-based one and improves our coverage:
1) It compiles 20x faster than the Rust-based runner (1.5s vs 30s).
2) It loads and runs the BPF selftests directly from C code. This tests whether our he... | diff --git a/.gitignore b/.gitignore
index b63e6b4ed2..8f6d2c4154 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,6 @@ build/
.cache/
.vscode/
tags
+*.o
+*.skel.h
+selftest
diff --git a/lib/selftests/Makefile b/lib/selftests/Makefile
new file mode 100644
index 0000000000..0c6a42f687
--- /dev/null
+++ b/lib/selft... | 3 | 1 | 0 | [{"id": "G0", "claim": "The bpf_test_run_opts initializer should drop the accidental double space after the equals sign.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "CI may need tweaks to make the new C selftest runner work in the pipeline.", ... | null |
sched-ext__scx__2693 | sched-ext/scx | 2,693 | defect | 543c2a8cb5563d45c520d18deaa435d9c3dc7fcf | e10f3bcbf8000342b3e699dbdb2b3b69405acc38 | lib/atq: Back with rbtrees | Change the backing data structure for ATQs from minheaps to rbtrees. This allows us to have unlimited capacity and lets us implement lookups and in-place updates in the future. | diff --git a/lib/rbtree.bpf.c b/lib/rbtree.bpf.c
index be5d6a626d..edb19ebcfb 100644
--- a/lib/rbtree.bpf.c
+++ b/lib/rbtree.bpf.c
@@ -122,6 +122,27 @@ rbnode_t *rbnode_find(rbnode_t *subtree, uint64_t key)
return node;
}
+static
+rbnode_t *rbnode_least_upper_bound(rbnode_t *subtree, uint64_t key)
+{
+ rbnode_t *n... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a description explaining what the rbtree_insert_mode options (RB_DEFAULT, RB_UPDATE, RB_DUPLICATE) mean.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sched-ext__scx__2694 | sched-ext/scx | 2,694 | defect | 543c2a8cb5563d45c520d18deaa435d9c3dc7fcf | 34c7d26eb06a5bbbcf8f9f53a8b864aa2bccfeb3 | scx_mitosis: dynamic cell creation/destruction | This commit adds dynamic cell creation and destruction. Cells are defined by having a cpuset applied to a cgroup. The way we determine this is through writes to cpuset.cpus (e.g. a tracepoint) or on cgroup_init. There's a lot of concern about racy behavior here, so the logic is anytime we see a change, we trigger a sub... | diff --git a/scheds/include/scx/common.bpf.h b/scheds/include/scx/common.bpf.h
index 1723860a9b..9e2d9f5e9e 100644
--- a/scheds/include/scx/common.bpf.h
+++ b/scheds/include/scx/common.bpf.h
@@ -341,6 +341,7 @@ void bpf_task_release(struct task_struct *p) __ksym;
/* cgroup */
struct cgroup *bpf_cgroup_ancestor(stru... | 7 | 3 | 1 | [{"id": "G0", "claim": "Draining a dying cell's tasks with scx_bpf_dsq_move() to the new parent cell's DSQ (without touching CPU DSQs, which the parent cell manages) may be simpler than the RCU critical-section drain approach.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id"... | null |
sched-ext__scx__2747 | sched-ext/scx | 2,747 | defect | 63039a276cf0e7ef1bd9c9ede52aa2dd0124db70 | d1fb92e21b16ee454b2095295b8910b42c611b42 | rust: add generic arena library setup code and consolidate arena library code to subdir | Consolidate code related to the arena library into its own subdirectory. The new subdirectory has two modules:
1) The existing, renamed selftests module for the arena library.
2) A new module for common arena initialization code.
The latter module replaces scheduler-specific code for arena initialization and mak... | diff --git a/Cargo.lock b/Cargo.lock
index 7d4de15586..fc757d984f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -134,6 +134,27 @@ version = "1.0.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
+[[package]]
+name = "aren... | 2 | 2 | 1 | [{"id": "G0", "claim": "setup_topology should accept a Topology struct passed in by the caller rather than always creating a new one internally, especially if different options are used to initialize it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
sched-ext__scx__2759 | sched-ext/scx | 2,759 | defect | abc5cff81c16cf6a4e45a8990df1226081281062 | f096d1a7dbfc8bfec1e35709d389d73dd29b14b3 | scx_mitosis: move tick() to timer | If cpu 0 is not running any scx_mitosis tasks, we can miss configuration updates. This was due to a misunderstanding of how tick() works. The intended behavior is just to periodically run this logic on some core. A bpf_timer is the appropriate way to do this and so this commit makes that change. There's an additional s... | diff --git a/scheds/rust/scx_mitosis/src/bpf/intf.h b/scheds/rust/scx_mitosis/src/bpf/intf.h
index 0658734545..4f28ff1af2 100644
--- a/scheds/rust/scx_mitosis/src/bpf/intf.h
+++ b/scheds/rust/scx_mitosis/src/bpf/intf.h
@@ -25,6 +25,8 @@ enum consts {
MAX_CPUS_U8 = MAX_CPUS / 8,
MAX_CELLS = 16,
USAGE_HALF_LIFE = 1... | 4 | 2 | 0 | [{"id": "G0", "claim": "Consider re-arming the timer at the end of update_timer_cb instead of the beginning, to reduce re-entrancy risk.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use cleanup attributes for the RCU-unlock/cgroup-release error paths i... | null |
sched-ext__scx__2811 | sched-ext/scx | 2,811 | defect | 54ef51175459e6dad7f2bdf10c4110cc560943b6 | 48ad8299e3eff508a82d77b2853856a5f2f5aec1 | scx_layered: add TTL for layer membership | Layer membership for scx_layered is based on rules that are checked during tCertain layer membership conditions may change over the course of the scheduler's runtime. For example, the GPU matcher marks tasks that use NVIDIA API calls as "GPU tasks", but there are workloads that use GPUs once and never again. We want to... | diff --git a/scheds/rust/scx_layered/examples/ttl.json b/scheds/rust/scx_layered/examples/ttl.json
new file mode 100644
index 0000000000..a91ad0e68d
--- /dev/null
+++ b/scheds/rust/scx_layered/examples/ttl.json
@@ -0,0 +1,46 @@
+[
+ {
+ "name": "first",
+ "matches": [
+ [{ "PcommPrefix": "htop" }],
+ [{ "PcommPre... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new task_ctx field `ttl_max` should just be named `ttl`, since the `_max` suffix is a misnomer for a plain decrementing counter.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "TTL expiry should be based on elapsed tim... | null |
sched-ext__scx__2880 | sched-ext/scx | 2,880 | defect | e2ba584543ca52627e6293b2ab2a847b2a9cce08 | fc7f4ca872bd2bb8e74ea3958d4ce2c3106d0912 | scx_layered: add memory bandwidth-based layer sizing | Implement the PMU reading and resizing logic stubs in scx_layered to enable memory bandwidth-based layer resizing. The code uses resctl and hardware performance counters to estimate the memory bandwidth consumption of each task in the system. The scheduler then uses layer resizing to control this bandwidth. | diff --git a/lib/pmu.bpf.c b/lib/pmu.bpf.c
index 48f71b62b3..7d418573ba 100644
--- a/lib/pmu.bpf.c
+++ b/lib/pmu.bpf.c
@@ -27,6 +27,7 @@ struct {
struct scx_pmu_counters {
u64 start[SCX_MAX_PMU_COUNTERS];
u64 agg[SCX_MAX_PMU_COUNTERS];
+ bool switched;
u32 gen;
};
@@ -72,6 +73,11 @@ int scx_pmu_event_stop(str... | 4 | 3 | 0 | [{"id": "G0", "claim": "In scx_pmu_event_start the 'Add the delta for this scheduling interval.' comment sits outside the new if (update) block, above the start reset, so it should be moved inside the block and the if braced.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
sched-ext__scx__2912 | sched-ext/scx | 2,912 | defect | eb800063d58a1dc01c0957e8c6ad53b01a52d192 | 540ba8e99511da23b24340844351dd506d1a73b8 | scx_lavd: Add configurable migration threshold with avg utilization | The current utilization based migration scheme look back period is too short and results in overly aggressive load balancing. For example, in certain workloads on a machine that has an average utilization at ~90%, sampling load deltas between compute domains still showed > 50% differences in load.
Allow users to def... | diff --git a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
index 905429a232..fa1c2596cb 100644
--- a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
@@ -8,6 +8,8 @@
* To be included to the main.bpf.c
*/
+extern const volatile u8... | 2 | 2 | 1 | [{"id": "G0", "claim": "The migration delta computation should follow the LAVD 1024-scale convention (LAVD_SHIFT/LAVD_SCALE) instead of a raw percent division, while keeping the user-facing option in [0-100].", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.