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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OpenZeppelin__openzeppelin-relayer__89 | OpenZeppelin/openzeppelin-relayer | 89 | defect | efe09b2921394a87a17a470ce3cd80d8438ea222 | 984be1a04f26434ff399d9944a5626466427bb2b | fix: Flaky logging tests | # Summary
- Fix Flaky logging tests
## Testing Process
## Checklist
- [ ] Add a reference to related issues in the PR description.
- [ ] Add unit tests if applicable.
| diff --git a/src/logging/mod.rs b/src/logging/mod.rs
index a1cf2b5d4..25f44ad1a 100644
--- a/src/logging/mod.rs
+++ b/src/logging/mod.rs
@@ -89,6 +89,11 @@ pub fn setup_logging() {
// Get log file path from environment or use default
let base_file_path = format!("{}relayer.log", log_dir);
+ /... | 1 | 1 | 1 | [{"id": "G0", "claim": "setup_logging should not panic (crash the server) when the log file already exists; the reviewer suggests healing state instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenZeppelin__rust-contracts-stylus__108 | OpenZeppelin/rust-contracts-stylus | 108 | defect | 981e9dcaa5881d6da1f8d4efb2c516abf6b8cbff | 14c046ae624b2e391f7f7f83b13e0a262f3826ef | test: expect event to be emitted (#88) | Resolves #88 | diff --git a/examples/erc721/tests/abi.rs b/examples/erc721/tests/abi.rs
index 9f236e13b..5ba69120f 100644
--- a/examples/erc721/tests/abi.rs
+++ b/examples/erc721/tests/abi.rs
@@ -38,8 +38,13 @@ sol!(
error EnforcedPause();
error ExpectedPause();
+ #[derive(Debug, PartialEq)]
event ... | 5 | 5 | 0 | [{"id": "G0", "claim": "The module file `lib/e2e/src/assert.rs` should maybe be renamed to `assertions.rs` because `assert.rs` is not a good name for the module.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The doc comment on the `Emits` tra... | null |
OpenZeppelin__rust-contracts-stylus__110 | OpenZeppelin/rust-contracts-stylus | 110 | defect | 1d6342b859aa7780c042a6bd1dc20c686ca121ab | f8155ea759b9be883b85877a9c09faa442c46e45 | fix(e2e): properly check errors match | Follow-up work to #80
We were previously just checking that an error's signature was contained in the JSON-RPC response, but now we check the revert data fully.
Also polished the API. | diff --git a/examples/erc721/tests/erc721.rs b/examples/erc721/tests/erc721.rs
index c8d8e6fd2..4d6d45419 100644
--- a/examples/erc721/tests/erc721.rs
+++ b/examples/erc721/tests/erc721.rs
@@ -7,7 +7,7 @@ use alloy::{
sol,
sol_types::SolConstructor,
};
-use e2e::{Assert, User};
+use e2e::{ErrorExt, User};
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment says the method \"Asserts\" the error match, but after the rename it is `is` and only returns a bool, asserting nothing, so the comment may be misleading.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenZeppelin__rust-contracts-stylus__199 | OpenZeppelin/rust-contracts-stylus | 199 | defect | 9e45bffc240c5880609ee42bb394e5185f180ed2 | d79fd0d227ef9739e904496d95dbd490da99e3ab | feat: add ECDSA smart contract | Resolves #17
#### PR Checklist
- [x] Tests
- [x] Documentation
| diff --git a/.github/workflows/check-wasm.yml b/.github/workflows/check-wasm.yml
index 98a1be4e6..0d6c0fbb3 100644
--- a/.github/workflows/check-wasm.yml
+++ b/.github/workflows/check-wasm.yml
@@ -32,7 +32,7 @@ jobs:
cache-on-failure: "true"
- name: install cargo-stylus
- run: cargo install c... | 14 | 14 | 0 | [{"id": "G0", "claim": "The `ecrecover` calldata struct should use consistent capitalization: `EcRecoverData` instead of `ECRecoverData`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment should read \"If the `ecrecover` precompile ... | null |
OpenZeppelin__rust-contracts-stylus__242 | OpenZeppelin/rust-contracts-stylus | 242 | defect | c3b2a67982bc80da3cb9e95d8383e77503b040b0 | c3000b7475d2943f9051d409cefc4aa1954233a3 | ref(e2e): use generic deploy function | Adds `Account::as_deployer()` function that let's to configure contract (with/without constructor) for e2e tests. And deploy it.
Includes all necessary migrations of e2e tests to the new api.
| diff --git a/examples/access-control/tests/access_control.rs b/examples/access-control/tests/access_control.rs
index 15de129d3..b5f430337 100644
--- a/examples/access-control/tests/access_control.rs
+++ b/examples/access-control/tests/access_control.rs
@@ -4,13 +4,14 @@ use abi::AccessControl::{
self, AccessContro... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new deploy call site could read as a method on the account, e.g. `alice.deploy(constructor()).await?.address()?` or `alice.deploy_with(constructor())...`, instead of the free function `deploy(&alice, constructor())`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ... | null |
OpenZeppelin__rust-contracts-stylus__254 | OpenZeppelin/rust-contracts-stylus | 254 | defect | 8f56fb1b4fbace02f5a81697430b7d229ce35e09 | 563bb26247472ebba857fab29b886cdfc582016a | feat: cache contracts before benching | Use the `cargo stylus cache` to cache contracts in the `CacheManager` before running benches.
| diff --git a/.github/workflows/gas-bench.yml b/.github/workflows/gas-bench.yml
index 7d572fc47..4a52c50b5 100644
--- a/.github/workflows/gas-bench.yml
+++ b/.github/workflows/gas-bench.yml
@@ -31,6 +31,9 @@ jobs:
with:
key: "gas-bench"
+ - name: install cargo-stylus
+ run: cargo instal... | 2 | 2 | 1 | [{"id": "G6", "claim": "The PR should have benchmarks for both cached and uncached runs of the contracts, ideally presented side by side in a table.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G8", "claim": "Avoid accessing the tokio::join! results by tuple index in... | null |
OpenZeppelin__rust-contracts-stylus__273 | OpenZeppelin/rust-contracts-stylus | 273 | defect | 1f92ab73a71844f5241d7d159903be3dcbfd7734 | f6483dbb02405e0e840cfdb39c4b90c72284c44e | build: bump Stylus SDK to v0.6.0 and cargo-stylus to v0.5.1 | Bump:
- Stylus SDK to `v0.6.0`
- cargo-stylus to `v0.5.1`
| diff --git a/.github/workflows/check-wasm.yml b/.github/workflows/check-wasm.yml
index ca16f3135..f452c4fa2 100644
--- a/.github/workflows/check-wasm.yml
+++ b/.github/workflows/check-wasm.yml
@@ -30,7 +30,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: install cargo-stylus
- run: cargo install... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `tiny-keccak` feature enabled on `alloy-primitives` in each individual crate manifest looks unnecessary — it would be cleaner to enable it at the workspace level instead, or to drop it entirely if it is not needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "s... | null |
OpenZeppelin__rust-contracts-stylus__281 | OpenZeppelin/rust-contracts-stylus | 281 | defect | ce60bebbf5323b927f4e0ac3ed2408605629fca3 | 94ed516f4e1ae0e1f870a575520f760c4d9552b2 | feat: erc165 support interface | Adds erc165 standard altogether with a proc macro, that lets to compute interface id in a simple way.
<!-- Fill in with issue number -->
Resolves #33
#### PR Checklist
- [x] Tests
- [x] Documentation
| diff --git a/Cargo.lock b/Cargo.lock
index ebb25bb59..181b426cd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2591,11 +2591,22 @@ dependencies = [
"keccak-const",
"mini-alloc",
"motsu",
+ "openzeppelin-stylus-proc",
"rand",
"stylus-proc",
"stylus-sdk",
]
+[[package]]
+name = "openzeppelin-stylus-proc"
+ve... | 10 | 7 | 1 | [{"id": "G0", "claim": "The example contract's supports_interface only checks the ERC-20 interface id and should also check for the IErc165 interface id.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The macro attribute name `interface` is not self... | null |
OpenZeppelin__rust-contracts-stylus__333 | OpenZeppelin/rust-contracts-stylus | 333 | defect | c056473b85fe506f763063a08d48692c5ce2d130 | 6af69854551155082a746d41ad2b16261d37a011 | fix(L-02): Inconsistent Implementations in ERC-721 Extension #331 | Resolves #312 | diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml
index 59f096c26..1ecd432d6 100644
--- a/.github/workflows/check-links.yml
+++ b/.github/workflows/check-links.yml
@@ -15,16 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
-
+
- nam... | 2 | 2 | 1 | [{"id": "G0", "claim": "The #[interface_id] computed for IErc721Metadata will differ from the Solidity ERC-721 metadata interface id because token_uri is missing, so instead of exposing #[interface_id] for the metadata extension the ERC-721 metadata interface id should be handled explicitly and the docs should tell use... | null |
OpenZeppelin__rust-contracts-stylus__352 | OpenZeppelin/rust-contracts-stylus | 352 | defect | f223c6744f00418df2596235f61bc234399abd49 | a5419f31087f758a443308286d3891b27af3a907 | feat: Ownable2Step | Resolves #290
- Introduce a new Ownable2Step contract
- Make `onlyOwner()` internal in Ownable and implement `MethodError` to be able to use the error in our new contract(we've already seen we will need this for others)
- Propose we use nextest instead of vainilla `cargo test` in the CI. It is faster(not as relev... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 65c612399..5524e0e7f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -11,7 +11,7 @@ permissions:
contents: read
on:
push:
- branches: [ main, release/* ]
+ branches: [main, release/*]
paths-ignore:
... | 12 | 10 | 1 | [{"id": "G0", "claim": "The accept/renounce-ownership rustdocs are copied from Ownable, and the author asks whether there is a way to reference that documentation instead of copying it, as done in Solidity.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
OpenZeppelin__rust-contracts-stylus__402 | OpenZeppelin/rust-contracts-stylus | 402 | defect | 28f317826bc87c7e9549dc05ce017125eca3ee9e | af39e24fe940de29d77b3e35e11f53b9429ab27d | feat: Add VestingWallet | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 65f2e55ff..d57edde15 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,20 @@ 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.1.0/),
and this project adheres to [Semantic ... | 19 | 14 | 0 | [{"id": "G0", "claim": "The pull request is still missing a couple of edge-case e2e tests, as the author himself notes when declaring it ready for review.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The module doc comment in contracts/src/finance/mod... | null |
OpenZeppelin__rust-contracts-stylus__417 | OpenZeppelin/rust-contracts-stylus | 417 | defect | 297db9936af16ae41ca7f967782a3804bcaa628d | 407541b6cfc07ba2141eca1e78797bbe7a408a9a | feat: `ERC1155Burnable` extension | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 65f2e55ff..e1b325b9e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,20 @@ 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.1.0/),
and this project adheres to [Semantic ... | 19 | 17 | 1 | [{"id": "G0", "claim": "The ERC-1155 benchmarks are still not included in the generated benchmark reports (tracked in issue #413).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new CHANGELOG entries are missing the pull request reference and shou... | null |
OpenZeppelin__rust-contracts-stylus__432 | OpenZeppelin/rust-contracts-stylus | 432 | defect | 504b08372a88eeef2a7d4d2388b0b28f718b5f6d | f0497f495b90e158494348d7df7d28a704c6c6c6 | feat: add ERC1155 Pausable Extension | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 37157c83f..9bbfb8011 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
+- `Erc1155Pausable`extension. #432
- `VestingWallet` contract. #402
- `Erc1155Burnable` exte... | 9 | 6 | 1 | [{"id": "G0", "claim": "The adoc should settle on one format for contract names, ideally linking to the ERC-1155 docs (xref:erc1155.adoc[ERC-1155]) instead of plain ERC1155/ERC-1155.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "This doc's exampl... | null |
OpenZeppelin__rust-contracts-stylus__433 | OpenZeppelin/rust-contracts-stylus | 433 | defect | 504b08372a88eeef2a7d4d2388b0b28f718b5f6d | 06945d6230c2fc735bcffcc22e059633c5fc07d4 | build: bump Stylus SDK to v0.7.0 and alloy to v0.8.14 | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/Cargo.lock b/Cargo.lock
index 5043d0fc0..746da475d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -59,6 +59,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
dependencies = [
"cfg-if",
+ "getrandom",
"once_... | 5 | 5 | 1 | [{"id": "G0", "claim": "Remove the stylus-sdk git patch section from Cargo.toml once the stylus-sdk release ships the fix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The latest E2E test run shows errors caused by qalisander's changes on the ... | null |
OpenZeppelin__rust-contracts-stylus__437 | OpenZeppelin/rust-contracts-stylus | 437 | defect | 504b08372a88eeef2a7d4d2388b0b28f718b5f6d | 9d9d9e3ac9380aa1ced3304f6f0cdbd257600507 | ref: Address All Stable and Nightly Clippy Warnings | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 37157c83f..532e8d7f3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Implement `MethodError` for `safe_erc20::Error`. #402
- Use `function_selector!` to calculate transfer... | 9 | 6 | 1 | [{"id": "G0", "claim": "The clippy::needless_pass_by_value warning on `Deployer::with_constructor` is only suppressed with an #[allow] attribute instead of being fixed, because fixing it would require updating all tests that use the function, and the author offers to remove the annotation and update the tests if mainta... | null |
OpenZeppelin__rust-contracts-stylus__489 | OpenZeppelin/rust-contracts-stylus | 489 | defect | 4b7e1d343546f039c95986e4960577afbb05e5a8 | ab3b6a98ce3384f169b4733323c584dfeddda4f4 | test: add missing E2E tests for Erc721 | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/examples/erc721/src/lib.rs b/examples/erc721/src/lib.rs
index d4e675f2a..e681fdc85 100644
--- a/examples/erc721/src/lib.rs
+++ b/examples/erc721/src/lib.rs
@@ -65,6 +65,28 @@ impl Erc721Example {
Ok(())
}
+ #[selector(name = "safeMint")]
+ pub fn safe_mint(
+ &mut self,
+ ... | 12 | 12 | 0 | [{"id": "G0", "claim": "The explicit `#[selector(name = \"safeMint\")]` attribute on safe_mint is redundant and should be removed, since the function name already produces that selector in the ABI.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
OpenZeppelin__rust-contracts-stylus__498 | OpenZeppelin/rust-contracts-stylus | 498 | defect | e005e5b7b6309c260e84a40a5267af7c47977e0a | fb6a8949683f12b67347bb6b8ed05c55c4739f6a | feat: Erc20Wrapper extension | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2e0340f4d..354f90517 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,12 +5,14 @@ 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.1.0/),
and this project adheres to [Semantic... | 16 | 14 | 4 | [{"id": "G0", "claim": "Please solve the clippy warnings in contracts/src/token/erc20/extensions/wrapper.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error types in wrapper.rs are missing Rust doc comments.", "category": "documentation... | null |
OpenZeppelin__rust-contracts-stylus__529 | OpenZeppelin/rust-contracts-stylus | 529 | defect | 6e4a147ba8167be12ae0f7157c53711f91946fae | 6638e7bb374e24709208e49e258776f73085dfab | ref: use dedicated receive fn in VestingWallet | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/contracts/src/finance/vesting_wallet.rs b/contracts/src/finance/vesting_wallet.rs
index dcbea4fa5..2bef25338 100644
--- a/contracts/src/finance/vesting_wallet.rs
+++ b/contracts/src/finance/vesting_wallet.rs
@@ -181,13 +181,6 @@ pub trait IVestingWallet {
/// * [`ownable::OwnershipTransferred`].
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The vesting-wallet e2e test must fund the contract by sending Ether from the account with a plain alloy transaction, not by calling any contract function such as receiveEther.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Removi... | null |
OpenZeppelin__rust-contracts-stylus__570 | OpenZeppelin/rust-contracts-stylus | 570 | defect | 67a03352cbfd90d1058d7b57e077cd9d4bfa5862 | 65a12cc0dda7bcfa47509c9864eeb9e9f0e4fd66 | feat: Implement Missing `IErc165` Overrides | Closes #572
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index dc937f000..a1f08c313 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,21 +9,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
--
+- Implement `Deref<Target = Erc1155>` for `Erc1155Supply` and `Deref<Target = Erc721>` fo... | 3 | 3 | 0 | [{"id": "G0", "claim": "Reword the CHANGELOG.md 'Fixed' entry so it states that the `IErc165` implementations for `Erc721Metadata` and `Erc721Enumerable` now support the ERC-165 interface ID instead of saying they were 'fixed'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
OpenZeppelin__rust-contracts-stylus__574 | OpenZeppelin/rust-contracts-stylus | 574 | defect | 78aba4fb701a8c1e78e4199b994b4002d9b2a360 | 0e9f4c5a24dede280fecca7ad2a5287c10a83d00 | ref: new design of Erc20Permit extension | Resolves #573
#### PR Checklist
<!--
Before merging the pull request all of the following must be completed.
Feel free to submit a PR or Draft PR even if some items are pending.
Some of the items may not apply.
-->
- [x] Tests
- [x] Documentation
- [x] Changelog
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index dc937f000..a5d246e5e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,10 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Implement `Deref<Target = Erc1155>` for `Erc1155Supply` and `Deref<Target = Erc721>` for... | 5 | 4 | 1 | [{"id": "G0", "claim": "The Changed entry should still mention that `Deref` was implemented for `Ownable2Step`, even though the Erc20Permit half is being dropped.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "A blank line should separate the cl... | null |
OpenZeppelin__rust-contracts-stylus__622 | OpenZeppelin/rust-contracts-stylus | 622 | defect | 2c2574f39e183795dbc04a308e9ef1fcfc475828 | a60bde63b2e14a280362f1a63e88561dc34d2557 | feat: add AccessControlEnumerable extension | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e3c8be72..b90f46459 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
+- `AccessControlEnumerable` extension to support role member enumeration. #361
+- Add `get_rol... | 5 | 5 | 2 | [{"id": "G0", "claim": "The Rust docs of the new module should be improved to match the repository's current documentation style.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An example for AccessControlEnumerable with E2E tests covering only ha... | null |
OpenZeppelin__rust-contracts-stylus__644 | OpenZeppelin/rust-contracts-stylus | 644 | defect | 16cc1ffdf36ec3e635438e15129900d659f81dc9 | 95c3878478b9a9659d7fdb78a510ec6d9eb20f3d | feat: add fast Pedersen hash (Starknet version) | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 24accb041..b4ac5761a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
+- Add Pedersen hash with Starknet parameters. #644
+- Add shift left, right operators to Uint.... | 11 | 9 | 1 | [{"id": "G0", "claim": "The constant points should be renamed to match the Starkware docs, where P_0 is the shift point: SHIFT_POINT -> P_0, P_0 -> P_1, P_1 -> P_2 and so on.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hash argument could... | null |
OpenZeppelin__rust-contracts-stylus__665 | OpenZeppelin/rust-contracts-stylus | 665 | defect | b83948d3b04c4f5e4f1078667cfb71dd8ad72934 | 536425e0861f24f34b6ad567d76876aac95f5ee9 | test: create `constructor!` macro to aid type-safety for constructors | There may be an even better way by somehow getting exact types from `ContractExample::constructor`, would be awesome if we managed to implement that, but not high priority imo, as this is just for testing. | diff --git a/contracts/src/token/erc721/extensions/consecutive.rs b/contracts/src/token/erc721/extensions/consecutive.rs
index 76ab4eefe..037eacb62 100644
--- a/contracts/src/token/erc721/extensions/consecutive.rs
+++ b/contracts/src/token/erc721/extensions/consecutive.rs
@@ -315,19 +315,7 @@ impl IErc721 for Erc721Con... | 3 | 1 | 1 | [{"id": "G0", "claim": "Drop the redundant `.to_string()` calls in `constructor!(TOKEN_NAME.to_string(), TOKEN_SYMBOL.to_string(), cap)` and pass the `&str` constants directly, here and in the other places that do the same.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"},... | null |
OpenZeppelin__rust-contracts-stylus__755 | OpenZeppelin/rust-contracts-stylus | 755 | defect | 3bf12251a4cb29a3fe5bc774fcd92151b5cfa8f9 | 632eb049048ded0aa6717eb89861af2434c05b3a | feat: secp256r1 precompile wrapper | <!--
Thank you for your interest in contributing to OpenZeppelin!
Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team.
Describe the changes introduced in this pull request. Include any context necessary for ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cbbce7dfb..d00338309 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `Erc1155Holder` contract. #747
- Add `IErc721Receiver` trait. #743
- Add `Erc721Holder` contract. #... | 5 | 3 | 0 | [{"id": "G0", "claim": "Reviewer asks the author to also solve issue #756 in this pull request, saying it should not take too much time.", "category": "scope", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The example's ECDSA recover entrypoint and its ABI function should be... | null |
OpenZeppelin__rust-contracts-stylus__757 | OpenZeppelin/rust-contracts-stylus | 757 | defect | a3ab7a954ff039f95699badec8cab67507d152d8 | 9dfd3ac9fd4197dea642546de4084cd3459a13a2 | feat: Ed25519 signature (EDDSA) |
Resolves #260
#### PR Checklist
- [x] Tests
- [x] Documentation
- [x] Changelog
| diff --git a/Cargo.lock b/Cargo.lock
index e50ff4b6a..ee42aa72f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2941,6 +2941,7 @@ dependencies = [
"num-traits",
"proptest",
"rand 0.9.1",
+ "sha2",
"tiny-keccak",
"zeroize",
]
@@ -3252,17 +3253,17 @@ dependencies = [
[[package]]
name = "proptest"
-version = "... | 13 | 13 | 1 | [{"id": "G1", "claim": "The new sha2 crypto dependency in Cargo.toml is undesirable; the hashing should instead be abstracted behind, for example, the EVM SHA-256 precompile.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The pull request is missing a CH... | null |
OpenZeppelin__rust-contracts-stylus__82 | OpenZeppelin/rust-contracts-stylus | 82 | defect | d4b0554620da0669812bbaef64c36245c7dfa6fd | 779789b6a048fe9a13453c630bccf6eedda95831 | feat(ci): Scale integration tests | Resolves #72
- It is a bit more user focused approach (every test user should be funded at nitro test node. Instantiation of the user in rust code abstracts this process)
- Now user can deploy any contract using his private key (abstracts `cargo stylus deploy`).
- And call methods of any other contract.
- Since use... | diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml
index 8735a15d7..8f0f2a273 100644
--- a/.github/workflows/e2e-tests.yml
+++ b/.github/workflows/e2e-tests.yml
@@ -53,20 +53,7 @@ jobs:
run: RUSTFLAGS="-C link-args=-rdynamic" cargo install cargo-stylus@0.2.1
- name: setup n... | 7 | 4 | 0 | [{"id": "G0", "claim": "It would be nice to have another way to pass the path to the target folder, e.g. via program arguments using the argparse crate.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "lib/e2e-grip/src/lib.rs would read better with the mod... | null |
OpenZeppelin__rust-contracts-stylus__91 | OpenZeppelin/rust-contracts-stylus | 91 | defect | 71e7782ecd4f467b84dcd1cb20cf44cb3ddc6208 | fd969d9aabf5cd7d6be0e8b798e70b2743f1da37 | ref: simplify e2e infra & decouple it from workspaces | This is follow-up work to #80 which fixes concerns surrounding:
- Having too much infra code in the test files themselves.
- Decoupling the e2e tests from workspaces. Now, they can be run in standalone crates as well.
It also includes some work documenting infra functions, reducing the public API of the `e2e` cr... | diff --git a/Cargo.lock b/Cargo.lock
index ae86d9519..b08387806 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1651,6 +1651,7 @@ dependencies = [
"once_cell",
"regex",
"tokio",
+ "toml",
]
[[package]]
@@ -2871,7 +2872,7 @@ version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
chec... | 2 | 2 | 0 | [{"id": "G0", "claim": "The module named `package` and its type `::package::Crate` are not meaningful names and should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message 'Unable to find package name in toml' should star... | null |
OpenZeppelin__solidity-docgen__44 | OpenZeppelin/solidity-docgen | 44 | defect | 4f9aa2d6ce5a75349fdf72b97f7d3e1ea21cf109 | 90c0f8384793415e4389ed26a74b4ebf58470e02 | Support the documentation of global variables | Following [this feature-request](https://github.com/OpenZeppelin/solidity-docgen/issues/43), extend the `solidity-docgen` package to support the documentation of global variables, which are implicitly added by the compiler as getter functions in the contract.
This should allow users to get the natspec-documentation ... | diff --git a/src/solidity.ts b/src/solidity.ts
index 402050a5..353fa344 100644
--- a/src/solidity.ts
+++ b/src/solidity.ts
@@ -99,6 +99,20 @@ export class SolidityContract implements Linkable {
);
}
+ get variables(): SolidityVariable[] {
+ return uniqBy(
+ flatten(this.inheritance.map(c => c.ownVari... | 6 | 5 | 3 | [{"id": "G0", "claim": "SolidityVariable.natspec should throw an error stating that NatSpec does not apply to public state variables (ethereum/solidity#3418).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add this.variables to the array returned by Soli... | null |
Opencode-DCP__opencode-dynamic-context-pruning__471 | Opencode-DCP/opencode-dynamic-context-pruning | 471 | defect | 2c2805106067c8e7ff8b1e2ce7497478f0ee7c9e | dd7937574f7c38611f64b501528835863a2dfc43 | feat: add compression time to `/dcp stats` | add compression time to `/dcp stats` and compression blocks for future analytics | diff --git a/index.ts b/index.ts
index 8bcd8e34..0e58d1db 100644
--- a/index.ts
+++ b/index.ts
@@ -13,6 +13,7 @@ import {
createChatMessageHandler,
createChatMessageTransformHandler,
createCommandExecuteHandler,
+ createEventHandler,
createSystemPromptHandler,
createTextCompleteHandler,
} f... | 2 | 2 | 1 | [{"id": "G0", "claim": "`message.part.updated` events do not expose `properties.sessionID` or `properties.time`, so the destructuring yields undefined, `sessionID !== state.sessionId` is always true, `compressionTimeMs` never increments and `/dcp stats` keeps reporting 0 ms; session/timing should be read from `part` (e... | null |
OptimalBits__bull__1017 | OptimalBits/bull | 1,017 | defect | 742a86e0af0e7d829e7d9cea55b74e7f7e850938 | 5d10e5e716f81f0a5411f5eca3116ded2f5be4e9 | Add documention to Job#moveToCompleted/Failed | - Also add multiple repo to PATTERN.md
Issues which reference this pattern:
https://github.com/OptimalBits/bull/issues/790
https://github.com/OptimalBits/bull/issues/208 | diff --git a/PATTERNS.md b/PATTERNS.md
index 51fa7236a..b51083f95 100644
--- a/PATTERNS.md
+++ b/PATTERNS.md
@@ -10,6 +10,7 @@ Here are a few examples of useful patterns that are often implemented with Bull:
- [Redis Cluster](#redis-cluster)
- [Debugging](#debugging)
- [Custom backoff strategy](#custom-backoff-strat... | 6 | 5 | 4 | [{"id": "G0", "claim": "The new documentation misstates what Job#moveToCompleted and Job#moveToFailed return: they return a tuple of the next job's data and its id (or null when the waiting list is empty), not the next job's id alone / void, so the declared return types and descriptions should be corrected.", "category... | null |
OptimalBits__bull__1061 | OptimalBits/bull | 1,061 | defect | 04ce8fcec8f8a0d5317e3989b6222abd58eb3d32 | 9bea0344dcbfc4ad017ae55226f6641927b657fe | Add ability for cron repeatable job with startDate | In this following example, the repeatable job will start run at 02.02.2020, 12:00, for every 2 minutes.
```
queue
.add(
'repeat',
{ foo: 'bar' },
{
repeat: {
cron: '*/2 * * * * *', // every 2 seconds
startDate: new Date('2020-02-02 12:00:00')
... | diff --git a/REFERENCE.md b/REFERENCE.md
index a3e4dddad..3a539d125 100644
--- a/REFERENCE.md
+++ b/REFERENCE.md
@@ -272,6 +272,7 @@ interface JobOpts{
interface RepeatOpts{
cron?: string; // Cron string
tz?: string, // Timezone
+ startDate?: Date | string | number; // Start data when the repeat job should star... | 1 | 1 | 0 | [{"id": "G0", "claim": "The typo \"data\" should be corrected to \"date\" in the startDate comment in the RepeatOpts interface of REFERENCE.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OptimalBits__bull__1096 | OptimalBits/bull | 1,096 | defect | 9c439d150dd806080381be67029b85228a0f64b5 | b96597cb513bfb7935d13077a3fa765d4d5f99e7 | 1070 Add discard config for rate-limiter | - Meant for Manually Fetching Jobs pattern
- closes #1070 | diff --git a/.gitignore b/.gitignore
index 5cf175d17..dbbc90984 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ node_modules
tmp
coverage
*.rdb
+.vscode
\ No newline at end of file
diff --git a/PATTERNS.md b/PATTERNS.md
index ae9f6c01a..adefa6b15 100644
--- a/PATTERNS.md
+++ b/PATTERNS.md
@@ -1,6 +1,4 @@
-
... | 6 | 5 | 1 | [{"id": "G0", "claim": "The 'should put a job into the delayed queue when limit is hit' test should create its own queue (as the test below does), since it assumes the queue max is set to 1.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The discard tes... | null |
OptimalBits__bull__1100 | OptimalBits/bull | 1,100 | defect | 05f704ab87cb2013e1f6393db7dcdfe7acf82a61 | e304fe55e8884a76516a5d9521025bf42794befe | Allow cancelling of retries when using custom backoff strategy | This request allows you to return -1 from a custom backoff strategy to fail the job immediately instead of retrying. Which allows us to fail immediately on certain kinds of errors. | diff --git a/PATTERNS.md b/PATTERNS.md
index ae9f6c01a..7b8e47c0b 100644
--- a/PATTERNS.md
+++ b/PATTERNS.md
@@ -131,6 +131,7 @@ Custom backoff strategy
-----------------------
When the builtin backoff strategies on retries are not sufficient, a custom strategy can be defined. Custom backoff strategies are defined ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `delay === -1` handling should be folded into the existing condition (e.g. adding `delay !== -1`) instead of an extra if statement, and the `moveToFailed` variable should be removed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
OptimalBits__bull__1106 | OptimalBits/bull | 1,106 | defect | 6e795923fb6dd2b9fcfe4c55c49d655f5527f1ad | b3b272097491e6711c8ce388a630393e777b5601 | Reset 'failedReason', 'finishedOn' and 'processedOn' fields on job retry | The class members will be reset to null, failedReason field will be removed from Redis and the other two will be set to null. | diff --git a/lib/job.js b/lib/job.js
index 56b12b232..5ed8d96c1 100644
--- a/lib/job.js
+++ b/lib/job.js
@@ -307,18 +307,31 @@ Job.prototype.promote = function() {
Job.prototype.retry = function() {
var _this = this;
return this.queue.isReady().then(function() {
- return scripts
- .reprocessJob(_this, { ... | 4 | 2 | 2 | [{"id": "G0", "claim": "Improve a retry test case so it verifies the new reset-on-retry functionality.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should also fetch the job with Queue.getJob() and check that failedReason, processedOn and fin... | null |
OptimalBits__bull__1347 | OptimalBits/bull | 1,347 | defect | c0ee6be03c6d47d60465d2bae0d2566d5bf0d661 | 3e082c0c7ed81eb4429237365ad10e1aff8286d1 | fix: whenCurrentJobsFinished shouldn't initialize bclient | Fixes #1346 | diff --git a/lib/queue.js b/lib/queue.js
index db61360aa..b642a8a38 100755
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -279,6 +279,12 @@ function redisClientGetter(queue, options, initCallback) {
return connections[type];
}
const client = (connections[type] = createClient(type, options.redis));
+
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Store the lazily-initialized client flags in a separate data structure on the queue instead of dynamic `queue[type + 'Initialized']` properties.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test_connection.js has an existing rac... | null |
OptimalBits__bull__1542 | OptimalBits/bull | 1,542 | defect | d99f7f62d58cfc16386a29a798460b7226714774 | edde75ca73db9b284a5dd915a9380625b898dec1 | chore: cleanup whenCurrentJobsFinished | Cleanup and document whenCurrentJobsFinished. And since it's now official API, add some tests for it. | diff --git a/REFERENCE.md b/REFERENCE.md
index 4c418d3d2..e47af6f54 100644
--- a/REFERENCE.md
+++ b/REFERENCE.md
@@ -6,6 +6,7 @@
- [Queue#add](#queueadd)
- [Queue#pause](#queuepause)
- [Queue#resume](#queueresume)
+ - [Queue#whenCurrentJobsFinished](#queuewhencurrentjobsfinished)
- [Queue#count](#queuecoun... | 1 | 1 | 1 | [{"id": "G0", "claim": "On shutdown the queue no longer properly waits for all jobs to complete, because this change made whenCurrentJobsFinished wait only for the first processing job (Promise.all([this.processing[0]])) instead of all of them.", "category": "correctness", "verdict": "supported", "priority": "P0", "sco... | null |
OptimalBits__bull__2040 | OptimalBits/bull | 2,040 | defect | 629bad65ca77ad5eec129bad8653c5dd0d62077d | 514212a4d4cfb70ceecdc0e62cbb32f88b1f34ba | Stalled job failed | The issue is that today when a job stalls more than the allowed number of times, it gets moved to failed, but the event doesn't get published. We noticed that because we were running a job that would start other child jobs and use the `.finished()` function in order to know when the work is done. However, if a job stal... | diff --git a/lib/commands/moveStalledJobsToWait-7.lua b/lib/commands/moveStalledJobsToWait-7.lua
index 55c55915f..5200ffc3f 100644
--- a/lib/commands/moveStalledJobsToWait-7.lua
+++ b/lib/commands/moveStalledJobsToWait-7.lua
@@ -62,6 +62,7 @@ if(#stalling > 0) then
if(stalledCount > MAX_STALLED_JOB_COUNT) then... | 1 | 1 | 1 | [{"id": "G0", "claim": "Publish a JSON object with jobId and failure value instead of the bare jobId, which would also remove the special-case handling added in queue.js.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OptimalBits__bull__2152 | OptimalBits/bull | 2,152 | defect | 9e62ddcbd4deb46a2507db5cd4f28ef845928fe4 | 7864384fa428000f78d1a64d4a9ef820850d4010 | fix(connection): fail only if redis connection does not recover | On client initialization, Bull waits for the Redis client connection to be 'ready' before trying to send commands to it.
In order to do so, it keeps a promise that only resolves after the Redis client emits a 'ready' event.
It also listens for 'error' events, if an error comes, initialization fails.
However, havin... | diff --git a/lib/utils.js b/lib/utils.js
index 741968412..022f3ff53 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -19,17 +19,25 @@ function isRedisReady(client) {
resolve();
} else {
function handleReady() {
+ client.removeListener('end', handleEnd);
client.removeListener('error', h... | 1 | 1 | 1 | [{"id": "G0", "claim": "If the connection ends without an error (e.g. the queue is closed manually), the new handleEnd would still reject the connection promise; the reviewer suggests it should only reject when lastError is not undefined and otherwise resolve.", "category": "design", "verdict": "supported", "priority":... | null |
OptimalBits__bull__2184 | OptimalBits/bull | 2,184 | defect | 2618a2ed1d1bc528254f299dd10f4b6216a2f41d | 2a10e1c8bb457a41fed02237896a8e3479a5427e | feat: emit event on job lock extend failure | Existing: When a job fails to extend its lock in redis, there is no way to debug or do find it out.
Change: When a job fails to extend its lock in redis, a new event `lockExtendingFailed` will be emitted.
Reason: In our use-case, each job processes data from a socket continuously and sends signals based on it whe... | diff --git a/REFERENCE.md b/REFERENCE.md
index 6858ae722..6bc7055f2 100644
--- a/REFERENCE.md
+++ b/REFERENCE.md
@@ -955,6 +955,12 @@ A queue emits also some useful events:
// workers that crash or pause the event loop.
})
+.on('lockExtendingFailed', function (job) {
+ // A job failed to extend lock. This will b... | 3 | 3 | 1 | [{"id": "G0", "claim": "Rename the new event from 'lockExtendingFailed' to 'lock-extension-failed'.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'err' argument passed to the 'lock-extension-failed' handler is missing from the REFERENCE.md documenta... | null |
OptimalBits__bull__2237 | OptimalBits/bull | 2,237 | defect | efbf7dc1c52876c527520fd29fd06ad679d692d2 | 2e5c3e51b3804bb6ee095bc9390d4f48e5ca94bb | fix(queue): enabled queues to share childPool instance | My team use bull queues to create dynamic queues and noticed that we for every instance of a queue a childPool instance is create. This change allows multiple bull queues to share the same bull queue instance. | diff --git a/REFERENCE.md b/REFERENCE.md
index 7f82dddc1..ed215eee0 100644
--- a/REFERENCE.md
+++ b/REFERENCE.md
@@ -107,6 +107,7 @@ interface AdvancedSettings {
retryProcessDelay: number = 5000; // delay before processing next job in case of internal error.
backoffStrategies: {}; // A set of custom backoff strat... | 3 | 3 | 1 | [{"id": "G0", "claim": "The code added by the pull request should follow the project's prettier standard with trailing commas (in lib/scripts.js and lib/queue.js).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test titles in test/test_queue... | null |
OptimalBits__bull__2326 | OptimalBits/bull | 2,326 | defect | f1630220c242ddcee5d2bf93e58d49286b58a5bf | 85d803b7336c39f8e7e432d6e229790cc628cefc | perf: speed up clean operation | Hi there,
Thanks for this very useful queue library. We've been using it successfully for a while and it's been very robust. However, we recently managed to freeze our Redis server when we tried to clean around 1 million jobs from a wait queue using the `clean` operation. This PR is a suggestion for improving the sp... | diff --git a/lib/commands/cleanJobsInSet-3.lua b/lib/commands/cleanJobsInSet-3.lua
index 98a98d906..b0a110191 100644
--- a/lib/commands/cleanJobsInSet-3.lua
+++ b/lib/commands/cleanJobsInSet-3.lua
@@ -48,12 +48,14 @@ local jobIds = rcall(command, setKey, rangeStart, rangeEnd)
local deleted = {}
local deletedCount = 0... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using a real jobId as the list deletion marker could pick a jobId that will not be deleted and wastes time and memory on the per-item nil-check and on storing/deleting a potentially large id, so a short special value should be used instead (nil as proposed in M001, or 0 with an error on a custom... | null |
OptimalBits__bull__266 | OptimalBits/bull | 266 | defect | 6dd87239ba16f06787c510e6ac4b6d79fecb4b37 | a6bb1783d51f0e16718fec2afca088588ece48fc | Queue#pause waits until active jobs are finished | This PR makes `Queue#pause` wait until all jobs in `active` state are completed before resolving.
Previously, when pausing a queue, it would immediately resolve the pause promise, making it difficult to perform a clean disconnection.
`Queue#pause` will consume the private method `Queue#whenCurrentJobsFinished`, which ... | diff --git a/lib/queue.js b/lib/queue.js
index e80b26311..d90d64c41 100644
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -341,8 +341,15 @@ Queue.prototype.empty = function(){
*/
Queue.prototype.pause = function(isLocal /* Optional */){
if(isLocal){
+ var pauseResolve, pauseReject;
+ var pausePromise = new Promise... | 4 | 4 | 0 | [{"id": "G0", "claim": "Queue#pause needlessly builds an extra wrapper promise (pauseResolve/pauseReject/pausePromise) instead of just returning this.whenCurrentJobsFinished().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "whenCurrentJobsFinished would ... | null |
OptimalBits__bull__310 | OptimalBits/bull | 310 | defect | 70dad248b1bc7b6ec33c21f569d2e80433f50944 | 3d73de2c3dd4ad29073d83006cfdec13290767dc | Improve Queue#clean performance | This PR moves `Queue#clean` to a script for performance purposes.
The test case to measure performance was to create 20,000 jobs, then issue a regular `Queue#clean` call, I measured how long it took in my machine to add the jobs and then the cleaning, these are just one sample of the tests I ran
Current implementatio... | diff --git a/lib/queue.js b/lib/queue.js
index acdc61cde..92b1c8d84 100644
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -792,8 +792,6 @@ Queue.prototype.clean = function (grace, type) {
var _this = this;
return new Promise(function (resolve, reject) {
- var getter;
-
if(grace === undefined || grace === null... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new cleanup script may need to take the job's lock at this point, and the author is uncertain whether it does.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Deleting many jobs in one atomic Lua script can block Redis for the wh... | null |
OptimalBits__bull__318 | OptimalBits/bull | 318 | defect | dace73ab2921fce0ba30da2b4c46bf9a2f31310a | 20811413d31cb484a9acb1f360677b9a5d6fadd4 | Improvements for Job#retry | This PR makes some improvements on the current `Job#retry` implementation:
- The retry operation is now implemented through a script, to follow suit with the other operations
- The retry operation does several checks while attempting to retry a job:
- It checks if the job exists, so that a non-existent job can be acc... | diff --git a/test/test_queue.js b/test/test_queue.js
index b5e97c358..48cbc60d2 100644
--- a/test/test_queue.js
+++ b/test/test_queue.js
@@ -1297,6 +1297,124 @@ describe('Queue', function () {
});
});
+ it('should not retry a job that has been removed', function(done) {
+ queue = utils.buildQueue(... | 2 | 2 | 1 | [{"id": "G0", "claim": "In the 'should not retry a job that has been removed' test the process callback should simply throw an error (or return nothing) instead of using the jobDone callback, for simplicity.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
OptimalBits__bull__319 | OptimalBits/bull | 319 | defect | dace73ab2921fce0ba30da2b4c46bf9a2f31310a | ce44e21c59c15ecabfb86c9f9c37dddb771f4f86 | Pass a connection string instead of separate parameters | Fixes #306
It's very convenient to pass the environment variable for the Redis connection than parsing the URL everytime you want to create a connection. Saves some effort in parsing and passing authentication separately.
I haven't written any test for authentication since I'm unsure how to spawn a Redis server with... | diff --git a/lib/queue.js b/lib/queue.js
index bdaa84b2e..57d009a6a 100644
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -4,6 +4,8 @@
var redis = require('redis');
var events = require('events');
var util = require('util');
+var assert = require('assert');
+var url = require('url');
var Job = require('./job');
var scri... | 5 | 4 | 3 | [{"id": "G0", "claim": "The assert module should not be used in production code since it is a library aimed at unit testing, so the assert usage in lib/queue.js should be removed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The connection-string branch ... | null |
OptimalBits__bull__420 | OptimalBits/bull | 420 | defect | 7484e9ff068d2291151c81ac12138a19ea9419ad | 72709ccff4d363c43fd11fbad09259c188b7c1fb | correct getJobCountByTypes | closes #419 #401 my first PR ... | diff --git a/lib/queue.js b/lib/queue.js
index 366e7334d..60ab52842 100644
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -791,10 +791,9 @@ Queue.prototype.getJobCountByTypes = function() {
});
return multi.exec().then(function(res){
- return _.reduce(res[0], function(total, n) {
- return total + n;
- }) |... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PR should add a test case for its corrected getJobCountByTypes behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The existing getJobCountByTypes tests were a self-fulfilling prophecy because the first queue name staye... | null |
OptimalBits__bull__504 | OptimalBits/bull | 504 | defect | 2de64be09f9487f6a8b830cfce8c72fc6cdca8e9 | 2a215fd57e21708314ec9929f91c32301ae790a3 | Sanitized options | This PR aims to cleanup the constructor of the Queue and make the options more sane. Also support for configuring a lot of settings that were constants before. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a0df1094..5f57a1462 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+v.3.0.0-alpha.2
+===============
+
+- Eliminated possible memory leak #503
+
v.3.0.0-alpha.1
===============
diff --git a/README.md b/README.md
index 3f222cff2..989060993 100644
--- a/RE... | 5 | 3 | 0 | [{"id": "G0", "claim": "The Quick Guide example would be clearer using the Redis connection-string form (e.g. 'redis://127.0.0.1:6379'), which is what the documentation lists as the second argument.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
OptimalBits__bull__57 | OptimalBits/bull | 57 | defect | 723f2cb4b0ee76adea6b0da70bb8fa366fcee3fc | fcc79150a1bb69f1591c5bffe0eaccee3cdda780 | Tests fix - initial work | Hi @manast - I would like to add a `timeout` and a `retries` parameter to `Queue##add(data, opts)`.
I have noticed the build is failing on master - this could be due to the upgrade to Bluebird 2.x
I have taken a look at the source and noticed some places where the use promises could be simplified so I thought I would i... | diff --git a/lib/job.js b/lib/job.js
index 60efc88a7..dd2cf4385 100644
--- a/lib/job.js
+++ b/lib/job.js
@@ -101,10 +101,12 @@ Job.prototype.releaseLock = function(token){
});
}
+//could be renamed to 'complete' or 'moveToCompleted' as it is the promise to move the job to a destination set
Job.prototype.complete... | 1 | 1 | 0 | [{"id": "G0", "claim": "The project should adopt an .editorconfig (the author offers to draft one) and possibly a .jshintrc so contributors' editors stop indenting with 4 spaces instead of two.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OptimalBits__bull__589 | OptimalBits/bull | 589 | defect | da54ed6eabb0d54a6deda2a35fbb2e0d166719cd | 33c1b992ad168a03eef0a74c732f386e3b786eef | Lazily initialize redis clients, reduce side effects of `Queue` instantiation | Supersedes #586
Sorry I had to create a new PR, pushing additional commits onto my branch wasn't updating the existing PR. I think I ran into https://github.com/isaacs/github/issues/591.
---
Fixes #526
This PR ensures that the client and eclient redis connections are not instantiated until they are absolute... | diff --git a/lib/commands/index.js b/lib/commands/index.js
index 8a966df8a..67ba8bf6b 100644
--- a/lib/commands/index.js
+++ b/lib/commands/index.js
@@ -1,14 +1,14 @@
/**
* Load redis lua scripts.
* The name of the script must have the following format:
- *
+ *
* cmdName-numKeys.lua
- *
+ *
* cmdName must be... | 1 | 1 | 1 | [{"id": "G0", "claim": "opts and opts.redis must be cloned before being used, because assigning onto the caller's options object (e.g. `opts.redis = opts.redis || {}`) modifies it and could create side effects.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OptimalBits__bull__798 | OptimalBits/bull | 798 | defect | 133ab634718af784c93e6c8a9da95d9fea55bddd | 092dd3f1592b351cc6384f4a01a9da678f9a305e | Adding ability to limit by stacktrace | If a job fails multiple times the stacktrace can grow very large.
This is to limit the amount of memory used by a failed job.
This enables a job to be created with a max stacktrace. | diff --git a/lib/job.js b/lib/job.js
index ad34c134e..14f133558 100644
--- a/lib/job.js
+++ b/lib/job.js
@@ -449,6 +449,10 @@ Job.prototype._saveAttempt = function(multi, err){
attemptsMade: this.attemptsMade
};
+ if(this.opts.stackTraceLimit) {
+ this.stacktrace = this.stacktrace.slice(0, this.opts.stack... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new stackTraceLimit option needs a description in the README/reference documentation as well.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OptimalBits__bull__860 | OptimalBits/bull | 860 | defect | 10acb6cae3ed211c987b88a6f8ffc9e3cf33e331 | 81d7540ac663ff4dcab30a9807067bd7d58105cb | Add defaultJobOptions to Queue | I'd like to pass `removeOnComplete` and `removeOnFail` only once, instead of every time I run `.add()` on a queue. This patch adds a new option to queues called `defaultJobOptions` which, as the name suggests, sets the default job options.
Also adds two tests verifying that the option is passed through correctly and... | diff --git a/REFERENCE.md b/REFERENCE.md
index 737bc14cf..fa3692956 100644
--- a/REFERENCE.md
+++ b/REFERENCE.md
@@ -59,6 +59,7 @@ interface QueueOptions {
limiter?: RateLimiter;
redis?: RedisOpts;
prefix?: string = 'bull'; // prefix for all queue keys.
+ defaultJobOptions?: JobOpts;
settings?: AdvancedSet... | 4 | 3 | 1 | [{"id": "G0", "claim": "The `if (!opts) opts = {}` guard added in Queue.prototype.add is unnecessary because the queue constructor already takes care of opts.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Merging defaultJobOptions into the caller... | null |
OptimalBits__bull__944 | OptimalBits/bull | 944 | defect | 2c07fe6ceb8205392fe64e01fdd844b62cdd8c69 | 21ebf876d1b3a5ca500f98e84340651bc3d99303 | Support for milliseconds intervals | With this, the interval can be defined using a more flexible manner than **cron**, which was discussed in #942
For example, when I need a job to execute every 90 minutes, I would do like that:
```javascript
queue.add({ ... }, { repeat: { seconds: 5400 } })
```
I am not sure if it is the best API design for thi... | diff --git a/lib/repeatable.js b/lib/repeatable.js
index ffd4dcc58..b1d83d88e 100644
--- a/lib/repeatable.js
+++ b/lib/repeatable.js
@@ -27,7 +27,7 @@ module.exports = function(Queue) {
var now = Date.now();
now = prevMillis < now ? now : prevMillis;
- var nextMillis = getNextMillis(now, repeat.cron, rep... | 3 | 3 | 1 | [{"id": "G0", "claim": "getNextMillis could simply return millis+millisInterval instead of wrapping the sum in a new Date, since the caller already converts it with getTime().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An exception should be... | null |
OptimalBits__bull__967 | OptimalBits/bull | 967 | defect | 33042025cb7bb4c68fe54938a7dc967494f23960 | e48463f4e9097e44a62fe7a16abc30aed58ad414 | Check if a repeatable was deleted before re-adding it | Fixes https://github.com/OptimalBits/bull/issues/966 | diff --git a/lib/queue.js b/lib/queue.js
index 316e82e3f..c0fc8482d 100755
--- a/lib/queue.js
+++ b/lib/queue.js
@@ -698,7 +698,7 @@ Queue.prototype.add = function(name, data, opts) {
if (opts.repeat) {
var _this = this;
return this.isReady().then(function() {
- return _this.nextRepeatableJob(name, da... | 1 | 1 | 1 | [{"id": "G0", "claim": "There is still a race hazard because the repeatable job could be deleted after the zscore check and before the new job is created; the only correct fix is a Lua script, so at minimum the code should carry a comment noting this limitation so it can be fixed in the future.", "category": "correctne... | null |
OptimalScale__LMFlow__630 | OptimalScale/LMFlow | 630 | defect | 55cef3d4b4fe5cca2b2b13be201acb9c168e6fe6 | 97f79c68ebc24f382498b6702b4bbf43b552b973 | speculative decoding | inferencer now supports speculative decoding via `SpeculativeInferencer`. Tested with gpt2 (draft model) and gpt2-large (target model), see /tests/pipeline/test_spec_inf.py. Only finished functionality testing, the performance testing is needed.
Not sure if my implementation of STEP 2 in speculative sampling (running t... | diff --git a/src/lmflow/pipeline/inferencer.py b/src/lmflow/pipeline/inferencer.py
index 4ccc0518f..871d1a583 100644
--- a/src/lmflow/pipeline/inferencer.py
+++ b/src/lmflow/pipeline/inferencer.py
@@ -12,9 +12,12 @@
import datetime
import json
import time
+from typing import Dict, List
+from concurrent.futures impor... | 8 | 7 | 4 | [{"id": "G0", "claim": "temperature=0.0 should be treated as use_argmax=True (greedy/argmax sampling) instead of being rejected by the `assert temperature > 0.0` check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the top-p renormalization the ... | null |
OptimalScale__LMFlow__931 | OptimalScale/LMFlow | 931 | defect | 0b3bbf69f722b1698d3420998e28cc6a9608eabc | f00470883beb0cb7f4d04177fb19bce68fd1cc45 | [usability] support qwen2.5 and deepseek | 1. Support jinja template (requires `transformers`>=4.43.0), see [here](https://github.com/huggingface/transformers/pull/30650)
2. Support new models through jinja template (conversation dataset with tools, tool_calls):
- [QwQ](https://huggingface.co/Qwen/QwQ-32B-Preview)
- [Qwen2.5](https://huggingface.co/collectio... | diff --git a/docs/source/examples/DATASETS.md b/docs/source/examples/DATASETS.md
index 6d41e08cc..6a3dd5959 100644
--- a/docs/source/examples/DATASETS.md
+++ b/docs/source/examples/DATASETS.md
@@ -151,7 +151,10 @@ Conversations should be formatted before feeding into the model. As of now, we'v
| ------------- | ------... | 2 | 1 | 1 | [{"id": "G0", "claim": "The template name \"deepseek\" should also be retained (alongside the new \"deepseek_v2\") for backward compatibility purposes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the hymba-specific encode_convers... | null |
Orange-OpenSource__hurl__3695 | Orange-OpenSource/hurl | 3,695 | defect | bbf6a4a80c2bc90a0bf07339c56141cba645b0cf | f936bac64d362a9398eb4d58f7cbab8fedde9201 | Add ip address to `http::Response` | ## Description
(This is a part of #3106)
This PR adds a new field `ip_addr` to `http::Response`. It introduces a struct `http::response_ip::IpAddr` to handle potential string conversion issues from libcurl.
@jcamiel Let me know if the `parse_primary_ip` function needs a unit test 👍 | diff --git a/packages/hurl/src/http/client.rs b/packages/hurl/src/http/client.rs
index e9ba8d6cf8ca..2daa59de79f5 100644
--- a/packages/hurl/src/http/client.rs
+++ b/packages/hurl/src/http/client.rs
@@ -36,6 +36,7 @@ use crate::http::header::{
HeaderVec, ACCEPT_ENCODING, AUTHORIZATION, CONTENT_TYPE, EXPECT, LOCATI... | 6 | 6 | 1 | [{"id": "G0", "claim": "Rename the `parse_primary_ip` method to `primary_ip` since no parsing is involved, it is just a call to libcurl.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the match binding `Some(ip_from_curl)` to `Some(ip)` t... | null |
OrcaSlicer__OrcaSlicer__11553 | OrcaSlicer/OrcaSlicer | 11,553 | defect | e32dbd3802169116700d130747e50236d29b42bf | 74e3596be31d3d480b115ae21584b9902b6cc504 | Fix various typos in source documentation | # Description
This provides typo fixes for source documentation and source comments
# Screenshots/Recordings/Graphs
n/a
## Tests
n/a | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 162763621c19..e47a8a25831b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,7 +125,7 @@ option(SLIC3R_MSVC_COMPILE_PARALLEL "Compile on Visual Studio in parallel" 1)
option(SLIC3R_MSVC_PDB "Generate PDB files on MSVC in Release mode" 1)
option(SLIC3R... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer questions why the vendored Catch2 CMake helper script cmake/modules/Catch2/CatchAddTests.cmake is added by this typo-fix pull request.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OutlineFoundation__outline-apps__1388 | OutlineFoundation/outline-apps | 1,388 | defect | 31eb636c03b97ffdf18af9b766c36ea8dbdff9b2 | 549ab233d684b90d8e75d418efca7a996576d32c | chore(www): create outline_server_repository folder | I've split up the outline_server file into several parts (outline_server_repository, outline_server, and outline_server_access_key) and put them into a subfolder.
Also, I've given all "util" files more meaningful names. | diff --git a/src/electron/connectivity.ts b/src/electron/connectivity.ts
index aecbdcf53a..4d626f484b 100644
--- a/src/electron/connectivity.ts
+++ b/src/electron/connectivity.ts
@@ -15,7 +15,7 @@
import * as dns from 'dns';
import * as net from 'net';
-import * as util from '../www/app/util';
+import {timeoutPromi... | 9 | 8 | 4 | [{"id": "G0", "claim": "timeout_promise is an app-independent dependency that should live in src/infrastructure rather than www/app, and the errors it needs should move with it: OutlineError should be renamed CustomError and be in infrastructure, and OperationTimedOut should be defined in the timeout library.", "catego... | null |
OutlineFoundation__outline-apps__1401 | OutlineFoundation/outline-apps | 1,401 | defect | d08ed562736ee451853074bc965b980aef579b57 | 18615f4b442430a555d1c6cfdbd37956b9ec8d4d | refactor(www): move ShadowsocksSessionConfig to tunnel.ts | Also removed "name" in favor of the shadowsocks concept "tag" as to not conflate the two. | diff --git a/src/electron/go_vpn_tunnel.ts b/src/electron/go_vpn_tunnel.ts
index f3a8a91d84..373382b6d7 100755
--- a/src/electron/go_vpn_tunnel.ts
+++ b/src/electron/go_vpn_tunnel.ts
@@ -17,7 +17,7 @@ import {powerMonitor} from 'electron';
import {platform} from 'os';
import {promisify} from 'util';
-import {Shadow... | 3 | 3 | 2 | [{"id": "G0", "claim": "The ShadowsocksSessionConfig interface does not belong in the outline server repository folder; it is the tunnel's interface and should be defined in tunnel.ts.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tag field (renamed... | null |
OutlineFoundation__outline-apps__1737 | OutlineFoundation/outline-apps | 1,737 | defect | 0da5454a43cb72f7cae887df672370e84cea2783 | 4c039fc5a847db229df83f6fe6c138e57a3cb75f | fix(www): reset the contact view if the user navigates back | Currently, the state remains even if the user clicks the back button, which is managed by the parent `AppRoot` element. This means that if they were sent to a help center article and then open the contact view in a subsequent navigation, they can't get to the original wizard to get help for a new issue. | diff --git a/src/infrastructure/i18n.ts b/src/infrastructure/i18n.ts
new file mode 100644
index 00000000000..52011620df0
--- /dev/null
+++ b/src/infrastructure/i18n.ts
@@ -0,0 +1,12 @@
+import {PrimitiveType, FormatXMLElementFn} from 'intl-messageformat';
+
+export type FormattableMessage =
+ | string
+ | symbol
+ |... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use strict equality (`===`) instead of loose equality (`==`) when comparing `this.page` to 'contact' in `_goBack()`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
OutlineFoundation__outline-apps__1746 | OutlineFoundation/outline-apps | 1,746 | defect | d95c784309551a6eeb2823bacea1f1f8e6ebf967 | 7ffd26b5cd9af5a131b3281ae4c3397a7d275007 | feat(www): polish the contact view UI | Screenshots:

 | diff --git a/src/www/ui_components/app-root.js b/src/www/ui_components/app-root.js
index 86595bb6088..2802ceee30a 100644
--- a/src/www/ui_components/app-root.js
+++ b/src/www/ui_components/app-root.js
@@ -65,6 +65,11 @@ export class AppRoot extends mixinBehaviors([AppLocalizeBehavior], PolymerElemen
<style>
... | 7 | 4 | 0 | [{"id": "G0", "claim": "Convert the new px-based custom properties in app-root.js to rems where it makes sense so the layout scales with the user's font size.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The selected radio button should probably always... | null |
OutlineFoundation__outline-apps__1751 | OutlineFoundation/outline-apps | 1,751 | defect | 0e3e38b66be611dfa4af0e6e2ae9bd260b61b2a5 | 41d617e936028d1177cdaf6238ee6c0d5c62d933 | feat(www): change style to filled fields to stay consistent with other text fields | Also made some minor other edits based on design review.


Also updating the server rename di... | diff --git a/src/www/ui_components/server-rename-dialog.js b/src/www/ui_components/server-rename-dialog.js
index b02e1c29e47..2efed30e4f4 100644
--- a/src/www/ui_components/server-rename-dialog.js
+++ b/src/www/ui_components/server-rename-dialog.js
@@ -14,6 +14,7 @@
limitations under the License.
*/
+import '@mat... | 1 | 1 | 1 | [{"id": "G0", "claim": "Star-selecting with `:host > *` to apply the view's layout styles can result in weird style mixing and unintended behavior down the line, so create a container for the view that does this instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OutlineFoundation__outline-apps__200 | OutlineFoundation/outline-apps | 200 | defect | e038fe7b369f643fb0827afd0c516b86c4b1ae52 | ea8d0fb83b05c573152f0eb923136a610609a05a | reduce URL-related breadcrumbs, simplify invite unwrapping | Seeing a lot of URL-related breadcrumbs in the Sentry logs. It's a bit distracting so this reduces that - mostly it was the catch block in `unwrapInvite` but I also spent a few minutes optimising it...some Friday afternoon fun. WDYT? | diff --git a/www/app/app.ts b/www/app/app.ts
index 8228212506e..b9d39357dd9 100644
--- a/www/app/app.ts
+++ b/www/app/app.ts
@@ -28,6 +28,32 @@ import {Settings, SettingsKey} from './settings';
import {Updater} from './updater';
import {UrlInterceptor} from './url_interceptor';
+// If s a URL whose fragment contain... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new comment on unwrapInvite reads \"If s a URL\" and should say \"If s is a URL\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "unwrapInvite could optionally add a check for url.protocol === 'ss:' and bail out early i... | null |
OutlineFoundation__outline-apps__2066 | OutlineFoundation/outline-apps | 2,066 | defect | 4f5fecddf961c82198a1038390afddeaaf48b192 | 3f2a27592ae693df3bc2be2593d221918b7951e6 | feat(manager): add anonymous metrics opt-in to region picker | https://github.com/user-attachments/assets/9a4aa150-df4e-44aa-98e3-731bed3e7767
| diff --git a/package-lock.json b/package-lock.json
index 84fe14233c0..094781dc958 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -31755,8 +31755,10 @@
"version": "0.0.0-debug",
"dependencies": {
"@material/mwc-button": "^0.27.0",
+ "@material/mwc-checkbox": "^0.27.0",
"... | 3 | 1 | 0 | [{"id": "G0", "claim": "Translation files such as en.json should not be edited manually; only master_messages.json needs changes and the localization pipeline updates the translation files, which simplifies PRs and keeps the feature enabled at the same time for all languages.", "category": "documentation", "verdict": "... | null |
OutlineFoundation__outline-apps__2072 | OutlineFoundation/outline-apps | 2,072 | defect | 180a6509c5dc62e2df6c256fc8dd3a4c72ea8fc6 | df91bc7809e629d64629758fd7035f9ecb2f219e | refactor(client): revamp Tunnel code | I got tired to not find the VPN TS code, and all the inconsistencies, so I'm now putting them all together in one place, so it's easy to find and change. I'm also pulling together the `main` code.
I take a new approach to multi-platform. The entrypoints configure the libraries that are platform-specific, and then we... | diff --git a/client/electron/go_vpn_tunnel.ts b/client/electron/go_vpn_tunnel.ts
index aa19511ddb..ce0e94ed39 100755
--- a/client/electron/go_vpn_tunnel.ts
+++ b/client/electron/go_vpn_tunnel.ts
@@ -20,7 +20,7 @@ import {pathToEmbeddedTun2socksBinary} from './app_paths';
import {ChildProcessHelper, ProcessTerminatedEx... | 7 | 3 | 1 | [{"id": "G0", "claim": "The new setup functions useElectronRepository and useFakeRepository should be renamed to say what they configure (reviewer suggested useElectronTunnel and useFakeTunnel).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
OutlineFoundation__outline-apps__2132 | OutlineFoundation/outline-apps | 2,132 | defect | ccaf3e5b3c1b4bc03b4d040d134ca7b41e11a232 | 09d5db92aacf144e48b74d0b1c6f5734386c5bee | feat(client): support IPv6 on Apple, pass transport config around as string in Apple code | - Support IPv6 on Apple!
- Stop resolving proxy host.
- Create a place for putting Swift code for the PacketTunnelProvider, to enable incremental migration.
- Move newClient to Swift
- Move most of OutlineTunnel to the PacketTunnelProvider target, along with tests. | diff --git a/client/go/outline/shadowsocks/client.go b/client/go/outline/shadowsocks/client.go
index 3539e62a3a..e2879b27fb 100644
--- a/client/go/outline/shadowsocks/client.go
+++ b/client/go/outline/shadowsocks/client.go
@@ -22,7 +22,6 @@ package shadowsocks
import (
"fmt"
"net"
- "time"
"github.com/Jigsaw-C... | 1 | 1 | 0 | [{"id": "G0", "claim": "Suggests renaming the external parameter labels of start(_:) from `name` and `withTransport` to `withName` and `andTransport`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
OutlineFoundation__outline-apps__2135 | OutlineFoundation/outline-apps | 2,135 | defect | 7295b73fc772138cef62351bf832d879d6879ab7 | 1a0f27cb7507359947c2c50b285ce29d0a9e3559 | chore(client): migrate rename server dialog to lit | ERROR: type should be string, got "\r\nhttps://github.com/user-attachments/assets/c67e4500-79f9-47bc-b74c-0832057b9ba3\r\n\r\n" | diff --git a/client/resources/original_messages.json b/client/resources/original_messages.json
index 014bedab41e..421edccf0a1 100644
--- a/client/resources/original_messages.json
+++ b/client/resources/original_messages.json
@@ -607,4 +607,4 @@
"description": "Affirmative answer to a form question.",
"message... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the server card's renameDialog template, `serverId` and `serverName` should be property expressions (`.serverId=${...}`) rather than attribute expressions, as with `.open` and `.localize`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OutlineFoundation__outline-apps__2192 | OutlineFoundation/outline-apps | 2,192 | defect | 56f156381072ff34726a80341f7fb83bd807effa | e1b7b9cab70b0c78f7eb499e6a8133b17954cff1 | refactor(client): clean up transport in Typescript | This PR removes most references to Shadowsocks from the Typescript code, introduces the TransportConfig for type-safety and to make it explicit and centralize all the operations we need on the transport config. | diff --git a/client/electron/index.ts b/client/electron/index.ts
index 679974cca3..45348ff4e2 100644
--- a/client/electron/index.ts
+++ b/client/electron/index.ts
@@ -39,7 +39,7 @@ import {installRoutingServices, RoutingDaemon} from './routing_service';
import {TunnelStore, TunnelConfigJson} from './tunnel_store';
im... | 11 | 9 | 1 | [{"id": "G0", "claim": "The comment on staticKeyToTunnelConfig should use JSDoc format instead of an ordinary comment.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "validateStaticKey could leverage staticKeyToTunnelConfig() instead of duplicating... | null |
OutlineFoundation__outline-apps__2204 | OutlineFoundation/outline-apps | 2,204 | defect | e718556e74627b472eb3492e586cf62624c9c0bd | 5c028f104f28e5aa96f1fd1521c6df2ca5f8d925 | fix(client): fix dynamic key parsing | Fix regression introduced in https://github.com/Jigsaw-Code/outline-apps/pull/2192. | diff --git a/client/src/www/app/outline_server_repository/server.spec.ts b/client/src/www/app/outline_server_repository/server.spec.ts
new file mode 100644
index 00000000000..ae5bd6cab06
--- /dev/null
+++ b/client/src/www/app/outline_server_repository/server.spec.ts
@@ -0,0 +1,44 @@
+// Copyright 2024 The Outline Autho... | 2 | 1 | 0 | [{"id": "G0", "claim": "The reviewer questions exporting the parse helper under a `_`-prefixed name (`_parseTunnelConfigJson`), asking whether that is an acceptable way to expose it for tests.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer a... | null |
OutlineFoundation__outline-apps__2220 | OutlineFoundation/outline-apps | 2,220 | defect | 4497936cfb8c073d88204e8d39b169de143f49ab | d049b1e06eada7f4194c7c9781ef0ad8eb85a03c | refactor(client/windows): move fetching logic from TypeScript to Go | #### New Fetch Error
<img width="500" alt="image" src="https://github.com/user-attachments/assets/6a7c685b-cbea-4b3a-b2f6-48b2b7642995">
| diff --git a/client/electron/go_vpn_tunnel.ts b/client/electron/go_vpn_tunnel.ts
index 9a6948f0e5..add6daa404 100755
--- a/client/electron/go_vpn_tunnel.ts
+++ b/client/electron/go_vpn_tunnel.ts
@@ -67,8 +67,8 @@ export class GoVpnTunnel implements VpnTunnel {
private readonly routing: RoutingDaemon,
readonly... | 13 | 13 | 5 | [{"id": "G0", "claim": "Update the docstring of main in client/go/outline/electron/main.go to reflect the app's different uses now that a fetch-config mode is wedged into it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add unit tests for FetchD... | null |
OutlineFoundation__outline-apps__2231 | OutlineFoundation/outline-apps | 2,231 | defect | b4203f4bfe2a606d8f9afb9da697598b06029293 | a239ae8b5947e981cdca252ed4fa9f5b3c9d1701 | feat(client): add new outreach consent option to support form | **Screenshot:**

| diff --git a/client/src/www/storybook.action.mjs b/client/src/www/storybook.action.mjs
index b2adce2edcc..1aac8e77f84 100644
--- a/client/src/www/storybook.action.mjs
+++ b/client/src/www/storybook.action.mjs
@@ -22,7 +22,7 @@ import {esbuildPlugin} from '@web/dev-server-esbuild';
import {fromRollup} from '@web/dev-se... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request's edit to client/src/www/storybook.action.mjs (setting WWW_PATH to ['client', 'src', 'www']) is unnecessary and should be removed from the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
OutlineFoundation__outline-apps__2265 | OutlineFoundation/outline-apps | 2,265 | defect | 5f20056020bb7f7ba3eebacd74faef4213d4139b | 5b3c98cfe7f7f84cac4c90994a79a2b6b7c13c5f | refactor(client): more config cleanup and consolidation | This PR further removes dependencies on the Shadowsocks format, and consolidates them, so it's clear what needs to be fixed. I have created the `config.ts` file to centralize all the config logic.
One critical cleanup was the removal of Shadowsocks validation from the add access key view. | diff --git a/client/electron/go_helpers.ts b/client/electron/go_helpers.ts
index 7071682c24..ec7df45eba 100644
--- a/client/electron/go_helpers.ts
+++ b/client/electron/go_helpers.ts
@@ -20,7 +20,7 @@
import {pathToEmbeddedTun2socksBinary} from './app_paths';
import {ChildProcessHelper} from './process';
-import {T... | 10 | 6 | 1 | [{"id": "G0", "claim": "Merge the separate import statements from './config' in server.ts into one.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the isValidAccessKey property to an action-based name like validateAccessKey or accessKeyVa... | null |
OutlineFoundation__outline-apps__2269 | OutlineFoundation/outline-apps | 2,269 | defect | 37fe9eab35f63088cfb08541b87a96dcec3b121c | 3513daad501d297311af4073f5dc46f51c01a65d | refactor(client): reduce config library surface | This PR further reduces the exposed surface of the config library and the dependency of config-specific details, advancing the goal to be config agnostic and allow for new protocols, including Websocket. It follows https://github.com/Jigsaw-Code/outline-apps/pull/2265 and many other previous changes.
In this PR I in... | diff --git a/client/electron/index.ts b/client/electron/index.ts
index 90f49fb44c3..8282d2bd8cf 100644
--- a/client/electron/index.ts
+++ b/client/electron/index.ts
@@ -351,7 +351,7 @@ async function createVpnTunnel(
// because startVpn will add a routing table entry that prefixed with this
// host (e.g. "<host>/... | 6 | 5 | 1 | [{"id": "G0", "claim": "The StaticServiceConfig constructor parameter `tunnelconfig` should be camel case.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since `name` is common to both variants, the ServiceConfig definition should be simplified ... | null |
OutlineFoundation__outline-apps__2298 | OutlineFoundation/outline-apps | 2,298 | defect | b0c3d259e57a9bb50875968c7a3a4f6db0ba40dc | 3febe6266950ffdde5867aca8cfc0189d54c88d9 | refactor(client): create Typescript MethodChannel on all platforms | With this change we can call native methods uniformly across Electron and Cordova, and we can easily add new methods by changing Go code only! No more touching all the platforms!
It also allows us to intercept a method at any layer.
I've replaced the `fetchResource` cordova plugin method with an `InvokeMethod` call... | diff --git a/client/electron/go_plugin.ts b/client/electron/go_plugin.ts
index db80eaf22a..7f4a7bb645 100644
--- a/client/electron/go_plugin.ts
+++ b/client/electron/go_plugin.ts
@@ -20,12 +20,10 @@ import {pathToBackendLibrary} from './app_paths';
let invokeGoAPIFunc: Function | undefined;
-export type GoApiName ... | 6 | 5 | 0 | [{"id": "G0", "claim": "The `outline-ipc-invoke-method` handler callback can omit the `{ return ... }` body and use the concise arrow form (`=> invokeMethod(method, params)`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The name `pluginExecWi... | null |
OutlineFoundation__outline-apps__2382 | OutlineFoundation/outline-apps | 2,382 | defect | 54101d92d4d2580f144e0eaf9b51d63f400d5596 | 381306e33db55c92d2ff8afd3e424ca643070305 | feat(client): server metrics bandwidth row | 
 | diff --git a/server_manager/messages/master_messages.json b/server_manager/messages/master_messages.json
index 2e0ad744b98..04edebcf072 100644
--- a/server_manager/messages/master_messages.json
+++ b/server_manager/messages/master_messages.json
@@ -1277,6 +1277,18 @@
"description": "The tooltip displayed when hove... | 6 | 4 | 1 | [{"id": "G0", "claim": "The bandwidth datapoints are stubbed with zeros behind a TODO until the upstream metrics endpoint is merged, so the change cannot be confirmed to work yet.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The inline has-data-li... | null |
OutlineFoundation__outline-apps__2581 | OutlineFoundation/outline-apps | 2,581 | defect | 1268f85724f06c0fb26f61be27327a5793505558 | c85b3ce8b21951e4cf0aae58041bb54763785ee7 | chore(client): clean up client config | - Minimize use of `FirstHopAndTunnelConfigJson`
- Use `clientConfig` instead of `tunnelConfig`/`transportConfig` consistently.
- Stop using `config` as a field name. It's meaningless.
/cc @emohandesi @62w71st | diff --git a/client/electron/index.ts b/client/electron/index.ts
index 111fd8f2f57..3ad72cd81c7 100644
--- a/client/electron/index.ts
+++ b/client/electron/index.ts
@@ -41,7 +41,6 @@ import {installRoutingServices, RoutingDaemon} from './routing_service';
import {TunnelStore} from './tunnel_store';
import {closeVpn, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Typescript should be spelled TypeScript (proper capitalization of the language name) in the comment on establishVpnRequestJSON.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
OutlineFoundation__outline-apps__2590 | OutlineFoundation/outline-apps | 2,590 | defect | 00de256a09ad5e7a8dbb36cc3316e6acfed2a673 | dee5d0919d4a6a79c62ca26aadf13e0db4e9e174 | feat(client): add cookies to reporter | - [x] Wire key id and data dir to `NewClient`
- [x] Implement CookieJar
- [x] Replace persistent CookieJar implementation. `github.com/juju/persistent-cookiejar` depends on LGPL code.
- [x] Extend request format
- [x] Implement cookie removal
Here is an example of the new config:
```yaml
$type: http
request... | diff --git a/client/config.md b/client/config.md
index cd4ef1d6fce..4345c0a4c5e 100644
--- a/client/config.md
+++ b/client/config.md
@@ -161,8 +161,18 @@ transport:
reporter:
$type: http
- url: https://your-callback-server.com/outline_callback
+ request:
+ # URL is the only required field.
+ url: https://... | 7 | 5 | 2 | [{"id": "G0", "claim": "The reviewer questions whether the user agent really needs to replace `darwin` with `macos`, asking if the mapping is needed for consistency with anything else (e.g. the metrics collecting script).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "... | null |
OutlineFoundation__outline-apps__2644 | OutlineFoundation/outline-apps | 2,644 | defect | bac89dd56042907c1feb75769e8ae343c11c8e94 | 697c97c8712d4e37f64b366d6ae258343f1572c4 | feat: return the connection type in the tunnel config | Return the ConnectionType back to typescript so we can differentiate various types of connections | diff --git a/client/go/outline/config/types.go b/client/go/outline/config/types.go
index 70debfa5e60..4bb5fd13300 100644
--- a/client/go/outline/config/types.go
+++ b/client/go/outline/config/types.go
@@ -16,6 +16,7 @@ package config
import (
"context"
+ "encoding/json"
"net"
"github.com/Jigsaw-Code/outline-... | 4 | 4 | 0 | [{"id": "G0", "claim": "The JSON string values emitted by ConnType.MarshalJSON should be consistent with the Go ConnType constant names.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ConnectionType TypeScript declaration should be an enum instead of... | null |
OutlineFoundation__outline-apps__2668 | OutlineFoundation/outline-apps | 2,668 | defect | 05229fc79ab150e4f2018f6b7c3747cc174f7ea4 | a177f6b40dc4e4e820e7f82ed4ce4fd90422f8ef | feat: fix some links and names | Using s3 placeholder links. This replaces the privacy/data collection links.
This doesn't touch most of the support.google.com or github.com/Jigsaw-Code/ links
This change is connected to https://github.com/Jigsaw-Code/outline-apps/pull/2667
Also includes some small lint suppression/test fixes for issues that ... | diff --git a/client/electron/electron-builder.json b/client/electron/electron-builder.json
index 4fc06d20e3d..7e1560363ba 100644
--- a/client/electron/electron-builder.json
+++ b/client/electron/electron-builder.json
@@ -42,7 +42,7 @@
"!output/client/linux-amd64/*.h"
],
"icon": "client/electron/icons/p... | 2 | 2 | 0 | [{"id": "G0", "claim": "The privacy-page-url the PR sets points to the Data Collection Policy page rather than the privacy page; the reviewer asks whether that is on purpose.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The '?q=outline' repo filte... | null |
OutlineFoundation__outline-apps__2711 | OutlineFoundation/outline-apps | 2,711 | defect | be3c1cb64faee9ee60bf0a859a9f543d68b1a42d | 1d7f95bf3e431ee578d249866c6466a180c9f134 | feat(manager): upgrade GCP to Ubuntu 24.04 and update Docker packages | - Upgrade GCP image from ubuntu-2204-lts to ubuntu-2404-lts-amd64
- Update Docker packages to 29.2.1 and containerd.io to 2.2.1 targeting Ubuntu Noble
- Add comment clarifying the docker-20-04 DO slug runs Ubuntu 22.04
- Fix SENTRY_API_URL unbound variable in gcp_install_server.sh
- Add missing flags and location m... | diff --git a/server_manager/install_scripts/gcp_install_server.sh b/server_manager/install_scripts/gcp_install_server.sh
index 2d22dcde7ac..59eeac65084 100755
--- a/server_manager/install_scripts/gcp_install_server.sh
+++ b/server_manager/install_scripts/gcp_install_server.sh
@@ -43,7 +43,7 @@ function log_for_sentry()... | 4 | 2 | 1 | [{"id": "G0", "claim": "The inline comment on the DigitalOcean image slug is written as an absolute statement that could become stale or misleading, so qualify it (e.g. with a date) and/or link a source.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
OutlineFoundation__outline-apps__472 | OutlineFoundation/outline-apps | 472 | defect | 267d55a58900bec935d4698004ad1d6fe77a2122 | 56cc5b5b7be0892a680cba64624b2fbb2e0859e3 | move to typescript 3.1 | Random code health exercise for the day.
Main breakage was 2.7's (!) "Strict Class Initialization":
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html | diff --git a/package.json b/package.json
index ddf58595746..22a8f570064 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
"@types/cordova-plugin-device": "^0.0.3",
"@types/jasmine": "^2.8.6",
"@types/node": "^8.0.53",
- "@types/polymer": "^1.1.31",
+ "@types/polymer": "^1.2.6",
"@... | 5 | 5 | 5 | [{"id": "G0", "claim": "RoutingService.ipcConnection should not rely on the definite assignment assertion (`!`) but be typed to allow being unset, e.g. `net.Socket | undefined`, since it is not initialized in the constructor; the reviewer asks whether `|undefined` or `|null` should be used.", "category": "correctness",... | null |
OutlineFoundation__outline-apps__952 | OutlineFoundation/outline-apps | 952 | defect | e26267f914a3982f4e1518b41efefaa6ff41e444 | b30fb9e9bcc0c89a60e18bed91b171a46a1cb145 | Fixes EventQueue minification bug | The EventQueue relies on `constructor.name` to map OutlineEvent names to registered listeners. It's a good practice not to rely on name because minifiers and obfuscators can change these values. [source](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#javascript_compressor... | diff --git a/src/www/model/events.ts b/src/www/model/events.ts
index 002b2f225fa..3642266ad14 100644
--- a/src/www/model/events.ts
+++ b/src/www/model/events.ts
@@ -50,7 +50,7 @@ export class ServerReconnecting implements OutlineEvent {
export class EventQueue {
private queuedEvents: OutlineEvent[] = [];
// tsli... | 2 | 1 | 1 | [{"id": "G0", "claim": "The listener map could be keyed by a more specific type than `Function` (e.g. an `OutlineEventConstructor<T extends OutlineEvent>`), used in the `subscribe` method as well.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Unit tests s... | null |
OutlineFoundation__outline-apps__988 | OutlineFoundation/outline-apps | 988 | defect | a2deb772a895e4662cc086793ee9829da1dcfe95 | fa5f9e5182f40f47061305a70b3245930ad13211 | Persist servers by access key | The motivation behind this is to lay the groundwork for a single persistence format in the context of dynamic access keys (online config):
- Changes the server persistence format to `{accessKey, name}`, from `ShadowsocksConfig`.
- Implements unit tests for the data storage migration.
- Updates the `Tunnel` interface... | diff --git a/cordova-plugin-outline/outlinePlugin.js b/cordova-plugin-outline/outlinePlugin.js
index ce494f691f3..0dc60c76b30 100644
--- a/cordova-plugin-outline/outlinePlugin.js
+++ b/cordova-plugin-outline/outlinePlugin.js
@@ -37,9 +37,8 @@ function quitApplication() {
exec(function() {}, function() {}, PLUGIN_NAM... | 9 | 8 | 4 | [{"id": "G0", "claim": "Rename the server host getter to getAddress() because `host` is less clear.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The string-index signature on InMemoryStorage conflicts with the interface's object members and sh... | null |
OutlineFoundation__outline-apps__991 | OutlineFoundation/outline-apps | 991 | defect | 74dcb85b859a1871130d67292019b8cacdcffe43 | c7270e5edc72bc33eb15d9b5d5b44015637f2198 | Native networking | - Replaces `OutlineServerFactory` with a `NativeNetworking` interface that enables platform-specific implementations (`[Cordova|Electron]NativeNetworking`) to inject `Tunnel` implementations and provide native networking functionality.
- Lays the groundwork to enable dyanmic servers to retrieve proxy configurations ... | diff --git a/cordova-plugin-outline/android/java/org/outline/OutlinePlugin.java b/cordova-plugin-outline/android/java/org/outline/OutlinePlugin.java
index a9f9bcc1e32..5255d6d4647 100644
--- a/cordova-plugin-outline/android/java/org/outline/OutlinePlugin.java
+++ b/cordova-plugin-outline/android/java/org/outline/Outlin... | 3 | 2 | 1 | [{"id": "G0", "claim": "The reachability tester and the VPN tunnel should not be bundled in one NativeNetworking interface/object; they should be exposed and injected as separate objects (e.g. a connectivity test and a tunnel factory provided by the platform).", "category": "design", "verdict": "supported", "priority":... | null |
OvenMediaLabs__OvenMediaEngine__2056 | OvenMediaLabs/OvenMediaEngine | 2,056 | defect | a2f05875628053308234b39d474dc0ce7000f85a | fb3e302682e6dfa7ce315ae4755efbddcff297f0 | refactor: remove unused FILE provider | ### Summary
The File Provider feature was developed to provide fallback stream when a stream was interrupted, but it is no longer used due to the Schedule Channel feature. Therefore, it is being removed.
### Changes
- Keep the `Providers.FILE `configuration in Server.xml and added warning logs
- Removed File Prov... | diff --git a/src/projects/base/common_types.h b/src/projects/base/common_types.h
index db5496e84..631f376bc 100644
--- a/src/projects/base/common_types.h
+++ b/src/projects/base/common_types.h
@@ -55,7 +55,6 @@ enum class StreamSourceType : int8_t
Mpegts,
Srt,
Transcoder,
- File,
Scheduled,
Multiplex
};
@@ -... | 4 | 3 | 1 | [{"id": "G0", "claim": "Keep the removed StreamSourceType::File enum definition (and its switch cases) in place for future use instead of deleting it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The member `_file_provider` was changed to a primitive b... | null |
OvertureMaps__schema__457 | OvertureMaps/schema | 457 | defect | f7593b5f529e1e4e72c2993ace66dad78c191966 | b5c715fb5db975c444bbbb9a3ba4834bdd74cf52 | Treat None as absent in model constraint validation | ## Summary
- `require_any_of`, `require_if`, and `forbid_if` now treat `None` as "not present" for constraint purposes — fields must be both in `model_fields_set` and non-null to satisfy (or violate) a constraint
- JSON Schema generation emits `{"not": {"type": "null"}}` property constraints alongside `"required"` ... | diff --git a/packages/overture-schema-divisions-theme/tests/division_area_baseline_schema.json b/packages/overture-schema-divisions-theme/tests/division_area_baseline_schema.json
index f3e8c2abd..6a55d4207 100644
--- a/packages/overture-schema-divisions-theme/tests/division_area_baseline_schema.json
+++ b/packages/over... | 9 | 9 | 0 | [{"id": "G0", "claim": "Use the Python term `None` (e.g. \"non-`None` value\") rather than \"null\" throughout, both in the docs and in the code.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the forbid_if docstring so the `None` sentence ... | null |
OvertureMaps__schema__458 | OvertureMaps/schema | 458 | defect | eaa80f1a910e6b4924ea74f5aaa4c21639e6de08 | aa3a6c3063feea13f39063f50a933afa9cf86eb9 | [REFACTOR](system) Reparent string constraints under PatternConstraint + test improvements | ## Summary
- Reparent 8 `StringConstraint` subclasses (`CountryCodeAlpha2`, `HexColor`, `LanguageTag`, `NoWhitespace`, `SnakeCase`, `PhoneNumber`, `RegionCode`, `WikidataId`) under `PatternConstraint` as thin `__init__`-only wrappers
- Enrich `PatternConstraint` with optional `description`, `min_length`, `max_length` ... | diff --git a/packages/overture-schema-system/src/overture/schema/system/field_constraint/string.py b/packages/overture-schema-system/src/overture/schema/system/field_constraint/string.py
index 8c2d90415..c0b985fcf 100644
--- a/packages/overture-schema-system/src/overture/schema/system/field_constraint/string.py
+++ b/p... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new PatternConstraint docstring should be rewritten in NumPy style so that `$ make docformat` adds no new issues and `$ uv run pdoc -d numpy overture.schema.system` renders the docs as expected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
P3KI__bendy__15 | P3KI/bendy | 15 | defect | 1796e5df310648f0fbbfeb5068185612027c22dc | 2c9f3fd8407c8352dfbf62201f77ed5cd77d74e6 | Public API restructuring | This one will:
- hide the previous low level `StructurError` type
- introduce two new high level error types
- rename the sub modules `decoder` and `encoder` into `decoding` and `encoding`.
- add a few more unwrapping utilities on `decoding::Object`
It should also prepare changes necessary for #8. | diff --git a/examples/decode_torrent.rs b/examples/decode_torrent.rs
index 38ddb1f..5e9755b 100644
--- a/examples/decode_torrent.rs
+++ b/examples/decode_torrent.rs
@@ -13,67 +13,13 @@
//! ```
//! cargo run --example decode_torrent > parsing_output.txt
//! ```
-
use std::str;
-use bendy::{
- decoder::{Decoder,... | 3 | 3 | 1 | [{"id": "G0", "claim": "The doc comment on Error::malformed_content says \"show not end\" where it should say \"should not end\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Error::context (and the ResultExt wrapper) should add to the existing ... | null |
P3KI__bendy__19 | P3KI/bendy | 19 | defect | 166b51ba65d0c5e6363ffeaabcf81f922c79df0b | bd813db7d487d934bbd01fa8e90dc4e8ff233470 | Update Documentation | As one of the last steps before we can release v0.2 the documentation must be updated properly.
This request does
- use `skeptic` as dev depdency to ensure all examples in `README.md` are actually valid.
- fix the examples in `README.md`.
- update the content of `README.md` to include decoding with `FromBencod... | diff --git a/.travis.yml b/.travis.yml
index 1a32f4c..c1cb40b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,7 @@ rust:
- stable
- beta
- nightly
+ - 1.32.0
os:
- linux
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..669aa60
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1... | 6 | 6 | 1 | [{"id": "G0", "claim": "The README's rewritten sentence reads awkwardly and should use \"... it is, especially if ...\" instead of the comma-less \"... it is. Especially if ...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README should us... | null |
P3KI__bendy__62 | P3KI/bendy | 62 | defect | 914792ab63509c0a5f45a3aad3fa157a0b25849a | 674db69897cf4edddfd9b8c6b10bb61777646a93 | Optimized Decoding For runtime | Hi! I took the liberty of improving a bit on the runtime, although I must admit there was hardly anything I could improve..
The benchmark I checked in went from:
```
1 loops: 411.979349 ms
1 loops: 311.466364 ms
```
to
```
1 loops: 402.03062 ms
1 loops: 236.654808 ms
```
Hope you like it, and if you have... | diff --git a/Cargo.toml b/Cargo.toml
index 83ebdfe..ae4e4d4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,6 +41,7 @@ snafu = { version = "^0.7.1", default_features = false }
doc-comment = "0.3.3"
regex = "^1.0"
serde_derive = "^1.0"
+timeit = "0.1.2"
### FEATURES ################################################... | 3 | 3 | 1 | [{"id": "G0", "claim": "The self.state.pop() added in the invalid-state arm before latching the 'Map keys must be strings' error may be unnecessary and is technically a behaviour change, though it should not matter because the error state makes the stack irrelevant.", "category": "correctness", "verdict": "supported", ... | null |
PABannier__bark.cpp__74 | PABannier/bark.cpp | 74 | defect | d14120d347a8e9d98bf803e9bbe6274932b05670 | 91217c0cc77eb61810d6bc199d9156f15d634462 | FIX Bug in fine encoder | This PR fixes a bug in the fine encoder. More precisely, when inspecting the attention maps from our fine encoder and the one from the original bark implementation, we find a significant discrepancy hinting at an implementation error. | diff --git a/bark.cpp b/bark.cpp
index ded0510..9ae4c7f 100644
--- a/bark.cpp
+++ b/bark.cpp
@@ -507,14 +507,21 @@ void bert_tokenize(
*n_tokens = t;
}
+float sum_on_dims(const struct ggml_tensor * t) {
+ size_t n_elements = t->ne[0]*t->ne[1]*t->ne[2]*t->ne[3];
+ std::vector<float> tmp(n_elements);
+ m... | 2 | 2 | 2 | [{"id": "G0", "claim": "With this change the fine encoder runs, but the generated audio is garbled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The toy pointer is used uninitialized in fine_gpt_eval (declared without an initializer and then read ... | null |
PANTHEONtech__lighty__1013 | PANTHEONtech/lighty | 1,013 | defect | b7c756d8dff9ccecb6a9a627cccc85c4b27e14c9 | a668fc6a9ae8ae82266eb207e63fdda63d8ac033 | Move AAA configuration from RNC app to AAA module | - Move AAA configs from RNC app to AAA lighty module.
- Simplify AAALighty constructor
[1820] | diff --git a/lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-module/src/main/java/io/lighty/applications/rnc/module/RncLightyModule.java b/lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-module/src/main/java/io/lighty/applications/rnc/module/RncLightyModule.java
index 4b7dfb6a75..e4a8a2299c 100644
---... | 2 | 1 | 0 | [{"id": "G0", "claim": "The public constant YANG_MODELS in AAAConfigUtils should be declared with the immutable type ImmutableSet<YangModuleInfo> instead of the general Set interface type.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AAA configu... | null |
PANTHEONtech__lighty__1046 | PANTHEONtech/lighty | 1,046 | defect | 34c60c2939cba8d891c7765b13270da2b7ebcd5a | 6566c01e7cf917b859608f9672946399fbb7012f | Fix AAALighty stop procedure | Check that `AAALightyShiroProvider` is not null in `AAALighty`s `stopProcedure` to avoid closing issue. | diff --git a/lighty-modules/lighty-aaa-aggregator/lighty-aaa/src/main/java/io/lighty/aaa/AAALighty.java b/lighty-modules/lighty-aaa-aggregator/lighty-aaa/src/main/java/io/lighty/aaa/AAALighty.java
index 2e78512936..18bb812c12 100644
--- a/lighty-modules/lighty-aaa-aggregator/lighty-aaa/src/main/java/io/lighty/aaa/AAALi... | 21 | 21 | 3 | [{"id": "G0", "claim": "Caught exceptions around handler.stop() should not be ignored (empty catch block in stopProcedure).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Caught IDMStoreException should not be ignored (empty catch block around the s... | null |
PANTHEONtech__lighty__1703 | PANTHEONtech/lighty | 1,703 | defect | ee8ab047630060b48028ec8762e7ab02a57f6594 | 2361e9fb66cfbdda8054fa1b871874053206aae0 | Add notifications to CommunityRestConf | This PR adds support for listening on device notifications over SSE into` CommunityRestConf` module.
The functionality requires that application configuration is using base path set to `rests` as is OpenDaylight default due to https://jira.opendaylight.org/browse/NETCONF-1218.
When correctly configured all applic... | diff --git a/lighty-examples/lighty-community-restconf-actions-app/src/main/java/io/lighty/examples/controllers/actions/Main.java b/lighty-examples/lighty-community-restconf-actions-app/src/main/java/io/lighty/examples/controllers/actions/Main.java
index 9b419469a8..10ca30ad1d 100644
--- a/lighty-examples/lighty-commun... | 1 | 1 | 1 | [{"id": "G0", "claim": "The servlet path registered for the notification data-stream handler should be `rests/notif` (as in JaxRsNorthbound), not just `notif`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
PANTHEONtech__lighty__2364 | PANTHEONtech/lighty | 2,364 | defect | c5230d484e4a84de737a10e02cff4a129f50e9eb | 20bb157916d5495150ce2c964447476b79a7e303 | Add Netty Restconf endpoint | introduce alternative module (lighty-restconf-netty-nb-community) and community RESTCONF Netty example (lighty-community-netty-restconf-netconf-app) using org.opendaylight.restconf.server.NettyEndpoint.
JIRA: LIGHTY-333 | diff --git a/lighty-examples/lighty-community-netty-restconf-app/pom.xml b/lighty-examples/lighty-community-netty-restconf-app/pom.xml
new file mode 100644
index 0000000000..c968792f17
--- /dev/null
+++ b/lighty-examples/lighty-community-netty-restconf-app/pom.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?... | 10 | 8 | 2 | [{"id": "G0", "claim": "The redundant second restconf.start() call in Main, whose result is awaited with .get() and no timeout, should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The static httpClientExecutor is shared by every RestCl... | null |
PANTHEONtech__lighty__2613 | PANTHEONtech/lighty | 2,613 | defect | b59e6b128d1c3c2c30828c8f03a88f0c2e63f55d | 26c252af9ac3b197187e0ec8c7d766f8aa3ebed0 | Adopt Vanadium SR1 | odlparent-14.3.1
infrautils-7.1.12
yangtools-14.0.23
mdsal-15.0.4
controller-12.0.5
aaa-0.22.5
netconf-10.0.3
bgpcep-1.0.1 | diff --git a/lighty-applications/lighty-rcgnmi-app-aggregator/lighty-rcgnmi-app-module/src/main/java/io/lighty/applications/rcgnmi/module/RcGnmiAppModule.java b/lighty-applications/lighty-rcgnmi-app-aggregator/lighty-rcgnmi-app-module/src/main/java/io/lighty/applications/rcgnmi/module/RcGnmiAppModule.java
index 4d6a565... | 8 | 6 | 0 | [{"id": "G0", "claim": "The new NettyEndpointConfiguration arguments are wrong: maxHeaderSize of 100 bytes will cause most requests to fail with 'Header too large', the hardcoded altSvc advertises HTTP/3 on a TCP-only server, and the ~4M/~256k concurrent-stream limits are far above typical Restconf values.", "category"... | null |
PANTHEONtech__lighty__649 | PANTHEONtech/lighty | 649 | defect | 9dcc958d5374102c7d800518e0d7a4677def14ac | 89aac3c55108defcfac15ec0aa35f841f981c14c | Add initial config data functionality | Signed-off-by: marekzatko <Marek.Zatko@pantheon.tech> | diff --git a/lighty-core/lighty-controller/README.md b/lighty-core/lighty-controller/README.md
index e20c2e2f01..2997b71ad2 100644
--- a/lighty-core/lighty-controller/README.md
+++ b/lighty-core/lighty-controller/README.md
@@ -72,7 +72,20 @@ instance of LightyController.
controllerConfiguration.setRestoreDirectoryPa... | 9 | 9 | 2 | [{"id": "G0", "claim": "The XmlNodeConverter should not be exposed as a lighty service through getXmlNodeConverter() on LightyServices.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The builder should accept an InputStream instead of a File for the init... | null |
PANTHEONtech__lighty__675 | PANTHEONtech/lighty | 675 | defect | e0b2b94a2a8478e1e9a65fc30990e37e26faffab | 7521800919de874239c691bc48075cd41c24db9a | Master fetch latest Silicon changes from upstream | - Change SchemaPath to Absolute
- Change SchemaContext to EffectiveModelContext
- Add YangParserException
- Set non-persistence data-store
- Use repackaged-akka artifact instead of Akka dependencies. | diff --git a/.gitignore b/.gitignore
index 6e268bb5eb..e0e8fbb577 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,5 +16,6 @@ dist
*.iml
*.ipr
*.iws
+*.log
persistence
diff --git a/lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-module/pom.xml b/lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-mod... | 13 | 9 | 3 | [{"id": "G0", "claim": "Fix the typos and grammar in the TODO comment above the repositories block in lighty-core/dependency-versions/pom.xml.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the local variable schemaPath (which now holds an ... | null |
PANTHEONtech__lighty__736 | PANTHEONtech/lighty | 736 | defect | 5dcd2ab97910a94e9b0cd06ae2fd814aeeb52c29 | 565c4339c8ce920246627cb567ff3ca0e6198784 | Implement sonic_gnoi gRPCs in simulator - 14.0.x | Add some basic implementation of sonic_gnoi gRPCs
so we have something to test gNOI implementation
against.
Signed-off-by: marekzatko <Marek.Zatko@pantheon.tech> | diff --git a/lighty-modules/lighty-gnmi/lighty-gnmi-device-simulator/README.md b/lighty-modules/lighty-gnmi/lighty-gnmi-device-simulator/README.md
index ae05e212c8..e52a6a15a9 100644
--- a/lighty-modules/lighty-gnmi/lighty-gnmi-device-simulator/README.md
+++ b/lighty-modules/lighty-gnmi/lighty-gnmi-device-simulator/REA... | 3 | 3 | 0 | [{"id": "G0", "claim": "The full qualified type paths used in the method signatures (e.g. gnoi.sonic.SonicGnoi.TechsupportRequest) should instead be imported and referenced by the short class name in the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
PANTHEONtech__lighty__833 | PANTHEONtech/lighty | 833 | defect | cc766a9289ebaa28383b9e95e331b341ee1bd600 | b89f2d4792c5d0e1dd202bc4748543b9949ed1ec | Remove data store preparing request from gnmi - master | When PUT or PATCH request is sent through RESTCONF to gNMI device, it can produce additional merge request internally. With this merge request it is intended to prepare datastore if data with specific path does not exist yet. If path contains list than it create merge request which will try to create this list entity b... | diff --git a/lighty-modules/lighty-gnmi/lighty-gnmi-sb/pom.xml b/lighty-modules/lighty-gnmi/lighty-gnmi-sb/pom.xml
index ca247ca9bc..114a30fbe3 100644
--- a/lighty-modules/lighty-gnmi/lighty-gnmi-sb/pom.xml
+++ b/lighty-modules/lighty-gnmi/lighty-gnmi-sb/pom.xml
@@ -70,6 +70,11 @@
<groupId>org.apache.commo... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add javadoc to filterDataStorePrepareRequest describing what the DataStorePrepareRequest is, what it contains and why it is filtered out.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.