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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vercel__streamdown__417 | vercel/streamdown | 417 | defect | 0a810abb99deb680a8158911ad68b78f0ed4d4f6 | 1196045bbf98b3e4fbfef9a266368a3a054bead1 | fix: prevent ordered list animation retrigger during streaming | ## Summary
Fixes #410 — Ordered list animations incorrectly retrigger when new content appears during streaming.
## Root Cause
When multiple lists share a single parsed block (because `marked` Lexer merges consecutive list items into one token), streaming updates cause the entire block to re-render through the rehyp... | diff --git a/packages/streamdown/index.tsx b/packages/streamdown/index.tsx
index e8a665ae..1dfccc30 100644
--- a/packages/streamdown/index.tsx
+++ b/packages/streamdown/index.tsx
@@ -8,6 +8,7 @@ import {
useEffect,
useId,
useMemo,
+ useRef,
useState,
useTransition,
} from "react";
@@ -18,7 +19,11 @@ im... | 2 | 2 | 2 | [{"id": "G0", "claim": "Storing the raw markdown length (content.length) in prevContentLengthRef while the animate plugin's charCounter counts HAST text node characters is a unit mismatch that can make new streaming content incorrectly skip animation.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
vercel__streamdown__92 | vercel/streamdown | 92 | defect | 7a128a27018ce9435019cad574f1fcd9ed5da77b | 96c52827f4a36c97d46d9971fcae636195c71868 | feat: adjust table component | ## Description
Updated table colors to match changes in the CodeBlock component
Added whitespace-nowrap to thead to improve table readability - (tbody remains unchanged since content can be long)
## Type of Change
<!-- Mark the relevant option with an "x" -->
- [ ] Bug fix (non-breaking change which fix... | diff --git a/.changeset/new-masks-shout.md b/.changeset/new-masks-shout.md
new file mode 100644
index 00000000..e81ccebf
--- /dev/null
+++ b/.changeset/new-masks-shout.md
@@ -0,0 +1,5 @@
+---
+"streamdown": patch
+---
+
+apply whitespace-nowrap to th and match table colors with CodeBlock
diff --git a/packages/streamdow... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test for the th component does not verify the newly added whitespace-nowrap class, leaving the PR's styling change untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__styled-jsx__108 | vercel/styled-jsx | 108 | defect | 732ae8c1d1d8dc5c5a0e22f4399218341a29e132 | 77af09955a1a00dfa52551f6dfdc7aa59644108c | Fix jsx id bug when using interpolation in template string. | Fix #107 | diff --git a/src/babel.js b/src/babel.js
index 8124b3d0..f5e26784 100644
--- a/src/babel.js
+++ b/src/babel.js
@@ -275,7 +275,7 @@ export default function ({types: t}) {
])
}
- state.jsxId = hash(state.styles.map(s => s[1]).join(''))
+ state.jsxId = hash(state.styles.map(s =>... | 2 | 1 | 1 | [{"id": "G0", "claim": "The jsx id hash could be generated from the style id instead of the style text, e.g. hash(state.styles.reduce((h, s) => h+=s[0], '')).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering the different-jsx-ids use ca... | null |
vercel__styled-jsx__210 | vercel/styled-jsx | 210 | defect | ec1fdef0ca653ccd277127efa59507df3e75cf5d | bfbc02c7d1a53f3e0656b0bc7303ee8ed02d64eb | Upgrade to Stylis v3 | Fixes #158 #146 | diff --git a/lib/style-transform.js b/lib/style-transform.js
index cfab792a..a8fabe7a 100644
--- a/lib/style-transform.js
+++ b/lib/style-transform.js
@@ -1,156 +1,82 @@
const stylis = require('stylis')
-/**
- * @type {RegExp}
- *
- * matches :global($1) capturing $1
- */
-const regExpReplaceGlobal = /:global\((.*)\... | 1 | 1 | 0 | [{"id": "G0", "claim": "The nesting error could also print the line and column number, so you can get to the origin of the error in the source file.", "category": "diagnosability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vercel__styled-jsx__75 | vercel/styled-jsx | 75 | defect | 7fcc3c2e327ae6c1deef11920f37ce0aca497732 | c5f9db703bdbeca2c4560d5bcb5710cc960e7050 | <style> as a top-level component | Fixes #72 | diff --git a/src/babel.js b/src/babel.js
index 3921c2b4..2a5000c8 100644
--- a/src/babel.js
+++ b/src/babel.js
@@ -15,16 +15,30 @@ const STYLE_COMPONENT_ID = 'styleId'
const STYLE_COMPONENT_CSS = 'css'
export default function ({types: t}) {
- const findStyles = children => (
- children.filter(el => (
- t.i... | 1 | 1 | 0 | [{"id": "G0", "claim": "Traverse from the parent node instead of calling findStyles(path.node.children), which might make the code simpler.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vercel__swr__1009 | vercel/swr | 1,009 | defect | cb4ee96659ec943f76069a5849674ba0aad291e5 | f3b375c702329f20295ded14b72b93468d6c8d8e | fix: support multiple useSWRInfinite hooks in a page | fixes #976
This PR fixes issues caused by using multiple `useSWRInfinite` on a page.
You can see the issues in the following link (v0.42).
- **v0.42**: https://codesandbox.io/s/swr-basic-forked-nw6z4
- **THIS PR**: https://codesandbox.io/s/swr-basic-forked-uo7r0
This PR also fixes #976.
https://codesandbox.io... | diff --git a/src/use-swr-infinite.ts b/src/use-swr-infinite.ts
index 63d8b88bc9..2f48e15279 100644
--- a/src/use-swr-infinite.ts
+++ b/src/use-swr-infinite.ts
@@ -67,7 +67,8 @@ function useSWRInfinite<Data = any, Error = any>(
)
let {
initialSize = 1,
- revalidateAll = false,
+ // should revalidate pag... | 3 | 3 | 3 | [{"id": "G0", "claim": "revalidateAll should not default to !!config.refreshInterval: cursor-based useSWRInfinite scenarios only need the first page revalidated when polling, and always revalidating all pages is too expensive, so it is better to let the user enable it explicitly.", "category": "design", "verdict": "sup... | null |
vercel__swr__1150 | vercel/swr | 1,150 | defect | 30d030caad7a2e93bdbe7b48d4c86ec932de5f0b | 3061d0385335d97f000adb946862f426be7b2deb | Code optimizations | Did a couple of code optimizations in this PR for better structure and code reusing. Also handles the case that `undefined` is manually set to another value<sup>*</sup>.
As a result, here's the size of the built `dist/index.js` with this PR:
- Before: 12072B
- After: 11361B
_*Although Rollup handles it automati... | diff --git a/src/config.ts b/src/config.ts
index 960fc7bbd..02e7e68b2 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -2,6 +2,7 @@ import { dequal } from 'dequal/lite'
import { wrapCache } from './cache'
import webPreset from './libs/web-preset'
+import { slowConnection } from './env'
import { Configuration, Rev... | 4 | 1 | 1 | [{"id": "G0", "claim": "`JSON.stringify(undefined)` seems to return `undefined` itself instead of a string, so maybe try `JSON.stringify(args[i]) + ''`.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `typeof` checks for `window` and `Deno` in env.... | null |
vercel__swr__1257 | vercel/swr | 1,257 | defect | d83fb173fbfc934f443425d6224bff2a541d574a | efb14597eae1afee34874bbbf35806161ef3ccc3 | feat: add getInfiniteKey to mutate the cache for useSWRInfinite | fixes #1156
~This PR adds a new API called `mutateInfinite`, which is a mutation function for `useSWRInfinite` and based on https://github.com/vercel/swr/issues/1156#issuecomment-852140879.~
This PR adds a new API called `getInfiniteKey` to get a key to mutate cache data for `useSWRInfinite`, which receives a key... | diff --git a/infinite/index.ts b/infinite/index.ts
index bcbdf92e9b..88749a304a 100644
--- a/infinite/index.ts
+++ b/infinite/index.ts
@@ -2,8 +2,8 @@
// hook where `key` and return type are not like the normal `useSWR` types.
import { useRef, useState, useCallback } from 'react'
-import useSWR, { SWRConfig } from ... | 5 | 4 | 3 | [{"id": "G0", "claim": "mutateInfinite always mutates the default cache, so when a cache provider is in use there is no way to have a mutate function that works with it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should not expose th... | null |
vercel__swr__1283 | vercel/swr | 1,283 | defect | 2dd7d6071fdabac520db9dba9d68bd96573a212c | e6d1b21a12c781ca5320402629844fe7e9285759 | Refine createCache | Fixes #1275
### Changes
* Only need to `setupOn<Event>` for cache
* Setup global listeners inside `createCache`
```js
createCache(new Map(), {
// if you want to override any event that can trigger revalidation, use following options
// override default behavior of revalidate on focus, it will revali... | diff --git a/src/types.ts b/src/types.ts
index a0c3607f1..de4ceb0d1 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -49,8 +49,8 @@ export interface Configuration<
isOnline: () => boolean
isDocumentVisible: () => boolean
- registerOnFocus: (cb: () => void) => void
- registerOnReconnect: (cb: () => void) => voi... | 5 | 5 | 1 | [{"id": "G0", "claim": "The configuration methods attachOnFocus/attachOnReconnect should be renamed to setupOnFocus (and setupOnReconnect), which is more intuitive.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Registering the global focus/reco... | null |
vercel__swr__1304 | vercel/swr | 1,304 | defect | 7afe29b1b1015ec51f8e66e4514b8c508f2d9c41 | dfa373f84a3140ea4a3c8177e0546d9582b32e9b | Breaking: drop the default fetcher | Resolves #1244 | diff --git a/README.md b/README.md
index 5a17ddc73..32fae0aa2 100644
--- a/README.md
+++ b/README.md
@@ -113,7 +113,7 @@ const { data, error, isValidating, mutate } = useSWR(key, fetcher, options)
#### Options
- `suspense = false`: enable React Suspense mode [(details)](#suspense-mode)
-- `fetcher = window.fetch`: ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test case that uses SWR (without a fetcher) to share local state.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__swr__1337 | vercel/swr | 1,337 | defect | 3bbbf5b86be0868963c12906816a7bc1ded84c15 | ea97954aa1d724336b9e86d4a0fd4047f4131b82 | Export `unstable_serialize` from SWR | SWR handles key serialization so it can just pass a string to the cache provider. This makes all the interfaces simpler. However it makes getting data from the cache (or mutating a specific key) tricky, because the serialization util isn't exposed as an API.
Previously we had #1257 to expose the serialization of the... | diff --git a/infinite/index.ts b/infinite/index.ts
index fc00ac8b9..9b0307f85 100644
--- a/infinite/index.ts
+++ b/infinite/index.ts
@@ -11,7 +11,7 @@ import useSWR, {
Middleware
} from 'swr'
import { useIsomorphicLayoutEffect } from '../src/utils/env'
-import { serialize } from '../src/utils/serialize'
+import { ... | 5 | 2 | 1 | [{"id": "G0", "claim": "The new infinite `serialize` should return an array containing all the custom prefixed cache keys (data key, context key, page-size key) so they are easier to access.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "An explicit return... | null |
vercel__swr__1435 | vercel/swr | 1,435 | defect | ec778e70c8e17c239f2837c14dea99ce9a429fb0 | e76da444c5f6576cc251dcf2c239dedc045745e7 | test: add render utilities and remove TestSWRConfig | I've introduced `TestSWRConfig`, which is a wrapper component for unit tests, and applied it to `use-swr-error.test.tsx` to avoid using a global cache shared between each test.
While refactoring other tests using the components, I've realized that this approach has a major flaw.
The downside of the approach is that... | diff --git a/test/use-swr-error.test.tsx b/test/use-swr-error.test.tsx
index d7fb907d2..60c3e192e 100644
--- a/test/use-swr-error.test.tsx
+++ b/test/use-swr-error.test.tsx
@@ -1,23 +1,20 @@
-import { act, fireEvent, render, screen } from '@testing-library/react'
+import { act, fireEvent, screen } from '@testing-librar... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment above the rerender override says it overrides rerender to use the same config, which is inaccurate — it should say the rerender wraps the element with SWRConfig again; also asks whether overriding rerender is needed at all (would the config change without the override?).", "category"... | null |
vercel__swr__1477 | vercel/swr | 1,477 | defect | f3680f70e11370195417955b04ba791ad04636b7 | 81720751425705b6c1afbf2be4d11b9c077a0e17 | Type useSWR fetcher | - [x] improve the type check process of the project. Currently we only do type check in src and test folder.
- [x] support ```useSWR({a: number, b: string}, (args) => args)```
- [x] support ```useSWR(cond() ? {a: number, b: string} : null , (args) => args)```
- [x] fix current build error
- [x] find a batter way ... | diff --git a/infinite/index.ts b/infinite/index.ts
index 5ac70ba79..7429d182a 100644
--- a/infinite/index.ts
+++ b/infinite/index.ts
@@ -5,10 +5,11 @@ import { useRef, useState, useCallback } from 'react'
import useSWR, {
SWRConfig,
KeyLoader,
- Fetcher,
SWRHook,
MutatorCallback,
- Middleware
+ Middlewa... | 9 | 3 | 0 | [{"id": "G0", "claim": "It is questioned why the Fetcher type needs the `infer R, ...infer K` pattern here instead of just one `...infer`.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The @ts-ignore (FIXME LATER) in useSWRHandler is only needed because... | null |
vercel__swr__1515 | vercel/swr | 1,515 | defect | ebf8813f9edb49f0276e2bdedb673a166ae3d0fc | e1a7a966c7626748b53c078197624ebce513e16e | fix: Ensure mutate accepts undefined as the data | Closes #1481. | diff --git a/src/use-swr.ts b/src/use-swr.ts
index bde92731e..8043b3dc8 100644
--- a/src/use-swr.ts
+++ b/src/use-swr.ts
@@ -306,8 +306,9 @@ export const useSWRHandler = <Data = any, Error = any>(
// Similar to the global mutate, but bound to the current cache and key.
// `cache` isn't allowed to change during th... | 2 | 1 | 1 | [{"id": "G0", "claim": "The eslint-disable-next-line comment added above the bound callback does not suppress the react-hooks lint warning ('useCallback received a function whose dependencies are unknown') fired at src/use-swr.ts#L315; the reviewer guesses it needs to be placed before the line of deps.", "category": "c... | null |
vercel__swr__1596 | vercel/swr | 1,596 | defect | 4f8d0b955a701707654a71f7bd766949ffb7cc12 | fdbdc62a9b05ac4ca306dd0fa82f4dfc0c44d82b | enhance: bind removeEventListener | * bind removeEventListener to window, align with addEventListener
* fix lint in test | diff --git a/jest.config.js b/jest.config.js
index 891fd7628..f98a02e87 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,6 +1,6 @@
module.exports = {
testEnvironment: 'jsdom',
- testRegex: '/test/.*\\.test\\.tsx$',
+ testRegex: '/test/.*\\.test\\.tsx?$',
modulePathIgnorePatterns: ['<rootDir>/examples/'],... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request lacks tests simulating environments such as React Native and IE11, so environment-specific regressions like the ones it fixes can go uncaught; add tests that simulate those environments.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
vercel__swr__1640 | vercel/swr | 1,640 | defect | 98556e12d394c819fd69535ad5fe0dd980e79fe9 | ede734b9b802699cbee1ad2186a800219a2ff45b | Tweak types | * make ```useSWR<{ id: number }>('/api/', (key) => ({ id: 123 }))``` still works as before
so users dont need to update their current code
* add test case for #1586
* remove some comments (replace with ts playground link later) | diff --git a/infinite/types.ts b/infinite/types.ts
index e77c75b22..dec019410 100644
--- a/infinite/types.ts
+++ b/infinite/types.ts
@@ -1,4 +1,4 @@
-import { SWRConfiguration, SWRResponse, Arguments } from 'swr'
+import { SWRConfiguration, SWRResponse, Arguments, OriginFetcher } from 'swr'
type FetcherResponse<Data... | 3 | 2 | 1 | [{"id": "G0", "claim": "Huozhi asks the author to elaborate on which issue the item 'make useSWR<{ id: number }>('/api/', (key) => ({ id: 123 })) still works as before' is trying to resolve.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The exported typ... | null |
vercel__swr__1729 | vercel/swr | 1,729 | defect | 68dfcc1ed529cc1814d9c39c6a27c3d4912f0365 | 40820c4a398043c1c49eb7c530496bd24e7cc905 | feat: Add `populateCache` option to `mutate` | This is cherry-picked from #1450. Currently we only support 2 types of `mutate` calls:
1. `mutate()`
2. `mutate(data, revalidate = true)`
This PR extends the second parameter with another option:
```js
mutate(data, {
populateCache: boolean = true
})
```
If disabled, `data` will not be written to the ... | diff --git a/src/types.ts b/src/types.ts
index 70ededc14..b4be350fc 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -142,13 +142,19 @@ export type MutatorCallback<Data = any> = (
currentValue?: Data
) => Promise<undefined | Data> | undefined | Data
+export type MutatorOption = {
+ revalidate?: boolean
+ populat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new MutatorOption type should be exported from the core module (src/index.ts).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vercel__swr__1861 | vercel/swr | 1,861 | defect | f24c621ebb29d423aa15ecbab01d7316daa0a588 | 9e50253de2e4ba160d9687b86321363f861a23f7 | feat: support functional optimisticData | Resolves #1858 | diff --git a/src/types.ts b/src/types.ts
index 7029e622c..ae77d478b 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -145,7 +145,7 @@ export type MutatorCallback<Data = any> = (
export type MutatorOptions<Data = any> = {
revalidate?: boolean
populateCache?: boolean | ((result: any, currentData: Data) => Data)
- ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rename the optimisticData callback parameter from `data` to `currentData` in the type so TypeScript gives better intellisense.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The optimisticData callback's return type shoul... | null |
vercel__swr__1947 | vercel/swr | 1,947 | defect | a9909668ac21a01c11c76b8e872e322db807b9df | 9aa237328520dc018b57bc5d4356a662df35f2a2 | fix: mutate args for useSWRInfinite hook | This PR fixes the bug mentioned in #1899.
As mentioned in the documentation (https://swr.vercel.app/docs/pagination#return-values), mutate function returned by the useSWRInfinite hook should work the same as the useSWR hook. | diff --git a/infinite/index.ts b/infinite/index.ts
index d8a4f500c..828f696a0 100644
--- a/infinite/index.ts
+++ b/infinite/index.ts
@@ -180,9 +180,13 @@ export const infinite = (<Data, Error>(useSWRNext: SWRHook) =>
]
) => {
const data = args[0]
+
+ // When passing as a bool... | 3 | 3 | 3 | [{"id": "G0", "claim": "A test should be added so the new mutate-args revalidation behavior won't regress in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The mutate function returned by useSWRInfinite should support the optimisticData, pop... | null |
vercel__swr__1989 | vercel/swr | 1,989 | defect | bb7cc1f8d9262d5380ca878ca3d7fa31c6c52eed | 01338a78541798edb95b7d0e5a45dfcf420eb37c | feat: mutate filter | Closes #1946.
## Description
The global `mutate` API (imported directly from SWR or returned by `useSWRConfig`) can now accept a filter function, to match multiple keys for mutating:
```js
await mutate(
key => typeof key === 'string' && key.startsWith('/api/'),
undefined, // newData | (data => newData)
... | diff --git a/_internal/types.ts b/_internal/types.ts
index d755d66df..39954d821 100644
--- a/_internal/types.ts
+++ b/_internal/types.ts
@@ -1,6 +1,8 @@
import * as revalidateEvents from './constants'
import { defaultConfig } from './utils/config'
+export type Falsy = undefined | null | false
+
export type GlobalS... | 4 | 3 | 3 | [{"id": "G0", "claim": "The mutator's type should be overloaded so that only passing a key filter returns Data[] and existing calls keep returning the bare Data.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The key filter should receive the original ke... | null |
vercel__swr__2048 | vercel/swr | 2,048 | defect | 790e044d9d7d58194c2493a24073f23272af99c2 | 4eebfa8aaad6ac97580d1766db7099a62c6d1130 | fix: isLoading and isValidating should always respect cache value | fix #2030
https://codesandbox.io/s/swr-2030-fm0g36 | diff --git a/core/use-swr.ts b/core/use-swr.ts
index f8f917c2c..bfcd6b21a 100644
--- a/core/use-swr.ts
+++ b/core/use-swr.ts
@@ -204,8 +204,8 @@ export const useSWRHandler = <Data = any, Error = any>(
isInitialMount &&
shouldDoInitialRevalidation
)
- const isValidating = cached.isValidating || defaultVali... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test case based on the #2030 reproduction covering the changed isLoading/isValidating behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__swr__2338 | vercel/swr | 2,338 | defect | 2cf5b021472e1abd70bd54a8a3dd5e1bfc82fc29 | d79c367e0b1ff71950cd6311bc700b2ceb2ac6b8 | fix: delay revalidation if a key is already active and has error | close #2336
The reason for #2336 is that
every time a revalidation is finished, a new swr hook will mount and trigger a new revalidation.
`isValidating` will also cause similar problem here.
https://codesandbox.io/s/isvalidating-infinite-render-xgwyyz | diff --git a/core/use-swr.ts b/core/use-swr.ts
index a7789a13de..65bc833646 100644
--- a/core/use-swr.ts
+++ b/core/use-swr.ts
@@ -511,6 +511,8 @@ export const useSWRHandler = <Data = any, Error = any>(
return
}
+ const isKeyHasActiveInstance =
+ EVENT_REVALIDATORS[key] && EVENT_REVALIDATORS[key].... | 4 | 2 | 1 | [{"id": "G0", "claim": "The name `isKeyHasActiveInstance` is a bit unclear and would be clearer as `hasRevalidator`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The early return `if (isKeyHasActiveInstance && !isUndefined(error)) return` also... | null |
vercel__swr__2415 | vercel/swr | 2,415 | defect | f7004ac37b2b06111043bb6f262f80fb4d5cc381 | abd38f6668dc6d237cdc2a71374c2e8d0a3965ac | fix: Error retry should be handled by global revalidator instead of local revalidation function | close #2412 which was introduced in #2338
## Problem
```tsx
function Demo() {
useSWR('/key', () => { throw new Error('error') })
useSWR('/key', () => { throw new Error('error') })
}
```
Previously, if we have two swr hook, There will be two retry task pushed into queue. If first hook unmount, the erro... | diff --git a/_internal/constants.ts b/_internal/constants.ts
index cf0083b98..b055b8067 100644
--- a/_internal/constants.ts
+++ b/_internal/constants.ts
@@ -1,3 +1,4 @@
export const FOCUS_EVENT = 0
export const RECONNECT_EVENT = 1
export const MUTATE_EVENT = 2
+export const ERROR_REVALIDATE_EVENT = 3
diff --git a/_i... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should not skip the 'should trigger the onLoadingSlow and onSuccess event with the lastest version of the callbacks' test; explain why it is skipped (and un-skip it).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vercel__swr__2576 | vercel/swr | 2,576 | defect | c2b2fb753ab4186191f07271578c3b77d615dbab | 38adbead89960efcb76be37a905e3b28e0ee3d61 | fix: Fix dependency tracking and useSES bug | Fixes #2446. CC @promer94.
The overall idea of `useSES` is that state changes are triggered from the external. It works in a pipeline of "external state change → compare it with local state's snapshot → trigger re-render and update local state". The main catch here is that SWR's dependency tracking system (`stateDep... | diff --git a/core/use-swr.ts b/core/use-swr.ts
index 7359444d0..e67eeed55 100644
--- a/core/use-swr.ts
+++ b/core/use-swr.ts
@@ -21,6 +21,7 @@ import {
internalMutate,
revalidateEvents,
mergeObjects
+ // stableHash
} from 'swr/_internal'
import type {
State,
@@ -102,32 +103,41 @@ export const useSWRHandl... | 4 | 4 | 2 | [{"id": "G0", "claim": "The rewrite of `isEqual` into `compareSelectedSnapshots` results in more calls to `compare` than the previous version, so the use-swr-refresh test snapshot is outdated and the test fails; the snapshots need updating.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "in... | null |
vercel__swr__2666 | vercel/swr | 2,666 | defect | 7badbb9d428d2ac48873b3a3f11d54e7cec0c7cf | efbcdf6d42ac4dec86d8c7a47f26fb9998aa62de | Fix Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined | This PR contains the fixes for the issue: https://github.com/vercel/swr/issues/2665.
This is my first contribution to SWR. Thank you in advance :) | diff --git a/mutation/types.ts b/mutation/types.ts
index c573b5747..10be0b4ce 100644
--- a/mutation/types.ts
+++ b/mutation/types.ts
@@ -56,7 +56,7 @@ interface TriggerWithArgs<
ExtraArg = never
> {
<SWRData = Data>(
- extraArgument: ExtraArg,
+ extraArgument?: ExtraArg,
options?: SWRMutationConfigura... | 3 | 3 | 3 | [{"id": "G0", "claim": "Making `extraArgument` unconditionally optional in `TriggerWithArgs` is not the right fix and breaks type validation for required `args`; the correct fix is a separate `TriggerWithOptionsArgs` type selected when `ExtraArg` includes `undefined`, instead of weakening the required case.", "category... | null |
vercel__swr__2708 | vercel/swr | 2,708 | defect | d1b7169adf01feaf47f46c556208770680680f6f | 1dbaf4fc4d2a26eb05b17ba73a5ecd3a5ea3e543 | fix(mutate): fix types of mutate/trigger; make mutate/trigger always return the result of fetcher | Fix for [issue 2690](https://github.com/vercel/swr/issues/2690) [issue 2647](https://github.com/vercel/swr/issues/2647) and [issue 2661](https://github.com/vercel/swr/issues/2661)
1. Make mutate/trigger always return the result of fetcher
2. Make KeyedMutator/ScopedMutator accept generic type parameters to make the... | diff --git a/_internal/src/types.ts b/_internal/src/types.ts
index 4d0aef278a..b61a434c4c 100644
--- a/_internal/src/types.ts
+++ b/_internal/src/types.ts
@@ -310,14 +310,17 @@ export type MutatorCallback<Data = any> = (
currentData?: Data
) => Promise<undefined | Data> | undefined | Data
-export type MutatorOpti... | 1 | 1 | 0 | [{"id": "G0", "claim": "The generic parameters of MutatorOptions should be renamed per the suggested `MutatorOptions<Data = any, MutationData = Data>` shape and a JSDoc explaining what the generics mean should be added, because the current SWRData/Data naming is still confusing.", "category": "maintainability", "verdic... | null |
vercel__swr__2753 | vercel/swr | 2,753 | defect | e510955d42b472c8d45034c51b8acc12980aa2e7 | 2fb2d297fd5202a93bd8eaeab1dcd1263399d9db | fix: default to fetch type in keyed mutator | Closes #2744
Hi,
as a few other also noticed the typings used in the bound mutator do not default anymore to the data type used in `useSWR<ThisOne>` and needs to be specified explicitly everytime right now.
Looking at the other types surrounding the `KeyedMutator` type it seems reasonable to default to the da... | diff --git a/_internal/src/types.ts b/_internal/src/types.ts
index 139c8f1a76..e49d8e05d5 100644
--- a/_internal/src/types.ts
+++ b/_internal/src/types.ts
@@ -394,7 +394,7 @@ export interface ScopedMutator {
* @typeParam Data - The type of the data related to the key
* @typeParam MutationData - The type of the data... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a types test covering the keyed mutator type change so the regression can be avoided later.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__swr__4118 | vercel/swr | 4,118 | defect | ba10cf9ed8ac23f83842dd7f8bc62f110ffac290 | 3b38a3ad3cbee41aef6f37cbaa8e675b7ea76bd9 | fix: check "if (!error)" skip error if value is cast to false | Hello!
"if (!error)" make cast value to boolean type and if value is cast to false then the error is skipped.
Sandbox: https://codesandbox.io/p/sandbox/6s9dw7
Example:
````javascript
import useSWRMutation from "swr/mutation";
const fetcher = () => {
return new Promise((_, reject) => reject("")); // or ... | diff --git a/src/_internal/utils/mutate.ts b/src/_internal/utils/mutate.ts
index 6ea91bec08..071af7803e 100644
--- a/src/_internal/utils/mutate.ts
+++ b/src/_internal/utils/mutate.ts
@@ -123,6 +123,7 @@ export async function internalMutate<Data>(
let data: any = _data
let error: unknown
+ let isError = f... | 1 | 1 | 1 | [{"id": "G0", "claim": "Can you add a test for this change (the falsy-error handling in internalMutate)?", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__swr__4212 | vercel/swr | 4,212 | defect | b75456a8ceb7947f745ca79203c2f6577cb98ea2 | 5e7d55bbd758604caf9387b1900e2e1355effb22 | fix: isHydration will cause unnecessary rerender | close #4210
The current solution is inspired by seb's previous tweet (The original tweet was deleted)
<img width="1234" height="974" alt="Screenshot 2026-01-25 at 16 36 39" src="https://github.com/user-attachments/assets/f54e6055-d35a-4714-b8fc-aeaa339c8c97" />
| diff --git a/e2e/site/app/render-count/page.tsx b/e2e/site/app/render-count/page.tsx
new file mode 100644
index 000000000..af7c95532
--- /dev/null
+++ b/e2e/site/app/render-count/page.tsx
@@ -0,0 +1,8 @@
+'use client'
+import useSWR from 'swr'
+
+export default function Page() {
+ useSWR('swr should not cause extra re... | 2 | 1 | 0 | [{"id": "G0", "claim": "The expected warning message contains a spelling error: \"fethcing\" should be \"fetching\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since this change, the reporter's client-side Next.js app sees frequent failures to... | null |
vercel__swr__521 | vercel/swr | 521 | defect | ff3e05eac03b3164e4a128f99977bb7c08ef84a2 | 9f07ee25a95fef02f0cad628024292371c6d0d52 | fix: `eventsRef` should trigger the lastest version of config callbacks | # fix
Resolve: #508 #515
Now the `eventsRef` read the config via the `ref`,which always capture the lastest version of the config callbacks.
This fix the problem of the stale closure related to the config callbacks. | diff --git a/src/use-swr.ts b/src/use-swr.ts
index 9d5a5ad86..62c482a3e 100644
--- a/src/use-swr.ts
+++ b/src/use-swr.ts
@@ -192,6 +192,11 @@ function useSWR<Data = any, Error = any>(
config
)
+ const lastestConfig = useRef(config)
+ useIsomorphicLayoutEffect(() => {
+ lastestConfig.current = config
+ }... | 4 | 1 | 1 | [{"id": "G0", "claim": "Other code paths that use the config may have the same stale-closure problem when the config passed to useSWR changes along the component lifecycle, and that scenario should be considered too.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id":... | null |
vercel__swr__757 | vercel/swr | 757 | defect | db6b62fb52b4ca8588271d82957b852b3b3dfcad | 82e67fe4295bcd2d5832f92bad37dbdf82fab700 | fix: mark isValidating as false when key is falsy | Fix #199
~~* tear down work when key turns to empty, unmount state should be false if it's mounted before.~~
~~* dispatch `isValidating` as `false`~~
scenario: key: v1 -> v2 -> ''
~~in this case, when transfer to empty key the unmountedRef will be set to `true`, which lead dispatch take no effect. so I set i... | diff --git a/src/use-swr.ts b/src/use-swr.ts
index 5cfd4e22bf..b5060ddb26 100644
--- a/src/use-swr.ts
+++ b/src/use-swr.ts
@@ -531,7 +531,12 @@ function useSWR<Data = any, Error = any>(
// mounted (client side rendering)
useIsomorphicLayoutEffect(() => {
- if (!key) return undefined
+ if (!key) {
+ i... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should probably not touch the layout effect's `!key` early-return path, since when `key` is falsy the effect returns `undefined` and has no cleanup to reset `unmountedRef` back to `true`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
vercel__swr__833 | vercel/swr | 833 | defect | b0b75b91b96c0beb07d1131f8934fbe70490ed8f | 54d7c85f0a0b8808ac5c6b7988d534811cbe9f32 | Fix #832 | close #832
Repro: https://codesandbox.io/s/swr832-ysc9m?file=/src/App.js | diff --git a/src/use-swr.ts b/src/use-swr.ts
index 78c5d233e..55c132f63 100644
--- a/src/use-swr.ts
+++ b/src/use-swr.ts
@@ -215,6 +215,10 @@ const mutate: mutateInterface = async (
if (error) throw error
return cache.get(key)
})
+ } else {
+ // eslint-disable-next-line require-atomic-updates
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks that line 54 of src/use-swr.ts be changed from `ts++` to `++ts` in this PR, since that pre-existing mistake makes the first call of now() return -1 and the second return 0, which he believes will fix the bug where `MUTATION_END_TS[key] === 0`.", "category": "correctness", "verd... | null |
vercel__swr__932 | vercel/swr | 932 | defect | 22ef8aa389a15b18e091df2533b65ffa0c654e2b | d47cacd0a025be3d8f837fb66944e619244c82a9 | test: refactor use-swr-cache.test.tsx | I've refactored `use-swr-cache.test.tsx` based on [Common mistakes with React Testing Library](https://kentcdodds.com/blog/common-mistakes-with-react-testing-library).
I've sometimes experienced that the unit tests of SWR become flaky and are failed, but the failed tests got passed when I re-run the tests.
In addit... | diff --git a/.eslintrc b/.eslintrc
index 6c449bbdf..e2513facc 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -16,7 +16,9 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
- "prettier/@typescript-eslint"
+ "prettier/@typescript-eslint",
+ "plugin:j... | 1 | 1 | 0 | [{"id": "G0", "claim": "The extra `toBeInTheDocument()` assertion after `await screen.findByText('custom cache message')` is unnecessary because the await itself throws if the text is not in the document, so it should be dropped.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vercel__swr__98 | vercel/swr | 98 | defect | 4191b4003df5fb4913b11350b4cd24313c0b8134 | 2430f38c9d81e3b5611a6e91010832c9bd8d8cf5 | Args as key | This is a simple and efficient implementation of a frequently requested feature.
Currently if you want to pass outside args to fetcher (which may change during the lifecycle):
```js
useSWR('key', () => fetcher(...args))
```
It doesn't work, because **the cache is indexed by the key**. Which means if your `args`... | diff --git a/src/libs/hash.ts b/src/libs/hash.ts
new file mode 100644
index 000000000..c4ef6ce4b
--- /dev/null
+++ b/src/libs/hash.ts
@@ -0,0 +1,28 @@
+// use WeakMap to store the object->key mapping
+// so the objects can be garbadge collected.
+// WeakMap uses a hashtable under the hood, so the lookup
+// complexity ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The comment misspells \"garbage\" as \"garbadge\"; use the suggested wording \"// so the objects can be garbage collected.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the .only modifier from the new 'should accep... | null |
vercel__terraform-provider-vercel__145 | vercel/terraform-provider-vercel | 145 | defect | e3c7e0668240fe6d07c377a0b78f47facdc292a9 | 889ba10f1c0a7cd3bdfd98e5f6d1babac297358b | Update Deployment Protection support | - Add support for [Trusted IPs](https://vercel.com/docs/security/deployment-protection/methods-to-protect-deployments/trusted-ips)
- **[Breaking change]** Replace `protect_production` (boolean) with `deployment_type` (string) for [Password Protection](https://vercel.com/docs/security/deployment-protection/methods-to-p... | diff --git a/client/project_get.go b/client/project_get.go
index 874637cc..fbde3af6 100644
--- a/client/project_get.go
+++ b/client/project_get.go
@@ -58,6 +58,12 @@ type Protection struct {
DeploymentType string `json:"deploymentType"`
}
+type TrustedIps struct {
+ DeploymentType string `json:"deploym... | 5 | 3 | 3 | [{"id": "G0", "claim": "vercel_authentication no longer needs to be a nested attribute; a flat string deployment_type attribute (which could then carry a Default) would do.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Because Computed (which existed only... | null |
vercel__terraform-provider-vercel__206 | vercel/terraform-provider-vercel | 206 | defect | c18074ee15ed7b114077a424f0bd6f8dd6569f35 | a9d82fc197a29ff572b73725d35267ea821171c6 | Deprecate `vercel_project_function_cpu` and merge into `vercel_project` | The underlying upstream API used in `vercel_project_function_cpu` has been deprecated and no longer exists. This configuration can now be managed via Update Project API.
This PR introduces the new `resource_config` attribute and its nested attributes `function_default_cpu_type` and `function_default_timeout`
- ht... | diff --git a/client/project.go b/client/project.go
index 14779bd5..cf40dde0 100644
--- a/client/project.go
+++ b/client/project.go
@@ -53,6 +53,7 @@ type CreateProjectRequest struct {
PublicSource *bool `json:"publicSource"`
RootDirectory *string `json:"roo... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a validator to function_default_timeout because the value must be between 1 and 900 (Validators: []validator.Int64{int64GreaterThan(0), int64LessThan(901)}).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__terraform-provider-vercel__257 | vercel/terraform-provider-vercel | 257 | defect | 52e7c220e1b2798b905b705aa373f2514fc06b93 | 6735b07b95d27712eb6f877b2e7dadeead0c7a00 | [Firewall Config] Support values in conditions | Add suport for values in firewall config rule conditions that are using operators that require a list
| diff --git a/client/firewall_config.go b/client/firewall_config.go
index 5b7ee8c2..3468be34 100644
--- a/client/firewall_config.go
+++ b/client/firewall_config.go
@@ -33,11 +33,11 @@ type ConditionGroup struct {
}
type Condition struct {
- Type string `json:"type"`
- Op string `json:"op"`
- Neg bool `json:"... | 4 | 4 | 0 | [{"id": "G0", "claim": "The Condition struct's Value field should be declared as `any` rather than `interface{}`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request comments out the mustHaveEnv calls for VERCEL_TERRAFORM_TESTING_GIT... | null |
vercel__terraform-provider-vercel__34 | vercel/terraform-provider-vercel | 34 | defect | dd96817ad7e303bbc362e8241682c7314319cc2d | 72815df2672cc84feece1e0e9793630f8052a963 | Add support for serverless_function_region and ignore_command on Project resources |
Closes #28 | diff --git a/client/project_create.go b/client/project_create.go
index ed86914f..40a3fbdd 100644
--- a/client/project_create.go
+++ b/client/project_create.go
@@ -29,16 +29,19 @@ type EnvironmentVariable struct {
// CreateProjectRequest defines the information necessary to create a project.
type CreateProjectReques... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment on ProjectResponse should capitalize 'vercel' to 'Vercel'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment on GetProject should capitalize 'vercel' to 'Vercel'.", "category": "documentation", "verdi... | null |
vercel__terraform-provider-vercel__344 | vercel/terraform-provider-vercel | 344 | defect | 2d70d1716adc6a310053f472a5d2b476990f6eee | f41ccdefe78c21f1f52269318cbf90795909c037 | Create dsync groups data source | Adds the `vercel_dsync_groups` data source:
```tf
data "vercel_dsync_groups" "acme" {
team_id = "team_xyz"
}
``` | diff --git a/client/dsync_groups.go b/client/dsync_groups.go
new file mode 100644
index 00000000..19054a7f
--- /dev/null
+++ b/client/dsync_groups.go
@@ -0,0 +1,54 @@
+package client
+
+import (
+ "context"
+ "fmt"
+
+ "github.com/hashicorp/terraform-plugin-log/tflog"
+)
+
+type DsyncGroup struct {
+ ID string `json:... | 3 | 3 | 2 | [{"id": "G0", "claim": "Add an example configuration for the data source in the examples directory.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "team_id should not be Required; it should be Optional and Computed so the provider's configured team... | null |
vercel__terraform-provider-vercel__380 | vercel/terraform-provider-vercel | 380 | defect | 195d15f0bd840d6f4c17af0708c2c25fac9c4eaa | 4786273c7b51acc06763820a06f0c78f77363505 | Add `data "vercel_domain_config"` | This PR adds `data "vercel_domain_config"` so one can get recommended cname or ipv4 values associated with their project and domain.
Example usage:
```tf
resource "vercel_project" "my_awesome_project" {
name = "my-awesome-project"
}
#
# New "vercel_domain_config"
#
data "vercel_domain_config" "example_... | diff --git a/client/domain_config.go b/client/domain_config.go
new file mode 100644
index 00000000..32fd5b62
--- /dev/null
+++ b/client/domain_config.go
@@ -0,0 +1,69 @@
+package client
+
+import (
+ "context"
+ "fmt"
+
+ "github.com/hashicorp/terraform-plugin-log/tflog"
+)
+
+type recommendedValue struct {
+ Rank int... | 4 | 3 | 0 | [{"id": "G0", "claim": "Returning `RecommendedIPv4s` as a `[]string` is questionable because the code only ever keeps the single rank-1 value from `apiResponse.RecommendedIPv4` — is this intentional, and should it be a plain `string` or should the full ranked set be returned as an ordered list?", "category": "design", ... | null |
vercel__turborepo__12096 | vercel/turborepo | 12,096 | defect | 03b79e0a758731f53c8e655db8a07b4e4e7ebe37 | 2b7122b329baefe499f900fcaa9476b08a43f9f7 | perf: Eliminate per-directory stat syscalls in untracked file detection | ## Summary
- Pre-build a `Gitignore` matcher from tracked `.gitignore` files at walk start, replacing the `ignore` crate's per-directory `.gitignore`/`.git`/`.ignore` probing
- Apply rules via `filter_entry` for directory-level subtree pruning
- Discover untracked `.gitignore` files in a post-walk filter to preserve c... | diff --git a/crates/turborepo-scm/src/git_index_regression_tests.rs b/crates/turborepo-scm/src/git_index_regression_tests.rs
index 22f3c90dec67cf..9147ed309b636d 100644
--- a/crates/turborepo-scm/src/git_index_regression_tests.rs
+++ b/crates/turborepo-scm/src/git_index_regression_tests.rs
@@ -820,3 +820,290 @@ fn test... | 1 | 1 | 1 | [{"id": "G0", "claim": "Nested .gitignore patterns are applied globally instead of being scoped to their containing directory, causing files to be incorrectly ignored across the entire repository.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__turborepo__12175 | vercel/turborepo | 12,175 | defect | 0efbe300169c6aeffa4167d60a9a1c5b90308db5 | 4aa6fdd7f6e3294eac02e9118b26aa2543eeca83 | feat: Remove daemon from watch mode | ## Summary
Replaces the daemon gRPC IPC in `turbo watch` with in-process file watching. All watcher components are instantiated directly in `WatchClient`, eliminating the daemon as a dependency for watch mode.
- Introduces `OutputWatcher` trait to abstract output change tracking, replacing `DaemonClient` in `RunCache... | diff --git a/Cargo.lock b/Cargo.lock
index f83b5604d86cca..bda57d08a8ec03 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7979,7 +7979,6 @@ dependencies = [
"tracing",
"turbopath",
"turborepo-cache",
- "turborepo-daemon",
"turborepo-hash",
"turborepo-repository",
"turborepo-scm",
diff --git a/crates/turborepo-... | 1 | 1 | 1 | [{"id": "G0", "claim": "PackageWatcher is dropped immediately after WatchClient::new() returns because it is not stored in the FileWatching struct, causing its background task to exit and the HashWatcher to enter a CPU-spinning tight loop.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ... | null |
vercel__turborepo__12199 | vercel/turborepo | 12,199 | defect | 9b0c199c06aed93ff40d3282e97247e912d06d1b | 1c7cc7f13edae78bd613d292ac82557cb925f548 | perf: Reuse input hashes and trim pnpm lockfile allocations | ## Summary
- reuse repo-index blob OIDs for clean tracked files matched by explicit `inputs`, including parent-path matches, instead of sending them back through `hash_objects`
- reuse the same repo-index split for explicit include literals/globs in the mixed default-plus-input path
- reduce pnpm lockfile parser alloca... | diff --git a/crates/turborepo-lockfiles/src/pnpm/data.rs b/crates/turborepo-lockfiles/src/pnpm/data.rs
index d7a0a553e8c92..93bee69e1d2d4 100644
--- a/crates/turborepo-lockfiles/src/pnpm/data.rs
+++ b/crates/turborepo-lockfiles/src/pnpm/data.rs
@@ -279,7 +279,9 @@ impl PnpmLockfile {
}
fn build_dependency_i... | 2 | 2 | 1 | [{"id": "G0", "claim": "The ARCHITECTURE.md line added by this PR should drop the word \"now\" (\"clean tracked matches reuse blob OIDs\" instead of \"now reuse\"), per the author's own suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
vercel__turborepo__12315 | vercel/turborepo | 12,315 | defect | cbbdc89383198374ed3a7fbf71b9af263e061a34 | 44ffe3920f0c5c793b36b2f8bb54524f8292f474 | refactor: Route `run`/`watch` output through unified `TerminalSink` | ## Summary
- Convert all direct `stdout`/`stderr` writes in the `turbo run` hot path to `turborepo_log` so the TUI doesn't get corrupted by rogue output
- Merge `StdoutSink` and `TerminalSink` into a single sink with three modes: **Active** (Info→stdout, Warn/Error→stderr), **StderrOnly** (for `--graph`/`--dry=json... | diff --git a/crates/turborepo-lib/src/cli/mod.rs b/crates/turborepo-lib/src/cli/mod.rs
index 58cffdc692c05f..8c035626d77cca 100644
--- a/crates/turborepo-lib/src/cli/mod.rs
+++ b/crates/turborepo-lib/src/cli/mod.rs
@@ -1432,12 +1432,14 @@ async fn run_main(
initialize_deferred_telemetry_client(http_client.clon... | 1 | 1 | 1 | [{"id": "G0", "claim": "Routing `turborepo_log::error()` through the unified `TerminalSink` makes error output carry a prepended `ERROR` badge, so GitHub Actions can no longer recognize the `::error::` workflow command annotations that must appear at the start of the line.", "category": "correctness", "verdict": "suppo... | null |
vercel__turborepo__12360 | vercel/turborepo | 12,360 | defect | 5c44683176111d51545cf4831d9074630ae9719f | 3399254cb82b12afaba850ee62fce32296c65145 | feat: Include `globalDependencies` in prune behind Future Flag | ## Summary
- Adds a `pruneIncludesGlobalFiles` future flag that resolves `globalDependencies` globs and copies matched files into the `turbo prune` output
- Without this flag, `globalDependencies` entries are preserved in the pruned `turbo.json` but the actual files (e.g. root `tsconfig.json`) are not copied — caus... | diff --git a/apps/docs/content/docs/reference/configuration.mdx b/apps/docs/content/docs/reference/configuration.mdx
index bc5a41d533ead..b05b96d8a865a 100644
--- a/apps/docs/content/docs/reference/configuration.mdx
+++ b/apps/docs/content/docs/reference/configuration.mdx
@@ -50,6 +50,13 @@ By default, only the root pa... | 1 | 1 | 1 | [{"id": "G0", "claim": "copy_global_dependencies() can overwrite the pruned turbo.json with the original unpruned version when a globalDependencies glob matches turbo.json or turbo.jsonc.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__turborepo__12382 | vercel/turborepo | 12,382 | defect | 3e2b9bb9a34cf6e79dce90acb934ad5b6e8db9ae | 0e7ba6fd2d3f08a998888d5a666c4359c5d01417 | feat: Deprecate `turbo-ignore` in favor of `turbo query affected` | ## Summary
- Adds `--exit-code` flag to `turbo query affected` for CI gating (exit 1 = affected, 0 = not affected)
- Deprecates `turbo-ignore` with a runtime warning and docs notices
- Adds migration guide from `turbo-ignore` to `turbo query affected`
Closes #6348
Closes #8625
## Why
`turbo-ignore` was a... | diff --git a/apps/docs/content/docs/crafting-your-repository/constructing-ci.mdx b/apps/docs/content/docs/crafting-your-repository/constructing-ci.mdx
index 17a52d492755f..19ae00e8d2623 100644
--- a/apps/docs/content/docs/crafting-your-repository/constructing-ci.mdx
+++ b/apps/docs/content/docs/crafting-your-repository... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc sentence uses \"I return `0` when empty\" — a first-person pronoun where the third-person reference to the command (\"It returns `0` when empty\") belongs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc sent... | null |
vercel__turborepo__12519 | vercel/turborepo | 12,519 | defect | 4a4e661f46dfad374ea35db94991b916389b7e2c | f1f0018b625b2b34bdadc072dc799715e9432fd6 | fix: Preserve per-workspace lockfiles during pnpm pruning | ## Summary
- When a pnpm repo uses `shared-workspace-lockfile=false`, `turbo prune` previously merged all per-workspace lockfiles into a single shared lockfile and rewrote `.npmrc` to force `shared-workspace-lockfile=true`. This broke `pnpm install` in the pruned output because the lockfile structure didn't match the ... | diff --git a/crates/turborepo-lib/src/commands/prune.rs b/crates/turborepo-lib/src/commands/prune.rs
index 7c3bd1644c1f9..d70816b257829 100644
--- a/crates/turborepo-lib/src/commands/prune.rs
+++ b/crates/turborepo-lib/src/commands/prune.rs
@@ -15,6 +15,7 @@ use turbopath::{
use turborepo_repository::{
package_gr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pnpm_per_workspace_lockfile test fixture is missing a .npmrc file, so the per-workspace lockfile code path never executes and the test assertions panic.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__vercel__11064 | vercel/vercel | 11,064 | defect | d4cc520814e23cb496c8ecac5331bc3c95a19317 | 0dce5f41ee5faf1fba16431637b54ecc947eac10 | support parse go mod file with patch version | close #11063 | diff --git a/packages/go/src/go-helpers.ts b/packages/go/src/go-helpers.ts
index c2bf273e23c3..c337e0b13ac3 100644
--- a/packages/go/src/go-helpers.ts
+++ b/packages/go/src/go-helpers.ts
@@ -432,11 +432,12 @@ async function parseGoModVersion(
try {
const content = await readFile(file, 'utf8');
- const matc... | 1 | 1 | 1 | [{"id": "G0", "claim": "parseGoModVersion should be refactored to accept the go.mod content as a string parameter, be exported from the file, and be covered by a new unit-test file with tests around how the version string is parsed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
vercel__vercel__14653 | vercel/vercel | 14,653 | defect | 540fb3594de35206b0a50d894d28a7d4d788b44b | bf31f6a59b88bda8b3b0883328297c79157d0ea3 | feat(cli): add `vercel blob store list` command | ## Summary
Add a new CLI command `vercel blob store list` that lists all Blob stores for a team, enabling users to see their blob stores directly from the CLI without needing to switch to the dashboard.
**Resolves: STO-1475**
## Features
- Lists all blob stores with name, ID, status, region, size, file count, conne... | diff --git a/packages/cli/src/commands/blob/command.ts b/packages/cli/src/commands/blob/command.ts
index 2c1906c61dee..652456fab390 100644
--- a/packages/cli/src/commands/blob/command.ts
+++ b/packages/cli/src/commands/blob/command.ts
@@ -229,12 +229,54 @@ export const getStoreSubcommand = {
examples: [],
} as cons... | 5 | 2 | 0 | [{"id": "G0", "claim": "A future PR will add a `format` param supporting `json`, and the reviewer suggests also leaving the `json` option for discoverability (this can be left for now).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer would li... | null |
vercel__vercel__15785 | vercel/vercel | 15,785 | defect | 0671d2dada84a7c8267c4767f6d473b63018d402 | d1d54b1e1f12e6467da9d685184bd959568a1403 | [microfrontends] allow non interactive creation of MFE group if within free tier billing | Updates microfrontends create-group to support safe non-interactive usage on the free tier while still blocking non-interactive flows that would impact billing.
Adds explicit non-interactive route flags for multi-project groups and expands unit tests to cover billing gates, flag validation, and route parsing edge c... | diff --git a/.changeset/cool-rules-build.md b/.changeset/cool-rules-build.md
new file mode 100644
index 000000000000..a2b475241539
--- /dev/null
+++ b/.changeset/cool-rules-build.md
@@ -0,0 +1,5 @@
+---
+'vercel': patch
+---
+
+Improve `vercel microfrontends create-group` non-interactive behavior by allowing free-tier-... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new CLI flag should be named `default-route` or `project-default-route` instead of `project-route`, because the name suggests it adds paths to the microfrontends.json config.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In n... | null |
vercel__vercel__15891 | vercel/vercel | 15,891 | defect | 2d7d14db1c6448f716d1ccc30844b43f47e8e6ee | 7b0d822ef3e0ead7f629aa2ed0865414b3102f10 | Address bundling failures for vanilla node packages | # Description
We are seeing failures in our vanilla node bundling. This PR aims to address it | diff --git a/.changeset/khaki-tips-move.md b/.changeset/khaki-tips-move.md
new file mode 100644
index 000000000000..ac4a968f7294
--- /dev/null
+++ b/.changeset/khaki-tips-move.md
@@ -0,0 +1,5 @@
+---
+'@vercel/node': patch
+---
+
+Fix bundled vanilla Node API routing for projects that build from a root directory.
diff ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The rootDirectory bundling fixture should also be covered by an E2E test similar to the existing packages/node fixture 65-api-function-bundling.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The entrypoint prefix could be embedd... | null |
vercel__vercel__15906 | vercel/vercel | 15,906 | defect | 4362505f1f5bf9b8fa0738dec2ad3189edc933b2 | db024b67282b5222adf3adff010270c3f48ed871 | [cli] Fetch check run logs inline and use checkRunLog deep-link | ## Summary
- Failed check run hyperlinks now use `?checkRunLog=<checkRunId>` for direct deep-linking, with fallback to `externalUrl`/`detailsUrl` when available (matching front's link resolution pattern)
- In non-interactive/JSON mode, the CLI fetches check run logs from the NDJSON log stream and includes them inline ... | diff --git a/.changeset/deploy-check-run-logs.md b/.changeset/deploy-check-run-logs.md
new file mode 100644
index 000000000000..e8d86c485e00
--- /dev/null
+++ b/.changeset/deploy-check-run-logs.md
@@ -0,0 +1,5 @@
+---
+'vercel': patch
+---
+
+Fetch check run logs inline and use `checkRunLog` deep-link for failed deploy... | 1 | 1 | 1 | [{"id": "G0", "claim": "When --json is used without --non-interactive, getDeploymentCheckRunLogs is called for all failed check runs (incurring at least 1 second plus polling delays per run) but the fetched logs are discarded.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
vercel__vercel__15960 | vercel/vercel | 15,960 | defect | 1056be976b6ba9b42cc1e2ffe895d255ab6c9850 | f19570d115cf84761a561b2c285161fed8451509 | [services] don't catch all routes for non-web Python services | `cron`, `worker` and the new upcoming `job` types shouldn't expose a catch-all `'/(.*)'` route. These services are served from specifically designed for them paths and with catch-all they might interfere with the output from other services, e.g. frontend routes from `next.config.mjs` | diff --git a/.changeset/eighty-mayflies-grin.md b/.changeset/eighty-mayflies-grin.md
new file mode 100644
index 000000000000..28b53748652b
--- /dev/null
+++ b/.changeset/eighty-mayflies-grin.md
@@ -0,0 +1,5 @@
+---
+'@vercel/python': patch
+---
+
+[services] don't catch all routes for non-web Python services
diff --git... | 3 | 3 | 2 | [{"id": "G0", "claim": "Optional chaining in `service?.type !== 'web'` causes all non-service Python framework deployments (Django, Flask, etc.) to lose their catch-all route, breaking request routing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
vercel__vercel__16011 | vercel/vercel | 16,011 | defect | fc007cd3d86c0c2119ecac81b63894dea6055f7c | 2b9f1c7531219241c00a74883d7b59b76e869da2 | feat(cli): add table formatting for OpenAPI responses | ## Summary
- Adds `vercel-cli-table` module for rendering OpenAPI JSON responses as CLI tables/cards
- Timestamps (e.g. `updatedAt`) auto-formatted as relative time ("2h", "3d")
- Null/undefined values displayed as `--` instead of blank
- Column headers humanized from schema paths (`updatedAt` → `Updated`)
- Adds `Ver... | diff --git a/packages/cli/src/util/openapi/column-label.ts b/packages/cli/src/util/openapi/column-label.ts
new file mode 100644
index 000000000000..e7d67e83fd40
--- /dev/null
+++ b/packages/cli/src/util/openapi/column-label.ts
@@ -0,0 +1,53 @@
+const LABEL_OVERRIDES: Record<string, string> = {
+ createdAt: 'Created',
... | 1 | 1 | 1 | [{"id": "G0", "claim": "In `formatAsDataTable`, each data row independently computes its column set via `columnsForRow()`, which can differ from the header's column set when rows have different `limited` values, producing a misaligned table.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
vercel__vercel__16037 | vercel/vercel | 16,037 | defect | 3c17e8b2de81de3a44dbee5ec6b937d8f536cb24 | 8ec62c369f558b43a0b8c5d31df6e06ba124d2ef | feat(cli): add `vercel connex token` command | ## Summary
Adds `vercel connex token <clientId>` subcommand that fetches a token for a Connex client via `POST /v1/connex/token/:clientId`. Gated behind `FF_CONNEX_ENABLED`
Supports flags:
- `--subject app|user` — token subject type
- `--installation-id <id>` — target a specific installation
- `--scopes <a,b,c... | diff --git a/.changeset/connex-token-command.md b/.changeset/connex-token-command.md
new file mode 100644
index 000000000000..fa5fe72e1f35
--- /dev/null
+++ b/.changeset/connex-token-command.md
@@ -0,0 +1,5 @@
+---
+'vercel': minor
+---
+
+Add `vercel connex token` command to fetch tokens for Connex clients, with auto-... | 7 | 7 | 4 | [{"id": "G0", "claim": "When `--subject user` is passed but `client.authConfig.userId` is unavailable (common in CI with `--token`), the guard silently omits the whole `subject` field from the request body, dropping the user's explicit intent without warning.", "category": "correctness", "verdict": "supported", "priori... | null |
vercel__vercel__16056 | vercel/vercel | 16,056 | defect | ee720e134078cd0a243f408d370057c48d84ebb5 | 4bdc43aeb3b1843510c5d5898145714966d7da9d | fix!: exclude configuration files from static deployments | BREAKING CHANGE: Static deployments will no longer serve package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, .gitignore, README.md, or node_modules. Projects that intentionally served these files will need to copy them to a different location or rename them. | diff --git a/.changeset/violet-pens-fly.md b/.changeset/violet-pens-fly.md
new file mode 100644
index 000000000000..91dd7f039140
--- /dev/null
+++ b/.changeset/violet-pens-fly.md
@@ -0,0 +1,6 @@
+---
+'@vercel/fs-detectors': major
+'vercel': major
+---
+
+fix!: exclude configuration files from static deployments
diff -... | 1 | 1 | 1 | [{"id": "G0", "claim": "README.md is excluded in detect-builders.ts but missing from the static-builder.ts exclusion list, allowing it to be served in static deployments despite the commit explicitly intending to exclude it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vercel__vercel__16094 | vercel/vercel | 16,094 | defect | 2a440a0e140f78afdad66a2160f892c4bbe8e615 | 7c2c6be8ae4167e98fd7fb97edf7c366acfd9f2e | feat(cli): `vercel connex remove` command | ## Summary
- Adds `vercel connex remove <client>` (alias `rm`) — deletes a Connex client by id or uid via `DELETE /v1/connex/clients/:clientId`.
- Refuses deletion when the client has connected projects unless `--disconnect-all` (`-a`) is passed — mirrors `vercel integration-resource remove`'s UX.
- Supports `--ye... | diff --git a/.changeset/connex-remove-command.md b/.changeset/connex-remove-command.md
new file mode 100644
index 000000000000..4cbeddb9b8ef
--- /dev/null
+++ b/.changeset/connex-remove-command.md
@@ -0,0 +1,5 @@
+---
+'vercel': minor
+---
+
+Add `vercel connex remove` command to delete a Connex client by id or uid. Re... | 1 | 1 | 0 | [{"id": "G0", "claim": "The connected-projects error and the --disconnect-all parameter should probably also be enforced in the backend, not only in this CLI command.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
verdaccio__verdaccio__2271 | verdaccio/verdaccio | 2,271 | defect | 8434cc550f1687e63a8095189b845544e24028ab | e2d19880eef0ade34c81c549360cd6d333a74e0c | fix: improve get headers from request #2190 | Fix #2190
It improves how to access to the request headers, instead `req.headers['xxx]` by using `req.get('xxx')` http://expressjs.com/en/api.html#req.get which is does case-insensitive matching. | diff --git a/src/api/endpoint/api/whoami.ts b/src/api/endpoint/api/whoami.ts
index e84b18e94398..0217397b27fa 100644
--- a/src/api/endpoint/api/whoami.ts
+++ b/src/api/endpoint/api/whoami.ts
@@ -3,7 +3,7 @@ import { $RequestExtend, $NextFunctionVer } from '../../../../types';
export default function (route: Router):... | 1 | 1 | 0 | [{"id": "G0", "claim": "In getPublicUrl, keep it simple and more readable by dropping the redundant `?.toLocaleLowerCase()` calls on the proto header and instead lowercasing it at the use site (`req.get(protoHeader.toLowerCase())`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "in... | null |
verdaccio__verdaccio__3643 | verdaccio/verdaccio | 3,643 | defect | 7752424de018921547c62d3d381f980597a63161 | 07cdf46db407cd40dd69e357a6dd19751f18630f | fix: avoid setting body for GET requests | When making a GET request to certain uplinks, such as https://registry.npmmirror.com, setting the body field can result in a 413 error. Previously, the code was setting the body field for all requests, including GET requests.
This commit fixes the issue by checking the request method and avoiding setting the body fi... | diff --git a/src/lib/up-storage.ts b/src/lib/up-storage.ts
index 95fe243c5d30..e2119ba123da 100644
--- a/src/lib/up-storage.ts
+++ b/src/lib/up-storage.ts
@@ -219,7 +219,6 @@ class ProxyStorage implements IProxy {
url: uri,
method: method,
headers: headers,
- body: json,
proxy: this.pro... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request's change (GET requests no longer sending a body) should be covered by unit tests, starting from test/unit/modules/uplinks/up-storage.spec.ts.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code added by the p... | null |
verdaccio__verdaccio__3647 | verdaccio/verdaccio | 3,647 | defect | 30a967a62bd2fc30b867bf15996a382ddd165c1c | 8bce011c6a421a3deb7239ecb86d5f3eeacf8491 | fix(core): fix bug about isObject function | It should return false when input is a boolean
This bug will case
[request](https://github.com/verdaccio/verdaccio/blob/bae430fe24c9bb63dcf7b7b9e5f9f0dbf3f42669/src/lib/up-storage.ts#L157) has a body when options.json is `true`.
fix #3601 | diff --git a/packages/core/core/src/validation-utils.ts b/packages/core/core/src/validation-utils.ts
index 127406859926..403410d69e05 100644
--- a/packages/core/core/src/validation-utils.ts
+++ b/packages/core/core/src/validation-utils.ts
@@ -95,14 +95,15 @@ export function normalizeMetadata(manifest: Manifest, name: s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add a changeset file (per the repository guidelines) so the fixed package can be published.", "category": "process", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
verdaccio__verdaccio__4493 | verdaccio/verdaccio | 4,493 | defect | b638695bd879e40ebafe47a65e35c3ccdf467a3c | 59143923e1ea3069850d7eb2c7809432c72752f2 | fix: store readme when publishing locally | When publishing to verdaccio, the readme data is not stored correctly in some cases (although it's included in the publish request). As a result, the readme is not visible in the web interface:

This fix and enhan... | diff --git a/.changeset/spicy-birds-flow.md b/.changeset/spicy-birds-flow.md
new file mode 100644
index 000000000000..48b892d162d2
--- /dev/null
+++ b/.changeset/spicy-birds-flow.md
@@ -0,0 +1,5 @@
+---
+'@verdaccio/store': patch
+---
+
+fix: store readme when publishing locally
diff --git a/packages/store/src/storage.... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests in packages/web/test/api.readme.test.ts fail, and either their setup is wrong or the patch might be causing side effects.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
verdaccio__verdaccio__4786 | verdaccio/verdaccio | 4,786 | defect | c63655b6f224b76b2c08a85a6dd0189df27e9de5 | efef1359087c443df3976d84c0cb271b17971b0e | fix(config): test runs on Windows | Closes #4785 | diff --git a/.changeset/swift-rabbits-vanish.md b/.changeset/swift-rabbits-vanish.md
new file mode 100644
index 000000000000..58c1e8337ad6
--- /dev/null
+++ b/.changeset/swift-rabbits-vanish.md
@@ -0,0 +1,5 @@
+---
+'@verdaccio/config': patch
+---
+
+fix(config): test runs on Windows
diff --git a/packages/config/test/c... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request needs another look to make the tests work on multiple platforms.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
verdaccio__verdaccio__5111 | verdaccio/verdaccio | 5,111 | defect | cd61cd4dab00e9c6514ec6baaf0a7ac543ad196b | 9c1b7ce31b3f27307e7e9ff04518653bdf3d479b | chore(middleware): improve loop detection | Replace regex with [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-5.7.1) and add some tests
Ref https://github.com/mbtools/verdaccio/security/code-scanning/22 | diff --git a/.changeset/curly-mirrors-smile.md b/.changeset/curly-mirrors-smile.md
new file mode 100644
index 000000000000..01c7aff4741d
--- /dev/null
+++ b/.changeset/curly-mirrors-smile.md
@@ -0,0 +1,5 @@
+---
+'@verdaccio/middleware': patch
+---
+
+chore(middleware): improve loop detection
diff --git a/packages/midd... | 1 | 1 | 1 | [{"id": "G0", "claim": "The regex the PR adds for parsing the Via header runs on user-provided data and is polynomial, so it may run slow on strings with many repetitions of '.', '!', or '! ! ('.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
verdaccio__verdaccio__5170 | verdaccio/verdaccio | 5,170 | defect | b9fea389b6de99115bebe52b70ed7e53f25f212c | 88305c0556a0b48cf39b7661ce3140d078b1c277 | fix: add legacyMergeConfigs legacy plugins | On legacy plugin loader, the config was merged with the plugin configuration, by default not longer happens on 8.x and higher, thus since this loader was integrated after v6.1.0 started to crash #5160 due the `config` object was `null` .
This breaking change would take effect after 8.x versions, but for migration o... | diff --git a/.changeset/yellow-flies-sniff.md b/.changeset/yellow-flies-sniff.md
new file mode 100644
index 000000000000..4c372bb296ea
--- /dev/null
+++ b/.changeset/yellow-flies-sniff.md
@@ -0,0 +1,10 @@
+---
+'@verdaccio/search-indexer': patch
+'@verdaccio/server': patch
+'@verdaccio/loaders': patch
+'@verdaccio/stor... | 3 | 2 | 2 | [{"id": "G0", "claim": "Verify that explicitly passing false for legacyMergeConfigs at each plugin-registration call site (packages/web/src/middleware.ts:29, packages/store/src/storage.ts:689, packages/store/src/local-storage.ts:83, packages/server/express/src/server.ts:76, packages/auth/src/auth.ts:126) represents the... | null |
verdaccio__verdaccio__5277 | verdaccio/verdaccio | 5,277 | defect | 0b66de127408d2e7183019a7ab1ed91f073d9405 | 37da8eca45a6d9c878ffd654429e5cd8d73892b0 | fix(core): remove `lodash` as a dependency | https://github.com/alan-agius4/verdaccio/blame/0b66de127408d2e7183019a7ab1ed91f073d9405/packages/core/core/src/auth-utils.ts#L1-L2 requires this, but but it is not listed as dependency. | diff --git a/packages/core/core/package.json b/packages/core/core/package.json
index adb705c20096b..5c4804a19e300 100644
--- a/packages/core/core/package.json
+++ b/packages/core/core/package.json
@@ -37,13 +37,13 @@
"core-js": "3.40.0",
"http-errors": "2.0.0",
"http-status-codes": "2.3.0",
+ "lodash"... | 2 | 2 | 1 | [{"id": "G0", "claim": "The lodash dependency should be removed from the package rather than kept, replacing `_.capitalize` with a local capitalize helper in auth-utils.ts and `_.isError` with a local isError helper in errors.spec.ts.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "... | null |
verdaccio__verdaccio__5316 | verdaccio/verdaccio | 5,316 | defect | 307736d7fe1d3e77d179cef5eeb76665d136de4c | 78ddef123db19f80ef673f152b38263896bf7521 | feat(logger): support redacting sensitive data | ### Logger
Allow configuring [pino log redaction](https://getpino.io/#/docs/redaction) to remove or mask sensitive data.
Example:
```yaml
log:
type: stdout
format: json
level: http
redact:
paths: ['req.header.authorization','req.header.cookie','req.remoteAddress','req.remotePort','ip','remot... | diff --git a/.changeset/cuddly-paws-laugh.md b/.changeset/cuddly-paws-laugh.md
new file mode 100644
index 000000000000..d65bd35f81aa
--- /dev/null
+++ b/.changeset/cuddly-paws-laugh.md
@@ -0,0 +1,6 @@
+---
+'@verdaccio/logger-commons': patch
+'@verdaccio/types': patch
+---
+
+feat(logger): support redacting sensitive d... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new redact/sync options should also be documented in the latest docs (website/docs/logger.md) and in the yaml config files, as was done for the code and tests.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
verdaccio__verdaccio__5340 | verdaccio/verdaccio | 5,340 | defect | 6250e59347babd3f157d888b0f7d1ab7e94d7535 | 6ee3b85a630c751d7553cd8bd73e9c7319d81042 | fix(storage): `check_owners` with anonymous access | Fix edge case if `publish.check_owners` is used together with `$anonymous` access. | diff --git a/.changeset/brave-rockets-remember.md b/.changeset/brave-rockets-remember.md
new file mode 100644
index 000000000000..cf61e5ac763a
--- /dev/null
+++ b/.changeset/brave-rockets-remember.md
@@ -0,0 +1,5 @@
+---
+'@verdaccio/store': patch
+---
+
+fix(storage): check_owners with anonymous access
diff --git a/pa... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using DEFAULT_USER ('Anonymous'), a constant meant as a UI display label, may not be a good fit for the username comparison in check_owners.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
verdaccio__verdaccio__5569 | verdaccio/verdaccio | 5,569 | defect | cda2467f6bc845ff1dada90dc5fd3933106c7729 | 418dcf18214b59ca1f5b02430be0ddcf6abd3e37 | fix: handle malformed Basic auth credentials nicely | When a Basic auth header contains a base64-decoded value without a colon separator (e.g. "test" instead of "user:password"), `parseBasicPayload()` returns `undefined`. Previously, the code used a type assertion and attempted to destructure the result directly, causing a TypeError and returning HTTP 500.
Fixed this b... | diff --git a/packages/auth/src/auth.ts b/packages/auth/src/auth.ts
index 04731fb085fb5..2fe05922ee48c 100644
--- a/packages/auth/src/auth.ts
+++ b/packages/auth/src/auth.ts
@@ -455,7 +455,13 @@ class Auth implements IAuthMiddleware, TokenEncryption, pluginUtils.IBasicAuth {
debug('handle basic token');
//... | 1 | 1 | 0 | [{"id": "G0", "claim": "The contribution guidelines require a changeset to be added to the PR.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
verdaccio__verdaccio__5684 | verdaccio/verdaccio | 5,684 | defect | 9d5360b88aa51526d2005da7e792315f6d7934d9 | a009762f221a8fde630f4a2c4e50e6ac980a4e18 | chore(middleware): move ui-options to external script | This change turns the inline `__VERDACCIO_BASENAME_UI_OPTIONS` script into a file served from `/-/static/ui-options.js`:
```js
// ui-options.js
window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"http://localhost:4873/","primaryColor":"#4b5e40","version":"9.0.0-next-9.5","logo":"","logo... | diff --git a/.changeset/soft-cats-sip.md b/.changeset/soft-cats-sip.md
new file mode 100644
index 000000000000..ef0c2b91bf69
--- /dev/null
+++ b/.changeset/soft-cats-sip.md
@@ -0,0 +1,7 @@
+---
+'@verdaccio/middleware': patch
+'@verdaccio/core': patch
+'@verdaccio/server': patch
+---
+
+chore(middleware): move ui-optio... | 2 | 2 | 1 | [{"id": "G0", "claim": "The ui-options.js route should send a no-cache header, otherwise clients may get stale UI options after changing settings and restarting the app.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The DEFAULT_LANGUAGE constant co... | null |
verdaccio__verdaccio__5784 | verdaccio/verdaccio | 5,784 | defect | 241f62272ae93ac40cbbd5eea232e860a727bb9c | 9ac4d4a074bb524ad48788f133b82c9e980f14e6 | fix: memory leak in search | `req.socket.on('close', …)` was never removed. Each search added another close listener. Those piled up until the connection closed wasting memory and redundant abort() calls.
Used a finally block so the listener is always removed when the route handler finishes (success, error, or early exit).
Plus small fixes f... | diff --git a/.changeset/silly-phones-refuse.md b/.changeset/silly-phones-refuse.md
new file mode 100644
index 0000000000000..a586a819c666a
--- /dev/null
+++ b/.changeset/silly-phones-refuse.md
@@ -0,0 +1,6 @@
+---
+'@verdaccio/api': patch
+'@verdaccio/web': patch
+---
+
+fix: memory leak in search
diff --git a/packages... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a typeof check on the size and from query values before parseInt, since parseInt on an empty value yields NaN.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
verificarlo__verificarlo__115 | verificarlo/verificarlo | 115 | defect | 1493603225806f4c7a2b3ef8e019a4058e97da80 | d38075e589441208a07bb18dd4d3b2ec517b4eb8 | Add seed fixing mechanism | This PR allows to select a fixed seed for the RNG in mca backends. | diff --git a/src/backends/interflop-ieee/interflop_ieee.c b/src/backends/interflop-ieee/interflop_ieee.c
index 05d1a49b..599fffd9 100644
--- a/src/backends/interflop-ieee/interflop_ieee.c
+++ b/src/backends/interflop-ieee/interflop_ieee.c
@@ -1,6 +1,7 @@
#include <argp.h>
#include <stdio.h>
#include <stdlib.h>
+#inc... | 4 | 4 | 1 | [{"id": "G0", "claim": "Instead of filling init_key with the seed repeated three times and calling tinymt64_init_by_array, the backends should directly call tinymt64_init(&random_state, seed), which would be cleaner.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
verificarlo__verificarlo__142 | verificarlo/verificarlo | 142 | defect | bd3abdffec9637dc4d67b64071cbd51ee887380b | d07180a538a99b939ec098b5e87c37a383e791bb | Update backend ieee & add VFC_BACKENDS_SILENT_LOAD option | Update libinterflop_ieee.so:
- Refactor debug_print function
- Uses printf_specifier to register new %b format for binary float representation
- Add new options:
* --no-print-debug-mode: Allows removing "interflop_ieee(_bin)" message before float values
* --print-new-line: Print a new line after each floating ... | diff --git a/.travis.yml b/.travis.yml
index 0b6a5323..d5d08c2a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,7 @@ addons:
- libmpfr-dev
- gcc-4.9 gcc-4.9-plugin-dev g++-4.9 gfortran-4.9 libgfortran-4.9-dev
- autoconf automake build-essential libedit-dev binutils
- - python3-dev cyth... | 7 | 7 | 1 | [{"id": "G0", "claim": "Rephrase the README sentence about suppressing messages so that 'loading' is not used twice.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README example showing the backend loading messages is probably unnecessary and... | null |
verificarlo__verificarlo__146 | verificarlo/verificarlo | 146 | defect | 84184548b2d0f219c397c55850d56dc1529e54b2 | 9df434da1749d47392a6e9382d6314def764020a | Add bitmask backend | - Applies a bitmask on floating-point numbers on the p-t last bits where p is the original precision and t is the virtual precision.
- Replaces floating-points operations by the following operation:
fl(a op b) -> bitmask(bitmask(a) op bitmask(b)) where op is {+,-,*,/}
- Three modes available:
* ZERO: Set la... | diff --git a/README.md b/README.md
index 3e09f514..5c5ebcb2 100644
--- a/README.md
+++ b/README.md
@@ -343,6 +343,64 @@ operations. It is heavily based on mcalib MPFR backend.
MCA-MPFR backend accepts the same options than the MCA backend.
+### Bitmask Backend (libinterflop_bitmask.so)
+
+The Bitmask backend imple... | 2 | 2 | 0 | [{"id": "G0", "claim": "The README sentence about --seed should read \"except to reproduce\" instead of the ungrammatical \"except if one to reproduce\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README should say the Bitmask backend reli... | null |
verificarlo__verificarlo__177 | verificarlo/verificarlo | 177 | defect | 094c89df05f65d5e63c4820077bfd5c1a9636643 | 70bd451664a372de141694bfc6ac5b63b6928370 | Add compiler options and remove intermediate .ll files: | * '-E' to only run the preprocessor
* '-S' to only run the preprocessor and compilation steps
* '--save-temps' to keep the intermediate *.ll files
Now by default, these files are not saved
* Add compile_only function in verificarlo.in.in to compile without instrumenting
* Support the asse... | diff --git a/src/libvfcfuncinstrument/libVFCFuncInstrument.cpp b/src/libvfcfuncinstrument/libVFCFuncInstrument.cpp
index 34cbba48..a5b60cf3 100644
--- a/src/libvfcfuncinstrument/libVFCFuncInstrument.cpp
+++ b/src/libvfcfuncinstrument/libVFCFuncInstrument.cpp
@@ -50,12 +50,44 @@
#include <utility>
#include <vector>
... | 5 | 4 | 0 | [{"id": "G0", "claim": "Factor the common LLVM-version macro code shared by libVFCFuncInstrument.cpp and libVFCInstrument.cpp into a shared .hpp header.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Wrap the repeated getOrInsertFunction pattern... | null |
verificarlo__verificarlo__182 | verificarlo/verificarlo | 182 | defect | 58bd1556078ee11150e8677faa9ec540c40abc08 | 26f5964a1766793e5ec6b4fa76a0fa0bc38743c9 | Add exclude mode to delta-debug | Adds an exclude mode to delta-debug.
If the environment variable VFC_DDEBUG_EXCLUDE is defined and points to a file containing a list of addresses, those addresses will never be instrumented or generated during delta-debug generation run.
This variable operates _both_ at generation and filtering stages.
An e... | diff --git a/src/vfcwrapper/main.c b/src/vfcwrapper/main.c
index e8e28261..af478dce 100644
--- a/src/vfcwrapper/main.c
+++ b/src/vfcwrapper/main.c
@@ -77,7 +77,8 @@ void logger_info(const char *fmt, ...);
void logger_warning(const char *fmt, ...);
void logger_error(const char *fmt, ...);
-static char *dd_filter_pat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `make clean` addition to the delta-debug test scripts is a needed fix but should not be part of this pull request, since it is a separate concern from the exclude-mode feature.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
verificarlo__verificarlo__252 | verificarlo/verificarlo | 252 | defect | 3e6bd62751939bb22ff160ef401b35ce9e49b029 | 24864252fc421de9d72d79ff083d6ef56f4f1049 | Sparse perturbations | Hi!
I am in the process of adding a `--sparsity` flag to the verificarlo MCA backend, and thought it was time to get feedback :)
The purpose of this modification is to enable the study of perturbation density without the additional confounding variable of _which_ operations are actually being perturbed. This coul... | diff --git a/src/backends/interflop-mca/interflop_mca.c b/src/backends/interflop-mca/interflop_mca.c
index 8635919b..2c5a0233 100644
--- a/src/backends/interflop-mca/interflop_mca.c
+++ b/src/backends/interflop-mca/interflop_mca.c
@@ -80,7 +80,8 @@ typedef enum {
KEY_ERR_MODE = 'e',
KEY_SEED = 's',
KEY_DAZ = '... | 3 | 3 | 0 | [{"id": "G0", "claim": "Avoid the double division and casts in _mca_skip_eval by using an integer random generator and comparing against a precomputed integer threshold.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The _mca_skip_eval function shou... | null |
verificarlo__verificarlo__299 | verificarlo/verificarlo | 299 | defect | 486a6390e516613ed9cc2fb9e29d36ec9bf99931 | a937bb24eaa0862b48f2a51642930f5972cdf649 | Add test to check MCA SR properties | Since removing the MPFR reference backend we are missing good validity
tests for MCA backends.
This test checks basic statistical properties of MCA RR mode with
t=53 and t=24.
Test logic is detailed in check.py | diff --git a/tests/test_sr/check.py b/tests/test_sr/check.py
new file mode 100755
index 00000000..137e669a
--- /dev/null
+++ b/tests/test_sr/check.py
@@ -0,0 +1,68 @@
+#!/usr/bin/env python3
+
+def freq(l):
+ """ return dictionnary of frequencies """
+ freq = {}
+ for item in l:
+ if (item in freq):
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asked how TOLERANCE=15 was defined and requested justification in comments, suggesting that with a single addition a normal-distribution confidence interval could be applied.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
verificarlo__verificarlo__308 | verificarlo/verificarlo | 308 | defect | fc79953b51ea246f6eb9bc256ccde561d06f26f1 | 05a5449d52153a154443baca95b22872c09eb22b | MCA int optimizations | - Merge operations to save cycles
- Move to xoshiro RNG that is faster than jrand48
| diff --git a/configure.ac b/configure.ac
index fed7f1db..2ac98b9b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -191,6 +191,7 @@ fi
AC_CONFIG_FILES([Makefile
src/Makefile
src/common/Makefile
+ src/common/rng/Makefile
src/libvfcinstrument/Makefile
... | 10 | 6 | 3 | [{"id": "G0", "claim": "If the binary64 noise path keeps drawing 64 random bits, the comment at line 177 saying only 32 bits of noise are used must be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The binary64 noise should not mask the d... | null |
verificarlo__verificarlo__341 | verificarlo/verificarlo | 341 | defect | a214de4d1d4fb153f2ee568742e73015b3298aaf | 1c2e8d38d071fc0d60666f7c20ac249325190f68 | Porting verificarlo to aarch64 (arm64) | This PR tracks efforts to port verificarlo to aarch64 (arm64) / Linux platforms. This should fix https://github.com/verificarlo/verificarlo/issues/332.
I am working on the port thanks to an access to Turpan (https://www.calmip.univ-toulouse.fr/espace-utilisateurs/doc-technique-turpan) kindly provided by CALMIP. Node... | diff --git a/configure.ac b/configure.ac
index d3162cc0..b4f23660 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,14 @@ else
AC_SUBST(FC, $FLANG)
fi
+# Check for addr2line (required by delta-debug DDEBUG)
+AC_PATH_PROGS([ADDR2LINE], [llvm-addr2line addr2line], "", $LLVM_BINDIR/ $PATH)
+if test -z "$ADD... | 3 | 3 | 2 | [{"id": "G0", "claim": "test_vectorization fails on aarch64, which the author attributes to the handling of LLVM vector type extensions on aarch64.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Function instrumentation segfaults on aarch64, making ... | null |
verificarlo__verificarlo__362 | verificarlo/verificarlo | 362 | defect | 27fe3e7e563eb7dbad349f3415efe7b13d1a9ea8 | b389468dbcfd94a0f0a965032e8a3a018e309d49 | Support LLVM-17 + Fix VPREC backend subnormal handling | - Add support for LLVM-17 to LLVM-20
- Fix VPREC backend issue with subnormal numbers. | diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml
index bcc7cec4..40e28edf 100644
--- a/.github/workflows/docker-ci.yml
+++ b/.github/workflows/docker-ci.yml
@@ -3,12 +3,11 @@ name: docker
on:
workflow_dispatch:
push:
- branches: [ '*' ]
+ branches: ["*"]
pull_request:
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment in round_binary_denormal explaining the subnormal rounding (underflow) logic, so the reasoning is left for posterity.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
verl-project__verl__3810 | verl-project/verl | 3,810 | defect | 4da0d3d3188072772cb2ec817b3d6cf4a463821f | 570b95bc1b5684d7b2920d92c4284b703722916d | [algo] fix: remove torch.quantile-based percentile metrics to resolve tensor size limit error |
## Summary
Fixes #3787 by removing `torch.quantile()`-based percentile metrics (`rollout_is_p25`, `rollout_is_p50`, `rollout_is_p75`) that caused `RuntimeError: quantile() input tensor is too large` when using large batch sizes or response lengths.
## Problem
When using configurations with large tensor sizes... | diff --git a/docs/advance/rollout_is_migration.md b/docs/advance/rollout_is_migration.md
index 6ba809ea372..2dc0d69e3c8 100644
--- a/docs/advance/rollout_is_migration.md
+++ b/docs/advance/rollout_is_migration.md
@@ -203,17 +203,6 @@ All metrics are prefixed with `mismatch/`. For example, `rollout_is_mean` appear
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The example's plotting function plot_is_metrics in docs/advance/rollout_is.md still accesses the removed percentile metrics (e.g. mismatch/rollout_is_p25..p99), which will cause a KeyError for users running the example, so the corresponding plotting logic should be removed.", "category": "correc... | null |
verl-project__verl__4461 | verl-project/verl | 4,461 | defect | 2319bab040eacfe2d191e417b6ea4de6d6978ef2 | 8c5130af2af45b8be863493b9004447160c4cd89 | [model] feat: enhances TrainingWorker | ### What does this PR do?
- Support tensordict make iterator with nested tensor
- improve TrainingWorker by setting default engineering args in the worker init
- Add a unit test of TrainingWorker
- fix #4004
### Checklist Before Starting
- [ ] Search for similar PRs. Paste at least one query link here: ...... | diff --git a/tests/models/test_engine.py b/tests/models/test_engine.py
index cb53f4df5ea..f2ff995250c 100644
--- a/tests/models/test_engine.py
+++ b/tests/models/test_engine.py
@@ -36,6 +36,7 @@
from verl import DataProto
from verl.single_controller.ray import RayClassWithInitArgs, RayResourcePool, RayWorkerGroup
fr... | 2 | 1 | 0 | [{"id": "G0", "claim": "The validation logic in EngineConfig.__post_init__ is commented out and should be enabled so that a configuration with use_dynamic_bsz true requires max_token_len_per_gpu (and micro_batch_size_per_gpu otherwise), instead of letting invalid configs surface as runtime errors later.", "category": "... | null |
verl-project__verl__4626 | verl-project/verl | 4,626 | defect | 809ae51204e895c343d2534fc82d61e065fd3385 | 0d96d5f8a04901d6e3534803ca8f1a58bf2b210f | [ci] feat: add npu unit test | ### What does this PR do?
> Add npu unit test workflow. Enable unit tests to auto-detect device (GPU/NPU)
### Checklist Before Starting
- [ ] Search for similar PRs. Paste at least one query link here: ...
- [ ] Format the PR title as `[{modules}] {type}: {description}` (This will be checked by the CI)
- `... | diff --git a/.github/workflows/npu_unit_tests.yml b/.github/workflows/npu_unit_tests.yml
new file mode 100644
index 00000000000..2cc9313f07e
--- /dev/null
+++ b/.github/workflows/npu_unit_tests.yml
@@ -0,0 +1,122 @@
+# # Tests layout
+
+# Each folder under tests/ corresponds to a test category for a sub-namespace in ve... | 16 | 16 | 6 | [{"id": "G0", "claim": "The new helper get_device_name_ray in tests/single_controller/test_worker_group_basics.py will crash tests: torch.npu.is_available() raises AttributeError when the torch.npu module is absent, and device is unbound (UnboundLocalError) when neither CUDA nor NPU is available; it should use a safe N... | null |
verl-project__verl__4954 | verl-project/verl | 4,954 | defect | 1b5bc22c751d33a5ca41e117cdcfa95064299cec | c9aed16d9d0eae5c73aca903c0725de6330c5cd9 | [ckpt] feat: add kimi ckpt engine backend | ### What does this PR do?
Based on ckpt engine abstraction [add checkpoint-engine abstraction](https://github.com/volcengine/verl/pull/4775), in this PR, we add kimi_ckpt_engine backend to support both GPU and huawei Ascend NPU.
Since establishing communication domains across trainer and rollout workers is requir... | diff --git a/tests/checkpoint_engine/test_kimi_checkpoint_engine.py b/tests/checkpoint_engine/test_kimi_checkpoint_engine.py
new file mode 100644
index 000000000000..cbb653569e0f
--- /dev/null
+++ b/tests/checkpoint_engine/test_kimi_checkpoint_engine.py
@@ -0,0 +1,115 @@
+# Copyright 2024 Bytedance Ltd. and/or its affi... | 3 | 2 | 1 | [{"id": "G0", "claim": "Concurrently updating the shared named_tensors dictionary from ThreadPoolExecutor worker threads in send_weights is not thread-safe and can cause race conditions, data corruption or intermittent crashes; each thread should return its result and the dictionary should be updated in the main thread... | null |
verl-project__verl__5039 | verl-project/verl | 5,039 | defect | b53f0f132d6d6536ae8901944b24b98dc6dd6cdf | 0283e5ffc23091bbca603eccf9d7bfdef932c824 | [ci] feat: add npu workflow,e2e_sft_llm&model&reward_model_vllm | ### What does this PR do?
Add 3 npu test workflow
.github/workflows/e2e_sft_llm_ascend.yml.yml
.github/workflows/model_ascend.yml
.github/workflows/reward_model_vllm_ascend.yml
Based on the GPU-based CI workflow: e2e_sft_llm、model 、reward_model_vllm, we have added support for NPU.
### Checklist Before Star... | diff --git a/.github/workflows/e2e_sft_llm_ascend.yml b/.github/workflows/e2e_sft_llm_ascend.yml
new file mode 100644
index 00000000000..cb3a47a7b8a
--- /dev/null
+++ b/.github/workflows/e2e_sft_llm_ascend.yml
@@ -0,0 +1,141 @@
+# # Tests layout
+
+# Each folder under tests/ corresponds to a test category for a sub-nam... | 6 | 1 | 0 | [{"id": "G0", "claim": "The line added to tests/special_e2e/sft/run_sft_engine.sh has a stray leading '+' on the engine.override_transformer_config.context_parallel_size flag, which will cause the script to fail; remove it.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {... | null |
verl-project__verl__5149 | verl-project/verl | 5,149 | defect | 15e28de773503976dcf121f33758871e80a2399e | 0664ab102b059063d29b4d420d28abbd146eef1c | [rollout] feat: Fix partial load problem, Add vlm support for trtllm rollout | ### What does this PR do?
Some models do not support partial loading, when this happen the rollout manager back to original full parameter update
Add vlm support for trtllm rollout
> Add **concise** overview of what this PR aims to achieve or accomplish. Reference related GitHub issues and PRs that help with the ... | diff --git a/verl/workers/rollout/trtllm_rollout/trtllm_async_server.py b/verl/workers/rollout/trtllm_rollout/trtllm_async_server.py
index f669a7bfe3b..24b380a6962 100644
--- a/verl/workers/rollout/trtllm_rollout/trtllm_async_server.py
+++ b/verl/workers/rollout/trtllm_rollout/trtllm_async_server.py
@@ -89,6 +89,10 @@ ... | 7 | 7 | 3 | [{"id": "G0", "claim": "A new WorkerExtension should not be implemented in the verl repo; keep it in the TensorRT-LLM repo and make it generic for other RL frameworks to reuse.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a unittest for the new VLM... | null |
verl-project__verl__5215 | verl-project/verl | 5,215 | defect | ad404cb52c6e4f4d385e294544a7f1dd4851f2bb | f808664f28e863f8ec6edb5d4269f9db2018f557 | [ci] feat: add profiling tests to vLLM ci | ### What does this PR do?
>This PR integrates NPU profiling capabilities into the vLLM CI pipeline. It enables detailed performance monitoring for both the Actor and Reference components within the actor_rollout_ref module. By adding these profiling tests, we can capture execution traces, analyze hardware utilization ... | diff --git a/tests/special_npu/run_qwen2_5_05b_grpo.sh b/tests/special_npu/run_qwen2_5_05b_grpo.sh
index 1192c99d3026..d68dfe0cfd43 100644
--- a/tests/special_npu/run_qwen2_5_05b_grpo.sh
+++ b/tests/special_npu/run_qwen2_5_05b_grpo.sh
@@ -3,6 +3,14 @@ set -x
MODEL_ID=${MODEL_ID:-Qwen/Qwen2.5-0.5B-Instruct}
MODEL_PATH... | 5 | 5 | 1 | [{"id": "G0", "claim": "The script sets SAVE_PATH to the placeholder \"your_path\", which is not a valid directory and will fail especially in a CI environment; a valid descriptive output path should be used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
verl-project__verl__5223 | verl-project/verl | 5,223 | defect | 4ef45d093e03f644f9f6423bbee23c0a88f53b25 | 1bacdf4e4d73c6f8398d7fb932a3fc54aea305f0 | [model,cfg] fix: type annotation for Lora target_modules | ### What does this PR do?
Fixes https://github.com/verl-project/verl/issues/5222
[PeftConfig](https://huggingface.co/docs/peft/en/package_reference/lora#peft.LoraConfig.target_modules) from PEFT supports passing a list of strings as `target_modules`.
However, target_modules is annotated as `Optional[str]` in `... | diff --git a/tests/workers/config/test_model_config_on_cpu.py b/tests/workers/config/test_model_config_on_cpu.py
new file mode 100644
index 00000000000..dd9d4f9552d
--- /dev/null
+++ b/tests/workers/config/test_model_config_on_cpu.py
@@ -0,0 +1,69 @@
+# Copyright 2024 Bytedance Ltd. and/or its affiliates
+# Copyright A... | 2 | 2 | 2 | [{"id": "G0", "claim": "Replace `assert` with `raise TypeError` in `HFModelConfig.__post_init__` so that target_modules validation cannot be bypassed when Python runs with assertions disabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add unit ... | null |
verl-project__verl__5251 | verl-project/verl | 5,251 | defect | 69c58ee8d2a92656e00a87ffcf9546396b9c9007 | 880fa735113118371c18536b771ba32057feb4d4 | [megatron] fix: add megatron checkpoint patch | ### What does this PR do?
> Add a monkey patch to force to release the memory of input tensors and their grads in CheckpointFunction.
Unreleased GPU memory occurs during RL or SFT training of MoE models (e.g., Qwen3-30B-A3B/Qwen3-VL-30B-A3B) using image verlai/verl:vllm012.dev3 with checkpoint enabled (recompute_... | diff --git a/verl/models/mcore/patch.py b/verl/models/mcore/patch.py
index 2968b3daace1..57f963a304f8 100644
--- a/verl/models/mcore/patch.py
+++ b/verl/models/mcore/patch.py
@@ -362,3 +362,67 @@ def get_tensor_model_parallel_group_if_none(tp_group, is_expert=False, check_ini
return tp_group
meg... | 4 | 2 | 0 | [{"id": "G0", "claim": "The checkpoint patch is applied unconditionally and could introduce risks or unintended side effects for non-MoE models that also use checkpointing; it would be safer to apply it conditionally only when an MoE model is detected (expert_model_parallel_size > 1).", "category": "correctness", "verd... | null |
verl-project__verl__5287 | verl-project/verl | 5,287 | defect | 12b6382f8bbce403644202ed9a8060c83c2d6c9d | 1a8d2b6955f368bc13f398c8e9b9796e4c60d175 | [reward] fix: backward compatibility with old reward config | ### What does this PR do?
add backward compatibility with old reward config
### Checklist Before Starting
- [ ] Search for similar PRs. Paste at least one query link here: ...
- [ ] Format the PR title as `[{modules}] {type}: {description}` (This will be checked by the CI)
- `{modules}` include `fsdp`, `me... | diff --git a/verl/trainer/config/_generated_ppo_megatron_trainer.yaml b/verl/trainer/config/_generated_ppo_megatron_trainer.yaml
index 971be7259dc..a6e80b62cd2 100644
--- a/verl/trainer/config/_generated_ppo_megatron_trainer.yaml
+++ b/verl/trainer/config/_generated_ppo_megatron_trainer.yaml
@@ -572,6 +572,45 @@ critic... | 3 | 3 | 2 | [{"id": "G0", "claim": "The check `if config.custom_reward_function is not None` is not robust enough for backward compatibility: since legacy_reward_impl.yaml provides default null values, config.custom_reward_function is always a DictConfig and never None, so the block always executes and can overwrite a valid new-st... | null |
verl-project__verl__5381 | verl-project/verl | 5,381 | defect | 7cf31bf9b11f6f5496ab60ba4e7967300d7e7a60 | 44f5a1d4e378e9286f974d3ca29ac2bf388840e2 | [megatron, model] feat: qwen3.5 example | ### What does this PR do?
thanks to @LiuXTao 's great work on https://github.com/ISEEKYAN/mbridge/pull/83, the mbridge has supported qwen3.5.
This PR succeeded in running qwen3.5 SFT on verl based on mbridge supports for qwen3.5
### Checklist Before Starting
- [x] Search for similar PRs. Paste at least one ... | diff --git a/examples/sft/gsm8k/run_qwen3_5_megatron.sh b/examples/sft/gsm8k/run_qwen3_5_megatron.sh
new file mode 100644
index 000000000000..43ab11ec2130
--- /dev/null
+++ b/examples/sft/gsm8k/run_qwen3_5_megatron.sh
@@ -0,0 +1,143 @@
+#!/usr/bin/env bash
+# Qwen3.5-397B-A17B SFT with Megatron backend + mbridge
+#
+# ... | 6 | 6 | 0 | [{"id": "G0", "claim": "Catching `(jinja2.exceptions.TemplateError, Exception)` is redundant - the tuple is equivalent to a bare `except Exception` and can suppress unexpected errors - so the code should catch more specific exception types instead.", "category": "maintainability", "verdict": "supported", "priority": "P... | null |
verl-project__verl__5396 | verl-project/verl | 5,396 | defect | 6f4942b1153b23720e74564e00817526b342198c | f37def4c8c5cb62abaf58d644c6ede4b976ce47f | [ci] chore: update triton-ascend and fix npu ut | ### What does this PR do?
update triton-ascend == 3.2.0
fix failed npu ut
### Checklist Before Starting
- [ ] Search for similar PRs. Paste at least one query link here: ...
- [ ] Format the PR title as `[{modules}] {type}: {description}` (This will be checked by the CI)
- `{modules}` include `fsdp`, `meg... | diff --git a/requirements-npu.txt b/requirements-npu.txt
index ea197c98f31..fada1f839c2 100644
--- a/requirements-npu.txt
+++ b/requirements-npu.txt
@@ -18,4 +18,4 @@ torchdata
einops
qwen_vl_utils
hf_transfer
-triton-ascend==3.2.0rc4
\ No newline at end of file
+triton-ascend==3.2.0
diff --git a/tests/utils/test_li... | 1 | 1 | 1 | [{"id": "G0", "claim": "Replacing the CUDA availability check with only an NPU check makes the test run and fail in a CPU-only environment; the CUDA check should be restored and combined with the new NPU check.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
verl-project__verl__5430 | verl-project/verl | 5,430 | defect | 32705dc135c9a4a06f359361b3d394610ad07e0c | 06e2022e70af660ff5c194e39624ee87f63bdff7 | [rollout] feat: support auto resume on abort in FullyAsyncLLMServerManager | ### What does this PR do?
1. Pass trainer's `global_steps` to rollout when update weights.
2. FullyAsyncLLMServerManager: support auto resume generation when partial rollout, making rollout interruption invisible to the AgentLoop.
Following PR, cleanup `verl/experimental/fully_async_policy/agent_loop`.
| diff --git a/tests/checkpoint_engine/test_special_server_adapter.py b/tests/checkpoint_engine/test_special_server_adapter.py
index 3eb8a224f87..210400d0d28 100644
--- a/tests/checkpoint_engine/test_special_server_adapter.py
+++ b/tests/checkpoint_engine/test_special_server_adapter.py
@@ -17,10 +17,10 @@
import pytest
... | 4 | 2 | 1 | [{"id": "G0", "claim": "generate() modifies the sampling_params dict in-place, which could cause a race condition if a caller reuses the same dictionary across concurrent generate calls; a copy should be made before modifying it.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"... | null |
verl-project__verl__5438 | verl-project/verl | 5,438 | defect | c179476754150a5384f96d56b622a8f6330d2c04 | cc74a53f3a4143dd1976433c0f5d9c464748036b | [misc] feat: support dynamic bsz using group size | ### What does this PR do?
+ as title
+ loss convergence consistency when toggling dynamic batch size
### Checklist Before Starting
- [ ] Search for similar PRs. Paste at least one query link here: ...
- [ ] Format the PR title as `[{modules}] {type}: {description}` (This will be checked by the CI)
- `{mod... | diff --git a/verl/utils/seqlen_balancing.py b/verl/utils/seqlen_balancing.py
index 51097f50a51..63b881fe603 100644
--- a/verl/utils/seqlen_balancing.py
+++ b/verl/utils/seqlen_balancing.py
@@ -353,6 +353,7 @@ def rearrange_micro_batches(
same_micro_num_in_dp=True,
min_num_micro_batch=None,
use_dynamic_bs... | 1 | 1 | 1 | [{"id": "G0", "claim": "The per-group workload computation uses a Python loop with a separate calculate_workload call, .sum() and .cpu().item() transfer per group, and should be vectorized into a single GPU operation.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
verl-project__verl__5445 | verl-project/verl | 5,445 | defect | c179476754150a5384f96d56b622a8f6330d2c04 | 0635b889004c3196ccd2c10aaada85f0d625bc4c | [misc] chore: support transformers 5 | ### What does this PR do?
Refer to
https://github.com/vllm-project/vllm/pull/30566
for all the patched needed for Transformers v5
This PR is a Transformers v5 compatibility sweep plus guardrails for token ID shape consistency.
- Remove the hard <5.0.0 block by changing dependency pinning in requirements.txt.... | diff --git a/requirements.txt b/requirements.txt
index 6a051b8e458a..11960721e580 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -15,7 +15,7 @@ pre-commit
ray[default]
tensordict>=0.8.0,<=0.10.0,!=0.9.0
torchdata
-transformers<5.0.0
+transformers
# vllm==0.8.4
wandb
packaging>=20.0
diff --git a/scripts/l... | 4 | 3 | 3 | [{"id": "G0", "claim": "Unpinning the transformers dependency completely could lead to unexpected breakages in the future if transformers introduces breaking changes in a new major version, so an upper bound such as transformers>=5.0.0,<6.0.0 should be specified.", "category": "maintainability", "verdict": "uncertain",... | null |
verl-project__verl__5446 | verl-project/verl | 5,446 | defect | c179476754150a5384f96d56b622a8f6330d2c04 | 54d8e53682d057afb29de5cba7ad94d6908c6252 | [ci] fix: failed trtllm_unit_tests with attribute error | ### What does this PR do?
Fix failed trtllm_unit_tests, Logs at https://github.com/verl-project/verl/actions/runs/22511591314/job/65221753054
```logs
if not self._ray_is_cross_language:
> raise AttributeError(
f"'{type(self).__name__}' object has " f"no attribute '{item}'"
... | diff --git a/tests/workers/rollout/rollout_trtllm/test_adapter.py b/tests/workers/rollout/rollout_trtllm/test_adapter.py
index 004df83d0eb3..dc0d0330a2bd 100644
--- a/tests/workers/rollout/rollout_trtllm/test_adapter.py
+++ b/tests/workers/rollout/rollout_trtllm/test_adapter.py
@@ -175,9 +175,9 @@ def test_init_without... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new get_server_adapter_attribute method exposes arbitrary attribute access on the server_adapter object via Ray RPC (broken access control / information disclosure) and should be replaced with specific getter methods or an allow-list of permitted attributes.", "category": "security", "verdic... | null |
verl-project__verl__5528 | verl-project/verl | 5,528 | defect | c27858c45f8ca94522a6f4e64c7d2fc53f64bb45 | fcd82754c11c19c27430df6fe51351781d595aa9 | [rollout] feat: Fix partial load problem, Add vlm support for trtllm rollout | ### What does this PR do?
Some models do not support partial loading, when this happen the rollout manager back to original full parameter update
Add vlm support for trtllm rollout
> Add **concise** overview of what this PR aims to achieve or accomplish. Reference related GitHub issues and PRs that help with the ... | diff --git a/.github/workflows/e2e_ppo_grpo_trainer_trtllm.yml b/.github/workflows/e2e_ppo_grpo_trainer_trtllm.yml
index e258e3f655d..7f7314d6a1d 100644
--- a/.github/workflows/e2e_ppo_grpo_trainer_trtllm.yml
+++ b/.github/workflows/e2e_ppo_grpo_trainer_trtllm.yml
@@ -68,8 +68,9 @@ on:
# FSDP
- "!verl/wor... | 5 | 2 | 0 | [{"id": "G0", "claim": "The TRTLLM HTTP server launches Uvicorn listening on the node's IP and exposes sensitive control endpoints (update_weights, resume_memory, release_memory) without any authentication mechanism, so any user with network access to the node could replace model weights with malicious ones, cause Deni... | null |
verl-project__verl__5564 | verl-project/verl | 5,564 | defect | 257d4fa0364aacab5fc388dc60f5c7dd7e628dcd | 64d28e52f6a7607a22e2859e40919a74862ca9d4 | [sglang,fsdp] feat: LoRA support for SGLang rollouts (merge + native adapter paths) | ### What does this PR do?
Add dual-mode LoRA support for SGLang rollouts, matching the existing vLLM implementation. Controlled by `actor_rollout_ref.model.lora.merge`:
- **`merge=True`**: Merge LoRA into base weights, sync full HF-keyed params to SGLang. Works today.
- **`merge=False`** (default): Send LoRA ada... | diff --git a/.gitignore b/.gitignore
index e6c0f5a08e3..669f0a6b717 100644
--- a/.gitignore
+++ b/.gitignore
@@ -125,6 +125,9 @@ ENV/
*.parquet
+# local sglang clone
+sglang/
+
# local logs
logs
log
diff --git a/docs/advance/ppo_lora.rst b/docs/advance/ppo_lora.rst
index a087894d398..8a6f5186a67 100644
--- a/do... | 3 | 2 | 1 | [{"id": "G0", "claim": "The removed do_lora_base_sync block is still needed for the adapter path - at least for vLLM, where base weights dropped during initial sleep cannot be reloaded from disk - so removing it breaks base-weight sync.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
verl-project__verl__5713 | verl-project/verl | 5,713 | defect | 08e030d9b0d6f3c5c2f154ec28bf2ccb37cab375 | cc6f5adeb4c61733067ad9b3ed19064e37803d8c | [3/n][reward] feat: flowgrpo - support image-based rewards (rule-based & genrm) | ### What does this PR do?
> Add **concise** overview of what this PR aims to achieve or accomplish. Reference related GitHub issues and PRs that help with the review.
Follow-up work for #4639, #5297. This is one of the PRs (others: #5616, #5716) to support FlowGRPO training for QwenImage.
This PR supports gene... | diff --git a/.github/workflows/reward_model_vllm.yml b/.github/workflows/reward_model_vllm.yml
index aebde06984f..9d95dac8851 100644
--- a/.github/workflows/reward_model_vllm.yml
+++ b/.github/workflows/reward_model_vllm.yml
@@ -120,6 +120,11 @@ jobs:
run: |
unset http_proxy https_proxy HTTP_PROXY H... | 6 | 3 | 1 | [{"id": "G0", "claim": "The OCR scoring in tests/experimental/reward_loop/reward_fn.py can raise a ZeroDivisionError because `dist / len(gt)` divides by zero when ground_truth is empty or only whitespace; a guard handling len(gt) == 0 should be added.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
verl-project__verl__5722 | verl-project/verl | 5,722 | defect | 7dc46e834209948cf1cdd8a04d83f82b4a7efd24 | 2624c9625681f95184bb7e2deef3bcfd3a358524 | [algo] feat: Implement IcePop in rollout correction | ### What does this PR do?
Refer to https://arxiv.org/pdf/2510.18855
This PR adds IcePop to rollout correction by reusing the existing rollout_is_threshold field instead of introducing new fields for compatibility.
With this change, rollout_is_threshold:
- float (e.g., 2.0) keeps the current TIS behavior and... | diff --git a/docs/algo/rollout_corr.md b/docs/algo/rollout_corr.md
index 066919b67d57..76acb27ac877 100644
--- a/docs/algo/rollout_corr.md
+++ b/docs/algo/rollout_corr.md
@@ -170,7 +170,7 @@ For advanced customization or YAML-based configs:
algorithm:
rollout_correction:
rollout_is: token # IS weights: "token"... | 2 | 2 | 2 | [{"id": "G0", "claim": "With ICE-POP, compute_is_metrics clamps the intentionally zeroed out-of-bounds weights up to rollout_is_threshold_lower when computing std/ESS, which can significantly misreport variance/ESS; it should compute metrics from the actual weights or clamp with min=0.0 when ICE-POP is enabled.", "cate... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.