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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
servo__html5ever__553 | servo/html5ever | 553 | defect | bb62eac9c9c4e14a4724de0fca8b333bfd891c68 | da4e2402906b14f860f33aa5cea94aac33914f4b | Make return type of `TreeSink::elem_name` an associated type. | Fixes #552
This allows this type to be owned or contain data protected by a RefCell or Mutex. It can also simply be `ExpandedName` - the type which was previously the return type of `TreeSink::elem_name`.
I have not yet had a chance to test this, but I believe this ought to fix my issue. | diff --git a/html5ever/examples/arena.rs b/html5ever/examples/arena.rs
index cfdb0416..e3a6ad59 100644
--- a/html5ever/examples/arena.rs
+++ b/html5ever/examples/arena.rs
@@ -12,7 +12,7 @@ extern crate typed_arena;
use html5ever::interface::tree_builder::{ElementFlags, NodeOrText, QuirksMode, TreeSink};
use html5ev... | 2 | 2 | 0 | [{"id": "G0", "claim": "The blocks of commented-out experimental AsRef code left in markup5ever/interface/mod.rs should be cleaned up now that the custom-trait approach has settled.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a doc commen... | null |
servo__html5ever__591 | servo/html5ever | 591 | defect | 31a2c319c4b9fb763c88fbb7b826e66c3ff372a0 | c185ee9a426d9cd7af4b9cd3023477a76cebb5b0 | xml5ever: Bubble parser blocking scripts to the caller instead of the TreeSink | This is the same approach used by html5ever, which will hopefully allow unifying their API a bit as part of the effort for encoding support.
This is a breaking change. The TreeSink::complete_script method (among other things) is removed. | diff --git a/html5ever/src/driver.rs b/html5ever/src/driver.rs
index 6a151ee3..1f66ebca 100644
--- a/html5ever/src/driver.rs
+++ b/html5ever/src/driver.rs
@@ -10,10 +10,10 @@
//! High-level interface to the parser.
use crate::buffer_queue::BufferQueue;
-use crate::tokenizer::{Tokenizer, TokenizerOpts, TokenizerResu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment above `step` in xml5ever/src/tokenizer/mod.rs should be updated, since it still says the state machine returns a bool signaling immediate re-invocation after the PR changed it to return ProcessResult.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope... | null |
servo__html5ever__695 | servo/html5ever | 695 | defect | fa69d1a845b656b3dcd148eba41531af7c99f01d | cec02c33dd3bc3b6c265e00302d5b988a2e9066b | Add duplicate attribute tracking for CSP nonce validation | Implements detection and propagation of duplicate attributes through the tokenizer, tree builder, and TreeSink interface to support CSP (Content Security Policy) nonce validation.
This enables html5ever consumers (e.g., Servo) to properly implement step 3 of the CSP "is element nonceable" algorithm by checking the `... | diff --git a/html5ever/src/tokenizer/interface.rs b/html5ever/src/tokenizer/interface.rs
index edc6afb9..15d774ab 100644
--- a/html5ever/src/tokenizer/interface.rs
+++ b/html5ever/src/tokenizer/interface.rs
@@ -40,6 +40,10 @@ pub struct Tag {
pub name: LocalName,
pub self_closing: bool,
pub attrs: Vec<At... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename `had_duplicate_attrs` to `had_duplicate_attributes` everywhere, especially in the `pub` interface, to move away from abbreviations.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
servo__rust-cssparser__159 | servo/rust-cssparser | 159 | defect | 06e204ee873ec92b9331f59b2aae5635338ce602 | 8db65bb141c15700de25a52d70278bed38370416 | Reduce the size of Token | Hopefully improving parsing performance: https://bugzilla.mozilla.org/show_bug.cgi?id=1347408
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/159)
<!-- Reviewable:end --... | diff --git a/Cargo.toml b/Cargo.toml
index 5459a734..3073ff44 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "cssparser"
-version = "0.14.0"
+version = "0.15.0"
authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
description = "Rust implementation of CSS Syntax Level 3"
diff --git a/sr... | 7 | 4 | 0 | [{"id": "G0", "claim": "Add a TODO comment noting that the raw `ptr` field could use `NonZero` (or similar).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Storing the tag in the length imposes a MAX_LEN restriction on strings, whereas tagging the... | null |
servo__rust-cssparser__177 | servo/rust-cssparser | 177 | defect | 57e9e394e9a0adb1c3fb3b6036f77ddbc03ccaa5 | 9f1d746d064b5e53c1ca5654ce7ef940b4a959dc | Count line-numbers during tokenization | Before this PR, the `source_location` and `current_source_location` iterated (again) through input bytes separately from tokenization in order to count newline characters and determine the line number of some piece of a stylesheet.
This PR makes this counting happen during tokenization instead, where we already have... | diff --git a/Cargo.toml b/Cargo.toml
index 32aebe42..eed489d6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,6 @@
[package]
-
name = "cssparser"
-version = "0.18.2"
+version = "0.19.0"
authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
description = "Rust implementation of CSS Syntax Level 3"
diff --git a/sr... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `seen_newline(false)` call in the escaped-newline branch of consume_quoted_string is slightly confusing and deserves a comment explaining why `is_cr` is false.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop hea... | null |
servo__rust-url__1025 | servo/rust-url | 1,025 | defect | 79ff014219a106ccf0a6d5506372bbe8b22740ea | 6e05d80d572f0be87c3e3bb3b083e4984e0abd89 | perf: make parse_scheme slightly faster | Avoids a check that's already covered by another check and avoids doing a `is_ascii_uppercase()` check in `to_ascii_lowercase()` when we know the character is lowercase.
Before:
```
test short ... bench: 189 ns/iter (+/- 6) = 132 MB/s
```
After:
```
test short ... bench: ... | diff --git a/url/src/parser.rs b/url/src/parser.rs
index 1ab0dc1dc..098d928f2 100644
--- a/url/src/parser.rs
+++ b/url/src/parser.rs
@@ -398,15 +398,14 @@ impl<'a> Parser<'a> {
}
pub fn parse_scheme<'i>(&mut self, mut input: Input<'i>) -> Result<Input<'i>, ()> {
- if input.is_empty() || !input.starts... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment that `starts_with` will also fail for empty strings, explaining why the `input.is_empty()` check was dropped.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
servo__rust-url__294 | servo/rust-url | 294 | defect | 2657e0220fe2aae30b7672fc073c4c8fb420a082 | 464e592d492b6002882f52f51817c2aa1afac20f | Fix up some issues flagged by clippy |
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/294)
<!-- Reviewable:end -->
| diff --git a/fuzz/.gitignore b/fuzz/.gitignore
index 08ba2bbe4..572e03bdf 100644
--- a/fuzz/.gitignore
+++ b/fuzz/.gitignore
@@ -1,3 +1,4 @@
target
-libfuzzer
+corpus
+artifacts
diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml
index 0443d5ed6..0b108b955 100644
--- a/fuzz/Cargo.toml
+++ b/fuzz/Cargo.toml
@@ -3,9 +3,15 ... | 4 | 2 | 0 | [{"id": "G0", "claim": "The two arguments to pieces.swap would benefit from bound checking to ensure no index underflow/overflow induces a runtime panic (explicitly noted as possibly out of scope for this PR).", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
servo__rust-url__328 | servo/rust-url | 328 | defect | a44ccbe161f056bb2631161bbb9a65954cff05ec | 133b64ef39910c6a83b90e120cea1bfea3ab39d3 | Add Display for HostAndPort | Fix #300
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/328)
<!-- Reviewable:end -->
| diff --git a/src/host.rs b/src/host.rs
index 6eae31ddb..15492fae2 100644
--- a/src/host.rs
+++ b/src/host.rs
@@ -192,6 +192,15 @@ impl<'a> HostAndPort<&'a str> {
}
}
+impl<S: AsRef<str>> fmt::Display for HostAndPort<S> {
+ fn fmt(&self, f: &mut Formatter) -> fmt::Result {
+ try!(self.host.fmt(f));
+ ... | 3 | 2 | 0 | [{"id": "G0", "claim": "If possible, Display for HostAndPort should write to the formatter in a single atomic write (or return Err) so that a mid-way failure does not leave a half-written value.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Display for Ho... | null |
servo__rust-url__433 | servo/rust-url | 433 | defect | 0f0813fce44f193216b02007968acc1e281e06b1 | 82f99fe69ef444d61496fd5ec20f569563de3bf5 | Improve syntax violations interface and preserve Copy | This is an alternative implementation of #430 which avoids introducing an `Rc<Fn>` and preserves `Copy` for `ParseOptions`. Thus, based on my current understanding with the prior review, it is completely backward compatible and with no breaking changes. Its a little less elegant in that, without the `Rc<Fn>`, I can ... | diff --git a/tests/unit.rs b/tests/unit.rs
index b76a1f80d..fa126f0e2 100644
--- a/tests/unit.rs
+++ b/tests/unit.rs
@@ -13,6 +13,7 @@ extern crate url;
use std::ascii::AsciiExt;
use std::borrow::Cow;
+use std::cell::Cell;
use std::net::{Ipv4Addr, Ipv6Addr};
use std::path::{Path, PathBuf};
use url::{Host, HostAn... | 2 | 1 | 0 | [{"id": "G0", "claim": "A separate trait should be introduced instead of relying directly on `Fn` for the violation callback, so the interface can be extended later.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The method-chain indentation in the new t... | null |
servo__rust-url__469 | servo/rust-url | 469 | defect | a07eac08a01f79c55042ee94891fd01db07fa215 | 20bebc236eea02769395b93f09efec633f7ac908 | Escape backslash in special URL path components | Closes #468
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/469)
<!-- Reviewable:end -->
| diff --git a/percent_encoding/lib.rs b/percent_encoding/lib.rs
index 16d37ada6..35aadee2d 100644
--- a/percent_encoding/lib.rs
+++ b/percent_encoding/lib.rs
@@ -140,6 +140,11 @@ define_encode_set! {
/// space, double quote ("), hash (#), inequality qualifiers (<), (>), backtick (`),
/// question mark (?), and... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hand-written SPECIAL_PATH_SEGMENT_ENCODE_SET EncodeSet impl in src/parser.rs could use the `define_encode_set` macro instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
servo__rust-url__651 | servo/rust-url | 651 | defect | c0558dcf4385c31a3d085e7e0a80d10621f94611 | 1e299b68fefd49294f6222047b0381f3d1b2d34a | Generalize PartialEq impl for Host | This allows `Host<String>` to be compared with a `Host<&str>`, for example. | diff --git a/data-url/src/mime.rs b/data-url/src/mime.rs
index 8219ace23..5840a2c60 100644
--- a/data-url/src/mime.rs
+++ b/data-url/src/mime.rs
@@ -62,6 +62,7 @@ fn split2(s: &str, separator: char) -> (&str, Option<&str>) {
(first, iter.next())
}
+#[allow(clippy::manual_strip)] // introduced in 1.45, MSRV is 1... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `*` dereference operators in the new `PartialEq<Host<T>> for Host<S>` impl's match arms are unnecessary and could be dropped so the code looks slightly nicer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
servo__rust-url__653 | servo/rust-url | 653 | defect | 31bc0da54c659094dacb1434996f10ed1b46b5ae | 9e81e2618f0f7c0ba103d31c1da5629967017c16 | idna: optimize punycode handling, add amortized allocation API, improve error reporting | Benchmarks before:
```
test to_ascii_merged ... bench: 2,102 ns/iter (+/- 309)
test to_ascii_puny_label ... bench: 1,214 ns/iter (+/- 220)
test to_ascii_simple ... bench: 246 ns/iter (+/- 34)
test to_unicode_ascii ... bench: 74 ns/iter (+/- 14)
test to_uni... | diff --git a/idna/Cargo.toml b/idna/Cargo.toml
index a662ab34a..66321af6d 100644
--- a/idna/Cargo.toml
+++ b/idna/Cargo.toml
@@ -19,6 +19,7 @@ harness = false
name = "unit"
[dev-dependencies]
+assert_matches = "1.3"
bencher = "0.1"
rustc-test = "0.3"
serde_json = "1.0"
diff --git a/idna/src/lib.rs b/idna/src/lib... | 1 | 1 | 0 | [{"id": "G0", "claim": "Since `is_valid` returns nothing, it should be renamed to `check_validity`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
servo__rust-url__674 | servo/rust-url | 674 | defect | 3628c22324691f98753c54bcd4bc0d61c4ffef65 | 1dbc050205d0193f65d54bb30dc9a915d373f2ea | url: add the authority method | This is a revisit of #15 to add a method to be able to get the authority on its own.
Much has changed in the meantime, and the method can now be implemented without needing an additional struct. | diff --git a/url/src/lib.rs b/url/src/lib.rs
index 3ad76065d..cb81a0f4b 100644
--- a/url/src/lib.rs
+++ b/url/src/lib.rs
@@ -652,6 +652,8 @@ impl Url {
/// URLs that do *not* are either path-only like `unix:/run/foo.socket`
/// or cannot-be-a-base like `data:text/plain,Stuff`.
///
+ /// See also the `... | 2 | 2 | 1 | [{"id": "G0", "claim": "The documented behaviour of the new authority method (punycode for special-URL hosts, percent-encoding for non-special ones, bracketed IPv6) is unverified; add tests covering at least one IDNA-encoded domain, one percent-encoded host and an IPv6 host so the documentation can be checked against t... | null |
servo__rust-url__728 | servo/rust-url | 728 | defect | 08407234528e1eeaeaac0eaef32e5460b1c65638 | 55322758aa35038661901718f2d496516149977d | init commit to make idna optional | fix #727 | diff --git a/url/Cargo.toml b/url/Cargo.toml
index e3846595b..343628acf 100644
--- a/url/Cargo.toml
+++ b/url/Cargo.toml
@@ -25,11 +25,14 @@ bencher = "0.1"
[dependencies]
form_urlencoded = { version = "1.0.0", path = "../form_urlencoded" }
-idna = { version = "0.2.0", path = "../idna" }
+idna = { version = "0.2.0"... | 5 | 5 | 3 | [{"id": "G0", "claim": "Call `idna::domain_to_unicode` by its full path in `Origin::unicode_serialization` and remove the `use idna::domain_to_unicode;` import above.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The new `idna` feature should... | null |
servo__rust-url__783 | servo/rust-url | 783 | defect | a72f83d00294ef7cbc7d1ec1ee870b27dafc0d3e | 046464d8bccd9f34d0c8d0617b649b759ff71fbe | Add Natvis visualizations for the `Url` type | This change adds Natvis visualizations for the `Url` type in the `url` crate to help improve the debugging experience on Windows.
Debugging types such as the Url type under a Windows debugger, WinDbg or the Visual Studio debugger, can be a bit difficult to dissect exactly what data is contained in each type. The Rus... | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d7d2aaae5..389c05bd7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -25,8 +25,6 @@ jobs:
rust: beta
- os: macos-latest
rust: nightly
- - os: windows-latest
- r... | 4 | 2 | 1 | [{"id": "G0", "claim": "The new debug_metadata/url.natvis file should end with a newline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The compiler warnings introduced by the change should be fixed if possible.", "category": "correctness", "ve... | null |
servo__rust-url__817 | servo/rust-url | 817 | defect | edeaea7f1e8bd08148bcd535f921fbc645bce53e | b0ba159e587d60eeb6665ecc19b0e189237b49f0 | Fix anarchist URL where path starts with // | This PR closes https://github.com/servo/rust-url/issues/799 by refusing to parse URLs with no authority whose normalized path would start with a double-slash.
---
The issue comes from the [remove dot segments](https://www.rfc-editor.org/rfc/rfc3986#section-5.2.4) step. Let's consider the URI `m:/.//`. Then, accor... | diff --git a/url/src/lib.rs b/url/src/lib.rs
index 0be004e6f..632aa702f 100644
--- a/url/src/lib.rs
+++ b/url/src/lib.rs
@@ -683,7 +683,14 @@ impl Url {
assert_eq!(self.host_end, self.scheme_end + 1);
assert_eq!(self.host, HostInternal::None);
assert_eq!(self.port, None);
- ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request references an RFC although the crate explicitly implements only the WHATWG URL Standard, and according to the reference URL parser m:/.//\\ should parse successfully.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim"... | null |
servo__rust-url__825 | servo/rust-url | 825 | defect | 10929606359afa54e363ef7ebf311f106247f5d9 | f2842a5f97dee5cf11968e675ce1cec625a1b03e | No colon when setting empty password | This addresses https://github.com/servo/rust-url/issues/796 by removing the colon (`:`) when setting the password to `Some("")`. According to the [URL Standard](https://url.spec.whatwg.org/#url-serializing):
> If url’s [password](https://url.spec.whatwg.org/#concept-url-password) is not the empty string, then append... | diff --git a/url/src/host.rs b/url/src/host.rs
index f1921c654..6f3f1d5f4 100644
--- a/url/src/host.rs
+++ b/url/src/host.rs
@@ -269,7 +269,7 @@ fn ends_in_a_number(input: &str) -> bool {
} else {
last
};
- if !last.is_empty() && last.chars().all(|c| ('0'..='9').contains(&c)) {
+ if !last.is_em... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace `chars()` with `as_bytes()` at the ASCII-only checks in url/src/host.rs (ends_in_a_number line 272 and the similar checks lower down), since only ASCII is expected and it is probably faster than walking UTF-8 code points.", "category": "performance", "verdict": "supported", "priority": "... | null |
servo__rust-url__831 | servo/rust-url | 831 | defect | 6385c81d9b8aa09744359155c180c252d7c111be | 0d14d5acab4e271e285947a0c754486f0660e271 | `no_std` support for the `url` crate | This extends/rebases/fixes #717.
All checks seem to pass.
For `no_std` support, however, as mentioned in https://github.com/servo/rust-url/pull/717, this still needs a bunch of fixes. Specifically, It looks like we'll have to use the `ip_in_core` nightly feature, or use this crate: https://docs.rs/no-std-net. I'd per... | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c05ee1f89..35e369c36 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -33,6 +33,8 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
+ # Add toolchain for... | 7 | 5 | 3 | [{"id": "G0", "claim": "The no_std changes must not break stable and should preferably also work on the crate's MSRV 1.56.0 instead of requiring nightly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doctest workaround of defining a custom TestError... | null |
servo__rust-url__894 | servo/rust-url | 894 | defect | 92f356e449ff572f2b41665e571e53923a5dcb32 | d318128542f96283cda4b87ba504775779d37bb9 | perf(punycode): avoid double allocation in decode_to_string | Hey,
while indeed `decode_to_string` is a nice ergonomics addition, the fact of being a wrapper over the `decode` results in an intermediate `Vec`.
Since the implementation of it can be the same as `decode` and it's quite straightforward, maybe we could get rid of double alloc cheaply | diff --git a/idna/src/punycode.rs b/idna/src/punycode.rs
index b1afc96f7..5825f89aa 100644
--- a/idna/src/punycode.rs
+++ b/idna/src/punycode.rs
@@ -41,10 +41,12 @@ fn adapt(mut delta: u32, num_points: u32, first_time: bool) -> u32 {
/// Convert Punycode to an Unicode `String`.
///
-/// This is a convenience wrappe... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a unit test that exercises the decode_to_string method.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
servo__servo__41169 | servo/servo | 41,169 | defect | d47da6b09ef2b5db0d41228f9fde9000421d33ae | b780cfd5a25e8541b2f87b261723b2b4bfe74619 | compositing: Re-enable LCP calculation on WebViews after they have been reloaded/navigated | Re-enable LCP calculation on WebViews after they have been reloaded/navigated.
Scenario: LCP calculation is stopped when user interaction is detected. When page is reloaded. No, LCP is observed. So, can't develop the performance or benchmark tools.
Motivation: No explicit specs found for this, but this was missed... | diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs
index 83ea0939fc13b..15d330651407a 100644
--- a/components/compositing/compositor.rs
+++ b/components/compositing/compositor.rs
@@ -773,6 +773,14 @@ impl IOCompositor {
.notify_scroll_event(webview_id, scroll, point);
... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request changes LCP re-enabling behavior without any tests; tests for the behavior should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Re-enabling LCP only on reloads leaves other types of navigations unhandl... | null |
servo__servo__41457 | servo/servo | 41,457 | defect | 551684f3af9875f64dbfdca1e07420abcf5b2b24 | de7217578dffa37e97cf93ad48be88821cb2c09b | net: Keep track of size of keep-alive records | These keep-alive records live on the `CoreResourceManager` since the vec
of records must be modified by the fetch thread. The script thread sometimes
requires this information as well, which is why it can send a message to
obtain the total size.
The keep-alive records must be tracked per global. That's why all co... | diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs
index b69283ab035d2..90b2b02963e1e 100644
--- a/components/net/fetch/methods.rs
+++ b/components/net/fetch/methods.rs
@@ -23,9 +23,9 @@ use net_traits::filemanager_thread::{FileTokenCheck, RelativePos};
use net_traits::http_status::HttpStat... | 3 | 2 | 1 | [{"id": "G0", "claim": "The in-flight keep-alive records cloned into the RequestClient do not reflect changes made in the fetch thread back in the script thread (the fetch code can live in a separate process), so the state should be kept in the resource thread with a new message that returns the needed data to the scri... | null |
servo__servo__41486 | servo/servo | 41,486 | defect | 55c4f579c9235dd7860302eb828beaf4c459e569 | 4669b06835ef84f0379d00cb5ee901507208de7b | LocalStorage: Add table initialisation for in memory databases | Fixes #41485
Added a unit test. | diff --git a/components/storage/webstorage/engines/sqlite.rs b/components/storage/webstorage/engines/sqlite.rs
index 8484a54c2da86..1fae60b580733 100644
--- a/components/storage/webstorage/engines/sqlite.rs
+++ b/components/storage/webstorage/engines/sqlite.rs
@@ -22,9 +22,9 @@ impl SqliteEngine {
let connecti... | 3 | 3 | 0 | [{"id": "G0", "claim": "Some of the DB_INIT_PRAGMAS/DB_PRAGMAS don't make sense for an in-memory database, so a separate, explicit pragma list should be used for in-memory databases (and ideally a basic unit test for the in-memory path would exist).", "category": "correctness", "verdict": "supported", "priority": "P2",... | null |
servo__servo__41754 | servo/servo | 41,754 | defect | c023d8edc77104969c71cb8571a045cb346ad05f | f44a031b9211b58cd463a745871baa3b9fb901bb | script: Notify `PinchZoom` resizes to `ScriptThread`'s `VisualViewport` | Continuing the implementation of `VisualViewport`, the resizing of `PinchZoom` should be notified to `ScriptThread` to update the `VisualViewport` interface and to fire the appropriate JS event. Top level `Window`/`Pipeline` would have a `VisualViewport` interface that mirrors the `PinchZoom` viewport, while nested `Wi... | diff --git a/components/compositing/pinch_zoom.rs b/components/compositing/pinch_zoom.rs
index c99f7a972f4e7..75bb7d62f4e08 100644
--- a/components/compositing/pinch_zoom.rs
+++ b/components/compositing/pinch_zoom.rs
@@ -2,6 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You c... | 5 | 4 | 1 | [{"id": "G0", "claim": "The new helper `pinch_zoom_rect_relative_to_unscaled_viewport` should not be public (the suggestion makes it private).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment misspells 'Perserving' and its second sentence i... | null |
servo__servo__41919 | servo/servo | 41,919 | defect | c9b7ce04041b92611567ed390fb6a7581d76e8f2 | cb01989ee987a036e3a303f0fff3d64df8716c35 | net: Use the user locale for the Accept-Language header and navigator language | That respects the user locale better than hardcoding en-US. This can also be manually set with the `LANG` environment variable.
Testing: Manual testing with the devtools to check the header sent and the value of `navigator.language`
Fixes: #27210
| diff --git a/Cargo.lock b/Cargo.lock
index f187f34d72922..713897b43a042 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4173,7 +4173,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.58.0",
+ "windows-core 0.61.2",
]
[[package]]
@@ -5766,6 +5766,7 @@ dependencies = [
"servo_arc",
"serv... | 4 | 3 | 1 | [{"id": "G0", "claim": "The locale value may want to be something the embedder provides rather than read directly from the system inside the net crate.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "get_current_locale should not be public.", "category": ... | null |
servo__servo__41999 | servo/servo | 41,999 | defect | 68f6daf975b3342ffbf6362b5e65f7007c6195ad | 8545f54617ef9720e5204e031762d37e488738c9 | layout: Limit LCP stopping to actual user input events. | This basically doesn't halt LCP on Mouse Move.
Reference: https://www.w3.org/TR/largest-contentful-paint/#limitations
Testing: `components/servo/tests/largest_contentful_paint.rs`
Fixes: #42534
| diff --git a/components/compositing/painter.rs b/components/compositing/painter.rs
index 3aaa31a2cda48..7adcad36b7477 100644
--- a/components/compositing/painter.rs
+++ b/components/compositing/painter.rs
@@ -1251,6 +1251,7 @@ impl Painter {
}
pub(crate) fn notify_input_event(&mut self, webview_id: WebViewI... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new catch-all match arm should disable LCP by calling the disable directly instead of going through the flag and helper indirection, and the one-line wrapper function can be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
servo__servo__42114 | servo/servo | 42,114 | defect | cdf8dad62c4b74eda2716ecaefa9dface3e8e124 | a6820d51370a1ad3a51f2c0f9ff0241956c69d72 | net: Devtools Channel does not need mutability. | Devtools Channel does not need mutability. Hence, we do not need an Arc<Mutex<_>>.
As the underlying channel is a Crossbeam Sender the clone should be relatively cheap.
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Testing: Thanks to rust compilation means correctness.
| diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs
index 652d332908dd8..44c0a080bfe8a 100644
--- a/components/net/fetch/methods.rs
+++ b/components/net/fetch/methods.rs
@@ -97,7 +97,7 @@ pub type SharedInflightKeepAliveRecords =
pub struct FetchContext {
pub state: Arc<HttpState>,
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the variables and parameters named `dc` to `devtools_chan` for clarity at the three sites the suggestions anchor to (components/net/resource_thread.rs lines 683 and 790, components/net/tests/main.rs line 129).", "category": "maintainability", "verdict": "supported", "priority": "P3", "sco... | null |
servo__servo__42288 | servo/servo | 42,288 | defect | 83bf475370cfdb23e0a9d3d835361d76ab2c15fe | 7ae95160a49569c448097f678c7e84fc0c3cc1bf | libservo: Expand the `UserContentManager` API. | The patch adds the following functionality to the per-WebView `UserContentManager` API.
- Removing a `UserScript` at that was previously added.
- Adding a new `UserStyleSheet` representing a user-origin style sheet. allow removing user script
- Removing a previously added `UserStyleSheet`.
There might be scope fo... | diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs
index 1cf247ab81196..83dad50fd07fe 100644
--- a/components/constellation/constellation.rs
+++ b/components/constellation/constellation.rs
@@ -1553,6 +1553,27 @@ where
}
}
+ fn mutate_user_contents_for_m... | 8 | 5 | 1 | [{"id": "G0", "claim": "The doc comment on the `user_scripts` field in `Window` still describes `UserContents` and needs to be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `as_slice` call in `Window::userscripts` can be eliminated b... | null |
servo__servo__42396 | servo/servo | 42,396 | defect | 27faa7ddaabfe21e4b9ba063f0fd6d5b6a88133d | bfa12e5519debd050cbd4570de165c79a4b06bc2 | script: Expose `toJSON` on `PerformancePaintTiming` | This PR targets on adding JSON to `IDL`.
Testing: `components/servo/tests/performance_paint_timing.rs`
Fixes: Updated expectations for Existing WPT Tests.
| diff --git a/components/script/dom/performance/performancepainttiming.rs b/components/script/dom/performance/performancepainttiming.rs
index 9c80cf331fa34..be0492be3cbc5 100644
--- a/components/script/dom/performance/performancepainttiming.rs
+++ b/components/script/dom/performance/performancepainttiming.rs
@@ -8,6 +8,... | 1 | 1 | 0 | [{"id": "G0", "claim": "Changing PerformancePaintTiming from [Exposed=(Window,Worker)] to [Exposed=Window] removes worker exposure and is a separate change that should be split out of this PR into its own PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
servo__servo__42771 | servo/servo | 42,771 | defect | d5fb51a563feb8d97fc99c8972a4e091282a5a54 | 388c2aa34f7314012f9873ce08a6ae19ccfeca21 | script: Fire scroll event on visual viewport scroll | On visual viewport scroll, fire the scroll event to the `VisualViewport` instances. Incidentaly, fix a bug where the pinch zoom update should be propagated to the script.
Testing: New unit test and manual WPT.
| diff --git a/components/paint/webview_renderer.rs b/components/paint/webview_renderer.rs
index e4cb4ece67bc0..74320ef4e55c2 100644
--- a/components/paint/webview_renderer.rs
+++ b/components/paint/webview_renderer.rs
@@ -902,7 +902,7 @@ impl WebViewRenderer {
self.send_scroll_positions_to_layout_for_pipeline(r... | 5 | 3 | 0 | [{"id": "G0", "claim": "The doc comment of handle_visual_viewport_scroll_event should quote the spec text with the link first as in the suggestion block, and the trailing TODO about updating scroll event handling is unclear.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}... | null |
servo__servo__42806 | servo/servo | 42,806 | defect | facab8f642918dac16b06a7c16dd2d9001985f03 | 926e9e0ecea474feb1f58dfab627245ff8981ec3 | script: Fire `select` events for user input selections | This change makes it so that selection changes driven by user input
events also fire the `select` event and not just selection changes from
script. In addition the change eliminate the `SelectionState` data
structure instead opting to store the `SelectionDirection` in the
`SharedSelection`. That way there is a cent... | diff --git a/Cargo.lock b/Cargo.lock
index 20e693f2a43bc..84f32d640dd72 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8076,6 +8076,7 @@ dependencies = [
"encoding_rs",
"euclid",
"keyboard-types",
+ "layout_api",
"script",
"servo_url",
]
diff --git a/components/script/dom/html/htmlinputelement.rs b/components/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The method name `equivalent` should be renamed to `is_equivalent_to`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
servo__servo__43029 | servo/servo | 43,029 | defect | 8215118a12d1bcceea26ef66f78c7b1c86f8953b | 46532ace94f6bb9d68ec4c0c43e89baa2c527d20 | libservo: Per-webview accessibility activation | in #42336, we added a [Servo](https://doc.servo.org/servo/struct.Servo.html)-global API for controlling whether accessibility is active. the idea was that when the embedder activates accessibility, all webviews and documents activate accessibility and start sending AccessKit tree updates, and vice versa when they deact... | diff --git a/Cargo.lock b/Cargo.lock
index 285636025a3fc..dd1451bc45828 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7289,6 +7289,7 @@ name = "servo"
version = "0.0.6"
dependencies = [
"accesskit",
+ "accesskit_consumer",
"arboard",
"bitflags 2.11.0",
"crossbeam-channel",
diff --git a/components/constellation... | 5 | 4 | 0 | [{"id": "G0", "claim": "The CI build fails because Cargo.lock needs updating while --locked is passed, and the PR appears to change Cargo.lock without any Cargo.toml files being updated.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The doc comme... | null |
servo__servo__43045 | servo/servo | 43,045 | defect | 4f2d224b7a692e8bea449901991facb28de7f273 | 5f56303a5b530681778e3863c5b7a02f22ae92a2 | Upgrade Stylo to 2026-03-01 | This continues #42361
Changelog:
- Upstream: https://github.com/servo/stylo/compare/7cd2a178d3c3ea1a8a88a6af211c0a0e6233c9fe...74ddab409140ff5f47e3f80a8c2aa26d9745fd90
- Servo fixups: https://github.com/servo/stylo/compare/a5eabbdfc294e42c9cb9dab0aace7c6cbcb1ad97...ecf17b54251b2f380a186780811f3c234308f57d
St... | diff --git a/Cargo.lock b/Cargo.lock
index 0dd2b76ef141e..d2bf19fee711d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7228,8 +7228,8 @@ dependencies = [
[[package]]
name = "selectors"
-version = "0.35.0"
-source = "git+https://github.com/servo/stylo?rev=9b635629e627a611419745198de1b1ba6c8667c2#9b635629e627a611419745... | 2 | 1 | 0 | [{"id": "G0", "claim": "The match arms for the not-yet-enabled AlignmentBaseline variants (Alphabetic, Ideographic, Central, Mathematical, Hanging) should probably resolve to some default value rather than hit a todo!() panic.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, ... | null |
servo__servo__43147 | servo/servo | 43,147 | defect | 764ef29de500b74ed851245f24aba464e933ee80 | bc2e8af1ebec5dd9a5735248b104cb426c3d386c | storage: construct and shut down public/private thread groups independently | This PR makes public and private storage thread groups independent.
previously, `new_storage_threads()` returned two `StorageThreads` handles, but both handles were backed by the same underlying storage worker group. this meant Servo carried a public/private distinction through the API and wiring layers, while both ... | diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs
index 76c315dff58ee..006fb68d2f33b 100644
--- a/components/constellation/constellation.rs
+++ b/components/constellation/constellation.rs
@@ -2683,11 +2683,17 @@ where
// Channels to receive signals when threads ... | 3 | 1 | 0 | [{"id": "G0", "claim": "Before this change Servo carried a public/private distinction through the storage API and wiring layers while both sides still talked to the same storage backend threads, and the author is unsure whether that is a bug or expected behaviour but says it looked wrong.", "category": "design", "verdi... | null |
servo__servo__43160 | servo/servo | 43,160 | defect | 8d46c1b449a44eba09080206fc36935b5166a01a | b2e38b206fb120b9de92d464845996fd652a09a8 | paint: Correctly apply viewport <meta> initial-scale | Fixup: #40055
Instead of applying initial scale to page.
- An `initial-scale` should directly affect the `visualviewport.scale`as it is layer that manages zoom factor https://github.com/w3c/csswg-drafts/issues/9004
- `initial-scale` should be considered with `device_pixel_ratio` while calculating `layout_viewport... | diff --git a/components/paint/webview_renderer.rs b/components/paint/webview_renderer.rs
index 84aa4dbe0ede7..be52d53121def 100644
--- a/components/paint/webview_renderer.rs
+++ b/components/paint/webview_renderer.rs
@@ -1048,7 +1048,14 @@ impl WebViewRenderer {
}
pub fn set_viewport_description(&mut self, ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The eval_visual_viewport closure this PR adds to the webview test is not used anywhere in this PR, since all of its uses are commented out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The WPT expectation files for the ... | null |
servo__servo__43228 | servo/servo | 43,228 | defect | cfc492081552cf3f22141edc4cb9cfa19a69f02c | ba38cd9345e465cbfe3792532c996f2999cc94c4 | servo: Rename `WebView::pinch_zoom` to `adjust_pinch_zoom` and add pinch zoom getter | Previously the `pinch_zoom` method on `WebView` would be used to update the page's pinch zoom level, however there was no way for the embedder to retrieve the current pinch zoom.
This patch renames the existing `pinch_zoom` method to `adjust_pinch_zoom` and changes the `pinch_zoom` method to instead return the curre... | diff --git a/components/paint/paint.rs b/components/paint/paint.rs
index 0e89e8e4ec800..c6031dfb812cc 100644
--- a/components/paint/paint.rs
+++ b/components/paint/paint.rs
@@ -800,12 +800,21 @@ impl Paint {
.notify_scroll_event(webview_id, scroll, point);
}
- pub fn pinch_zoom(&self, webview_id:... | 3 | 2 | 1 | [{"id": "G0", "claim": "Defaulting the page_zoom getter to `0` via `unwrap_or_default()` is wrong because a page zoom of 0 is invalid; the fallback should instead return `1` (or `None`).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The page_zoom... | null |
servo__servo__43238 | servo/servo | 43,238 | defect | 9cf33b773d2416586d0363297ca4d4b8a103e386 | 6c473d1aefa7c64237a10228e839cf983d5638e7 | layout: Properly find text index when clicking to left of text fragments | When clicking just to the left of a text fragment, we should return the
first index in that fragment. This means that when you click on the
border of a text input, the first fragment is selected. We do this by
improving the distance calculation logic to account for this situation.
Testing: This allows us to remov... | diff --git a/components/layout/fragment_tree/fragment.rs b/components/layout/fragment_tree/fragment.rs
index 3ce1a3803497b..2f842050be2e8 100644
--- a/components/layout/fragment_tree/fragment.rs
+++ b/components/layout/fragment_tree/fragment.rs
@@ -379,14 +379,26 @@ impl TextFragment {
// Accept any `TextFragm... | 7 | 6 | 5 | [{"id": "G0", "claim": "The dx/dy computation clamps with `.min(Au::zero())` where the referenced algorithm uses max, so a click to the left of the fragment would select a negative value instead of `Au::zero()` and the distance to the edge would be wrong.", "category": "correctness", "verdict": "supported", "priority":... | null |
servo__servo__43309 | servo/servo | 43,309 | defect | 3d25895cafecddbff47387022b383592fefeb9f8 | 620af47ddc03948959656273532b04176a8cf24f | script: Move easy IpcChannel usage to GenericChannel usage | This moves some easy elements in Script from IpcChannel and related methods to GenericChannel and related methods and some callbacks.
Testing: This will be covered by WPT if the channels behave differently.
| diff --git a/components/net/filemanager_thread.rs b/components/net/filemanager_thread.rs
index 774e4f121cfc2..b3e885d93e1d9 100644
--- a/components/net/filemanager_thread.rs
+++ b/components/net/filemanager_thread.rs
@@ -9,6 +9,7 @@ use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::sync::atomic::{self, Ato... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request description does not mention that some message fields were changed from senders to callbacks, and the reviewer asks the author to explain this.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The WPT metadat... | null |
servo__servo__43338 | servo/servo | 43,338 | defect | 1d0b3f1418fa65ed42e76736b05760e46dac669f | e41506e2f5dd44b21b911ff23a941a3eadb6a5f6 | servo: Add `WebView::load_request` and `UrlRequest` to the API | This is the continuation of https://github.com/servo/servo/pull/43310 with permission from https://github.com/longvatrong111 to continue the work as they are currently busy.
This changes the previous PR by having a a new URLRequest object that can have more parameters. Currently we only implement headers.
Testi... | diff --git a/Cargo.lock b/Cargo.lock
index ffa2e390adca0..0e4bdf14bc5fd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7513,6 +7513,7 @@ name = "servo-constellation"
version = "0.0.1"
dependencies = [
"backtrace",
+ "base64 0.22.1",
"content-security-policy",
"crossbeam-channel",
"euclid",
diff --git a/componen... | 11 | 10 | 3 | [{"id": "G0", "claim": "The load API should be unified so the URL is carried inside the request type - a single LoadUrl message that always carries a UrlRequest - instead of passing a ServoUrl plus an optional URLRequest as overlapping parameters.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
servo__servo__43447 | servo/servo | 43,447 | defect | 8215118a12d1bcceea26ef66f78c7b1c86f8953b | 3e10dab5143717ba95d3f08fbb8d1f237f8ff4f3 | font: Consider `lang` attribute when shaping | Fonts: Added `language` field in the struct `ShapingOptions` so Harfbuzz can also consider language when shaping glyphs.
Testing: Existing WPT. Most recent try run: [link](https://github.com/RichardTjokroutomo/servo/actions/runs/23334049878)
2 new passes, 5 new fails.
Failures:
- `/css/css-text-decor/text-emp... | diff --git a/Cargo.lock b/Cargo.lock
index 285636025a3fc..9b796fdc9bb56 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7698,6 +7698,7 @@ dependencies = [
"fontsan",
"freetype-sys",
"harfbuzz-sys",
+ "icu_locid",
"icu_properties",
"itertools 0.14.0",
"libc",
@@ -8412,6 +8413,7 @@ dependencies = [
"hkdf",
"... | 7 | 7 | 0 | [{"id": "G0", "claim": "The PR's Testing field should be updated with an analysis of the WPT differences, since manual testing is not enough for this kind of change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `icu_locid` entries should... | null |
servo__servo__43600 | servo/servo | 43,600 | defect | 113b06f2ee09db90b3b805bdae1b36053813e96f | d0d8f5b633fafbbab56be03dc634437542d93530 | servo: Add `SiteDataManager::set_cookie_for_url` and `SiteDataManager::cookies_for_url` | Expose set_cookie_for_url, get_cookie_for_url, allow applications to get/set cookies.
Testing: Unit test for `SiteDataManager` and manual test with ServoShell.
| diff --git a/Cargo.lock b/Cargo.lock
index ae83402059c9f..cc578354e79f9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7408,6 +7408,7 @@ dependencies = [
"accesskit_consumer",
"arboard",
"bitflags 2.11.0",
+ "cookie 0.18.1",
"crossbeam-channel",
"dpi",
"env_logger",
diff --git a/components/servo/Cargo.toml b/... | 8 | 8 | 6 | [{"id": "G0", "claim": "The cookie API should be implemented on the `SiteDataManager` rather than on the `WebView`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `url` parameters of the new `SiteDataManager` cookie methods should be `&str` for consi... | null |
servo__servo__43794 | servo/servo | 43,794 | defect | 4f316b7f847441fcfb30317f9129c450998d1b86 | fa956dd41f655feef08b7b501ee12b4d4ff90eb5 | Implement SiteDataManager::cookies_for_url_async | Support applications to get cookies asynchronously from embedder.
Testing: `servo/components/servo/tests/site_data_manager.rs::test_get_cookie_async` | diff --git a/components/servo/servo.rs b/components/servo/servo.rs
index 1ee34b45e1e83..68f228f28c27b 100644
--- a/components/servo/servo.rs
+++ b/components/servo/servo.rs
@@ -240,6 +240,9 @@ impl ServoInner {
.notify_error(ServoError::LostConnectionWithBackend);
}
+ self.site_data_m... | 3 | 2 | 1 | [{"id": "G0", "claim": "It would be more idiomatic to take borrow_mut at the spin-event-loop call site and hand out &mut self later, instead of the borrow/interior-mutability arrangement used here.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Polling pen... | null |
servo__servo__43900 | servo/servo | 43,900 | defect | e73c010bb18f7c84c3ce12721a08b6fcccc8dca7 | e13faadbb65b480399511818e110363fa6e721c4 | storage: use client storage in indexeddb | Integrate client storage into indexeddb for the creation and deletion of databases.
Testing: Existing WPT tests.
Fixes: None
| diff --git a/components/script/dom/indexeddb/idbfactory.rs b/components/script/dom/indexeddb/idbfactory.rs
index bddd0ca2e14a9..744affbe4f205 100644
--- a/components/script/dom/indexeddb/idbfactory.rs
+++ b/components/script/dom/indexeddb/idbfactory.rs
@@ -12,6 +12,7 @@ use profile_traits::generic_callback::GenericCall... | 8 | 6 | 1 | [{"id": "G0", "claim": "The new obtain_a_local_storage_bottle_map helper on IDBFactory could be generalized so other local storage types could call it.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "StorageProxyMap could get an origin field so the places... | null |
servo__servo__43976 | servo/servo | 43,976 | defect | c938e97b3c0884bb76ec37fa1a8c443b4007e91a | e0be9dab81069f62829bb3dfe7766e4e217aceeb | Implement StorageManager API | Add the Storage Standard WebIDL for NavigatorStorage and StorageManager, wire navigator.storage on Window and Worker, and implement persisted(), persist(), and estimate().
Testing: covered by WP test.
part of #39100
fixes #39101 | diff --git a/components/script/dom/mod.rs b/components/script/dom/mod.rs
index 510257f8c4476..aac3496998333 100644
--- a/components/script/dom/mod.rs
+++ b/components/script/dom/mod.rs
@@ -350,6 +350,7 @@ pub(crate) mod servoparser;
pub(crate) mod shadowroot;
pub(crate) mod staticrange;
pub(crate) mod storage;
+pub(... | 11 | 8 | 2 | [{"id": "G0", "claim": "Per the project PSA, new usages of CanGc are apparently no longer supposed to be added, and this PR's StorageManager task closures use CanGc::from_cx.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In Persist(), the storage-thread m... | null |
servo__servo__43988 | servo/servo | 43,988 | defect | 793f0c8ec8d9c3f6aed67f5e51a3eb9683124446 | 047cc8b0bb1dba86782c5006b544af76d2719b7a | storage: fix incorrect data sharing by passing document origin to storage thread | Changes all the uses of `ServoUrl` to `ImmutableOrigin` in `WebStorageThreadMsg`
Testing: Adds a test case as described in the issue.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
... | diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs
index 22d28e737ddee..b14690a24124e 100644
--- a/components/script/dom/storage.rs
+++ b/components/script/dom/storage.rs
@@ -6,7 +6,7 @@ use profile_traits::generic_channel;
use servo_base::generic_channel::{GenericSend, SendResult};
use ... | 4 | 3 | 2 | [{"id": "G0", "claim": "The pull request changes behaviour without any test verifying the change, so per repo policy it should wait to merge until the WPT test exists.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Storage::get_immutable_origin uses glo... | null |
servo__servo__44152 | servo/servo | 44,152 | defect | 2124599d6becf297f99513f2c8cb06b467d26ddd | 72c77b2e391a53cff06695cb4dfe60377b45f1d0 | net: Keep IP cookie buckets separate | Use the full IP address as the cookie storage bucket key instead of passing IP hosts through the public suffix registrable-domain helper. This prevents unrelated IP hosts that share suffix-like address segments from sharing a per-host eviction bucket.
Testing: Added `test_ip_cookie_bucket_collision_eviction`; ran `car... | diff --git a/components/net/cookie_storage.rs b/components/net/cookie_storage.rs
index bcedf49b5d34b..55b7bc1df2a6a 100644
--- a/components/net/cookie_storage.rs
+++ b/components/net/cookie_storage.rs
@@ -8,6 +8,7 @@
use std::cmp::Ordering;
use std::collections::HashMap;
use std::collections::hash_map::Entry;
+use s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new IP cookie bucket eviction regression test should also cover the bracketed IPv6 URL format.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
servo__servo__44255 | servo/servo | 44,255 | defect | 174b9237a83f3fbe8644fb52c370360a9cdc9165 | d6fdf9eb98e94b419055e8ba0e53e3aa3c317c0c | layout: Expose some non-interactive accessibility roles based on DOM node type. | Sets the accessibility role of nodes based on their DOM node type (ignoring ARIA roles and computed styles for now), for a small subset of roles.
This change also re-works some details of accessibility tree building:
- Set the `root` property for the accesskit tree to the node ID for the root DOM node, rather than ... | diff --git a/components/layout/accessibility_tree.rs b/components/layout/accessibility_tree.rs
index 40b0834d1c0de..bf0d022938e48 100644
--- a/components/layout/accessibility_tree.rs
+++ b/components/layout/accessibility_tree.rs
@@ -1,14 +1,16 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The role-matching code can avoid the `expect` and be slightly more efficient by using `dom_node.as_element()` first, with a text-type branch and a GenericContainer fallback.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The role ... | null |
servo__servo__44374 | servo/servo | 44,374 | defect | 85eda69130a4af799ba45eeb8b31dc4ab7958083 | ed42f355aa25b9ea810c350caf58f56ecf6eabdb | storage: use client storage in indexeddb | Use the client storage infra in indexeddb.
Follow-up on https://github.com/servo/servo/pull/43900; the intermittent issues noted at https://github.com/servo/servo/pull/44318 appear to have been caused by using a temp dir, which can be deleted more or less anytime on Linux. This PR introduces a directory named `stora... | diff --git a/components/config/opts.rs b/components/config/opts.rs
index 440062a7b3091..53d9df2db8c40 100644
--- a/components/config/opts.rs
+++ b/components/config/opts.rs
@@ -221,7 +221,7 @@ impl Default for Opts {
random_pipeline_closure_seed: None,
sandbox: false,
debug: Defau... | 1 | 1 | 1 | [{"id": "G0", "claim": "Hardcoding the default config_dir to \"storage_v1\" in Opts::default ignores the platform-specific config-dir logic in ports/servoshell/prefs.rs (e.g. the macOS Application Support directory), and the reviewer asks why config_dir was None in CI.", "category": "correctness", "verdict": "supported... | null |
servo__servo__44439 | servo/servo | 44,439 | defect | 045d549d3463468ee2a9b3c97f7261722f13cc48 | 37382356ddf6c8d072b603ca990d5e697f9f037d | layout: Accessibility: Compute labels for name-from-content nodes | After updating children, we can then walk the text node descendants for [name from content](https://w3c.github.io/aria/#namefromcontent) nodes to compute their labels.
Testing: New tests added in PR.
| diff --git a/components/layout/accessibility_tree.rs b/components/layout/accessibility_tree.rs
index 5290fe74a4933..94b11c4d5be9c 100644
--- a/components/layout/accessibility_tree.rs
+++ b/components/layout/accessibility_tree.rs
@@ -1,12 +1,13 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Replace the two-step VecDeque construction (VecDeque::default() plus children.extend(...)) with a direct constructor such as VecDeque::from(node.accesskit_node.children()).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "C... | null |
servo__servo__44489 | servo/servo | 44,489 | defect | 71a5dfabdd7afd876123bddda4521696c8291e6f | b6c1564cd2dd27ecd1671f779cc0d5e9d46bf2a6 | crown: ignore must-root return types | Stop the unrooted_must_root lint from reporting must-root types only because they appear in a function return type. Caller-side handling is still checked when the returned value is bound locally without rooting.
Testing: `cargo test` in `support/crown`
Fixes: #44463 | diff --git a/support/crown/src/unrooted_must_root.rs b/support/crown/src/unrooted_must_root.rs
index dcf5de820d0eb..3c703ec41c46d 100644
--- a/support/crown/src/unrooted_must_root.rs
+++ b/support/crown/src/unrooted_must_root.rs
@@ -32,7 +32,7 @@ pub fn register(lint_store: &mut LintStore) {
/// "Incorrect" usage incl... | 1 | 1 | 1 | [{"id": "G0", "claim": "The compile-fail test support/crown/tests/compile-fail/missing_allow_in_rc.rs still needs to be rewritten to call `foo` and assert that the call errors, because the change removed the return-type error annotation and left the test asserting nothing.", "category": "testing", "verdict": "supported... | null |
servo__webrender__2736 | servo/webrender | 2,736 | defect | bb1d822fff555494989f0973977accfa81f955db | c8f0625dedf621e6523899cf797dd06816c925ed | Scroll via HitTester | This change uses the HitTester to do scrolling, which allows us to
remove some redundant code. It also will help us to remove bounds for
reference frames, which will be useful when we separate the concept of
reference frames and stacking contexts.
<!-- Reviewable:start -->
---
This change is [<img src="https://revi... | diff --git a/webrender/src/clip_scroll_node.rs b/webrender/src/clip_scroll_node.rs
index 4052a056ff..5d1064d0a4 100644
--- a/webrender/src/clip_scroll_node.rs
+++ b/webrender/src/clip_scroll_node.rs
@@ -5,12 +5,10 @@
use api::{DevicePixelScale, ExternalScrollId, LayoutPixel, LayoutPoint, LayoutRect, LayoutSize};
use ... | 4 | 2 | 1 | [{"id": "G0", "claim": "Rewrite the FrameMsg::Scroll handling in render_backend.rs as `let should_render = match doc.hit_tester { ... };`, since that is where the node index is available and where checking for scroll_nearest_scrolling_ancestor is really needed.", "category": "maintainability", "verdict": "opposed", "pr... | null |
servo__webrender__2742 | servo/webrender | 2,742 | defect | 4e7850e6dee08ff27f3dc1411adf2dcf1f64e4f0 | 7b557afb15813dbd5d912897bc8fc45b1ffdde0b | Decompose tiled images during frame building (v4) | This is a continuation of #2704
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2742)
<!-- Reviewable:end -->
| diff --git a/webrender/res/ps_image.glsl b/webrender/res/ps_image.glsl
deleted file mode 100644
index 3f0c14c335..0000000000
--- a/webrender/res/ps_image.glsl
+++ /dev/null
@@ -1,106 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distrib... | 8 | 4 | 0 | [{"id": "G0", "claim": "The is_multiple_primitives concept in batch.rs overlaps confusingly with the existing segments concept and should be clarified.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the BrushKind::Image batch arm it should be consider... | null |
servo__webrender__2743 | servo/webrender | 2,743 | defect | 8d895b34abbdc8ec606acc36cd2376b10423d080 | 5ad7a6b5e8f6e92c4ed5544d16096480615f22bc | Eliminate ClipScrollNode::local_viewport_rect | It never really made sense for all types of ClipScrollNodes to have
bounding rectangles. For instance, for quite some time ReferenceFrames
always had bounding rectangles that started at zero and with unused
dimensions. With some recent refactoring we can eliminate this property
and have only those node types that n... | diff --git a/webrender/src/clip_scroll_node.rs b/webrender/src/clip_scroll_node.rs
index 5d1064d0a4..e312a3019f 100644
--- a/webrender/src/clip_scroll_node.rs
+++ b/webrender/src/clip_scroll_node.rs
@@ -18,6 +18,7 @@ use util::{TransformedRectKind};
#[derive(Debug)]
pub struct StickyFrameInfo {
+ pub frame_rect:... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use an enum instead of `bool` for the node_cache entry type in webrender/src/hit_test.rs for cleaner semantics.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
servo__webrender__2925 | servo/webrender | 2,925 | defect | c3b9939bd5bf03ca1a0faf5f667f27fd5cab0f2f | 96174b1f2af1b82eabdf123e8b01c4063605d166 | Simplify the ClipId -> CST id mapping code. | There are some upcoming changes which will modify how and when
we store and represent clip nodes and chains. These changes are
necessary to allow WR to rasterize pictures in a different coordinate
space than just screen space.
This patch simplifies the mapping of ClipId to array indices in
the clip-scroll tree. ... | diff --git a/webrender/src/batch.rs b/webrender/src/batch.rs
index bcfa13dcc0..6d6c40373f 100644
--- a/webrender/src/batch.rs
+++ b/webrender/src/batch.rs
@@ -1772,16 +1772,16 @@ impl ClipBatcher {
) {
let mut coordinate_system_id = coordinate_system_id;
for work_item in clips.iter() {
+ ... | 4 | 2 | 0 | [{"id": "G0", "claim": "In ClipBatcher the clip-source lookup calls clip_store.get_opt and immediately follows it with expect, and the reviewer asks why get_opt is used at all.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "ClipSources::new could ... | null |
servo__webrender__3011 | servo/webrender | 3,011 | defect | 5e1f9b9a5b2dbb61e30811195f1070f87d15a1ba | dbbdc66aba0846c9ad8b3bce105a7ffe925384d1 | Add simplier border shader for solid borders. | This fixes #3003
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3011)
<!-- Reviewable:end -->
| diff --git a/webrender/res/cs_border_solid.glsl b/webrender/res/cs_border_solid.glsl
new file mode 100644
index 0000000000..f8edc11eaf
--- /dev/null
+++ b/webrender/res/cs_border_solid.glsl
@@ -0,0 +1,223 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MP... | 3 | 3 | 0 | [{"id": "G0", "claim": "The 'Should never get hit' comment on the default arm of get_outer_corner_scale is wrong, since the caller calls it for non-corner segments too — either the default must be allowed here or the caller's switch simplified.", "category": "documentation", "verdict": "supported", "priority": "P2", "s... | null |
servo__webrender__3181 | servo/webrender | 3,181 | defect | 4ea8ed10ea76b020d94f4ba6f837529936f6ffd6 | 12b0f3deabf17e0805bb383104bfb4ced8123bfc | Switch line decorations from clip mask to cached primitive. |
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3181)
<!-- Reviewable:end -->
| diff --git a/webrender/res/cs_clip_line.glsl b/webrender/res/cs_line_decoration.glsl
similarity index 61%
rename from webrender/res/cs_clip_line.glsl
rename to webrender/res/cs_line_decoration.glsl
index 1fc59dbd00..444ea1decd 100644
--- a/webrender/res/cs_clip_line.glsl
+++ b/webrender/res/cs_line_decoration.glsl
@@ -... | 14 | 8 | 0 | [{"id": "G0", "claim": "The new cached-primitive approach may be slower than the old clip-mask approach in some cases, e.g. the same line decoration applied to text of different colors may now have to be drawn twice instead of sharing one clip mask.", "category": "performance", "verdict": "opposed", "priority": "P2", "... | null |
servo__webrender__3219 | servo/webrender | 3,219 | defect | f4941fb8d126f893f01f3511ab9bb4d15dbbab70 | 4dc6618b43329ffd3d35152d2ccd38d5e219c469 | Skip clip masks with tiled blobs, instead of crashing. | We don't currently support tiled blobs for clip masks (see
issue #2852). This patch detects that case, and skips applying
a clip mask in that case. It's not ideal, but it's better
than crashing inside the resource cache, which is the current
behavior.
<!-- Reviewable:start -->
---
This change is [<img src="https:/... | diff --git a/webrender/src/batch.rs b/webrender/src/batch.rs
index 61066fa0a0..de25a1ced1 100644
--- a/webrender/src/batch.rs
+++ b/webrender/src/batch.rs
@@ -2018,25 +2018,30 @@ impl ClipBatcher {
let gpu_address = gpu_cache.get_address(&clip_node.gpu_cache_handle);
match clip_node.item {
-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The boolean in ClipItem::Image(ImageMask, bool) should be a named field or have a comment explaining its purpose, since its meaning is not discoverable where the type is declared.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
servo__webrender__3438 | servo/webrender | 3,438 | defect | 34411999ff1d72b91256c18aec3738e34d9922bb | 4d0b3bf1265a89cb7649ef05e052f5f55b39842e | Reduce size of spatial node index | Fixes #3431.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3438)
<!-- Reviewable:end -->
| diff --git a/webrender/src/clip.rs b/webrender/src/clip.rs
index 461d5d0e46..a1aef3570d 100644
--- a/webrender/src/clip.rs
+++ b/webrender/src/clip.rs
@@ -1372,8 +1372,8 @@ fn add_clip_node_to_current_chain(
clip_scroll_tree: &ClipScrollTree,
) -> bool {
let clip_node = &clip_data_store[handle];
- let cli... | 5 | 5 | 1 | [{"id": "G0", "claim": "The `unsafe impl Send for SpatialNodeIndex {}` added by the pull request is unnecessary and should be removed (the type should be Send by default).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `assert!` guarding the u32 rang... | null |
session-foundation__session-desktop__1540 | session-foundation/session-desktop | 1,540 | defect | 063adf0ea1fa1fabbbcc2dbecf160599bcc4ea69 | 07007a5fa06ab135c1365b51b720be13bbae67d2 | fix: ignore invalid conversation records by requiring id to be a string | ### First time contributor checklist:
- [X] I have read the [README](https://github.com/session-foundation/session-desktop/blob/master/README.md) and [Contributor Guidelines](https://github.com/session-foundation/session-desktop/blob/master/CONTRIBUTING.md)
### Contributor checklist:
- [X] My commits are in ni... | diff --git a/ts/data/data.ts b/ts/data/data.ts
index 24fbc6c711..2eadd41ab5 100644
--- a/ts/data/data.ts
+++ b/ts/data/data.ts
@@ -142,7 +142,9 @@ async function getAllConversations(): Promise<Array<ConversationModel>> {
const conversationsAttrs =
(await channels.getAllConversations()) as Array<ConversationAttr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The defensive check filtering conversations should be updated to be a little safer (the reviewer then applied this as dropping the any-cast and also rejecting empty-string ids).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
session-foundation__session-desktop__1764 | session-foundation/session-desktop | 1,764 | defect | c9a2616421725262cd42f5865b995471d2724914 | 55c08e08cb232c932e44e8dbe571c46084259fb8 | Fix: Case-insensitive Cyrillic search & nickname lookup logic (#140) | <!--
Thanks for contributing to the project!
Please help us keep this project in good shape by going through this checklist.
Replace the empty checkboxes [ ] below with checked ones [X] as they are completed
Remember, you can preview this before saving it.
-->
### First time contributor checklist:
- [ X] I h... | diff --git a/ts/state/ducks/search.ts b/ts/state/ducks/search.ts
index 5c58c3a121..e8215b5a9d 100644
--- a/ts/state/ducks/search.ts
+++ b/ts/state/ducks/search.ts
@@ -6,7 +6,6 @@ import { cleanSearchTerm } from '../../util/cleanSearchTerm';
import { UserUtils } from '../../session/utils';
import { MessageResultProp... | 1 | 1 | 1 | [{"id": "G0", "claim": "Fetching every conversation with Data.getAllConversations to filter in memory is way too slow and expensive for a large database; the matching has to happen on the database itself, through searchConversations.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
sethvargo__ratchet__105 | sethvargo/ratchet | 105 | defect | b11efe3a66bd02652f99c76a4307852a5c3cba0d | 5c180bb4d213cb6940d89155370a25907609ef25 | Replace "check" command with a full linter | This deprecates (and hides) the `check` command in favor of a new `lint` command that outputs more information about violations including filenames and specific line numbers.
Closes https://github.com/sethvargo/ratchet/issues/103 | diff --git a/README.md b/README.md
index ba7a16380c..47ad11698b 100644
--- a/README.md
+++ b/README.md
@@ -167,13 +167,13 @@ ratchet upgrade -out workflow-compiled.yml workflow.yml
> [!NOTE]
> Performs an `update` if the constraint ref is for a branch.
-#### Check
+#### Lint
-The `check` command checks if all ver... | 2 | 1 | 0 | [{"id": "G0", "claim": "The lint command should return a descriptive error (e.g. 'found unpinned references') instead of an empty error when violations are found, to improve clarity in logs.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The human... | null |
sethvargo__ratchet__40 | sethvargo/ratchet | 40 | defect | 341751135d44f57c5ecf4e7bc369af35ed12adb8 | ed80a66b427ca89bb4a9a79097fdafcb1e55ec77 | add support for Drone | - Support for Drone CI
- Updated go dependencies | diff --git a/README.md b/README.md
index 652ddbdb6b..e28ea75b6d 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,12 @@ development, and it may contain unreleased features.
# pin a cloudbuild file
./ratchet pin -parser cloudbuild cloudbuild.yml
+# pin a drone file
+./ratchet pin -parser drone drone.yml
+
+# pin a... | 4 | 4 | 0 | [{"id": "G0", "claim": "The README example heading above the gitlabci command says '# pin a cloudbuild file' and should say '# pin a gitlab file'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stray blank line at parser/drone.go:56, between t... | null |
sethvargo__ratchet__53 | sethvargo/ratchet | 53 | defect | 61900a1e5c18aaf8b46865ec4050dea9ab1e43c9 | 2f2665041d91687fc47055304d8bf93bf95bef83 | feat: add flag to undo newline changes caused by yaml formatter | This change introduces a new flag `flagExperimentalFormatNewlines` for the `pin`, `update`, and `unpin` commands. This flag enables a feature to undo formatting changes that resulted in removed newlines. | diff --git a/command/command.go b/command/command.go
index cf1fd77153..ff3aa34f63 100644
--- a/command/command.go
+++ b/command/command.go
@@ -5,8 +5,13 @@ import (
"context"
"fmt"
"io"
+ "io/ioutil"
"os"
+ "strings"
+ "github.com/hexops/gotextdiff"
+ "github.com/hexops/gotextdiff/myers"
+ "github.com/hexops/... | 5 | 5 | 2 | [{"id": "G0", "claim": "The code should not use the deprecated ioutil package for reading files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new removeNewLineChanges function is too opaque and should be explained with comments.", "categor... | null |
sezero__uhexen2__29 | sezero/uhexen2 | 29 | defect | f6b7050a3ec4b156efd20db311142285b4822b54 | 6115df06fc69d8bf7bd00805c8328d1958987357 | amiga: added support for Paula audio | Native Paula audio for Amiga plus optimized mixer for Paula 8-bit stereo and AHI 16-bit stereo. | diff --git a/engine/h2shared/q_sound.h b/engine/h2shared/q_sound.h
index 531299163..cd3100d0e 100644
--- a/engine/h2shared/q_sound.h
+++ b/engine/h2shared/q_sound.h
@@ -171,6 +171,9 @@ ASM_LINKAGE_BEGIN
void Snd_WriteLinearBlastStereo16 (void);
void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int endtime);
... | 4 | 2 | 2 | [{"id": "G0", "claim": "The new HAVE_PAULA_SOUND defines in snd_sys.h should be guarded by PLATFORM_AMIGAOS3, otherwise MOS or AROS linkage fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The build fails: snd_paula.o references `custom` and `c... | null |
sezero__uhexen2__58 | sezero/uhexen2 | 58 | defect | 206243e99329430036c6d6d7f1fac4d04e092f08 | cba708b6f22162fa6b0232dbd3eb11f3ba5d8f20 | Commented out some dead code | There was a good amount of dead code, mostly remnants of the software polygon renderer (maybe used by vQuake?), and the old particle effect for EF_BRIGHTFIELD. This gets rid of many unnecessary conditions and reduces the executable size a bit. | diff --git a/engine/h2shared/d_edge.c b/engine/h2shared/d_edge.c
index 7d3d6a05c..696b642db 100644
--- a/engine/h2shared/d_edge.c
+++ b/engine/h2shared/d_edge.c
@@ -35,6 +35,7 @@ extern void R_RotateBmodel (void);
vec3_t transformed_modelorg;
+#if 0
/*
==============
D_DrawPoly
@@ -45,6 +46,7 @@ void D_DrawPol... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `int i;` declaration needs moving from the top of R_RenderWorld into the `if (r_worldpolysbacktofront)` block, where the PR's commenting-out of the surrounding code has left it unused (compiler warning).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
seznam__slo-exporter__24 | seznam/slo-exporter | 24 | defect | 085356aba76425248877f2ddc74e4ff904193808 | 207db5511e88e4797a6f119bc63ef45f80c8a0c3 | Fus csv comments | - Added support for comments in CSV files
- handle panic if CSV had unexpected number of columns | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d0ccaed..0990eb1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+## A... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc sentence 'Both CSV files support comments.' should be reworded to 'CSV configuration files support single line comments.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message 'invalid CSV row format' co... | null |
seznam__slo-exporter__27 | seznam/slo-exporter | 27 | defect | 55281b1d23e6f9c911ce04b573d7b24a74a1cdb0 | f96a7e15569027c8ffa2f3d5ce86b547c1cf4754 | empty config should be invalid | ## Why is this fix needed?
Resolves #26
## Fix idea
Let Pipeline manager to throw an error when empty pipeline is getting started.
Normal error propagation used although panic could be an option as well.
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 35bcd5e..4838cbc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [v6.4.1] 2020-08-25
+## Fixed
+- [#27](https://github.com/seznam/slo-exporter/pull/27) E... | 2 | 2 | 1 | [{"id": "G0", "claim": "The tests around newTestManager() need some more refactoring.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The empty-pipeline check should be added to NewManager so that `--check-config` also reports an empty configuration as... | null |
seznam__slo-exporter__37 | seznam/slo-exporter | 37 | defect | 15024ea0314d6695134e11e220051d0039ceffe3 | 2af3edf7be7944a9b43fb61dbc902fc81a596504 | New ingester module: Envoy access-log-server | ~~Both currently supported APIs are covered, [v2](https://www.envoyproxy.io/docs/envoy/latest/api-v2/api), [v3](https://www.envoyproxy.io/docs/envoy/latest/api-v3/api). (Suggestions on how to avoid this awful code duplicity are welcomed :) )~~ Just support for the current stable version (v3) has been added.
What rem... | diff --git a/cmd/slo_exporter.go b/cmd/slo_exporter.go
index f371458..69a387c 100644
--- a/cmd/slo_exporter.go
+++ b/cmd/slo_exporter.go
@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus"
+ "github.com/seznam/slo-exporter/pkg/access_log_server"
"github.com/s... | 14 | 12 | 4 | [{"id": "G0", "claim": "The test fixture should populate every possible field of the access log entry instead of leaving many nil.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Each request, response and trailer header has to be exported under its own ... | null |
seznam__slo-exporter__69 | seznam/slo-exporter | 69 | defect | 9a19acdcf66a16b3f73029bf0062d56ec2b026db | c984ab63c71fbb77d1105e18170c17bb212b7209 | Add exemplars support to the prometheus_exporter module | @sklik-devops
This adds support for exposing exemplars using the OpenMetrics format for Prometheus.
This should allow user to link together metrics and tracing or logging.
For more info, see for example [this blog post](https://vbehar.medium.com/using-prometheus-exemplars-to-jump-from-metrics-to-traces-in-grafan... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9f26690..e8bb2c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,9 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Vers... | 2 | 1 | 0 | [{"id": "G0", "claim": "The import alias `dto` for the Prometheus client_model package should be explained or possibly renamed.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The exemplars support in slo-exporter should be marked as experimental i... | null |
seznam__slo-exporter__80 | seznam/slo-exporter | 80 | defect | 98e8cfad243501a5d6eba4e1130f96af7fa11d8f | c0011cf9b4825660c16c9b0d6c2c42e15c61d371 | fix prometheus_ingester: add staleness handling and allow shorter update interval | fixes #74
WIP solution of the reported [issue](https://github.com/seznam/slo-exporter/issues/74)
| diff --git a/docs/modules/prometheus_ingester.md b/docs/modules/prometheus_ingester.md
index 972f173..1dd621a 100644
--- a/docs/modules/prometheus_ingester.md
+++ b/docs/modules/prometheus_ingester.md
@@ -1,27 +1,30 @@
# Prometheus ingester
-
| | |
|----------------|---------... | 3 | 2 | 0 | [{"id": "G0", "claim": "The docs bullet should say to not set the interval shorter than staleness (rather than longer), otherwise data will be lost.", "category": "documentation", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs bullet should say 'If previous sample of giv... | null |
seznam__slo-exporter__94 | seznam/slo-exporter | 94 | defect | 19c93f4aebf0194f3664f82913d4e5ab6287ec75 | 16aa4db4ad4b31d4b22f5217f8a6f971fcac6f79 | feat: prometheusIngester now can send custom headers to prometheus api | Introducing possibility to send headers to prometheus api server in prometheusIngester module.
Motivation:
* mimir query requires `X-Scope-OrgID` to be send to server
* our stack has envoy proxy infron of queryer which handles authentication based on http headers | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2397aab..09fa572 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
+### Add... | 14 | 13 | 2 | [{"id": "G0", "claim": "The example config should keep an apiUrl line for the prometheusIngester (either a placeholder or the demo instance with the httpHeaders section commented out) instead of dropping apiUrl entirely.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
seznam__slo-exporter__96 | seznam/slo-exporter | 96 | defect | 49f361afbcf6432c8a710b41b116bed0a9ad5d32 | cb29554feffcdfd257f41f98f816aa36a09dea55 | fix: prometheusIngester headers from env | original implementation counted with viper using yaml library and UnmarshalYAML interface. It was naive, viper uses
mapstructure instead of yaml package | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b36c9dd..8ee314d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
+### Fix... | 3 | 3 | 1 | [{"id": "G0", "claim": "In toMap(), the local variable named httpHeaders shadows the httpHeaders type name (its type is not httpHeaders), and it should be renamed, e.g. to m or result.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "A separate ... | null |
sfu-db__connector-x__487 | sfu-db/connector-x | 487 | defect | 962b396857979c813486ad842e91a0c21ce55f72 | 26f088d78191ce323c3d6e3c5a0be3bf26ce2f6d | Feat/add support for _varchar | The goal of this PR is to solve the issue: [Add support for _varchar #480](https://github.com/sfu-db/connector-x/issues/480). This issue centers around connectorx panicking when interacting with tables containing a varchar[] type.
To solve this, I added:
- a VarcharArray type in the various enums in connectorx/... | diff --git a/connectorx/src/destinations/arrow2/arrow_assoc.rs b/connectorx/src/destinations/arrow2/arrow_assoc.rs
index 969d6330d2..313f9aa857 100644
--- a/connectorx/src/destinations/arrow2/arrow_assoc.rs
+++ b/connectorx/src/destinations/arrow2/arrow_assoc.rs
@@ -439,3 +439,45 @@ impl ArrowAssoc for Vec<u8> {
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pull request's changes to connectorx/src/macros.rs are not necessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Run `cargo fmt` to format the code so the CI error is resolved.", "category": ... | null |
sfu-db__connector-x__71 | sfu-db/connector-x | 71 | defect | 89a28aefe2c3604906b5c695a99530083325e134 | ed5c8db15583f1f5ad5675f99d3f1f651117f074 | Postgres add support for more types | #26
add support: i16, enum, bytea, json, jsonb, time, char, uuid
not support: timetz, interval (rust-postgres does not support) | diff --git a/Cargo.lock b/Cargo.lock
index 626d47ce60..c8f4d402a9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -286,6 +286,7 @@ dependencies = [
"fehler",
"flate2",
"futures",
+ "hex",
"iai",
"itertools 0.10.0",
"log",
@@ -335,9 +336,11 @@ dependencies = [
"pyo3-built",
"rayon",
"rust_decimal",
+ "serd... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `use hex::decode;` import sits below the PgManager/PgConn type aliases and can be put above with the other use statements.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The file connectorx-python/connectorx/tests/tmp... | null |
sfu-db__connector-x__729 | sfu-db/connector-x | 729 | defect | 6443ad2ed7b79ddf1cfaeae1adab1a76d7f1b4bd | 5f2fd39ce76ebdade7ebfa1eec225a14adbcb37f | Add pre_execution_queries parameter to run setup queries before main query on Postgres and MySQL source | This PR attempts to solve: https://github.com/sfu-db/connector-x/issues/728
Also related issues: https://github.com/sfu-db/connector-x/issues/645 https://github.com/sfu-db/connector-x/discussions/471 https://github.com/sfu-db/connector-x/issues/656 https://github.com/sfu-db/connector-x/issues/512
This PR adds pre_e... | diff --git a/connectorx-cpp/src/lib.rs b/connectorx-cpp/src/lib.rs
index 2169f139fe..0e3081d240 100644
--- a/connectorx-cpp/src/lib.rs
+++ b/connectorx-cpp/src/lib.rs
@@ -176,7 +176,7 @@ pub unsafe extern "C" fn connectorx_scan(conn: *const c_char, query: *const c_ch
let conn_str = unsafe { CStr::from_ptr(conn) }.... | 4 | 4 | 2 | [{"id": "G0", "claim": "Unsupported sources should mark their set_pre_execution_queries implementation with the unimplemented! macro (instead of silently ignoring the queries).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inner `query` loop variabl... | null |
sfu-db__connector-x__806 | sfu-db/connector-x | 806 | defect | 57387f4df77c08ec9766b7affbebd3fbc2e13c6c | ca6c7b64e0e58d1548bd2bdbf613351b279323e4 | Support PostgreSQL numeric type to decimal | [#751](https://github.com/sfu-db/connector-x/issues/751) | diff --git a/connectorx/src/destinations/arrow/arrow_assoc.rs b/connectorx/src/destinations/arrow/arrow_assoc.rs
index e71a61aa1f..731e639913 100644
--- a/connectorx/src/destinations/arrow/arrow_assoc.rs
+++ b/connectorx/src/destinations/arrow/arrow_assoc.rs
@@ -2,10 +2,10 @@ use super::{
errors::{ArrowDestination... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the PostgresArrowStream transport's type mappings, the Numeric[Decimal] => Decimal[Decimal] mapping should use `conversion auto` directly instead of `conversion option`, like the other mappings.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
sgallagher__sscg__96 | sgallagher/sscg | 96 | defect | 99195950c7815d3203d1dd2e06085530e2356f92 | 63fbae3b99c857f25a80c8213c1c0f5190545796 | Rework file opening to avoid TOCTOU issues | ## Properly free debug CSR output
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
## Avoid TOCTOU when opening files.
Instead of normalizing the paths and then checking to see if it matches
a file we already know about, sscg will now just preemprively attempt to
open the files and then perform a compa... | diff --git a/include/io_utils.h b/include/io_utils.h
index e4b007c..03b12e5 100644
--- a/include/io_utils.h
+++ b/include/io_utils.h
@@ -36,6 +36,7 @@
#include <openssl/ssl.h>
#include <stdbool.h>
+#include <stdio.h>
#include <talloc.h>
#include "include/key.h"
@@ -105,6 +106,7 @@ enum sscg_file_type
struct ss... | 4 | 4 | 1 | [{"id": "G0", "claim": "Some of the includes that commit 99195950c7815d3203d1dd2e06085530e2356f92 added to src/io_utils.c can now be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "sscg_io_utils_open_output_files is no longer defined or ... | null |
sgl-project__genai-bench__12 | sgl-project/genai-bench | 12 | defect | 58c0fe007e9c1dbbf3fc22beedab88fa0d9947b8 | 748ebfa01c6b3f858efd741d5cfbf5cb3126bc30 | refactor: Update `image-to-text` to `image-text-to-text` | ## Motivations
Completes #1
Rename ambiguous task image-to-text to image-text-to-text to better reflect that it takes both image and text inputs.
## Changes
1. USER_GUIDE.md - Updated task description and all command examples
2. CONTRIBUTING.md - Updated task mapping in OpenAI user example
3. genai_ben... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 351c46a1..60c341c2 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -180,7 +180,7 @@ Each `User` corresponds to one API backend, such as [`OpenAIUser`](genai_bench/u
class OpenAIUser(BaseUser):
supported_tasks = {
"text-to-text": "chat",
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The purposeless split of the error-message string literal into two implicitly concatenated parts looks like an unintended change and should be reverted to the original single string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sgl-project__genai-bench__122 | sgl-project/genai-bench | 122 | defect | 625e983b6f904e69d2b11c13310d985d47a16f31 | 11ea1dd357b4f7ce8d2f013abd426ae4fb4bef5c | [Bug] Filter TPOT/inference speed by output latency | ## Description
This PR aims to address abnormally high inference speed reports by implementing selective filtering for TPOT and inference speed metrics based on output latency, while preserving all other timing metrics (TTFT, E2E latency, etc.)
## Related Issue
#100
## Changes
1. Consolidated filtering logi... | diff --git a/genai_bench/metrics/aggregated_metrics_collector.py b/genai_bench/metrics/aggregated_metrics_collector.py
index 5b677a5e..00faf724 100644
--- a/genai_bench/metrics/aggregated_metrics_collector.py
+++ b/genai_bench/metrics/aggregated_metrics_collector.py
@@ -37,8 +37,8 @@ def __init__(self):
def add_... | 4 | 2 | 1 | [{"id": "G0", "claim": "With the new aggregation-time filtering of abnormal tpot/output_inference_speed values, values can become empty when every request is filtered (e.g. all output_latency < 0.1), and the existing ValueError(\"No values found…\") would then terminate aggregation even though the data was intentionall... | null |
sgl-project__genai-bench__126 | sgl-project/genai-bench | 126 | defect | 8539bd490e8c7ee16ab4a0571614fe88a89468c4 | b56e9dbd8722d074665a2132881733ec74b14c7d | [MISC] Improve token counting with usage data in OCI GenAI user | ## Description
Adds support for extracting token usage information from streaming responses using the 'usage' field, with fallbacks to event count and word count if usage data is unavailable.
## Related Issue
N/A
## Changes
Modify `genai_bench/user/oci_genai_user.py` to
1. Enable usage data extraction from st... | diff --git a/genai_bench/user/oci_genai_user.py b/genai_bench/user/oci_genai_user.py
index ccecf676..8dbbc9e9 100644
--- a/genai_bench/user/oci_genai_user.py
+++ b/genai_bench/user/oci_genai_user.py
@@ -120,6 +120,7 @@ def chat(self):
messages=messages,
max_tokens=user_request.max_tokens,
... | 4 | 3 | 3 | [{"id": "G0", "claim": "If usage_data[\"completionTokensDetails\"] is present but null, usage_data.get(\"completionTokensDetails\", {}) returns None and the subsequent .get(\"reasoningTokens\", 0) raises an AttributeError that the except (KeyError, TypeError) block does not catch; call .get() on a dictionary, e.g. (usa... | null |
sgl-project__genai-bench__163 | sgl-project/genai-bench | 163 | defect | 5d320684fd63adacbbdab0c4a917bca144c65198 | ff568f451bd3ee0d3bfa0301d3417fe2370d20e6 | Fix SSE parser to handle optional/variable whitespace after 'data:' | ## Description
<!--Please provide a brief description of the changes in this PR.-->
This PR fixes a bug in the Server-Sent Events (SSE) parser within the OpenAIUser class where it strictly expected a single space after the data: prefix (e.g., data: {...}). This behavior was non-compliant with the SSE specification, c... | diff --git a/genai_bench/user/openai_user.py b/genai_bench/user/openai_user.py
index 0ff4f7c1..aa0be374 100644
--- a/genai_bench/user/openai_user.py
+++ b/genai_bench/user/openai_user.py
@@ -251,7 +251,6 @@ def parse_chat_response(
Returns:
UserChatResponse: A response object with metrics and gene... | 3 | 3 | 1 | [{"id": "G0", "claim": "Non-data SSE lines (comments and other event types) are not skipped, so any non-empty line that does not start with `data:` falls through and would cause a json.loads error; the parser should explicitly skip lines that are not data events.", "category": "correctness", "verdict": "supported", "pr... | null |
sgl-project__genai-bench__58 | sgl-project/genai-bench | 58 | defect | f587359dc1bbd7b03dd54ee8314b2ab0f5980c59 | 59075f7c168755cde82c359dbb5fc9decbbe67bf | bugfix: Fix TextSampler sampling logic | ## Motivation
`tokenizer.encode(line)` in `_sample_text` did not specify `add_special_tokens=False` but `self.get_token_length` sets `add_special_tokens=False`. This causes great discrepancy. Hence, `_check_discrepancy` will alway log warning.
## Modification
- Sets `tokenizer.encode(line, add_special_tokens=F... | diff --git a/genai_bench/sampling/text.py b/genai_bench/sampling/text.py
index d99ead17..820196f2 100644
--- a/genai_bench/sampling/text.py
+++ b/genai_bench/sampling/text.py
@@ -81,7 +81,7 @@ def _sample_chat_request(self, scenario: Scenario) -> UserChatRequest:
prompt = self._sample_text(num_input_tokens... | 2 | 2 | 1 | [{"id": "G0", "claim": "The added line can prepend an unwanted leading space when prompt is empty, and is inconsistent with the full-line concatenation at line 191, which can merge words in the output; add the space conditionally (and apply similar logic to line 191 or use a join).", "category": "correctness", "verdict... | null |
sgl-project__genai-bench__82 | sgl-project/genai-bench | 82 | defect | cbf4609511f9c20d241c4ce8b5e504a070aa5421 | f238852cfb3a70235f9b34d409161e572e155365 | [Feature] add count-based warmup/cooldown ratio | ## Description
Add count-based warm-up / cooldown filterering.
## What type of PR is this?
/kind Core
## Related Issue
X
## How Has This Been Tested?
Validated ratio handling and ran actual benchmark tests to confirm that requests are filtered according to the specified warmup and cooldown ratios.
## ... | diff --git a/genai_bench/cli/cli.py b/genai_bench/cli/cli.py
index dc5561e8..1ff09985 100644
--- a/genai_bench/cli/cli.py
+++ b/genai_bench/cli/cli.py
@@ -78,6 +78,8 @@ def benchmark(
task,
iteration_type,
num_concurrency,
+ warmup_ratio,
+ cooldown_ratio,
batch_size,
traffic_scenario,
... | 3 | 3 | 2 | [{"id": "G0", "claim": "Changing the signature of aggregate_metrics_data is a breaking change: the calls to it in tests/metrics/test_metrics.py (e.g. test_event_aggregation, test_save_metrics, test_aggregate_empty_metrics) were not updated with the new warmup_ratio and cooldown_ratio parameters, so the test suite will ... | null |
sgl-project__ome__104 | sgl-project/ome | 104 | defect | 365d7b7d29956c3a029e43b052ee55d7570919b0 | 41c92a0d04431e34568ed7a61538f2d836f2e0ac | [misc] add auth interfaces | <!--
Thank you for contributing to OME! Please read the contributing guidelines:
https://github.com/sgl-project/ome/blob/main/CONTRIBUTING.md
-->
## What type of PR is this?
/kind feature
<!--
Add one of the following:
/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind design
-->
## Wha... | diff --git a/pkg/auth/factory.go b/pkg/auth/factory.go
new file mode 100644
index 000000000..e0d542487
--- /dev/null
+++ b/pkg/auth/factory.go
@@ -0,0 +1,120 @@
+package auth
+
+import (
+ "context"
+ "fmt"
+ "sync"
+
+ "github.com/sgl-project/ome/pkg/logging"
+ "go.uber.org/zap"
+)
+
+// DefaultFactory is the default ... | 5 | 3 | 2 | [{"id": "G0", "claim": "The global defaultFactory variable is accessed without any synchronization, which can lead to race conditions when multiple goroutines access it concurrently; protect access with a sync.Mutex or sync.RWMutex.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
sgl-project__ome__105 | sgl-project/ome | 105 | defect | 799f857b83af3ec14026ecc69f8b6c08c92d88b9 | eceb8752dd431f2855cc8ad5f7b5a18a9de02786 | [misc] add oci auth for up, ip, and rp | <!--
Thank you for contributing to OME! Please read the contributing guidelines:
https://github.com/sgl-project/ome/blob/main/CONTRIBUTING.md
-->
## What type of PR is this?
/kind feature
-->
## What this PR does / why we need it:
multi cloud support auth module for oci
<!--
Please include a summary... | diff --git a/pkg/auth/oci/config.go b/pkg/auth/oci/config.go
new file mode 100644
index 000000000..23bad79e1
--- /dev/null
+++ b/pkg/auth/oci/config.go
@@ -0,0 +1,74 @@
+package oci
+
+import (
+ "errors"
+ "os"
+ "path/filepath"
+ "strings"
+)
+
+// Default values for OCI configuration
+const (
+ DefaultConfigPath = "... | 5 | 3 | 2 | [{"id": "G0", "claim": "The default 20-minute timeout on NewOCIHTTPClient's http.Client is excessively long and could lead to resource exhaustion; it should be reduced to 1-2 minutes.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Parsing OCI_USE_SE... | null |
sgl-project__ome__132 | sgl-project/ome | 132 | defect | 43ff6b08ed58184104d6e90d9375cda0549e2f9d | ea0836af6857cf8adc2fa423a1a34e6388c4b8f8 | fix: use non-deprecated node instance type label | Replace deprecated beta.kubernetes.io/instance-type label with the GA
node.kubernetes.io/instance-type label for node instance type detection.
The code now tries the newer label first using the ok value from map
lookup and falls back to the deprecated beta label for backward
compatibility. This ensures the code works ... | diff --git a/pkg/modelagent/scout.go b/pkg/modelagent/scout.go
index a2d93940e..af25253fe 100644
--- a/pkg/modelagent/scout.go
+++ b/pkg/modelagent/scout.go
@@ -58,7 +58,12 @@ func NewScout(ctx context.Context, nodeName string,
if err != nil {
return nil, fmt.Errorf("failed to get node info for node %s: %w", nodeN... | 2 | 2 | 1 | [{"id": "G0", "claim": "The fallback should use the ok value from the map lookup instead of an empty-string check, because an intentionally empty label value would trigger the fallback unintentionally.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
sgl-project__ome__134 | sgl-project/ome | 134 | defect | 5bf5cc7728d5a201d365c3c5dc6d3697fab115f1 | b31de948d61ea2e51feea348ca3f9b25bdde6dbf | Refactor node shape utilities to support multi-cloud instance types | - Rename node_shape_util.go to instance_type_util.go to better reflect cloud-agnostic purpose
- Rename functions to use generic "instance type" terminology instead of OCI-specific "shape"
- Add instance type mappings for AWS, Azure, Google Cloud, and CoreWeave
- Add comprehensive unit tests for instance type mappings
... | diff --git a/internal/ome-agent/enigma/config.go b/internal/ome-agent/enigma/config.go
index a850c42dd..cbf9a58f6 100644
--- a/internal/ome-agent/enigma/config.go
+++ b/internal/ome-agent/enigma/config.go
@@ -128,14 +128,14 @@ func WithViper(v *viper.Viper, logger logging.Interface) Option {
func configureTensorRTLLM(... | 2 | 2 | 0 | [{"id": "G0", "claim": "A clarifying comment should be added to GetNodeInstanceType noting that its implementation is currently OCI-specific and a future refactor is needed for other cloud providers.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
sgl-project__ome__141 | sgl-project/ome | 141 | defect | 6b893c0ff5a776d33b96935b3e2a3338fec9e6e8 | 7c240bac9a6cb64552c8d75ea8e29458ceb39569 | [bugfix] fix nodeshape for unknown vendors | ## What type of PR is this?
/kind bug
## What this PR does / why we need it:
This PR fixes the ome-model-agent-daemonset startup failure by
modifying the `GetInstanceTypeShortName` function to gracefully
handle unknown instance types.
Previously, the function would return an error when encoun... | diff --git a/pkg/utils/instance_type_util.go b/pkg/utils/instance_type_util.go
index b2ebdcd27..4bd0356d0 100644
--- a/pkg/utils/instance_type_util.go
+++ b/pkg/utils/instance_type_util.go
@@ -1,8 +1,6 @@
package utils
import (
- "fmt"
-
"github.com/sgl-project/ome/pkg/imds"
"github.com/sgl-project/ome/pkg/logg... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test case TestGetInstanceTypeShortName in pkg/utils/instance_type_util_test.go still expects an error for unknown instance types, which will make it fail, so it should be updated to assert that the function returns the original instance type and no error.", "category": "testing", "verdict": ... | null |
sgl-project__ome__143 | sgl-project/ome | 143 | defect | 90b1e3c0edf2b51b95d6b52e6e60bf8b183a4c72 | 722b1cdfe510ee7dbbed73a58d5fd3a086f9ff87 | [bugfix] Separate OCI Object Storage clients for ome agent | ## What type of PR is this?
/kind bug
## What this PR does / why we need it:
This PR updates the object replication workflow to use separate Object Storage clients for downloading and uploading objects, improving both security and maintainability.
**Background:**
We want to ensure that customers do not ... | diff --git a/cmd/ome-agent/replica_agent.go b/cmd/ome-agent/replica_agent.go
index 0615b7e52..284e962d7 100644
--- a/cmd/ome-agent/replica_agent.go
+++ b/cmd/ome-agent/replica_agent.go
@@ -44,7 +44,7 @@ func (r *ReplicaAgent) FxModules() []fx.Option {
afero.Module,
logging.Module,
logging.ModuleNamed("another_... | 14 | 10 | 3 | [{"id": "G0", "claim": "TestWithAppParams initializes an empty datastore slice and asserts it stays empty, so the test does not validate that the source and target data stores are correctly assigned to the Config struct.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
sgl-project__ome__172 | sgl-project/ome | 172 | defect | 631f7d70e38fce5e0ca7035e862671e1e35b4936 | d7ae3d354ba38c266110676f8af62c4aa3357266 | [core] add model metadata parser to ome agent | ## What type of PR is this?
/kind feature
## What this PR does / why we need it:
This PR implements the model metadata extraction agent as part of OEP-0004 (PVC Storage Support). The new `model-metadata` agent enables OME to
extract metadata from models stored in Kubernetes PVCs without requiring the ... | diff --git a/cmd/ome-agent/k8sclient.go b/cmd/ome-agent/k8sclient.go
new file mode 100644
index 000000000..01a8c62e0
--- /dev/null
+++ b/cmd/ome-agent/k8sclient.go
@@ -0,0 +1,42 @@
+package main
+
+import (
+ "fmt"
+
+ "k8s.io/apimachinery/pkg/runtime"
+ clientgoscheme "k8s.io/client-go/kubernetes/scheme"
+ ctrl "sigs.... | 3 | 1 | 0 | [{"id": "G0", "claim": "NewK8sClient uses ctrl.GetConfigOrDie(), which panics when no Kubernetes config can be obtained; use ctrl.GetConfig() and return the error gracefully.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The local formatParameterCo... | null |
sgl-project__ome__192 | sgl-project/ome | 192 | defect | 19524bba953ae212f61b986f2d21397ff1857825 | b871bb8cdd2441eb51f6cb1978553747d479b0ad | fix: Update status using Status().Update method | <!--
Thank you for contributing to OME! Please read the contributing guidelines:
https://github.com/sgl-project/ome/blob/main/CONTRIBUTING.md
-->
## What type of PR is this?
/kind bug
## What this PR does / why we need it:
<!--
Please include a summary of the changes and which issue is fixed.
Includ... | diff --git a/pkg/controller/v1beta1/benchmark/controller.go b/pkg/controller/v1beta1/benchmark/controller.go
index 942ce7c51..bff14ca8d 100644
--- a/pkg/controller/v1beta1/benchmark/controller.go
+++ b/pkg/controller/v1beta1/benchmark/controller.go
@@ -547,7 +547,7 @@ func (r *BenchmarkJobReconciler) updateStatus(ctx c... | 1 | 1 | 1 | [{"id": "G0", "claim": "Enhance TestBenchmarkJobReconciler_updateStatus in controller_test.go to assert that the BenchmarkJob status fields (e.g. State) are actually updated as expected after calling updateStatus, instead of only verifying that no error is returned.", "category": "testing", "verdict": "supported", "pri... | null |
sgl-project__ome__276 | sgl-project/ome | 276 | defect | 7d4ab7dd813d8e58258a433011d32616ed8d99c2 | daea35a48ce249976845d3335c20680b57010dfa | [Task5]accelerator class controller | ## What type of PR is this?
/kind feature
/kind design
## What this PR does / why we need it:
After add AcceleratorClass crd. Need to create a contoller to reconcile this resource.
This is the first step, only check nodes and update acceleratorClass status according nodes.
This pr mainly containers these parts:... | diff --git a/charts/ome-crd/templates/ome.io_clusterservingruntimes.yaml b/charts/ome-crd/templates/ome.io_clusterservingruntimes.yaml
index 74938eb9f..cd0ac216a 100644
--- a/charts/ome-crd/templates/ome.io_clusterservingruntimes.yaml
+++ b/charts/ome-crd/templates/ome.io_clusterservingruntimes.yaml
@@ -1227,10 +1227,1... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new controller's node selector matching logic contains correctness problems that need to be addressed.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new controller's capability matching logic contains correctness pro... | null |
sgl-project__ome__317 | sgl-project/ome | 317 | defect | ea13090c9a8e7cb4196f3a562ac5506e0bca9dfb | 70112950e5f9146e62f2473438f3448ebe666b4a | Validate ClusterServingRuntime and ServingRuntime resources only reference known accelerator classes | <!--
Thank you for contributing to OME! Please read the contributing guidelines:
https://github.com/sgl-project/ome/blob/main/CONTRIBUTING.md
-->
## What type of PR is this?
<!--
Add one of the following:
/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind design
-->
## What this PR doe... | diff --git a/pkg/webhook/admission/servingruntime/servingruntime_webhook.go b/pkg/webhook/admission/servingruntime/servingruntime_webhook.go
index e6f38729e..c3f15c955 100644
--- a/pkg/webhook/admission/servingruntime/servingruntime_webhook.go
+++ b/pkg/webhook/admission/servingruntime/servingruntime_webhook.go
@@ -28,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error handling in validateAcceleratorClasses needlessly branches on the length of missingClasses; the error message should be handled without the special single-class length check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sgl-project__ome__318 | sgl-project/ome | 318 | defect | ea13090c9a8e7cb4196f3a562ac5506e0bca9dfb | 6d3ad08f189041ad0bfeec3ab43aa0bea2dd0c81 | [Misc] update error handle during processbaseLable | ## What type of PR is this?
/kind bug
/kind documentation
/kind feature
## What this PR does / why we need it:
1. add error handler in ProcessBaseLabels. keep consistent with processAnnotation
2. fix rbac for pdb
3. fix Running OME Manager Locally issue
| diff --git a/charts/ome-resources/templates/ome-controller/rbac/role.yaml b/charts/ome-resources/templates/ome-controller/rbac/role.yaml
index 930d26faa..e0a77f189 100644
--- a/charts/ome-resources/templates/ome-controller/rbac/role.yaml
+++ b/charts/ome-resources/templates/ome-controller/rbac/role.yaml
@@ -221,6 +221,... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unchecked type assertion `ftStrategyParameter.(string)` in ProcessBaseLabels is unsafe and will panic if the hyper-parameter strategy value is not a string; a checked assertion should be used and a non-string value should be returned as an error.", "category": "correctness", "verdict": "unce... | null |
sgl-project__ome__358 | sgl-project/ome | 358 | defect | 869aacf140cceb1264ef32653fb209c8f1ecb095 | b318627bd1b7976d109ae7e025de69efaeb9c2ca | Use node affinity instead of node selector for autoscaling | In the current implementation, when the node was scaled down, it would not come up because the autoscaler would expect the nodepool to have a model specific label "ome.io/<model_name> = ready", and thus the autoscaler would not bring up new nodes.
This implementation fixes it by using PreferredDuringSchedulingIgnore... | diff --git a/pkg/controller/v1beta1/inferenceservice/components/base.go b/pkg/controller/v1beta1/inferenceservice/components/base.go
index 55d034d9f..32ced0e12 100644
--- a/pkg/controller/v1beta1/inferenceservice/components/base.go
+++ b/pkg/controller/v1beta1/inferenceservice/components/base.go
@@ -235,24 +235,64 @@ f... | 3 | 2 | 0 | [{"id": "G0", "claim": "In the LWS leader/worker and RayCluster head/worker affinity tests in decoder_test.go and engine_test.go, the verification should also assert the Operator and Values of the matched NodeSelectorRequirement, not only the Weight.", "category": "testing", "verdict": "supported", "priority": "P2", "s... | null |
sgl-project__ome__406 | sgl-project/ome | 406 | defect | a90deed3d977b84b67ab6820cdbae5ddd8df9a67 | 8075f21e42d1fa285df555618ae50caaac6bcb27 | [Bugs]resolve too long domain name | ## What this PR does
in our service our inferenceServiceName-engine will exceed url 63 character limit. In order to keep all url consistent, modify the generateDomainName with name strip.
## Why we need it
<!-- Motivation, context, or link to issue -->
Fixes #
## How to test
## Checklist
- [ ] ... | diff --git a/pkg/controller/v1beta1/inferenceservice/reconcilers/ingress/services/domain_service.go b/pkg/controller/v1beta1/inferenceservice/reconcilers/ingress/services/domain_service.go
index 0a0dbe72b..c2a01fa86 100644
--- a/pkg/controller/v1beta1/inferenceservice/reconcilers/ingress/services/domain_service.go
+++ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The truncation can leave a DNS label starting with a hyphen, which is invalid per RFC 1123 and will fail domain validation later; leading hyphens should be removed after truncating.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
sgl-project__ome__426 | sgl-project/ome | 426 | defect | 4f897de9891b69567a1b4face6c77e19c758871e | dd2f4d3102202f91c45226ddf1f57fa5745aa28f | [Bugfix] Handle missing KEDA CRD gracefully | ## What this PR does
Gracefully handle "kind not registered" error in `deleteExistingScaledObject()`
when KEDA CRDs are not installed, treating it the same as "not found".
### Changes
- `autoscaler_reconciler.go`: Added `runtime.IsNotRegisteredError(err)` check
- `autoscaler_reconciler_test.go`: Added `TestD... | diff --git a/go.sum b/go.sum
index 71b32afa3..cccf82004 100644
--- a/go.sum
+++ b/go.sum
@@ -15,221 +15,61 @@ cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKV
cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
cloud.google.com/go v0.62.0/go.mod h1:jmCYTd... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test should not key its delete-verification off the test case name string; add an explicit verifyDeleted field to the test case struct and use context.Background() instead of context.TODO() in the test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
sgl-project__ome__49 | sgl-project/ome | 49 | defect | 6d3bbe52c5b827953f798565cb9fc9ce2283f09e | 70b9fb084b1e658c875e3fd11f9d575e100b6329 | [Core] Add logic to skip reconcile if no Router is defined in isvc | Return nil if inference service components are not specified when merging component specs.
Applies to Engine/Decoder/Router | diff --git a/pkg/controller/v1beta1/inferenceservice/components/router.go b/pkg/controller/v1beta1/inferenceservice/components/router.go
index 817af1286..9bfcbe07e 100644
--- a/pkg/controller/v1beta1/inferenceservice/components/router.go
+++ b/pkg/controller/v1beta1/inferenceservice/components/router.go
@@ -79,6 +79,12... | 3 | 2 | 1 | [{"id": "G0", "claim": "Existing router resources should be deleted when isvc.Spec.Router is nil and resources exist (e.g. via a cleanupRouterResources function) to prevent orphaned resources and resource leaks.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
sgl-project__ome__501 | sgl-project/ome | 501 | defect | 9ba330cd6eadde8099f73bb251acfe7c1b14544e | b0eb402d6a7474d2252d0ae169a4fd4217a1867d | Do not add grafana related annotations to k8s service | ## What this PR does
retry https://github.com/sgl-project/ome/pull/391. Right now the grafana annotations on the services will cause grafana to scrape the service as well and lead to wrong metrics.
## Why we need it
<!-- Motivation, context, or link to issue -->
Fixes https://github.com/sgl-project/ome/issu... | diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go
index 7a937666b..90a6e455a 100644
--- a/pkg/constants/constants.go
+++ b/pkg/constants/constants.go
@@ -397,6 +397,28 @@ var (
RevisionTemplateLabelDisallowedList = []string{
VisibilityLabel,
}
+
+ // PodOnlyAnnotationPrefixes contains annotati... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unused `componentExt` parameter should be removed from `buildService`, with its call sites in `NewServiceReconciler` and the tests in `service_reconciler_test.go` updated accordingly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": ... | null |
sgl-project__ome__509 | sgl-project/ome | 509 | defect | 297c6df4644df404566f32194ee872fe8fd0b669 | 85676962b08ffc2f97ab60e7612fc48689d221be | [Mics]imporve ac args and command override | ## What this PR does
1. Refactor AC merge argments logic.
2. Refactor AC override tp and dp parameters logic.
## Why we need it
For customer convenience, we allow customers to define the container command and args in their preferred format, as long as it follows the Kubernetes YAML formats. The AcceleratorClass m... | diff --git a/pkg/controller/v1beta1/inferenceservice/components/base.go b/pkg/controller/v1beta1/inferenceservice/components/base.go
index 7085c151e..4cdd56c19 100644
--- a/pkg/controller/v1beta1/inferenceservice/components/base.go
+++ b/pkg/controller/v1beta1/inferenceservice/components/base.go
@@ -259,40 +259,70 @@ f... | 4 | 2 | 1 | [{"id": "G0", "claim": "In base.go the result of OverrideArgParam for --tensor-parallel-size is not assigned to `updated` (same on lines 296, 311, 324), so a successful override still falls through to checking container.Command; the boolean should be assigned.", "category": "correctness", "verdict": "supported", "prior... | null |
sgl-project__ome__547 | sgl-project/ome | 547 | defect | 9b65e19e5ce5b69ae965b34f8f46598b0b2a4c28 | 9516081447b804b0fb1630f8b31f3f36738a2170 | [Core]acceleratorclass cheapest selection policy logic update | ## What this PR does
- Fix cheapest accelerator selection to compare costs within the same unit group instead of mixing different pricing types (e.g., "$/hour" vs "$/million-tokens")
- Costs are now compared in priority order: hourly (spot + on-demand) → per-million-tokens → tier
- Compare candidates in **unit group... | diff --git a/pkg/acceleratorclassselector/policy_helpers.go b/pkg/acceleratorclassselector/policy_helpers.go
index 188a37981..3de3e0e79 100644
--- a/pkg/acceleratorclassselector/policy_helpers.go
+++ b/pkg/acceleratorclassselector/policy_helpers.go
@@ -316,52 +316,25 @@ func calculateComputePerformanceTFLOPSScore(
re... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removing the 'If empty, the runtime supports any accelerator' comment while SupportsAcceleratorClass still treats an empty AcceleratorClasses list as supporting all accelerators, while getCandidateAccelerators returns no candidates for an empty list, leaves an inconsistency in what an empty list... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.