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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01mf02__jaq__100 | 01mf02/jaq | 100 | defect | 0de15f987ea83a0372ab85b98e0d0b75eeef72d9 | c6a886c8761f9df8f99fddc31634269a0661fda7 | Try-catch | This PR adds the `try <f> catch <e>` syntax. It's still very much a work in progress.
- [x] Implement syntax
- [x] Add tests
- [x] Add benchmarks | diff --git a/jaq-core/src/error.rs b/jaq-core/src/error.rs
index 39d885805..f37254553 100644
--- a/jaq-core/src/error.rs
+++ b/jaq-core/src/error.rs
@@ -56,6 +56,15 @@ pub enum Error {
Custom(String),
}
+impl Error {
+ /// Convert an error into a Val, to be used for `catch`
+ /// expressions.
+ pub fn ... | 10 | 7 | 3 | [{"id": "G0", "claim": "Error::as_val should not be needed; the catch input can be produced with to_string() instead of a dedicated Error-to-Val conversion function.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Option in Ast::TryCatch can be omitted ... | null |
01mf02__jaq__105 | 01mf02/jaq | 105 | defect | 722e5a2f9efc9796d787df197566d09bcba828cb | 6eaedbd80114fe64195bc3f3b1938f832e2fb8bd | Add formatters. | This PR adds the `@` filters that usually format things as strings using specific encodings, but also some that decode strings already encoded.
It is the absolute laziest version of this PR. I won't disagree if you decide to close this right away, or park it forever. It is lazy because:
- I simply added libraries... | diff --git a/Cargo.lock b/Cargo.lock
index 559c36c82..0cd89121a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -42,6 +42,12 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "base64"
+version = "0.21.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "604178f6c5c21f02dc555784810edfb88... | 15 | 11 | 3 | [{"id": "G0", "claim": "to_csv should accept a &[Val] instead of a Val, with callers passing v.as_arr().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CSV cell loop could be shortened a lot by using cell.as_str().", "category": "maintainability", "v... | null |
01mf02__jaq__126 | 01mf02/jaq | 126 | defect | 2a448ea78a6e807de43a5fab314be55040ef2f89 | cb743ef8acc35dc2811f5b7883bc0a761570fe04 | Tail-recursion optimisation (TCO) | This PR implements tail-recursion optimisation, as announced in #111.
This change seems to massively improve the performance of `paths` and `repeat`, because both are now implemented using tail-recursion. (This can be seen by the impact on `tree-paths` and `ex-implode`.)
Unfortunately, `flatten` seems to have becom... | diff --git a/README.md b/README.md
index 665b50b08..a0d53be3c 100644
--- a/README.md
+++ b/README.md
@@ -514,12 +514,7 @@ That is, a filter such as `recurse` can be defined in jaq:
def recurse(f): def r: ., (f | r); r;
-However, note that unlike jq, jaq does not optimise tail calls.
-Therefore, using the above... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR's rewritten `range` lacks a `range/3` (from; to; by) variant that jq provides.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
01mf02__jaq__65 | 01mf02/jaq | 65 | defect | 9f48b1775f53b6ba0a92b612fe9acccb55104683 | 8e4cb5837fd83ac46e22aca25e1618f7de67dd31 | Add group_by filter | This is admittedly not the most efficient implementation of `group_by`, due to the redundant calls to `f`, but am hoping it's useful enough to include. | diff --git a/jaq-core/src/filter.rs b/jaq-core/src/filter.rs
index 7ceeccfe2..5f4854fbc 100644
--- a/jaq-core/src/filter.rs
+++ b/jaq-core/src/filter.rs
@@ -78,6 +78,7 @@ pub enum Filter {
Reverse,
Sort,
SortBy(Box<Self>),
+ GroupBy(Box<Self>),
Has(Box<Self>),
Split(Box<Self>),
Matches(... | 4 | 4 | 4 | [{"id": "G0", "claim": "The PR uses the unstable `slice_group_by` feature, so jaq no longer compiles on stable Rust; the author should reimplement group_by without unstable features.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new group_by im... | null |
01mf02__jaq__96 | 01mf02/jaq | 96 | defect | 285b95cd13ae459ed044cc2a1074e3dd3e82722b | 1ff1ab96fc60a7ba2cb7cb71d9dcc7b200ca133e | Add math filters from libm | This PR adds the range of functions from [libm](https://github.com/rust-lang/libm) as filters, with the exception of `round`, `floor` and `ceil`.
- [x] Port 1-ary functions as 0-ary filters
- [x] Port 2-ary functions as 2-ary filters that ignore `.`
- [x] Port 3-ary functions as 3-ary filters that ignore `.`
- [x... | diff --git a/Cargo.lock b/Cargo.lock
index 5e0cff38c..7a49a5988 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -288,6 +288,7 @@ dependencies = [
"itertools",
"jaq-core",
"jaq-parse",
+ "libm",
"log",
"regex",
"serde_json",
@@ -327,6 +328,12 @@ version = "0.2.147"
source = "registry+https://github.com/rust-lan... | 14 | 14 | 8 | [{"id": "G0", "claim": "Move the macros into a separate file (math.rs) and keep only const MATH inside lib.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In math_2_ary, use xs.cartesian(ys, cv) to create (x, y) pairs efficiently.", "category... | null |
0dotxyz__marginfi-v2__143 | 0dotxyz/marginfi-v2 | 143 | defect | 29f8fd066e13ddd22c27b8dbf33d8121b3bfe283 | 2a94625a3a6404a71cc7181f8f9bae683d535ada | Risk Engine Reliability and Performance Improvements | - Optimize compute when calculating account health
- Use real time prices when calculating maintenance health
- Ignore oracles when loading balances for deposits on isolated banks
- More sanity checks
- Removed logs that log pubkeys (expensive)
- Better naming for some functions around the asset term
TODO:
- ... | diff --git a/observability/indexer/src/utils/marginfi_account_dup.rs b/observability/indexer/src/utils/marginfi_account_dup.rs
index 2ae8f4f72..fa5732d9b 100644
--- a/observability/indexer/src/utils/marginfi_account_dup.rs
+++ b/observability/indexer/src/utils/marginfi_account_dup.rs
@@ -3,8 +3,8 @@ use marginfi::{
... | 8 | 6 | 0 | [{"id": "G0", "claim": "Argument names should be aligned to their (renamed) types across the functions, e.g. `weight_type: RequirementType` in calc_weighted_assets_and_liabilities_values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fully ... | null |
0dotxyz__marginfi-v2__185 | 0dotxyz/marginfi-v2 | 185 | defect | 21bb094bac052ac1141ca785cd87599359785629 | 0b987b4473fe6bca3c8dd2c2ee878235cf0476de | explicit 8-byte alignment | all padding fields are now 8 byte aligned (on bpf, arm, x86), and all program types are now explciitly 8 byte aligned.
improves devex on mac. bpf in-memory (on-chain) representation is unchanged. | diff --git a/programs/marginfi/src/macros.rs b/programs/marginfi/src/macros.rs
index 995da6f5e..593dfa2af 100644
--- a/programs/marginfi/src/macros.rs
+++ b/programs/marginfi/src/macros.rs
@@ -100,3 +100,10 @@ macro_rules! assert_struct_size {
static_assertions::const_assert_eq!(std::mem::size_of::<$struct>(),... | 2 | 1 | 0 | [{"id": "G0", "claim": "Fix the failing linting on the pull request.", "category": "ci", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Confirm that the bank and oracle public keys are intentionally no longer extended into the vector holding the LUT keys.", "category": "corre... | null |
0dotxyz__marginfi-v2__236 | 0dotxyz/marginfi-v2 | 236 | defect | e48a838a77470025a3dde8bc19624a1f986a5d13 | 94b271b3ba8e23adc37f30a0bc72c9f4bdd6c1af | Fix padding, add anchor tests | Adds anchor tests to the repo.
Bugs found/fixed:
- [x] Anchor can't decode Banks with fetch() due to automatic padding. Added padding manually to the places where it already exists in accounts on mainnet, which should be a non-breaking change.
## Run instructions:
Build the program with:
`anchor build -p ... | diff --git a/Anchor.toml b/Anchor.toml
index ea06333a6..17b7e017e 100644
--- a/Anchor.toml
+++ b/Anchor.toml
@@ -8,7 +8,8 @@ skip-lint = false
[programs.localnet]
liquidity_incentive_program = "Lip1111111111111111111111111111111111111111"
-marginfi = "Mfi1111111111111111111111111111111111111111"
+marginfi = "2jGhuV... | 7 | 7 | 1 | [{"id": "G0", "claim": "Remove the development-log msg! of the bank config's total_asset_value_init_limit from lending_pool_add_bank_with_seed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the localnet key the fall-through in the PYTH_ID ... | null |
0dotxyz__marginfi-v2__239 | 0dotxyz/marginfi-v2 | 239 | defect | 9eae06648dbe1561e33bc54217ec0ca3fef99376 | 226002c1041ae06b4831767d7b2843009285a486 | Origination fees on borrow | A per-bank configurable origination fee that is immediately ~paid to the fee vault~ recorded on the bank upon any borrow.
Suggest deferring merge until after Switchboard pull deployment.
Other items:
- [x] Add ability to configure interest rates of existing banks via `configure_bank` (add new rate to `InterestRa... | diff --git a/README.md b/README.md
index df10a22db..1ad23881d 100644
--- a/README.md
+++ b/README.md
@@ -72,12 +72,12 @@ Integration tests for the on-chain marginfi programs are located under
`/programs/marginfi/tests`. To run the tests, use `cargo test-bpf`. Be sure to
use an x86 toolchain when compiling and runnin... | 3 | 3 | 3 | [{"id": "G0", "claim": "Changing LendingAccountBorrowEvent's layout (amount -> amount_pre_fee + fee) may break external event consumers, so the original layout with `amount` including the fee should be kept.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
0dotxyz__marginfi-v2__312 | 0dotxyz/marginfi-v2 | 312 | defect | f38f467849cb41815f283549ae2f57f7611ac961 | b3ace34299686fbfb5e977de9e4b3855cd241cd5 | Arena-limited groups | Adds a `ARENA_GROUP` flag to groups, which limits them to have only two or fewer banks.
Setting a group as an arena group is permanent and cannot be undone.
The expectation is that the mrgn Arena front end will only list groups with this flag set, both banks with the freeze flag set, and all bank settings set wit... | diff --git a/clients/rust/marginfi-cli/src/entrypoint.rs b/clients/rust/marginfi-cli/src/entrypoint.rs
index 6c920587f..9a51dfe19 100644
--- a/clients/rust/marginfi-cli/src/entrypoint.rs
+++ b/clients/rust/marginfi-cli/src/entrypoint.rs
@@ -96,9 +96,14 @@ pub enum GroupCommand {
admin: Option<Pubkey>,
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The account flag constants should drop the `FLAG` suffix, with `DISABLED_FLAG` renamed to something like `ACCOUNT_DISABLED` or `DISABLED_ACCOUNT` for clarity (the reviewer considered the other names clear enough as they were).", "category": "maintainability", "verdict": "supported", "priority": ... | null |
0dotxyz__marginfi-v2__359 | 0dotxyz/marginfi-v2 | 359 | defect | 6c8bccb958c7e87c2b1558fc6098db0cdde51b72 | a3d7968066cea889798c967ef049fafdbd7c3087 | Oracle conf limits | When confidence bands are especially large, we end up using a price that is unreliable. For very wide confidence bands, it is better to simply abort all transactions until a better price is available. Banks can now configure a % of price, and if confidence exceeds that, transactions will abort.
## BREAKING (everyon... | diff --git a/clients/rust/marginfi-cli/src/entrypoint.rs b/clients/rust/marginfi-cli/src/entrypoint.rs
index 2577afa43..dc66e4459 100644
--- a/clients/rust/marginfi-cli/src/entrypoint.rs
+++ b/clients/rust/marginfi-cli/src/entrypoint.rs
@@ -277,6 +277,11 @@ pub enum BankCommand {
asset_tag: Option<u8>,
... | 3 | 1 | 0 | [{"id": "G0", "claim": "Clamping the confidence interval to 5% of the price regardless of the oracle's reported confidence seems arbitrary and more random now that oracle_max_confidence exists; the code should arguably always rely on the reported confidence instead.", "category": "design", "verdict": "uncertain", "prio... | null |
0dotxyz__marginfi-v2__360 | 0dotxyz/marginfi-v2 | 360 | defect | a7def6df0978201edd14e3bf53a1092fda15f8fd | dbb22dfeb0c6229a12cd27be3708114c29bef3a4 | Add bank position tracking & closure tests | ## Summary
Enables future banks to close when they no longer have any active users, recovering rent. Banks created prior to this update will still not be able to close. Also enables at-a-glance viewing of many users are active in each bank.
- track lending, borrowing, and total positions for each bank
- allow clos... | diff --git a/programs/marginfi/src/constants.rs b/programs/marginfi/src/constants.rs
index 683deeece..629b98801 100644
--- a/programs/marginfi/src/constants.rs
+++ b/programs/marginfi/src/constants.rs
@@ -102,13 +102,15 @@ pub const EMISSIONS_FLAG_BORROW_ACTIVE: u64 = 1 << 0;
pub const EMISSIONS_FLAG_LENDING_ACTIVE: u... | 4 | 3 | 1 | [{"id": "G0", "claim": "The comment misspells \"guarantee\" as \"gaurantee\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The padding field's trailing comment says 464B but the suggested arithmetic for [[u64; 2]; 19] is ... | null |
0dotxyz__marginfi-v2__387 | 0dotxyz/marginfi-v2 | 387 | defect | 43c28046d1e99b0dc970a76189921220486a55b5 | df8b5417c7fddbf2c67a1c2775fd6a3f8c5faf3a | Liquidation remix cpi restriction | Restricts liquidate_start (and end) to top-level calls only, no CPI liquidations allowed with the new receivership approach.
We had hoped to come up with a more novel approach to ensuring start liquidation is unique, but it is what is. Perhaps another day! | diff --git a/Anchor.toml b/Anchor.toml
index 372d50c15..fe331474a 100644
--- a/Anchor.toml
+++ b/Anchor.toml
@@ -34,7 +34,7 @@ wallet = "~/.config/solana/id.json"
# (remove RUST_LOG= to see bankRun logs)
[scripts]
-# test = "RUST_LOG= yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/*.spec.ts --exit --require ... | 6 | 1 | 0 | [{"id": "G0", "claim": "The stack-height CPI check in check_flashloan_can_start is redundant now that the introspection logic exists.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the NoLiquidationInCpi error (e.g. ForbiddenInCpi / \"This can only ... | null |
0dotxyz__marginfi-v2__424 | 0dotxyz/marginfi-v2 | 424 | defect | 76dd728c33bca69ca605b6d1ca485b74d152e9cb | f2096c019cba480b9cf94d7a952174f1e965dce0 | Fixed oracle setup | Adds a fixed-price oracle type. Banks using this type have a declared price that can be read at `bank.config.fixed_price`. They use no external oracle, the price is completely set by the group administrator and never goes stale. This is useful for e.g. stablecoins, assets that are worthless and/or being sunset, or asse... | diff --git a/clients/rust/marginfi-cli/src/processor/mod.rs b/clients/rust/marginfi-cli/src/processor/mod.rs
index 6b076a8aa..581693931 100644
--- a/clients/rust/marginfi-cli/src/processor/mod.rs
+++ b/clients/rust/marginfi-cli/src/processor/mod.rs
@@ -1242,20 +1242,31 @@ pub fn bank_inspect_price_oracle(config: Config... | 6 | 5 | 0 | [{"id": "G0", "claim": "The CLI's show_oracle_ages partition should treat KaminoPythPush and StakedPythPush oracle setups as pyth feeds instead of panicking on them.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out println of data_le... | null |
0dotxyz__marginfi-v2__427 | 0dotxyz/marginfi-v2 | 427 | defect | 76dd728c33bca69ca605b6d1ca485b74d152e9cb | b68c9faf18d3f68413aeccb93007a6263bbefa11 | Forced deleverage | This introduces the concept of a **forced** (by risk admin) **deleverage** - similar to liquidation but applicable to healthy accounts as well.
For this two new instructions introduced:
- `start_deleverage` (similar to `start_liquidation`)
- `end_deleverage` (similar to `end_liquidation`)
Both can be run only b... | diff --git a/Cargo.lock b/Cargo.lock
index cf310ae2a..b90a940d0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7525,6 +7525,7 @@ dependencies = [
"fixed",
"fixed-macro",
"futures",
+ "kamino-mocks",
"lazy_static",
"marginfi",
"marginfi-type-crate",
diff --git a/clients/rust/marginfi-cli/src/entrypoint.rs b/cl... | 10 | 7 | 3 | [{"id": "G0", "claim": "end_deleverage should emit an event recording the deleverage, as the code's own TODO (\"Do we want to emit an event in this case?\") contemplates.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The end-of-receivership health check... | null |
0dotxyz__marginfi-v2__481 | 0dotxyz/marginfi-v2 | 481 | defect | 72eb6a306ffadb47b0acc1b4f18a966b9a5cd395 | 6bc9678c69746e84776682eaaa5ec9c0c572bfb0 | Integration account restructure | Restructures integration accounts to save Bank space and cut down and wasted blank pubkey fields. | diff --git a/guides/DEVELOPERS_INTEGRATORS/PACKING_RISK_ACCOUNTS.md b/guides/DEVELOPERS_INTEGRATORS/PACKING_RISK_ACCOUNTS.md
index 44df58774..2ba4d6dc2 100644
--- a/guides/DEVELOPERS_INTEGRATORS/PACKING_RISK_ACCOUNTS.md
+++ b/guides/DEVELOPERS_INTEGRATORS/PACKING_RISK_ACCOUNTS.md
@@ -276,7 +276,7 @@ performing a withdr... | 4 | 4 | 0 | [{"id": "G0", "claim": "Add a comment or alias for each of `integration_acc_2` and `integration_acc_3` in drift's lending_pool_add_bank_drift destructuring, just for context.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In solend's lending_poo... | null |
0dotxyz__marginfi-v2__522 | 0dotxyz/marginfi-v2 | 522 | defect | ae23438c3518df33ac78748a70eca1f3c5c62749 | 4f3799b3a1f2d0266c82124267545f9f4aa0bf21 | Same bank emissions | Summary
- Adds a permissionless `lending_pool_emissions_deposit` instruction to allow anyone to deposit into a bank's liquidity vault and increase the asset share value.
- Add Rust & TS tests for the instruction
Notes:-
- Some new helpers are added to the tests to allow for setting up emissions on a bank, since ... | diff --git a/programs/marginfi/src/instructions/marginfi_group/configure_bank.rs b/programs/marginfi/src/instructions/marginfi_group/configure_bank.rs
index 6b97cb0bb..4c29e4db3 100644
--- a/programs/marginfi/src/instructions/marginfi_group/configure_bank.rs
+++ b/programs/marginfi/src/instructions/marginfi_group/confi... | 4 | 4 | 4 | [{"id": "G0", "claim": "Add constraints to forbid emissions deposits when the bank is in the Paused, ReduceOnly or Killed state.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Interest must be accrued before applying the emissions deposit, otherwise... | null |
0dotxyz__marginfi-v2__557 | 0dotxyz/marginfi-v2 | 557 | defect | 843aa82df852b9e9a3c555e67ffd12aa53f4805b | c56a410256ddab79c09c69d4514cf1978bc7b233 | Remove super admin instructions | # Summary
This PR removes the emergency admin instructions and reverts protocol changes that were added in the wake of the Drift incident | diff --git a/programs/marginfi/src/events.rs b/programs/marginfi/src/events.rs
index f24b8984a..a6abb6606 100644
--- a/programs/marginfi/src/events.rs
+++ b/programs/marginfi/src/events.rs
@@ -111,25 +111,6 @@ pub struct LendingPoolBankHandleBankruptcyEvent {
pub socialized_amount: f64,
}
-#[event]
-pub struct ... | 10 | 10 | 8 | [{"id": "G0", "claim": "Keep the super admin deposit/withdraw instructions in the source with a mainnet panic guard (as in clone_bank) instead of deleting them, so they can be re-enabled for staging edits.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "W... | null |
0dotxyz__marginfi-v2__564 | 0dotxyz/marginfi-v2 | 564 | defect | 9a177a771ae90949950b12d2bce15c53b7e664f4 | d49ed2c1f6ddd668e55601176e7e696f57d1bfb7 | Add close_liquidation_record, update close account | Thank you to https://github.com/arussel for starting the feature #560
## New Instructions
* Add close_liquidation_record instruction
Allows closing a liquidation record PDA and returning rent to the original payer (record_payer). This enables liquidators to reclaim the ~0.005 SOL rent they paid when initializ... | diff --git a/programs/marginfi/src/errors.rs b/programs/marginfi/src/errors.rs
index 542848343..08489d93b 100644
--- a/programs/marginfi/src/errors.rs
+++ b/programs/marginfi/src/errors.rs
@@ -218,8 +218,7 @@ pub enum MarginfiError {
LiquidatorOrderCloseNotAllowed,
#[msg("Order trigger is yet to be met")] // ... | 3 | 1 | 1 | [{"id": "G0", "claim": "The account migration sets active_orders to 0 without first ensuring that no orders exist on the account, so an account that has an order when migrated could never close that order.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
0dotxyz__marginfi-v2__62 | 0dotxyz/marginfi-v2 | 62 | defect | 3f88d731cf9d8648dfaed3ba49f5d9871ac155e8 | d69716afb8a5f28272a69e64caf58a2d0e4c3dcd | feat(sc): add borrow limit | - add borrow_limit param to group config
- rename `max_capacity` to `deposit_limit`
- deactivate limits when set to u64::MAX
- add an option to bypass borrow limits in liquidations | diff --git a/programs/marginfi/src/errors.rs b/programs/marginfi/src/errors.rs
index ee06ce781..8694f31d9 100644
--- a/programs/marginfi/src/errors.rs
+++ b/programs/marginfi/src/errors.rs
@@ -61,6 +61,8 @@ pub enum MarginfiError {
InvalidOracleSetup,
#[msg("Invalid bank utilization ratio")] // 6028
Ille... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added deposit/borrow limit checks should name their totals `total_deposit_amount`/`total_liability_amount` instead of the `*_value` names, to avoid confusion with USD-denominated values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0gfoundation__0g-storage-node__159 | 0gfoundation/0g-storage-node | 159 | defect | 03286ebd781348264b70264dcfd3c1851fc15475 | f3b501da34fc6b362f36784fb9a7c82e8cc63d4f | Check network id in status and ban incompatible peers. |
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/0glabs/0g-storage-node/159)
<!-- Reviewable:end -->
| diff --git a/node/network/src/config.rs b/node/network/src/config.rs
index a87bc700..dffa59b0 100644
--- a/node/network/src/config.rs
+++ b/node/network/src/config.rs
@@ -11,6 +11,7 @@ use libp2p::gossipsub::{
use libp2p::Multiaddr;
use serde_derive::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
+use shared_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The blockchain network id should be retrieved from the blockchain RPC instead of a hardcoded config value (blockchain_id defaulting to 16600).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
0no-co__GraphQLSP__23 | 0no-co/GraphQLSP | 23 | defect | 4ef25d4c9b58482294c397e271e7fd7a94190872 | 78fc0e8ad65af2909dafb64706e3d5a4d3b58fc4 | Bootstrap e2e tests | This project still amazes me 🤩
I think tests are a crucial part of any project, so I added a basic smoke e2e test to build upon.
Bootstrapping was the most challenging part, so I hope this can pave the way for more in-depth tests.
### What does it do?
It opens a `tsserver` instance in the project that should... | diff --git a/.npmrc b/.npmrc
new file mode 100644
index 00000000..8e012302
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1 @@
+enable-pre-post-scripts = true
diff --git a/package.json b/package.json
index b488eb8a..653fb304 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,9 @@
"module": "./dist/index.module.js",
"sc... | 7 | 6 | 0 | [{"id": "G0", "claim": "Since the repo uses pnpm, the e2e setup could leverage pnpm workspaces to avoid the extra lockfiles and the \"file:../../..\" dependency directive.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Why is the Command type written as ... | null |
0no-co__GraphQLSP__244 | 0no-co/GraphQLSP | 244 | defect | f218751f9dd439c773cb3826a3a69858787f2641 | c57c229f964f487a7bc678de1ea949da199841d8 | fix: off-by-one error in token range (regression in #15). | Should consistently use `stream.getStartOfToken() + 1`. Added some e2e tests to ensure that the regression in #15 is resolved without regressing #190. | diff --git a/test/e2e/fixture-project/fixtures/simple.ts b/test/e2e/fixture-project/fixtures/simple.ts
index 49ba6b15..c37a71b8 100644
--- a/test/e2e/fixture-project/fixtures/simple.ts
+++ b/test/e2e/fixture-project/fixtures/simple.ts
@@ -9,5 +9,11 @@ const PostsQuery = gql`
}
`;
+const Regression190 = gql`
+quer... | 4 | 3 | 1 | [{"id": "G0", "claim": "The off-by-one token-range bug also fails for graphql() function invocations, and a fixture covering that path should be added in the tada (function-invocation) project.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Hovering at ... | null |
0no-co__gql.tada__101 | 0no-co/gql.tada | 101 | defect | d3ae08f4bb6223508821d5583edc11065210c918 | 4f94a8ee31dce043aa2e86ef9037c92d5072a91e | fix: Fix input object field introspection with missing `defaultValue` properties | <!--
Thanks for opening a pull request! We appreciate your dedication and help!
Before submitting your pull request, please make sure to read our CONTRIBUTING guide.
The best contribution is always a PR, but please make sure to open an issue or discuss
your changes first, if you’re looking to submit a lar... | diff --git a/.changeset/strange-nails-ring.md b/.changeset/strange-nails-ring.md
new file mode 100644
index 00000000..8c9b3da7
--- /dev/null
+++ b/.changeset/strange-nails-ring.md
@@ -0,0 +1,5 @@
+---
+'gql.tada': patch
+---
+
+fix(getInputObjectTypeRec): Correctly infer type of field with no default value (should be n... | 2 | 2 | 0 | [{"id": "G0", "claim": "The changeset body should be rewritten as user-facing changelog text, i.e. \"Handle inference of input object fields with missing `defaultValue` properties in introspection.\" instead of the commit-style \"fix(getInputObjectTypeRec): ...\" line.", "category": "documentation", "verdict": "support... | null |
0no-co__gql.tada__146 | 0no-co/gql.tada | 146 | defect | e8820360ae29af899dc1b922c55839bbf4d3eaf2 | 57d08d7c94c781a02197230374e35e78e7067cb4 | fix: Update default ID scalar type to be `string` | Resolves #145
## Summary
In the spec it is outlined that `ID` should always serialize to `string` https://spec.graphql.org/October2021/#sec-ID
| diff --git a/.changeset/two-rockets-hear.md b/.changeset/two-rockets-hear.md
new file mode 100644
index 00000000..71247341
--- /dev/null
+++ b/.changeset/two-rockets-hear.md
@@ -0,0 +1,5 @@
+---
+"gql.tada": minor
+---
+
+Change the default `scalar` type of `ID` to be `string`, as specified in [the spec](https://spec.g... | 2 | 1 | 0 | [{"id": "G0", "claim": "The changeset description should be reworded to say the GraphQL spec recommends that ID serializes to a string, instead of claiming it is specified in the spec.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README imag... | null |
0no-co__gql.tada__284 | 0no-co/gql.tada | 284 | defect | 3b3440661d55da679cbac3ac41c6eb5d8d68f1a9 | 3e9bd8fbd95bf229960978729d84d65c601300db | feat(tada): add isOneOf to the introspection type and support query | ## Summary
Adds support for https://github.com/graphql/graphql-spec/pull/825
When we encounter an input marked as `isOneOf: true` we need to create a type that is an _or_ of all the properties spelled out in said input-object.
- In the support-query we check whether `__Type` contains a `isOneOf`
- In the `Int... | diff --git a/.changeset/cuddly-beers-hug.md b/.changeset/cuddly-beers-hug.md
new file mode 100644
index 00000000..1fb3c943
--- /dev/null
+++ b/.changeset/cuddly-beers-hug.md
@@ -0,0 +1,5 @@
+---
+"@gql.tada/internal": minor
+---
+
+Add support for querying `isOneOf` in the introspection
diff --git a/.changeset/thirty-m... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new supported-features flag `typesIsOneOf` should be named `inputOneOf`, dropping the \"is\" and using \"input\" instead of \"types\" to match the naming of the other features.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
0no-co__gql.tada__31 | 0no-co/gql.tada | 31 | defect | e714a8f29d4aca4bf15f7b6599b33380b5eeeae0 | c82c196f031aa5ba634c38635cf6c566ab303785 | feat: Implement `@_unmask` directives to unmask fragment types | Supersedes #28
Resolves #23
## Summary
Fragments will now not be masked when they’re annotated with `@_unmask`. This will cause all their types derived by `FragmentOf<>` and in parent documents to be fully unwrapped and unmasked.
```ts
const fragment = graphql(`
fragment TodoFields on Todo @_unmask {
... | diff --git a/.changeset/dirty-knives-teach.md b/.changeset/dirty-knives-teach.md
new file mode 100644
index 00000000..ebd63d9c
--- /dev/null
+++ b/.changeset/dirty-knives-teach.md
@@ -0,0 +1,5 @@
+---
+'gql.tada': patch
+---
+
+Format `TadaDocumentNode` output’s third generic differently. The output of fragment definit... | 1 | 1 | 0 | [{"id": "G0", "claim": "Correct the changeset description to say fragments are annotated with `@_unmask` instead of `@_noMask`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0no-co__gql.tada__479 | 0no-co/gql.tada | 479 | defect | e193732bfa456bacf50b007ae7a2ca1396f62733 | 6089688d570e49083d13420c416d14c017183979 | Support parsing executable definition descriptions | Similar to https://github.com/0no-co/graphql.web/pull/59 but in the TS parser, making sure this doesn't start failing. For the LSP to support this we'll need to upgrade GraphQL.web | diff --git a/.changeset/clean-mails-exist.md b/.changeset/clean-mails-exist.md
new file mode 100644
index 00000000..b880f220
--- /dev/null
+++ b/.changeset/clean-mails-exist.md
@@ -0,0 +1,5 @@
+---
+'gql.tada': minor
+---
+
+Support parsing executable descriptions
diff --git a/src/__tests__/parser.test-d.ts b/src/__tes... | 1 | 1 | 0 | [{"id": "G0", "claim": "A new `takeString` helper should be split out at this spot to take over the string matching, probably without performance consequences.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0sec-labs__foxguard__268 | 0sec-labs/foxguard | 268 | defect | 4ba172aeb66da670ed16021fd0558ce54e0d3a54 | c91f715c98019512e888d1f7a490731665fe082a | feat(pq): dependency-scanning follow-ups (closes #262) | ## Summary
- Add missing seed crates (`k256`, `secp256k1`, `libsecp256k1`, `ed448-goldilocks`, `openssl`) and pip packages (`pyjwt`, `authlib`, `python-jose`, `jwcrypto`, `m2crypto`)
- Fix `fabric` attribution: `RSA` → `None` (wraps paramiko, no crypto itself)
- Pass `depName` through to SARIF properties
- Give `Ca... | diff --git a/src/report/sarif.rs b/src/report/sarif.rs
index 96cd9ef9..7c939db8 100644
--- a/src/report/sarif.rs
+++ b/src/report/sarif.rs
@@ -48,6 +48,9 @@ pub fn build_sarif(findings: &[Finding]) -> serde_json::Value {
if let Some(deadline) = &f.cnsa2_deadline {
props.insert("cnsa2Deadli... | 3 | 2 | 1 | [{"id": "G0", "claim": "The `and_modify` confidence-merge branch in the BFS dedup is dead code: because `seed_map` maps each name to a single `&SeedEntry`, `entry.confidence > existing.confidence` is always `x > x` and the update path is never taken.", "category": "maintainability", "verdict": "supported", "priority": ... | null |
0x676e67__wreq__1085 | 0x676e67/wreq | 1,085 | defect | 5c7b4110a4b6678276218b7d6e43b6762b957ebe | f9d3b57728bff94e1dfd541b2da7bd3837328bba | refactor(tls): expose certificate compression APIs | This refactor removes the built-in certificate compression algorithm implementations from wreq's defaults. Instead, it exposes APIs that allow users to implement and register their own compression algorithms (e.g., zlib, brotli, zstd) as needed.
close: https://github.com/0x676e67/wreq/issues/1093 | diff --git a/Cargo.toml b/Cargo.toml
index 54a522248..6f100437c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,16 +27,16 @@ charset = ["dep:encoding_rs", "dep:mime"]
# Enable cookies store support.
cookies = ["dep:cookie"]
-# Enable gzip compression support.
+# Enable gzip decompression support.
gzip = ["tower-ht... | 2 | 2 | 0 | [{"id": "G0", "claim": "In the new cert_compressor unit test, the `match` statements on `compressor.0` (for both compression and decompression) have unreachable arms since the compressor is created as Brotli, and should be simplified to reflect the test's intent.", "category": "maintainability", "verdict": "supported",... | null |
0x676e67__wreq__1094 | 0x676e67/wreq | 1,094 | defect | aaed745799bddacd91e62d373e64ab753ea2d8ee | 4b007a1e0ffbd909cd2bad1e2347df74695cc7a5 | feat(multipart): add Form::set_boundary for custom boundaries | Adds `Form::set_boundary(&mut self, boundary: impl Into<String>)` so users can specify their own multipart boundary string (e.g. `------WebKitFormBoundary...` for browser emulation). This is useful for matching browser fingerprints during emulation, since the default `gen_boundary()` output doesn't resemble any real br... | diff --git a/src/client/multipart.rs b/src/client/multipart.rs
index 61005db91..285f519f5 100644
--- a/src/client/multipart.rs
+++ b/src/client/multipart.rs
@@ -69,6 +69,17 @@ impl Form {
self.inner.boundary()
}
+ /// Set the boundary that this form will use. By default the boundary is a
+ /// lon... | 2 | 1 | 0 | [{"id": "G0", "claim": "The integration test's expected multi-line body string includes leading indentation whitespace on each line, so it will not match the actual multipart body and the assertion will fail; the suggestion is to build the string by joining string slices instead.", "category": "testing", "verdict": "un... | null |
0x676e67__wreq__1101 | 0x676e67/wreq | 1,101 | defect | cff1f54c305140e9ba877d2a1f9f87dd16b1881e | c88e2804b33a8dc33d5fe81b196bc82eca65f2a8 | feat(tls): allow pluggable TLS session cache | close: https://github.com/0x676e67/wreq/issues/1067 | diff --git a/bench/support/client.rs b/bench/support/client.rs
index 8ee6adc3a..84b54862a 100644
--- a/bench/support/client.rs
+++ b/bench/support/client.rs
@@ -14,7 +14,7 @@ fn create_wreq_client(tls: Tls, http_version: HttpVersion) -> Result<wreq::Clien
.redirect(wreq::redirect::Policy::none());
let b... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment on tls_session_store in src/client/http.rs references `SessionStore`, but the correct type is `TlsSessionStore`, which produces a broken link in the generated documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
0x676e67__wreq__1106 | 0x676e67/wreq | 1,106 | defect | 69c7a76b483695ebeaf8deded1bb74a655d11602 | b0eae2d08b16f32b7226da1eada77058be3f193b | feat(cookie): RFC 9113 compliant cookie handling | close: https://github.com/0x676e67/wreq/issues/1078 | diff --git a/src/client.rs b/src/client.rs
index 3e7e018fd..51b411a09 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -29,8 +29,6 @@ use tower::{
retry::{Retry, RetryLayer},
util::{BoxCloneSyncService, BoxCloneSyncServiceLayer, Either, MapErr, Oneshot},
};
-#[cfg(feature = "cookies")]
-use {self::layer::co... | 1 | 1 | 1 | [{"id": "G0", "claim": "Saving response cookies always uses the global cookie store (`self.cookie_store.as_ref()`) and ignores a per-request cookie store provided via request extensions, unlike the injection logic; the store should be fetched from request extensions at the start of `try_send_request` and reused for bot... | null |
0x676e67__wreq__1151 | 0x676e67/wreq | 1,151 | defect | 9fdcd7511f085b58a539f63611c7d920a19e37fc | 5e834c0da0ce2406f507d2b8a6721615b836fe19 | refactor(tls): expose certificate compression APIs | continue: https://github.com/0x676e67/wreq/pull/1085
from: https://github.com/0x676e67/wreq-python/issues/577
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Chores**
* Updated TLS dependencies to newer patch versions and added an explicit low-level TLS bindi... | diff --git a/Cargo.toml b/Cargo.toml
index 5b06eb980..5fd651fb8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -96,8 +96,9 @@ smallvec = { version = "1.15.1", features = ["const_generics", "const_new"] }
socket2 = { version = "0.6.3", features = ["all"] }
ipnet = "2.12.0"
lru = "0.17.0"
-btls = "0.5.5"
-tokio-btls = "0... | 3 | 1 | 0 | [{"id": "G0", "claim": "The rustdoc on the public `CertificateCompressor` trait is stale and garbled: the trait doc has a botched fragment (\"in use.ier\") with the RFC link glued on, and the `compress`/`decompress` doc comments still describe writing to an output buffer although the methods now return a `Codec`.", "ca... | null |
0x676e67__wreq__935 | 0x676e67/wreq | 935 | defect | 88abb8002316705fcb531d9b5e32e30fcf51f376 | df91b7111d585ac24e7f364eb93164b4a9b9cfe4 | feat(retry): introduce configurable retry policy | backport: https://github.com/seanmonstar/reqwest/commit/acd1b059949a6760997fc486080a5ec54bb7172b#diff-0df5342f97493f9f55d6f43a14268f327ea9e791c7fdb8df6d88ec81f6baa721 | diff --git a/Cargo.toml b/Cargo.toml
index 4ef1cc6e3..5883f6228 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -215,6 +215,10 @@ name = "multipart"
path = "tests/multipart.rs"
required-features = ["multipart", "stream"]
+[[test]]
+name = "retry"
+path = "tests/retry.rs"
+
[[example]]
name = "json_dynamic"
path = "e... | 3 | 1 | 0 | [{"id": "G0", "claim": "The positional field access `.1` on `ReqRep` is unclear; use a more descriptive approach such as a helper method like `error()` or pattern matching for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The budge... | null |
0x80__isolate-package__155 | 0x80/isolate-package | 155 | defect | 321a023bc7b541c1922771af699dbe8cc7289e9d | 254ac7e80e04595bd6d4e16bd081618f8635ccb6 | Add JS/TS config file support | Support `isolate.config.ts` and `isolate.config.js` alongside `isolate.config.json`, giving users type checking (TS) or simple ESM (JS) options for their configuration.
Uses a Node subprocess to load JS/TS config files, with `--experimental-strip-types` added for TypeScript. No new dependencies required. Precedence wh... | diff --git a/package.json b/package.json
index 312712d..0eb8a02 100644
--- a/package.json
+++ b/package.json
@@ -83,5 +83,8 @@
"typescript": "6.0.0-beta",
"vitest": "^4.0.18"
},
+ "engines": {
+ "node": ">=22.6.0"
+ },
"packageManager": "pnpm@9.0.0+sha256.bdfc9a7b372b5c462176993e586492603e20da5864d... | 6 | 5 | 4 | [{"id": "G0", "claim": "If the config path contains a single quote, the generated `-e` script becomes invalid and the subprocess fails to import the module; pass the file URL/path as a subprocess argument (e.g. via process.argv) instead of interpolating it into the script string.", "category": "correctness", "verdict":... | null |
0x80__isolate-package__156 | 0x80/isolate-package | 156 | defect | 8fa9c1c3498c64dcb377262e32543a6ce43b6ce1 | 6ff6e3f480d6e1b2923a35b88c78b659de1a32bc | Add getInternalPackageNames helper for listing internal packages | Adds a public `getInternalPackageNames()` async function that returns the list of internal workspace packages that the target package depends on. It composes existing internals (`resolveConfig`, `createPackagesRegistry`, `listInternalPackages`) so there is no new logic.
This is useful for tools like tsup where users n... | diff --git a/README.md b/README.md
index 076c198..92fc04f 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,8 @@ If you are here to improve your Firebase deployments check out the
## Troubleshooting
If something is not working as expected, run `npx isolate --log-level debug` or
-add an `isolate.config.json` file ... | 6 | 6 | 4 | [{"id": "G0", "claim": "The new public helper getInternalPackageNames has no tests asserting its behavior (config resolution from CWD, includeDevDependencies, recursive internal deps), and a focused test should be added to prevent regressions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": ... | null |
0x80__isolate-package__159 | 0x80/isolate-package | 159 | defect | 7175947fdf288d5e13cadb4030a8da1b751b5e32 | 393cc10e62cedb6d0c6ef8e40956099290db85e1 | Fix internal package name clashing with external dependency names | Fixes #138
`listInternalPackages` recursively resolves internal dependencies by checking if dependency names exist in the workspace packages registry. When a workspace package has the same name as an external npm dependency (e.g., an internal package named `config` while other packages depend on npm's `config`), the f... | diff --git a/src/lib/registry/list-internal-packages.test.ts b/src/lib/registry/list-internal-packages.test.ts
new file mode 100644
index 0000000..f2da79a
--- /dev/null
+++ b/src/lib/registry/list-internal-packages.test.ts
@@ -0,0 +1,245 @@
+import { afterEach, describe, expect, it, vi } from "vitest";
+import type { P... | 5 | 4 | 1 | [{"id": "G0", "claim": "The ancestors set is initialized empty in listInternalPackages, never seeded with the root manifest name, so when a transitive dependency depends back on the root package the cycle is not detected at the right level and the root package name is pushed into the result (downstream consumers treat ... | null |
0xERR0R__blocky__1150 | 0xERR0R/blocky | 1,150 | defect | d5be5884d9d3bba349a8b0bbc582239a5fb23d8a | 95c89076f058d39969f76a79a17a98ec3602f752 | fix: don't cache EDNS pseudo records | fixes #1097 | diff --git a/resolver/caching_resolver.go b/resolver/caching_resolver.go
index 9da29ce8e..214aede15 100644
--- a/resolver/caching_resolver.go
+++ b/resolver/caching_resolver.go
@@ -212,21 +212,41 @@ func (r *CachingResolver) trackQueryDomainNameCount(domain, cacheKey string, log
}
}
+// removes EDNS OPT records fr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new `extra` slice in removeEdns0Extra should be pre-allocated with the capacity of msg.Extra instead of being grown incrementally.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xERR0R__blocky__1164 | 0xERR0R/blocky | 1,164 | defect | 3dc0ca18852a4c9d29b5a6ca9c900ad983986019 | b3d45a40ace0c208a3906a0272c0d309767a228e | chore(test): use testcontainers modules | testcontainers provides predefined containers for major databases. This PR replaces mariadb, postgeres and redis with testcontainers modules. | diff --git a/e2e/containers.go b/e2e/containers.go
index 8779de44e..19f741c11 100644
--- a/e2e/containers.go
+++ b/e2e/containers.go
@@ -21,6 +21,9 @@ import (
"github.com/miekg/dns"
"github.com/onsi/ginkgo/v2"
"github.com/testcontainers/testcontainers-go"
+ "github.com/testcontainers/testcontainers-go/modules/ma... | 2 | 1 | 0 | [{"id": "G0", "claim": "Because the other testcontainers modules ship a built-in wait strategy and postgres does not, it might be worth making an upstream issue/PR to add a built-in wait strategy for postgres too.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl... | null |
0xERR0R__blocky__1255 | 0xERR0R/blocky | 1,255 | defect | f1a6fb0014f52fa52f040a94d4ebd0c8c92a467b | 6b73f51ddf5dc6e193640a455faec82d62e79aee | fix: log.privacy option no longer hides domain names being resolved | fixes #1254
found and fixed some log statement where DNS question/answer are logged without obfuscation | diff --git a/e2e/basic_test.go b/e2e/basic_test.go
index fc8276308..9b6c27c5e 100644
--- a/e2e/basic_test.go
+++ b/e2e/basic_test.go
@@ -140,4 +140,50 @@ var _ = Describe("Basic functional tests", func() {
})
})
})
+
+ Describe("Logging", func() {
+ BeforeEach(func() {
+ moka, err = createDNSMokkaContainer(... | 1 | 1 | 1 | [{"id": "G0", "claim": "The remaining un-obfuscated logging in rewriteRequest — the \"rewrite\" field (rewriteKey plus the configured rewrite target) and the Debugf format arguments — pretty much contains part of the domain, so it should be obfuscated too when log.privacy is on.", "category": "correctness", "verdict": ... | null |
0xERR0R__blocky__1271 | 0xERR0R/blocky | 1,271 | defect | 270dc178dc2f279ea4481117c3ae8a0f4ada5ef9 | d8e73d7450c046731ab3c5f91c4635e34dc490ef | Refactoring Redis | Changes:
- config.RedisConfig renamed to config.Redis
- config.Redis got its own file
- config.Redis implements config.Configurable
- config.Redis got unittests
- redis.Client doesn't store it's own context
- methodes of redis.Client expect a context where it's needed
- redis.Client closes its channels when the ... | diff --git a/.vscode/settings.json b/.vscode/settings.json
index a1acd12ea..e7fd5799e 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -18,5 +18,8 @@
"ui.semanticTokens": true,
"formatting.gofumpt": true,
"build.standaloneTags": ["ignore", "tools"]
+ },
+ "[go]": {
+ "editor.rulers"... | 13 | 11 | 3 | [{"id": "G0", "claim": "The redis test setup could use a cancellable per-test context (as done for resolvers, or ginkgo's interruptible nodes) instead of context.TODO in New.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The LogConfig test's expected s... | null |
0xERR0R__blocky__1290 | 0xERR0R/blocky | 1,290 | defect | ac54110886ec464a90f8a51420d572389ae04722 | ef5c258cf91898e52f2720cad36304b2cc54deaf | Bugfix in ECS forward | Changes:
- ecs resolver: bugfix for incorrect overrides of ecs option if forward is enabled and mask is set
- ecs resolver test: use ginkgo context instead of `context.Background()`
- devcontainer: set prettier as default formatter for yaml files
- example config: added ecs section
Closes #1288 | diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 86d175a70..fc4be3c9c 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -50,7 +50,7 @@
"[go]": {
"editor.defaultFormatter": "golang.go"
},
- "[json][jsonc][github-a... | 5 | 5 | 0 | [{"id": "G0", "claim": "The new debug log should be reworded to \"using request's edns0 address as internal client IP: %s\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The unmasked sub-IP debug log is confusing for users; restructure so a re... | null |
0xERR0R__blocky__1352 | 0xERR0R/blocky | 1,352 | defect | dd76cf5bb0f4ed53e98bad11d9e6911c15612002 | cf47cc926001debfe2b54b26af3b280eccdee883 | feat: support CNAME records in customDNS mappings | This PR is related to #465. Currently, I have only implemented CNAME records, but it would be simple to add additional record types mentioned in #996.
Please let me know if you'd prefer a different approach, but this PR being merged would allow me to replace pihole with Blocky in my home network. I'm happy to add m... | diff --git a/config/config_test.go b/config/config_test.go
index c6059c1b1..c7e2bb5c2 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -866,12 +866,24 @@ func defaultTestFileConfig(config *Config) {
Expect(config.Upstreams.Groups["default"][0].Host).Should(Equal("8.8.8.8"))
Expect(config.Upstreams.... | 9 | 9 | 1 | [{"id": "G0", "claim": "The `Entries` field should drop the unused `yaml` tag because it is unused and confusing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `CustomDNSMapping` struct could be simplified to a `map[string]CustomDNSEntries`... | null |
0xERR0R__blocky__1360 | 0xERR0R/blocky | 1,360 | defect | 92b93893c7777f3dc1d9052b72cc9ba8d387caf4 | ea9077d47b679f29b7e731298b341a3ef94becf4 | feat: Support defining records by dns zone format | Closes #1355
As I got to looking at the issue above, it became obvious to me that support for DNS zone files only requires a very small change to my previous PR.
Outstanding questions for others:
* Do we remove the `CNAME()` method under `mappings`? This hasn't been published as far as I can tell, so we have... | diff --git a/config/custom_dns.go b/config/custom_dns.go
index 23e0183e2..e843eec90 100644
--- a/config/custom_dns.go
+++ b/config/custom_dns.go
@@ -14,14 +14,56 @@ type CustomDNS struct {
RewriterConfig `yaml:",inline"`
CustomTTL Duration `yaml:"customTTL" default:"1h"`
Mapping ... | 12 | 11 | 2 | [{"id": "G0", "claim": "The CNAME() mapping syntax should be removed since it has not been released yet.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "customDNS.customTTL should only apply to the old mapping format (and the documentation should say so... | null |
0xERR0R__blocky__1373 | 0xERR0R/blocky | 1,373 | defect | 9f633f18d03246ebc50a26f268453ee94d60ed25 | f1a3cff2faf269f97808f9bde34be404df8280dd | fix: Corrects ability to disable all blocking from the CLI by not providing any groups | This PR fixes #1336 and restores the v0.22 behavior of calling `blocky blocking disable` without any additional arguments. It appears that in #1129, we lost the following check from api_endpoints.go, lines 123-126:
```go
groupsParam := req.URL.Query().Get("groups")
if len(groupsParam) > 0 {
groups = strings.S... | diff --git a/api/api_interface_impl.go b/api/api_interface_impl.go
index fb1a3fba0..0bc8efa3a 100644
--- a/api/api_interface_impl.go
+++ b/api/api_interface_impl.go
@@ -103,8 +103,10 @@ func (i *OpenAPIInterfaceImpl) DisableBlocking(ctx context.Context,
}
}
- if request.Params.Groups != nil {
+ if request.Params... | 3 | 2 | 1 | [{"id": "G0", "claim": "The `else` branch assigning `groups = []string{}` can be skipped, since a `nil` and an empty slice behave the same (`len(x) == 0` for both).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `request.Params.Groups != nil... | null |
0xERR0R__blocky__1424 | 0xERR0R/blocky | 1,424 | defect | 28f979fdf780e6bd3781c74eb96cb3af66d4fda1 | f8d0eb703d883256a6382e2d729168f533a14a6a | fix(log): don't print querylog target password when using a database | Ideally we could add a e2e test that configures trace level logging and all config options that have a secret, does a query, and then checks the container logs don't contain any secret (making all secrets contain a unique token would make that easy).
Fixes #1421
| diff --git a/config/query_log.go b/config/query_log.go
index 616ecdfd89..d34f5f1078 100644
--- a/config/query_log.go
+++ b/config/query_log.go
@@ -1,6 +1,9 @@
package config
import (
+ "net/url"
+ "strings"
+
"github.com/sirupsen/logrus"
)
@@ -32,7 +35,7 @@ func (c *QueryLog) LogConfig(logger *logrus.Entry) {
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Dropping the password entirely could make it look like no password is set (masking a configuration error); better to replace the password at string level with '*' repeated to its length.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xERR0R__blocky__1517 | 0xERR0R/blocky | 1,517 | defect | 12d3e6a3ac2dd0e77259470d62eba181a27f27ad | 2aa3f67b8fa20e708a3b7d363b0da2d58ef44603 | Add Timescale DB with Hypertable and Retention support | With this pull I want to add support of Timescale DB to blocky.
It uses the postgres connection (`queryLog.target=postgres://...`) of GORM to write data, but uses [hypertabels](https://docs.timescale.com/use-timescale/latest/hypertables/) to store time-series data and uses Timescales-native [retention](https://docs... | diff --git a/README.md b/README.md
index 2db0f39c66..c2adda1056 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,8 @@ Blocky is a DNS proxy and ad-blocker for the local network written in Go with fo
- [Prometheus](https://prometheus.io/) metrics
- Prepared [Grafana](https://grafana.com/) dashboards (Promethe... | 3 | 2 | 2 | [{"id": "G0", "claim": "Why was the PostgreSQL migration's id column type changed from serial to bigserial?", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "An e2e test with testcontainers (a real database as a Docker container) should be created for the n... | null |
0xERR0R__blocky__1753 | 0xERR0R/blocky | 1,753 | defect | b3968bffe688db4763de452d384b284631460bfa | bdf9a396c9845060250d81b867ac973e84658fc6 | New feature: Cache exclude | New feature - Cache exclusions rules configuration
Example:

Any request with a domain ending with any suffix listed in exclusions rules won't be cached at all | diff --git a/config/caching.go b/config/caching.go
index 49aa98b3e..bc078835b 100644
--- a/config/caching.go
+++ b/config/caching.go
@@ -16,6 +16,7 @@ type Caching struct {
PrefetchExpires Duration `yaml:"prefetchExpires" default:"2h"`
PrefetchThreshold int `yaml:"prefetchThreshold" default:"5"`
Pr... | 4 | 2 | 1 | [{"id": "G0", "claim": "The exclusion feature should be made more flexible by matching domains via regex instead of only domain suffixes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation example uses 'exclude' values that are not slash-de... | null |
0xERR0R__blocky__1876 | 0xERR0R/blocky | 1,876 | defect | a2cfb0b53587c96e58be940b083914940cd5c64f | d9ea2d5fa537cd68296a60a3cccae026e6392430 | Skip Adblock identifier header and comments | This should close #950
I say should because I haven't written anything in Go in over five years 😁 | diff --git a/lists/parsers/hosts_test.go b/lists/parsers/hosts_test.go
index 29b6f12bb..a65dd0de0 100644
--- a/lists/parsers/hosts_test.go
+++ b/lists/parsers/hosts_test.go
@@ -94,7 +94,6 @@ var _ = Describe("Hosts", func() {
It("fails", func() {
lines := []string{
"invalidIP localhost",
- "!notadomain!"... | 2 | 2 | 1 | [{"id": "G0", "claim": "The added skip condition in lists/parsers/lines.go should use strings.HasPrefix instead of slice/array index operators, which is more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request no longer com... | null |
0xERR0R__blocky__1930 | 0xERR0R/blocky | 1,930 | defect | f4b6b75457d74a6913235a4740e47bf4a1bfe396 | 95599e62996d9dd2b212771f2d8dff0921e90974 | fix: resolve DNSSEC validation issue for CNAMEs in unsigned zones | closes #1926
| diff --git a/resolver/dnssec/validator.go b/resolver/dnssec/validator.go
index c8d6f41f6..206fb70e5 100644
--- a/resolver/dnssec/validator.go
+++ b/resolver/dnssec/validator.go
@@ -362,14 +362,41 @@ func (v *Validator) validateRRsets(
// Group RRs by type
rrsets := groupRRsetsByType(rrs)
+ // Track mixed security... | 3 | 3 | 0 | [{"id": "G0", "claim": "The test comment is misleading because it says 'if there were any RRSIGs in the response' while the test response contains no RRSIG records at all; the comment should be updated to accurately reflect what the test validates (or the test updated to include RRSIGs).", "category": "documentation", ... | null |
0xERR0R__blocky__1935 | 0xERR0R/blocky | 1,935 | defect | 26ac90c0e230bdb670c7cd41435980f4497fe463 | 656b3b454c32a888fc899740fea0c7e74ee6101f | fix: handle DNSSEC validation for large RSA exponents and improve DNSKEY matching | closes #1934
| diff --git a/resolver/dnssec/chain.go b/resolver/dnssec/chain.go
index e4584b589..670b8b4fc 100644
--- a/resolver/dnssec/chain.go
+++ b/resolver/dnssec/chain.go
@@ -142,21 +142,42 @@ func (v *Validator) validateDomainLevel(ctx context.Context, domain string) Vali
return result
}
- // Query DNSKEY records for cur... | 11 | 6 | 2 | [{"id": "G0", "claim": "The exponent-to-uint64 conversion loop may overflow for exponents of 5-8 bytes; add an explicit check (e.g. expLen > 8 returning true) before attempting the conversion.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "findAndVa... | null |
0xERR0R__blocky__1941 | 0xERR0R/blocky | 1,941 | defect | e199445bcde148dc9c12837e1e97a79a6b8ba633 | 9f48e3dd20317ab0a60907f03da17ceb3ff451f2 | feat: add RFC 7239 Forwarded header support for client IP parsing | related to #1938
adds support for "Forwarded" header (RFC 7239) | diff --git a/util/http.go b/util/http.go
index ee5901074..cdbd6a002 100644
--- a/util/http.go
+++ b/util/http.go
@@ -65,10 +65,85 @@ func splitCommaSeparated(s string) []string {
return result
}
+// parseForwardedHeader parses RFC 7239 Forwarded header and extracts the client IP
+// Format: for=192.0.2.43;proto=ht... | 3 | 3 | 1 | [{"id": "G0", "claim": "The parseForwardedHeader doc comment should state that it returns the first valid IP found or nil if no valid IP exists, and that it skips RFC 7239 special values (\"unknown\" and obfuscated identifiers starting with \"_\").", "category": "documentation", "verdict": "supported", "priority": "P2"... | null |
0xERR0R__blocky__1995 | 0xERR0R/blocky | 1,995 | defect | 1a4d22d3d8154a4f45e22e08ea68a7d55eb7cbeb | f3bfca8ae6e16c0696cbf745a7c945ed9750c62a | fix: enhance DNS bootstrapping by utilizing IPs from DNS stamps | closes #1979
| diff --git a/config/upstream.go b/config/upstream.go
index 9be5d3941..d9f2aa27c 100644
--- a/config/upstream.go
+++ b/config/upstream.go
@@ -27,12 +27,13 @@ type Upstream struct {
// DNS stamp metadata (optional) - only populated when parsing DNS stamps
CertificateFingerprints []CertificateFingerprint // SHA256 f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test name \"should have empty IPs when stamp has hostname instead of IP\" is misleading because the Cloudflare stamp under test has IP \"1.0.0.1\" in its ServerAddrStr, so the test should be renamed (or use a stamp that truly has a hostname) to match its name.", "category": "maintainability"... | null |
0xERR0R__blocky__2013 | 0xERR0R/blocky | 2,013 | defect | ecd41d69cd7cb797b7437050a7bfd37853fcd939 | 3baaf0756ed217958a9baa8d6704f0431f5a049b | feat: add DNS-over-QUIC (DoQ) upstream support (RFC 9250) | ## Summary
- Add DoQ as a new upstream protocol alongside DoT and DoH
- QUIC's 0-RTT session resumption eliminates TCP+TLS handshake overhead, bringing encrypted DNS latency to plain UDP levels
- Wire format per RFC 9250: 2-byte length prefix + DNS message per stream
## Changes
- `quic` added to `NetProtocol` en... | diff --git a/config/config.go b/config/config.go
index 2d76f6cd2..4eb96a9b8 100644
--- a/config/config.go
+++ b/config/config.go
@@ -27,6 +27,7 @@ const (
udpPort = 53
tlsPort = 853
httpsPort = 443
+ quicPort = 853
secretObfuscator = "********"
)
@@ -45,6 +46,7 @@ type Configurable interface {
// tcp+u... | 12 | 11 | 5 | [{"id": "G0", "claim": "If the stream write fails, the QUIC stream is never closed; the reviewer asks for something like `defer stream.CancelRead(0)` at the beginning.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Two concurrent goroutines can both... | null |
0xERR0R__blocky__2017 | 0xERR0R/blocky | 2,017 | defect | fd6f9179d0b83ba6f7f52b76dda78cafdf16997a | 666f9127e76d3e6bef2f8709ac0e803891f9034a | fix: use RFC 4034 canonical DNS name ordering for NSEC coverage check | The previous implementation used lexicographic string comparison for NSEC coverage checks, which is incorrect — RFC 4034 §6.1 requires label-by-label comparison from right to left
fixes #1969 | diff --git a/resolver/dnssec/nsec.go b/resolver/dnssec/nsec.go
index e10de7c52..49b5a2c49 100644
--- a/resolver/dnssec/nsec.go
+++ b/resolver/dnssec/nsec.go
@@ -4,6 +4,7 @@ package dnssec
import (
"slices"
+ "strings"
"github.com/0xERR0R/blocky/util"
@@ -74,28 +75,52 @@ func (v *Validator) validateNSECNODATA... | 2 | 1 | 0 | [{"id": "G0", "claim": "canonicalNameCompare ignores the RFC 4034 §6.1 rule that labels are compared with their length octet before their contents, so it can order names like `b.example.` and `aa.example.` incorrectly; the reviewer asks to compare labels by length then bytes, and (M004) to add a test such as `b.example... | null |
0xERR0R__blocky__634 | 0xERR0R/blocky | 634 | defect | 377f4764fe1c666ba16fbebcdfa4e625373b01cc | 7ce875f105d895bce6b2f6e373238f48268d786a | Filter loopback addresses from hosts file | Fixes #633. | diff --git a/go.mod b/go.mod
index 6ae5a5d46..89b6d2ce5 100644
--- a/go.mod
+++ b/go.mod
@@ -36,8 +36,6 @@ require (
gorm.io/gorm v1.23.8
)
-require github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
-
require (
4d63.com/gochecknoglobals v0.1.0 // indirect
github.com/Antonboom/errname v0.1.7 //... | 2 | 2 | 1 | [{"id": "G0", "claim": "Unconditionally filtering loopback addresses could be a breaking change when the hosts file is used to define blocked domains against 127.0.0.1, so a config option in the hosts file section should be introduced, disabled by default.", "category": "design", "verdict": "supported", "priority": "P1... | null |
0xERR0R__blocky__636 | 0xERR0R/blocky | 636 | defect | 8180858efc7dc39b760806b23d847ad01f3d4d81 | 5f1491ef3a4eb202f43a61ebdb5f544cd5096b3e | Blocky should start resolving DNS traffic as soon as possible(#566) | - marked failStartOnListError as deprecated
- added startStrategy as enum(default, failOnError, fast)
- added documentation
Closes #566 | diff --git a/config/config.go b/config/config.go
index 359ecf951..281c78823 100644
--- a/config/config.go
+++ b/config/config.go
@@ -46,6 +46,13 @@ type NetProtocol uint16
// )
type QueryLogType int16
+// StartStrategyType upstart strategy ENUM(
+// default // synchronously download blocking lists on startup
+// fa... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new startStrategy enum value \"default\" is not a meaningful name and should be renamed, e.g. to \"blocking\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The startStrategy comment in docs/config.yml states \"Defau... | null |
0xERR0R__blocky__645 | 0xERR0R/blocky | 645 | defect | 8180858efc7dc39b760806b23d847ad01f3d4d81 | 7f3a6ef35894c45010e70cc221b9d6aa38eb3ebf | Special-Use Domain Names (#635) | Implemented a SpecialUseDomainNames - Resolver as defined in [RFC6761](https://datatracker.ietf.org/doc/html/rfc6761) - 4. Caching DNS Servers
@FileGo could you review the changes?
Closes #635 | diff --git a/model/models.go b/model/models.go
index 790dc01af..99aa2ebe8 100644
--- a/model/models.go
+++ b/model/models.go
@@ -18,6 +18,7 @@ import (
// HOSTSFILE // the query was resolved by looking up the hosts file
// FILTERED // the query was filtered by query type
// NOTFQDN // the query was filtered as it is... | 9 | 7 | 3 | [{"id": "G0", "claim": "The Configuration() method (returning a fixed string) should be covered by a test, as done for other resolvers.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The responses are built without referencing the request, so the respon... | null |
0xERR0R__blocky__756 | 0xERR0R/blocky | 756 | defect | 0d63ca3ef59ed1284e0878c0eac39e611647ebf3 | 8cd562f3f1f65e048201731da840cfaf82a2ed74 | queryLog: log instance hostname or identifier to distinguish log entries in multi-instance installation(#319) | Adds hostname field to querylog entry.
If `/etc/hostname` is present the content of this file will be used as hostname.
Otherwise os.Hostname is used.
Closes #319
**Table migration is untested but should work gorm.db.AutoMigrate** | diff --git a/docs/installation.md b/docs/installation.md
index a81d7b0ae..26a5d1d34 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -79,6 +79,10 @@ services:
environment:
- TZ=Europe/Berlin # Optional to synchronize the log timestamp with host
volumes:
+ # Optional to synchronize t... | 3 | 2 | 1 | [{"id": "G0", "claim": "The docker-compose example should pass the hostname with docker's built-in hostname feature (docker run --hostname / compose hostname:) instead of mounting /etc/hostname from the host.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
0xGF__boneyard__60 | 0xGF/boneyard | 60 | defect | 5af2aace1b6e921f10ad29195960450c2840f56d | 77314c6de77e7d69d2028ec8b97ddbf11d7ca486 | feat(cli): detect ts/js registry filename | ## Commit Description
### Title
`feat(cli): detect ts/js registry filename`
### Summary
This commit adds automatic project language detection so Boneyard generates the correct registry file extension:
- `registry.ts` for TypeScript projects
- `registry.js` for JavaScript projects
The behavior is now applie... | diff --git a/packages/boneyard/bin/cli.js b/packages/boneyard/bin/cli.js
index 9f41f89..8c3f58e 100755
--- a/packages/boneyard/bin/cli.js
+++ b/packages/boneyard/bin/cli.js
@@ -26,6 +26,7 @@ import { writeFileSync, mkdirSync, existsSync, readFileSync, readdirSync } from
import { resolve, join, dirname } from 'path'
i... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Vite plugin's `detectRegistryExtension` diverges from the shared CLI helper (`bin/registry-file.js`) and can emit `registry.js` while the CLI emits `registry.ts` for the same project; extract a single shared detection implementation or at least mirror the CLI helper's fallback behavior to ke... | null |
0xJacky__nginx-ui__1414 | 0xJacky/nginx-ui | 1,414 | defect | b26f40d96221c52e75cb9cef0ace22edf83b01ba | 8b565a423f1db9d87478c17dfa623ce9dfe8afa6 | Refactor nginx path resolution with improved regex and fallback | Updated regex patterns for extracting nginx configuration paths and added fallback mechanisms for determining paths on different operating systems. Improved error handling and logging for better debugging.
If we have helped you, please leave our company a nice review: https://g.page/r/CaNMAPSpl68TEBM/review
<!-- CU... | diff --git a/internal/nginx/resolve_path.go b/internal/nginx/resolve_path.go
index f99be16eb..5816a95d8 100644
--- a/internal/nginx/resolve_path.go
+++ b/internal/nginx/resolve_path.go
@@ -1,6 +1,7 @@
package nginx
import (
+ "os"
"path/filepath"
"regexp"
"runtime"
@@ -57,64 +58,104 @@ func GetPrefix() string... | 4 | 2 | 1 | [{"id": "G0", "claim": "The lines the pull request adds to resolve_path.go mix tabs and spaces inconsistently and should be standardized to the project's tab indentation style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "GetConfEntryPath call... | null |
0xJacky__nginx-ui__1488 | 0xJacky/nginx-ui | 1,488 | defect | 56b18741f362f4bc8bb69205bad65d32b0f7a45f | c2afbc543675ed5b3cba65809a496466bfe872d2 | Support SSO login via OIDC | This pull request adds support for OIDC (OpenID Connect) authentication to the application, allowing users to log in using an external OIDC provider. The changes include backend support for OIDC settings and authentication flow, frontend integration for OIDC login, and updates to settings management.
A config exampl... | diff --git a/api/settings/settings.go b/api/settings/settings.go
index f70674829..923e13397 100644
--- a/api/settings/settings.go
+++ b/api/settings/settings.go
@@ -52,6 +52,7 @@ func GetSettings(c *gin.Context) {
"database": settings.DatabaseSettings,
"auth": settings.AuthSettings,
"casdoor": settings... | 1 | 1 | 1 | [{"id": "G0", "claim": "The OAuth 2.0 authorization URL is built with a constant state string (\"nginx-ui-oidc\"), so the state parameter provides no CSRF protection for the OIDC login flow.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
0xJacky__nginx-ui__1550 | 0xJacky/nginx-ui | 1,550 | defect | 54b1f2096ee84f946f9ff41f452a1c7a6f8088df | 8b543fee413cc337ec5a2b7263d241291d6418fe | Nginx duplicate includes | Prevent duplicate include directives in `nginx.conf` by making fix functions idempotent.
The `FixNginxConfIncludeSites`, `FixNginxConfIncludeStreams`, and `FixNginxConfIncludeConfD` functions previously appended include directives without checking for existing ones, leading to duplicate entries in `nginx.conf` if call... | diff --git a/internal/self_check/nginx_conf.go b/internal/self_check/nginx_conf.go
index f89914bed..0316ada79 100644
--- a/internal/self_check/nginx_conf.go
+++ b/internal/self_check/nginx_conf.go
@@ -104,6 +104,15 @@ func FixNginxConfIncludeSites() error {
// find http block
for _, v := range c.Block.Directives {
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The duplicate-include checks the pull request adds to the Fix functions match with broader strings.Contains patterns (\"sites-enabled\", \"streams-enabled\", \"conf.d\") than the Check functions' glob patterns, so e.g. an existing include of /etc/nginx/conf.d/default.conf makes Fix silently retu... | null |
0xMiden__air-script__112 | 0xMiden/air-script | 112 | defect | 41170e2d2cf47e2cf9fcab2b0788554c68251bb5 | 31e05d1b656eaf06bb9553683d8f453d9d1e78f3 | Add support for $main and $aux built-ins | Closes #26
Add support for access main and aux segments by column index: `$main[n]`, `$aux[n]`, `$main[n]'`, and `$aux[n]'` where `n` is a number. | diff --git a/ir/src/integrity_stmts/graph.rs b/ir/src/integrity_stmts/graph.rs
index 00d98c77e..46a9267df 100644
--- a/ir/src/integrity_stmts/graph.rs
+++ b/ir/src/integrity_stmts/graph.rs
@@ -3,8 +3,8 @@ use super::{
};
use crate::{symbol_table::IdentifierType, VariableRoots, CURRENT_ROW, NEXT_ROW};
use parser::ast... | 10 | 10 | 3 | [{"id": "G0", "claim": "Rename the new $main/$aux lexer tokens to MainAccess/AuxAccess, rename the existing Main/Aux tokens to MainDecl/AuxDecl, and move the new tokens up next to the existing main/aux keywords; allowing them in boundary constraints can be addressed in a future PR.", "category": "design", "verdict": "s... | null |
0xMiden__air-script__117 | 0xMiden/air-script | 117 | defect | 93143a052daece002ff306b55730aaa0478bbe0c | 565a5eb69db27f69eed12ca200d440bb868f11c0 | refactor: replace row_offset with ConstraintDomain | This PR adds the `ConstraintDomain` struct and replaces `row_offset` with this struct as the first step for #106. A couple of other minor related refactor changes are included as well:
- moving some types into the graph or `integrity_stmts` module and making them private, since they're not needed elsewhere
- reorde... | diff --git a/ir/src/integrity_stmts/constraint.rs b/ir/src/integrity_stmts/constraint.rs
new file mode 100644
index 000000000..f861c2d3b
--- /dev/null
+++ b/ir/src/integrity_stmts/constraint.rs
@@ -0,0 +1,77 @@
+use super::NodeIndex;
+
+/// A [ConstraintRoot] represents the entry node of a subgraph representing an inte... | 4 | 4 | 0 | [{"id": "G0", "claim": "Add a doc comment for the CURRENT_ROW constant in ir/src/integrity_stmts/graph.rs and consider using doc comments (///) for the constants there instead of plain comments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ren... | null |
0xMiden__air-script__119 | 0xMiden/air-script | 119 | defect | cc7072d7024b63504e812512d160f58c0d768c75 | b69ecdd8401ce6cfe48c2a89548162c4a2cd147e | Add support for list comprehensions to parser | Partly addressing #87. This PR adds list comprehension support to the parser. This PR should be merged after #120. | diff --git a/air-script-core/src/access.rs b/air-script-core/src/access.rs
index 83fc2b929..069033ee2 100644
--- a/air-script-core/src/access.rs
+++ b/air-script-core/src/access.rs
@@ -58,3 +58,23 @@ impl MatrixAccess {
self.col_idx
}
}
+
+#[derive(Debug, Clone, Eq, PartialEq)]
+pub struct Range {
+ s... | 5 | 2 | 1 | [{"id": "G0", "claim": "Add doc comments clarifying what the Members::Single and Members::Double variants mean.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the 'double' (and possibly 'single') naming used for comprehension members/iterab... | null |
0xMiden__air-script__120 | 0xMiden/air-script | 120 | defect | cc7072d7024b63504e812512d160f58c0d768c75 | 1d00295ecb64a919b3b52f396bc43910eb168036 | Allow expressions as exponents in exp expressions | This PR adds support for expressions as exponents for `Exp` expressions at the parser level but doesn't yet handle them at the IR and codegen level. This is required to write some constraints more concisely. | diff --git a/air-script-core/src/expression.rs b/air-script-core/src/expression.rs
index a04b759bd..adef0d893 100644
--- a/air-script-core/src/expression.rs
+++ b/air-script-core/src/expression.rs
@@ -20,5 +20,5 @@ pub enum Expression {
Add(Box<Expression>, Box<Expression>),
Sub(Box<Expression>, Box<Expressio... | 3 | 2 | 1 | [{"id": "G0", "claim": "Instead of deleting the non_const_exp_fail test, replace it with a test for the non-const exponent.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Implement non-const exponent handling in the graph now (by calling insert_expr on ... | null |
0xMiden__air-script__134 | 0xMiden/air-script | 134 | defect | 6446fd2c1cf96b6b24c275ac56233c00b7a17f95 | 5cb4acc23450f4e34673c72aa88ba3e2afac08eb | Adding random values to IR | Partly addressing #86.
- Added support for random values in IR.
- Added indexed access to random values by custom name.
- Added integration test for random values. | diff --git a/air-script/tests/aux_trace/aux_trace.air b/air-script/tests/aux_trace/aux_trace.air
index 2f6141f74..a927e8c21 100644
--- a/air-script/tests/aux_trace/aux_trace.air
+++ b/air-script/tests/aux_trace/aux_trace.air
@@ -14,8 +14,8 @@ boundary_constraints:
enf p0.first = 1
enf p0.last = 1
- # aux... | 17 | 17 | 2 | [{"id": "G0", "claim": "Keep the random values in the aux_trace test: instead of removing them, add the random_values declaration (as in the first version of the change).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Put the boundary_constraints sectio... | null |
0xMiden__air-script__136 | 0xMiden/air-script | 136 | defect | 3e541d774237f3357ca4fe3ee58cd98034adac08 | 96cc68a40bd5055d0787a7d214ac2f9e8420cf2f | feat(ir): add list comprehension to IR | Partly addressing #87. This PR adds list comprehension and list folding support to the IR. | diff --git a/air-script/tests/list_comprehension/list_comprehension.air b/air-script/tests/list_comprehension/list_comprehension.air
new file mode 100644
index 000000000..fa3f7ff0a
--- /dev/null
+++ b/air-script/tests/list_comprehension/list_comprehension.air
@@ -0,0 +1,29 @@
+def ListComprehensionAir
+
+trace_columns:... | 32 | 27 | 4 | [{"id": "G0", "claim": "List comprehensions let integrity constraints iterate over public inputs, and nothing checks that public inputs are only accessed in boundary constraints.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The helper `iterable_le... | null |
0xMiden__air-script__137 | 0xMiden/air-script | 137 | defect | 3e541d774237f3357ca4fe3ee58cd98034adac08 | 23005109dcf851a524dd590a4c0b6cca106ade05 | Add additional checks for random values | Addressing #46.
Added checks:
- For having random values without auxiliary columns
- For using random values against main columns in boundary constraints | diff --git a/ir/src/constraints/graph.rs b/ir/src/constraints/graph.rs
index 0f433823e..a827f4cd6 100644
--- a/ir/src/constraints/graph.rs
+++ b/ir/src/constraints/graph.rs
@@ -10,7 +10,7 @@ use super::{
/// The offset of the "current" row during constraint evaluation.
const CURRENT_ROW: usize = 0;
/// The default s... | 5 | 4 | 0 | [{"id": "G0", "claim": "The newly declared local variable is misspelled `contains_ranom_value` and should be `contains_random_value`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Declaring the local variable may not be required; the function c... | null |
0xMiden__air-script__144 | 0xMiden/air-script | 144 | defect | 3cbb82b7767decd99924dfec5e0a61d851ba9610 | 03f652c41c99992b8cc3a1c106b574a403662507 | Restore boundary constraint validation | This PR restores validation of boundary constraint rules in the IR, addressing one of the outstanding items from #126 | diff --git a/air-script/tests/aux_trace/aux_trace.rs b/air-script/tests/aux_trace/aux_trace.rs
index 753623e51..5b2bbbdcc 100644
--- a/air-script/tests/aux_trace/aux_trace.rs
+++ b/air-script/tests/aux_trace/aux_trace.rs
@@ -80,9 +80,9 @@ impl Air for AuxiliaryAir {
fn evaluate_transition<E: FieldElement<BaseField... | 4 | 4 | 0 | [{"id": "G0", "claim": "The segment_widths() accessor added by this PR should eventually take a trace segment index as a parameter instead of returning the whole vector of segment widths.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Display output ... | null |
0xMiden__air-script__147 | 0xMiden/air-script | 147 | defect | 0fc7ea1e65090295584238cdad799c55ed81f212 | c6f63a95b187df775bd20ea17c28bf616dae5c65 | Allow access to vector in matrix variable | Addressing: #132
This PR makes possible to:
- create vector variables as row of the matrix variable
- create matrix variables as vector of matrix rows and vector variables
This PR fixes all bugs which do not require parsing modification.
Cases that were fixed:
1. Creating vector variable as row of the matrix... | diff --git a/ir/src/symbol_table.rs b/ir/src/symbol_table.rs
index fbcb496d7..6e5d478d6 100644
--- a/ir/src/symbol_table.rs
+++ b/ir/src/symbol_table.rs
@@ -1,6 +1,6 @@
use super::{
- trace_columns::TraceColumns, BTreeMap, Constant, ConstantType, Constants, Identifier,
- IndexedTraceAccess, MatrixAccess, NamedTr... | 5 | 4 | 1 | [{"id": "G0", "claim": "The pull request should also support building a matrix (or vector) whose rows are rows of another matrix, such as `let b = [a[1], a[0], [5, 6]]`, including the listed statement forms, if possible.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
0xMiden__air-script__148 | 0xMiden/air-script | 148 | defect | 0fc7ea1e65090295584238cdad799c55ed81f212 | 56800de587a98b9c8adce3867cad92d326575289 | fix: fix codegen for aux transition constraints that use main cols | This PR refactors the codegen to correctly generate code for constraints that use both aux trace columns and main trace columns. | diff --git a/air-script/tests/aux_trace/aux_trace.rs b/air-script/tests/aux_trace/aux_trace.rs
index 5b2bbbdcc..8e25ce862 100644
--- a/air-script/tests/aux_trace/aux_trace.rs
+++ b/air-script/tests/aux_trace/aux_trace.rs
@@ -89,9 +89,7 @@ impl Air for AuxiliaryAir {
where F: FieldElement<BaseField = Felt>,
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The trace_segment parameter threaded through Codegen::to_string seems unnecessary (trace_access already carries the segment) and should be removed in favour of renaming the evaluation frame locals (frame -> main_frame style), even though renaming is preferred over passing an extra variable aroun... | null |
0xMiden__air-script__194 | 0xMiden/air-script | 194 | defect | 5db266f3ec13fbc8a0697274f1bc3283a9e80943 | f35b7503d1f19459eaa0765d0cfbac657c5c8bb5 | Refactor the IR (1 of 4) | This is the first of 4 PRs refactoring the IR, addressing https://github.com/0xPolygonMiden/air-script/issues/150.
The primary goals are:
- simplify & clarify the code
- reduce duplication
- simplify error handling
This PR focuses on simplifying the existing design by
1. separating the inference of the tra... | diff --git a/air-script/tests/aux_trace/aux_trace.rs b/air-script/tests/aux_trace/aux_trace.rs
index 94d2e9593..4529ee4a5 100644
--- a/air-script/tests/aux_trace/aux_trace.rs
+++ b/air-script/tests/aux_trace/aux_trace.rs
@@ -40,7 +40,7 @@ impl Air for AuxiliaryAir {
}
fn new(trace_info: TraceInfo, public_in... | 7 | 7 | 1 | [{"id": "G0", "claim": "The order of constraints in the generated list_comprehension test differs from the AIR file, and the reviewer asks whether to keep them aligned to make debugging easier.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If t... | null |
0xMiden__air-script__195 | 0xMiden/air-script | 195 | defect | cf7cf54832c1db41bb7c6af0214583d2082b4409 | cfd4ea2b3f2204e6ef122f7b9036fa2310cb8eb4 | Refactor the IR (2 of 4) | This is the second of 4 PRs refactoring the IR, addressing https://github.com/0xPolygonMiden/air-script/issues/150.
The primary goals are:
- simplify & clarify the code
- reduce duplication
- simplify error handling
In this PR, the AST is consumed during the construction of the IR, which will reduce some clo... | diff --git a/air-script-core/src/constant.rs b/air-script-core/src/constant.rs
index 99106980a..74ab92448 100644
--- a/air-script-core/src/constant.rs
+++ b/air-script-core/src/constant.rs
@@ -28,6 +28,10 @@ impl Constant {
pub fn value(&self) -> &ConstantType {
&self.value
}
+
+ pub fn into_parts... | 1 | 1 | 0 | [{"id": "G0", "claim": "Might be good to add docs or a todo to the new into_parts method in parser/src/ast/pub_inputs.rs and to the corresponding methods in other places.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xMiden__air-script__21 | 0xMiden/air-script | 21 | defect | a7d66b0539d63deefe0b7614dd59ca84e0005f79 | db55431447dae1d5f068d9dc5c54ec688f3326f7 | Add support for multiplication | Addressing #12.
Adds multiplication to entire pipeline.
- [x] scanning
- [x] parsing
- [x] IR
- [x] codgen (doesn't include unit test for codegen) | diff --git a/.gitignore b/.gitignore
index 34556460c..3f1702566 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,7 @@ Cargo.lock
**/*.rs.bk
# Ignore lalrpop generated file
-**/grammar.rs
\ No newline at end of file
+**/grammar.rs
+
+# Ignore examples codegen generated files
+**/examples/*.rs
\ No newline at e... | 8 | 8 | 1 | [{"id": "G0", "claim": "Refactor Operation::to_string to return the formatted string directly from each case via format! instead of pushing onto a vector of String and joining at the bottom, to match the boundary_constraints approach.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "... | null |
0xMiden__air-script__22 | 0xMiden/air-script | 22 | defect | a7d66b0539d63deefe0b7614dd59ca84e0005f79 | 2d30acfa13251df1f885c35ef77c00293eab9350 | Add support for exponentiation | Addressing #13.
Adds exponentiation to entire pipeline.
- [x] scanning
- [x] parsing
- [x] IR
- [x] codgen (doesn't include unit test for codegen) | diff --git a/codegen-winter/src/air/boundary_constraints.rs b/codegen-winter/src/air/boundary_constraints.rs
index ba72002ad..9371c5224 100644
--- a/codegen-winter/src/air/boundary_constraints.rs
+++ b/codegen-winter/src/air/boundary_constraints.rs
@@ -62,6 +62,9 @@ impl Codegen for Expr {
Self::Subtract(l... | 8 | 6 | 1 | [{"id": "G0", "claim": "The SemanticError raised for a non-constant exponent would be more useful if it included information about the lhs and rhs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Naming should be made consistent across AST, lexer... | null |
0xMiden__air-script__227 | 0xMiden/air-script | 227 | defect | 4c6a796e33e131449c5790e94a5fbd13de958116 | 6323ea83aecd42cc6ae7e985c4b766e0a981ea09 | add support for evaluator functions to the IR | Update: this PR is now ready for review and merge. Everything below is left for context.
This PR is not intended for merge. It's a sketch of an approach we could take for dealing with evaluators in the IR.
## Approach
Roughly, the approach is as follows:
- use the `ConstraintBuilder` more generally for anyt... | diff --git a/air-script-core/src/trace.rs b/air-script-core/src/trace.rs
index 6ab3e01bb..905b81417 100644
--- a/air-script-core/src/trace.rs
+++ b/air-script-core/src/trace.rs
@@ -58,6 +58,17 @@ impl TraceAccess {
pub fn row_offset(&self) -> usize {
self.row_offset
}
+
+ /// Creates a new [TraceA... | 9 | 5 | 1 | [{"id": "G0", "claim": "A single general BindingAccess type (binding name, column offset, row offset, size) could replace Elem, VectorAccess, MatrixAccess and TraceBindingAccess, so trace handling is parsed and dealt with in one place instead of two.", "category": "design", "verdict": "uncertain", "priority": "P2", "sc... | null |
0xMiden__air-script__23 | 0xMiden/air-script | 23 | defect | e09fe0a68aa188b33312aabff1eecb6ca41b52ea | 0cd8aefe4e2e2be8a8585eaf2928a2ff0c49609a | Add support for parenthesis | Addressing #20.
Adds support for parentheses.
- [x] parser
- [x] codegen | diff --git a/ir/src/lib.rs b/ir/src/lib.rs
index e4f294c16..6516a0902 100644
--- a/ir/src/lib.rs
+++ b/ir/src/lib.rs
@@ -183,6 +183,20 @@ mod tests {
assert!(result.is_ok());
}
+ #[test]
+ fn transition_constraints_using_parens() {
+ let source = "
+ trace_columns:
+ main:... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added token should be named Lparen instead of Lpar because Lpar is hard to read without seeing the token next to it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in the new test has a typo: \"Parantheses... | null |
0xMiden__air-script__241 | 0xMiden/air-script | 241 | defect | f2bcd6b45385d30e3a43173a09faf1cd9666c90e | 552a7c2805d9c3e8907a13e87087b87a931f0258 | refactor(IR): Refactor IR | This PR refactors the IR and prepares it for the changes required to incorporate evaluators in IR
- use trace binding nomenclature instead of column | diff --git a/ir/src/constraint_builder/boundary_constraints.rs b/ir/src/constraint_builder/boundary_constraints.rs
index 982b63d39..03de59c9b 100644
--- a/ir/src/constraint_builder/boundary_constraints.rs
+++ b/ir/src/constraint_builder/boundary_constraints.rs
@@ -1,4 +1,7 @@
-use super::{ast::BoundaryStmt, ConstraintB... | 6 | 5 | 1 | [{"id": "G0", "claim": "The `columns` parameter of `Symbol::get_trace_value` should be renamed to `binding` (or `trace_binding`) now that its type is `TraceBinding`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In `ir/src/constraint_builder/mo... | null |
0xMiden__air-script__271 | 0xMiden/air-script | 271 | defect | f7f864a579e37726a8b9debae0a5894fd4c66c87 | 20a0e307c5bf86ee094cbfe21c0d4e2954d407a9 | feat(ir): add support for constraint comprehension | Partly addressing #187.
Adds support for constraint comprehension to IR. This doesn't include constraint comprehension on evaluator calls. That will be done in a subsequent PR. | diff --git a/air-script/tests/constraint_comprehension/constraint_comprehension.air b/air-script/tests/constraint_comprehension/constraint_comprehension.air
new file mode 100644
index 000000000..689bd5a1c
--- /dev/null
+++ b/air-script/tests/constraint_comprehension/constraint_comprehension.air
@@ -0,0 +1,14 @@
+def Co... | 7 | 7 | 2 | [{"id": "G0", "claim": "The test modules should mirror the code structure, with constraint_comprehension and list_comprehension tests together under a comprehension module inside the integrity_constraints module.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
0xMiden__air-script__283 | 0xMiden/air-script | 283 | defect | 65bb98d96de1ebe4c6123e1c882b86922013fc1b | cd203359c68d75d1973a06b0c6240b1b34da8f7d | feat(ir): add support for selectors with evaluators | Partly addressing #125. Adds support for selectors with evaluator calls. Also includes a tiny fix for a bug introduced in a previous PR. | diff --git a/air-script/tests/main.rs b/air-script/tests/main.rs
index 4608ba0f0..e139d5014 100644
--- a/air-script/tests/main.rs
+++ b/air-script/tests/main.rs
@@ -162,6 +162,13 @@ fn selectors() {
let expected = expect_file!["selectors/selectors.rs"];
expected.assert_eq(&generated_air);
+
+ let generat... | 4 | 4 | 3 | [{"id": "G0", "claim": "The PR should not be merged as reviewed: the evaluator selectors handling has a domain correctness error (the new graph node keeps the original constraint domain even when a next-row selector changes it, so the wrong domain and trace segment can be produced), the selectors_with_evaluators test m... | null |
0xMiden__air-script__300 | 0xMiden/air-script | 300 | defect | 5e91eee1dc84b8e669d959ee3182afac28686ee4 | c326c1cce52845917e19c14623dd0136becf30b1 | masm codegen: optimized codegen for numerator aggregation | instead of multiplying the coefficients on `evaluate_transitions`, this performs the multiplications on `compute_evaluate_transitions`, which means there is no longer a need to manipulate the accumulator on the stack, saving a few cycles.
requested here: https://github.com/0xPolygonMiden/air-script/pull/299#discussi... | diff --git a/air-script/tests/aux_trace/aux_trace.masm b/air-script/tests/aux_trace/aux_trace.masm
index e2e603fe6..b677f3a06 100644
--- a/air-script/tests/aux_trace/aux_trace.masm
+++ b/air-script/tests/aux_trace/aux_trace.masm
@@ -1,40 +1,30 @@
proc.compute_evaluate_transitions
# constraint 0 for main
padw... | 2 | 1 | 0 | [{"id": "G0", "claim": "If 4294966016 is the address of the random coefficients used to compose constraint evaluations, each constraint should be multiplied by its own coefficient, so the address should probably be incremented by 1 for each constraint instead of both constraints loading from the same address.", "catego... | null |
0xMiden__air-script__307 | 0xMiden/air-script | 307 | defect | f8f51e32dce818685e4564806332230401f5a4a2 | ea8867e2574bf51528170b7cf4da4ad53a65cf35 | feat: support more expressiveness in the ast | This commit introduces the following changes to the AST:
1. Change `Expr::Vector` to contain `Expr` elements rather than just `ScalarExpr` elements. This is necessary in order to properly represent the semantics of vectors in AirScript
2. Introduce `Statement::EnforceIf` for use during translation to represent indi... | diff --git a/parser/src/ast/declarations.rs b/parser/src/ast/declarations.rs
index 14e3ac8c4..ec594fea5 100644
--- a/parser/src/ast/declarations.rs
+++ b/parser/src/ast/declarations.rs
@@ -24,7 +24,7 @@
///!
///! There is no notion of public/private visiblity, so any declaration of the above types may be
///! import... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `access` function on SymbolAccess is very long, repeats very similar logic a few times and duplicates logic from the other `access` function; grjte asks whether its readability can be improved and anything consolidated, and bobbinth agrees it would be better split into smaller, well-named he... | null |
0xMiden__air-script__319 | 0xMiden/air-script | 319 | defect | 6c3884a07059db13718e5e9a5ed90f6d6a4467f7 | 714fe2f5bbccddcc1cfad861858c788253bbeb82 | Update z^exp caching | Review/Merge after #318 (this needs the LOG2 address added by 318)
```
masm: caching `z^trace_len`
- The value `z^trace_len` is used in the divisor of the transition
constraints. This commit extends `cache_z_exp` to compute that value and
cache the result along size the other points used by... | diff --git a/air-script/tests/aux_trace/aux_trace.masm b/air-script/tests/aux_trace/aux_trace.masm
index 335a77311..2864d4fe3 100644
--- a/air-script/tests/aux_trace/aux_trace.masm
+++ b/air-script/tests/aux_trace/aux_trace.masm
@@ -1,3 +1,22 @@
+proc.cache_z_exp
+ padw mem_loadw.4294903304 drop drop
+ # => [z_1,... | 11 | 7 | 0 | [{"id": "G0", "claim": "The stack-state comment should describe the values as a squared extension element, e.g. `[(z_0, z_1)^2, ...]`, rather than `[z_1^2, z_0^2, ...]`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A comment should mention that ... | null |
0xMiden__air-script__32 | 0xMiden/air-script | 32 | defect | f9704a33e394af0a63380c1594face5b68b5d003 | 4db9c9b576f880af6e06274e59b84d0b72461863 | Parsing for v01 features (pub inputs, periodic columns, rand values) | This PR handles parsing for public inputs (#10), periodic columns (#11), and random values (#14)
Although some new tests have been added, we can do a more rigorous assessment of test coverage in the future. | diff --git a/codegen-winter/src/air/boundary_constraints.rs b/codegen-winter/src/air/boundary_constraints.rs
index ef9d355ae..518b57e53 100644
--- a/codegen-winter/src/air/boundary_constraints.rs
+++ b/codegen-winter/src/air/boundary_constraints.rs
@@ -69,6 +69,9 @@ impl Codegen for BoundaryExpr {
Self::Ex... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment in parser/src/ast/pub_inputs.rs should capitalize `AIR` instead of `Air`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment in parser/src/ast/periodic_columns.rs should capitalize `AIR` instead ... | null |
0xMiden__air-script__322 | 0xMiden/air-script | 322 | defect | fe5a5b70a6156059cbc65b932ef7bf90170dee8f | e88cbcaa24feab1da2b409acc6f8e98cda9d8b7b | masm: sorting boundary constraints | The Winterfell framework groups assertions by trace (main or auxiliary), by stride, and step (the first row to which the assertion is enforced). The assertions in a group are further ordered by the column which they apply to.
In AirScript only single value assertions are supported, which means the stride is always `... | diff --git a/air-script/tests/aux_trace/aux_trace.masm b/air-script/tests/aux_trace/aux_trace.masm
index 03d8811dc..1fc8500c4 100644
--- a/air-script/tests/aux_trace/aux_trace.masm
+++ b/air-script/tests/aux_trace/aux_trace.masm
@@ -30,19 +30,19 @@ proc.compute_evaluate_boundary_constraints
padw mem_loadw.42949650... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment the pull request adds at codegen/masm/src/codegen.rs line 388 misspells 'correctness' as 'corretness' (flagged as a minor nit).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
0xMiden__air-script__323 | 0xMiden/air-script | 323 | defect | 4332348745e84121031110723eb4339974bb9aa4 | 771cb810c7a8d928e03ce0161ee67e30cd3ea2a1 | masm: added get_exemptions_points procedure | follow up to https://github.com/0xPolygonMiden/air-script/pull/320
This adds a `get_exemption_points` procedure which relies on the pre computed generator from the FRI stdlib. | diff --git a/air-script/tests/aux_trace/aux_trace.masm b/air-script/tests/aux_trace/aux_trace.masm
index a1ffd7512..a6115ef02 100644
--- a/air-script/tests/aux_trace/aux_trace.masm
+++ b/air-script/tests/aux_trace/aux_trace.masm
@@ -16,6 +16,15 @@ proc.cache_z_exp
dropw # Clean stack
end # END PROC cache_z_exp
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The domain generator should be named to differentiate the trace domain generator from the LDE domain generator (e.g. a `trace_` prefix and separate TRACE_DOMAIN_GENERATOR / LDE_DOMAIN_GENERATOR constants).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
0xMiden__air-script__324 | 0xMiden/air-script | 324 | defect | 7d67271b0a2e284feb4747928269ab1ccad2e18f | 631a601b26a4f3239cb394d37c3765ec7dc8931a | masm: added integrity constraint divisor | Adds codegen for the procedure `compute_integrity_constraint_divisor` to compute the integrity constraint divisor. | diff --git a/air-script/tests/aux_trace/aux_trace.masm b/air-script/tests/aux_trace/aux_trace.masm
index a6115ef02..7e37b5bf3 100644
--- a/air-script/tests/aux_trace/aux_trace.masm
+++ b/air-script/tests/aux_trace/aux_trace.masm
@@ -25,6 +25,26 @@ proc.get_exemptions_points
# => [g^{-2}, g^{-1}, ...]
end # END PR... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add doc comments to the compute_integrity_constraint_divisor procedure giving the formula for the constraint divisor.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xMiden__air-script__336 | 0xMiden/air-script | 336 | defect | 39375bb227e17e9495bd72bc23214a6f3691de5f | 2d9263d3f2bd1243f8f8a106277ae55997898678 | add constraint evaluation export | ~Review/Merge after https://github.com/0xPolygonMiden/air-script/pull/326~
This adds an export that performs the evaluation of both transition and boundary constraints, to be called by the stark verifier in the Miden's stdlib. | diff --git a/air-script/tests/aux_trace/aux_trace.masm b/air-script/tests/aux_trace/aux_trace.masm
index 63097ab1e..4a7b6ad8d 100644
--- a/air-script/tests/aux_trace/aux_trace.masm
+++ b/air-script/tests/aux_trace/aux_trace.masm
@@ -190,3 +190,14 @@ proc.evaluate_boundary_constraints
ext2add
end # END PROC evalua... | 1 | 1 | 0 | [{"id": "G0", "claim": "The header comment emitted for the generated `evaluate_constraints` procedure should say \"integrity and boundary constraints\" instead of \"transition and boundary constraints\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xMiden__air-script__352 | 0xMiden/air-script | 352 | defect | e73ee0349671926440adf07e120b6752e90ba924 | b95311cc6ef56919636224632f497ac3fa946f0e | MassaLabs: Eliminate exponentiations in the IR | This PR completes https://github.com/0xPolygonMiden/air-script/issues/333, and removes the Operation::Exp node in the IR. Instead, parsed exponentiations are reduced to a series of multiplications using square and multiply. | diff --git a/air-script/tests/binary/binary.masm b/air-script/tests/binary/binary.masm
index bae41e142..5e19b881b 100644
--- a/air-script/tests/binary/binary.masm
+++ b/air-script/tests/binary/binary.masm
@@ -75,39 +75,11 @@ end # END PROC compute_integrity_constraint_divisor
# This procedure pushes 2 quadratic... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should modify one of its tests somewhere (e.g. have an `x^7` somewhere) so that the tests show how expanding something other than squaring works.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
0xMiden__air-script__408 | 0xMiden/air-script | 408 | defect | 37d78d50f1839d58c222552f490a15531cd7d212 | 3853a820c826df3ae95207478106539d0804fd9f | feat: Allow unconstrained boundaries for buses | As currently boundary constraints can only be in the form `b.boundary = null | input`, it is not currently possible to represent some constraints needed for MidenVM, so we may want to allow unconstraint boudaries for now:
_Originally posted by @Al-Kindi-0 in [#377](https://github.com/0xMiden/air-script/issues/377#i... | diff --git a/air-script/tests/buses/buses_simple.air b/air-script/tests/buses/buses_simple.air
index 83de1b8dc..9d2b833b0 100644
--- a/air-script/tests/buses/buses_simple.air
+++ b/air-script/tests/buses/buses_simple.air
@@ -14,7 +14,7 @@ public_inputs {
}
boundary_constraints {
- enf p.first = null;
+ enf p.... | 5 | 3 | 0 | [{"id": "G0", "claim": "The PR's documentation has not been updated for the new unconstrained keyword or for how unconstrained boundaries work, and the author asks the reviewers whether such a docs update is needed.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
0xMiden__air-script__410 | 0xMiden/air-script | 410 | defect | 37d78d50f1839d58c222552f490a15531cd7d212 | 19fb1b3e90b6b270c5c3b792d6a0539faa3b9730 | feat: Allow bus operations in libraries and evaluators | This PR closes https://github.com/0xMiden/air-script/issues/387
Buses are defined in the root (not allowed to be defined in another module), and are accessible in all modules and evaluators.
Task list:
- [x] Ensure buses are accessible in libraries and evaluator bodies context
- [x] Adapt Mir passes handling bu... | diff --git a/air-script/tests/buses/buses_complex.air b/air-script/tests/buses/buses_complex.air
index 10c69697e..3526d33aa 100644
--- a/air-script/tests/buses/buses_complex.air
+++ b/air-script/tests/buses/buses_complex.air
@@ -25,8 +25,12 @@ integrity_constraints {
enf s1^2 = s1;
enf s2^2 = s2;
- p.ins... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `let c = 41;` line added to the buses_complex.air test looks unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out `//let args = bus_op.args.clone();` line added in inlini... | null |
0xMiden__air-script__437 | 0xMiden/air-script | 437 | defect | 2e0119aab64c9c2da03849d280c44b217f907d5f | 7f58050459facee735bdb61b373c65d601e8ccef | Add default compilation pipeline | This PR aims to close https://github.com/0xMiden/air-script/issues/426.
In `air-script/src/lib.rs`, I export the function `ast_to_air_pipeline` that provides a default compilation pipeline.
In its implementation, I had two approaches:
- the first one that simply chained all the passes together (commented out) and ... | diff --git a/air-script/README.md b/air-script/README.md
index f0f453a0d..fc4fedaee 100644
--- a/air-script/README.md
+++ b/air-script/README.md
@@ -17,6 +17,7 @@ The compiler has four stages, which can be imported and used independently or to
Example usage:
```Rust
+use air_ir::ast_to_air_pipeline;
use air_script... | 2 | 2 | 0 | [{"id": "G0", "claim": "Simplify the API to a single compile() function, imported from the air_script namespace, so that usage looks like parse() followed by compile(&diagnostics, ast) instead of manually building the ast_to_air_pipeline.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
0xMiden__air-script__449 | 0xMiden/air-script | 449 | defect | c229fd77aadb4ca9e589148f3ee95f9d49b5ba55 | a307ca09de39fc130025b460161bb19da8d9b21a | Fix regressions on MIR and list_comprehensions | I have noticed two issues when implementing https://github.com/0xMiden/air-script/pull/440. I've fixed them on the branch of the PR, but it is cleaner to do a specific PR for these regressions.
1. When lowering the bodies of functions or evaluators, the lowering of Let statements in MIR did not correctly insert thei... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 86342d410..3e5ec2425 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- Incremented MSRV to 1.89.
- Add a constant propagation pass after other mir passes (#439).
- Add a pass for common subexpression elimination in the constraint graph (#419).
+- Fix regres... | 4 | 4 | 1 | [{"id": "G0", "claim": "Add comments to translate_let and next to the root field explaining what self.root represents, what Root::None means, and why the last statement is not added to the root's body.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
0xMiden__air-script__460 | 0xMiden/air-script | 460 | defect | b251ed20518777116f0c97adb3536af554c0ca9f | c1f6468f74b7a43881af87f7b7617f364b2254c6 | [MIR] Remove binary operation unrolling | This PR closes https://github.com/0xMiden/air-script/issues/458.
It consists of:
- checking the types of binary expressions in sema
- doing nothing if we encounter `Add`, `Sub`, `Mul`, `Exp`, `Boundary` nodes in unrolling 1st and 3rd pass
- updating the relevant tests
I also needed to fix a behaviour that I'm ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4f04f4bc8..974e7901a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,12 +3,12 @@
## 0.5.0 (TBD)
- Incremented MSRV to 1.89.
-- Add a constant propagation pass after other mir passes (#439).
- Add a pass for common subexpression elimination in the constraint graph (... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add comments to explain what the sequence of accessor_to_scalar/vec_to_scalar unwrapping calls in insert_mir_operation is doing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xMiden__air-script__491 | 0xMiden/air-script | 491 | defect | 067b9f60950c7b0612ece590d1af53858056edfd | 9acc975f0196a79c596a5e45827a3dd5910d3e4c | Fix vector unrolling issue in nested match evaluation | ## Describe your changes
This PR fixes https://github.com/0xMiden/air-script/issues/487.
A `selectors_combine_nested` E2E test has been added to catch regressions on this behaviour. Potentially, if the Rust code is not needed, we could only add tests during the compilation process (e.g. in the `air` crate instead... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6046b52b7..fe1d3a69e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@
- Update documentation and tests thereof (#437).
- Reorder unrolling passes to unroll list comprehensions before match statements (#431).
- Removed `TraceSegmentId::index()` and replaced... | 2 | 1 | 0 | [{"id": "G0", "claim": "Consider collecting into a pre-allocated Vec with estimated capacity to reduce allocations when flattening large nested vectors.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be great to test even deeper nesting than ... | null |
0xMiden__air-script__495 | 0xMiden/air-script | 495 | defect | 9d69e2d19b7477925b4c03f72193650338666c48 | eab1bbbdfbbfc501d77899503f2a81afb9924769 | Fix evaluator argument vector slice expansion | This PR solves https://github.com/0xMiden/air-script/issues/486
It adds special handling for remaining slices when translating to mir, and generalizes evaluator argument checking and unpacking when inlining to unwrap Accessors and support Vectors.
- [x] Fix: translate remaining slices to `Vector<Accessor(MirAcces... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2c5b05a7c..6bcdb7f22 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
- Removed `TraceSegmentId::index()` and replaced segment indexing with `TraceShape<T>`/`FullTraceShape<T>` across ACE codegen, MIR-to-AIR pass, and constraints (#442).
- Allow computed in... | 10 | 8 | 0 | [{"id": "G0", "claim": "Add a test covering slicing of slices (nested slice expressions).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The child.clone() in the accessor-extraction loop may be unnecessary; prefer dereferencing over cloning.", "category... | null |
0xMiden__air-script__52 | 0xMiden/air-script | 52 | defect | 175357da5aa187177031657287b675bc02eb095f | e5337b8caae0fcf435f8ef6de374c8b3489d6476 | Throw error when sections are empty or omitted | Addressing #45, #44 and #30 and #29.
- Regarding throwing error when boundary_constraints or transition_constraints are empty, that case was already handled but I have included tests in parser for the same.
- Changes to the docs for transition constraints and boundary constraints are missing in this PR as they should... | diff --git a/ir/src/error.rs b/ir/src/error.rs
index 4ee2ee00f..b9369b19b 100644
--- a/ir/src/error.rs
+++ b/ir/src/error.rs
@@ -6,4 +6,6 @@ pub enum SemanticError {
IndexOutOfRange(String),
TooManyConstraints(String),
InvalidPeriodicColumn(String),
+ MissingSection(String),
+ MissingMainTraceColum... | 9 | 9 | 0 | [{"id": "G0", "claim": "Rename the error variant for missing sections to match the source language, first to MissingSourceSection and then to MissingDeclaration, since the IR should not think about source sections.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.