diff --git a/tasks/format-code-task-000028/instruction.md b/tasks/format-code-task-000028/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..8c98eeb919d806fe3ba5508ccbc558256ab87a1b --- /dev/null +++ b/tasks/format-code-task-000028/instruction.md @@ -0,0 +1,33 @@ +Fix the following issue: + +# Add a `validateAllPaths` validation option for documents + +Mongoose documents already let you narrow down what gets validated. For example, a schema +configured with `validateModifiedOnly: true` only runs validators on paths that were actually +modified, and callers can pass `pathsToValidate` / `pathsToSkip` to further restrict the work. + +We need the opposite escape hatch: a way to force validation of **every** path defined on the +schema, regardless of what has (or hasn't) been modified. + +Add a `validateAllPaths` boolean option that is accepted by both the asynchronous `validate()` +method and the synchronous `validateSync()` method (via their options object). When +`validateAllPaths` is `true`: + +- Validation runs against every path declared in the schema, including paths whose values were + never modified. This takes precedence over a schema-level `validateModifiedOnly` setting, so an + unmodified-but-invalid path is reported as an error even when the schema would normally skip it. +- Each element of an array path is validated too, so element-level validators (e.g. `enum` on the + items of a string array) run against every element. A failing element is reported under its + indexed path (for example `tags.0`). +- A document whose paths are all valid still passes: `validateSync()` returns `undefined` and + `validate()` resolves. + +The option is mutually exclusive with the existing path-narrowing options. Combining +`validateAllPaths` with any of the following must raise a `TypeError` (and `validate()` must reject +with it) before any validation runs, using these exact messages: + +- with `pathsToSkip` → `Cannot set both \`validateAllPaths\` and \`pathsToSkip\`` +- with `pathsToValidate` → `Cannot set both \`validateAllPaths\` and \`pathsToValidate\`` +- with a `validateModifiedOnly` option → `Cannot set both \`validateAllPaths\` and \`validateModifiedOnly\`` + +These rules apply identically to `validate()` and `validateSync()`. diff --git a/tasks/format-code-task-000028/task.toml b/tasks/format-code-task-000028/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..08300e6008af8024df14772f71017feaa6e5be60 --- /dev/null +++ b/tasks/format-code-task-000028/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000028" +description = "Add a `validateAllPaths` validation option for documents" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000028" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Add a `validateAllPaths` validation option for documents" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:233c258f8339f4f14aa2ba6fc7b2ed89c16f92a03f87c35f254bfbc2eb35f18f" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2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Wcz0BpYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000043/instruction.md b/tasks/format-code-task-000043/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..320cf120ae508489956d48c1c67e651871ac0b86 --- /dev/null +++ b/tasks/format-code-task-000043/instruction.md @@ -0,0 +1,68 @@ +Fix the following issue: + +# Fix DataFrame uploads with reserved/geometry columns + +Uploading a `pandas`/`geopandas` DataFrame to CARTO via `Dataset(df).upload(...)` is +generating inconsistent and sometimes broken SQL. For example, a DataFrame whose only +columns are `cartodb_id` and `the_geom` ends up producing a `CREATE TABLE` statement with +a dangling leading comma like `CREATE TABLE t (, the_geom geometry(...))`, which the +database rejects. The root cause is that the column list used to create the table, the +column list used in the `COPY` statement, and the values written to each row are all +computed independently and can disagree about how many columns there are and what they are +called. + +Make the upload path derive a single, consistent description of the destination columns +from the DataFrame and use it everywhere. The observable behavior of an upload (the +`CREATE TABLE` statement and the `COPY ... FROM stdin` statement together with the rows of +CSV data streamed to the backend) must satisfy the following contract. + +## Column selection and ordering + +- Every column of the DataFrame is uploaded, in the DataFrame's original column order. In + particular `cartodb_id` is treated as a normal column and is kept. +- A column named `the_geom_webmercator` (matched case-insensitively) is always dropped and + never appears in the table, the `COPY` column list, or the data. + +## Geometry handling + +- Exactly one column is treated as the geometry. If the DataFrame is a GeoDataFrame with an + active geometry column, that column is used; otherwise the first column whose lower-cased + name is one of `the_geom`, `geom`, `geometry` is used, considered in that order of + priority (so if several are present, `the_geom` wins, then `geom`, then `geometry`). +- The chosen geometry column is named `the_geom` in the destination, declared with type + `geometry(, 4326)` where `` is detected from the data (e.g. + `Point`), and its values are emitted as `SRID=4326;`. A null/missing geometry value + produces an empty field. +- Any other column that merely happens to be named like a geometry but was not selected as + *the* geometry column is uploaded as an ordinary column: it keeps its (normalized) name + and its value is written verbatim, not re-encoded. + +## Ordinary columns + +- Non-geometry column names are normalized to SQL-safe names (lower-cased, spaces and other + unsupported characters replaced, etc.) in both the `CREATE TABLE` and the `COPY` column + list. Values are written in their string form; a null value produces an empty field. +- Column SQL types in `CREATE TABLE` are derived from the DataFrame dtypes: + `float64`/`float32` → `numeric`, `int64` → `bigint`, `int32` → `integer`, + `object` → `text`, `bool` → `boolean`, datetime dtypes → `timestamp`; anything else + defaults to `text`. + +## `with_lnglat` + +- When `with_lnglat=(lng_col, lat_col)` is passed, an extra geometry column named + `the_geom` of type `geometry(Point, 4326)` is appended after the regular columns, built + per row as `SRID=4326;POINT ( )`. The `lng_col` and `lat_col` columns are still + uploaded as ordinary columns. +- When `with_lnglat` is used, any geometry column that would otherwise have been detected in + the DataFrame is dropped, so the synthesized point is the only geometry uploaded. + +## Statement format + +The `COPY` statement keeps its existing shape: + +``` +COPY (,,...) FROM stdin WITH (FORMAT csv, DELIMITER '|'); +``` + +with the destination column names joined by commas (no spaces). Each streamed row is the +column values joined by `|` and terminated by a newline, encoded to bytes. diff --git a/tasks/format-code-task-000043/task.toml b/tasks/format-code-task-000043/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..2d199dc1884759a310463113b584b36295ecdf4c --- /dev/null +++ b/tasks/format-code-task-000043/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000043" +description = "Fix DataFrame uploads with reserved/geometry columns" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000043" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Fix DataFrame uploads with reserved/geometry columns" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:22dbc5e3bb2b375a9032d568dcf57e02f1fcc0391f31cdc9ae5106cb4ef46404" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS9oLQ31nGfijFkG/UysGl53/Wbi2nHULOhbQpS4nQ8OJym/bSRiQ69cR0dQ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IAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000044/instruction.md b/tasks/format-code-task-000044/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..5ed0ad8c975c94504d4967bfea3bcc11835a6c77 --- /dev/null +++ b/tasks/format-code-task-000044/instruction.md @@ -0,0 +1,39 @@ +Fix the following issue: + +## Feature request: heading-pitch-roll transforms using aircraft (NED) convention + +I'm building a flight / UAV visualization on top of Cesium. Most of my pose data comes from autopilot logs and flight simulators, where heading / pitch / roll are defined in the standard aviation way — i.e. relative to a **North-East-Down** local frame at the aircraft's position (heading rotates about the local Down axis, pitch about local East, roll about local North). + +I tried to drive a model's `modelMatrix` with the existing helpers: + +```js +var origin = Cesium.Cartesian3.fromDegrees(lon, lat, alt); +var heading = aircraft.heading; // from sim, defined in NED +var pitch = aircraft.pitch; +var roll = aircraft.roll; + +var m = Cesium.Transforms.headingPitchRollToFixedFrame(origin, heading, pitch, roll); +// also tried Cesium.Transforms.headingPitchRollQuaternion(...) +``` + +The orientation that comes out doesn't match what the aircraft is actually doing. After staring at it for a while I realized the existing `headingPitchRollToFixedFrame` / `headingPitchRollQuaternion` interpret the angles relative to a local **East-North-Up** frame, which is a different convention from what aviation / autopilot data uses. So the same numeric (heading, pitch, roll) triple means different physical rotations in the two conventions, and feeding aircraft-convention values into the ENU-based helper gives the wrong attitude. + +Right now, to get correct attitude I have to roll my own helper on top of `Transforms.northEastDownToFixedFrame` and manually build the rotation from heading/pitch/roll, which feels like something the library should expose directly — especially since the ENU-based versions are already there. + +### Ask + +Could `Transforms` provide companions to the existing heading/pitch/roll helpers that interpret the angles using the aviation (NED) convention? Concretely, I'd like to be able to write something like: + +```js +var origin = Cesium.Cartesian3.fromDegrees(lon, lat, alt); + +// 4x4 world transform from aircraft-convention HPR +var transform = /* aircraft-HPR -> fixed frame */(origin, heading, pitch, roll); + +// and a quaternion form, mirroring the existing ENU pair +var q = /* aircraft-HPR -> quaternion */(origin, heading, pitch, roll); +``` + +so that anyone consuming flight / drone telemetry can convert directly to a world-space transform without having to re-derive the NED axis swap themselves. Defaults should match the rest of `Transforms` (WGS84 ellipsoid, optional `result` out-param). + +The names I'd expect for these new helpers are something like `aircraftHeadingPitchRollToFixedFrame` and `aircraftHeadingPitchRollQuaternion`, mirroring the existing `headingPitchRoll*` pair. \ No newline at end of file diff --git a/tasks/format-code-task-000044/task.toml b/tasks/format-code-task-000044/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..0863f848820f25964b59cf11fd707e6f7689830d --- /dev/null +++ b/tasks/format-code-task-000044/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000044" +description = "Feature request: heading-pitch-roll transforms using aircraft (NED) convention" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000044" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Feature request: heading-pitch-roll transforms using aircraft (NED) convention" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:119cc3e86df0e2ee6fe6fc7862ed26dda72bbbae0585f9a9088a41c877a9337f" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8Aqnj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p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000088/instruction.md b/tasks/format-code-task-000088/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..fe783384a9ceb632de4d49111df2f6744be005e7 --- /dev/null +++ b/tasks/format-code-task-000088/instruction.md @@ -0,0 +1,36 @@ +Fix the following issue: + +## Transaction system migrations trigger more recoveries than necessary + +I'm running a FoundationDB cluster managed by the operator and recently did +a configuration change that touches multiple transaction system process +classes at once (something that requires replacing both my log and stateless +processes). I expected the whole change to settle with a single recovery at +the end, but I'm seeing more than one recovery during what I'd consider one +migration. + +What I can observe from the operator logs and the cluster during this kind +of change: + +- The new stateless pods come up pretty quickly because they don't need + persistent storage. +- The operator excludes the old stateless processes as soon as their + replacements are ready → a recovery happens. +- The new log pods take noticeably longer because they have to wait for PV + provisioning. +- Once those are finally up, the operator excludes the old log processes → + another recovery happens. + +So a single config change ends up producing a recovery per transaction +process class as each batch of replacements comes online, instead of one +recovery at the end. Each recovery is disruptive for our workload, and for +a migration that's logically "replace the transaction system", I'd really +only expect one. + +Would it be possible for the operator to coordinate exclusions across the +transaction system process classes — i.e. hold off on excluding any of them +until it's ready to make progress on all the affected transaction classes +together — so that this kind of migration converges in a single recovery? +Storage replacements are typically much rarer than transaction-system churn +in our environment, so even just batching the transaction side would help +a lot. \ No newline at end of file diff --git a/tasks/format-code-task-000088/task.toml b/tasks/format-code-task-000088/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..915c6a976d49ca003b80d26c3ca03778c28ad962 --- /dev/null +++ b/tasks/format-code-task-000088/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000088" +description = "Transaction system migrations trigger more recoveries than necessary" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000088" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Transaction system migrations trigger more recoveries than necessary" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:2853a9b39cc1171be5ad4f4b3d49fac166c4c01da1b2208f726d22447f8322c0" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H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Z9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000100/instruction.md b/tasks/format-code-task-000100/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..02987faaaacc4ee36720094fd986cada8519f97c --- /dev/null +++ b/tasks/format-code-task-000100/instruction.md @@ -0,0 +1,11 @@ +Fix the following issue: + +## Splitting a benchmark across `--run_stage=prepare` and `--run_stage=run` fails when a flag default uses Pint units + +I'm trying to run a benchmark in two phases by invoking PerfKitBenchmarker once with `--run_stage=prepare` and then again with `--run_stage=run`, so that the pickled state from the prepare phase is picked up by the run phase. + +This works for plain benchmarks, but as soon as the benchmark declares a flag whose default value is a Pint quantity (using `UNIT_REGISTRY` from `perfkitbenchmarker`) and I don't explicitly override it on the command line, the run phase blows up while loading the saved state. If I override the same flag on the command line so the default is never pickled, the two-stage run goes through fine. + +It looks like quantities created against the prepare phase's `UNIT_REGISTRY` don't survive a round-trip through pickle into the run phase, which has its own registry instance. For users this is pretty surprising — the default value of a flag shouldn't break `--run_stage` separation just because it carries units. + +Could `perfkitbenchmarker` make Pint quantities safe to pickle/unpickle so that the prepare/run split works regardless of whether a units flag uses its default? \ No newline at end of file diff --git a/tasks/format-code-task-000100/task.toml b/tasks/format-code-task-000100/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..984a3bbfac81cdc1d8af0109ded3e8512b6b56db --- /dev/null +++ b/tasks/format-code-task-000100/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000100" +description = "Splitting a benchmark across `--run_stage=prepare` and `--run_stage=run` fails when a flag default uses Pint…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000100" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Splitting a benchmark across `--run_stage=prepare` and `--run_stage=run` fails when a flag default uses Pint…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:c69033924f2984abe48b7d34902ce4bdc0eca6f7ca08101779b3d655014b1ee4" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJ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d63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000109/instruction.md b/tasks/format-code-task-000109/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..fae4566be8b38c8eba625d7d09a53bd2f676d3cd --- /dev/null +++ b/tasks/format-code-task-000109/instruction.md @@ -0,0 +1,30 @@ +Fix the following issue: + + +### Related issue + - #7644 + +### Expected behavior + - deployed resources should be cleaned up with ``skaffold delete`` command + +### Actual behavior + - deployed resources are not released after running ``skaffold delete`` command + + +### Steps to reproduce the behavior + +1. checkout main branch, and run make to build binary. +2. run ``skaffold run`` in ``example/getting_started`` folder, +3. run ``skaffold delete`` to delete resources. +4. run ``kubectl get pod``, should see ``getting_started`` pods are still running. However, the expected behavior is all resources in the run should be cleaned up. + +### information + - Kubeclt deployer works for v1 as its clean up method is able to read the manifests configured for this deployer by calling Dependencies() method, so cleanUp method is able to release resource defined in those manifests. + - In v2, manifests are not defined under deployer, and schema upgrade will nil out kubectl deployer for old version schema as well. Cleanup method is not calling Dependencies(). However, even we call Dependencies() method, it returns nothing, so it won't fix the problem. + - As team discussed, we've decided to take advantages of manifests config in skaffold.yaml and use the rendered manifests as source data for resource deletion in v2. The implementation will #7644 as well + - The engineering work may be easier after #7572 merged into main. + +Note: I'd expect the `Runner.Render` entrypoint to be reused here, and `Cleanup` to take something like a `*manifest.ManifestListByConfig` so per-config rendered manifests can flow through. \ No newline at end of file diff --git a/tasks/format-code-task-000109/task.toml b/tasks/format-code-task-000109/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..7647c752ea0a9f518411f2b64007fe0c5c595ed6 --- /dev/null +++ b/tasks/format-code-task-000109/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000109" +description = "Issues without logs and details are more complicated to fix." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000109" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Issues without logs and details are more complicated to fix." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:44fa53b2c677e24a2d7af58ff9af5b9d4b92a78c63d324a2542a8a1c4a82ff72" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoR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XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000131/instruction.md b/tasks/format-code-task-000131/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..b935ce3f621bc0b9bc69ff4ffe9aff9e7f41329b --- /dev/null +++ b/tasks/format-code-task-000131/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +## SLES hosts aren't being recognized as a known OS + +We have a mixed Linux fleet managed through Katello — RHEL, CentOS, Fedora, and a chunk of SUSE Linux Enterprise Server boxes. The Red Hat / CentOS / Fedora ones get their OS picked up correctly, but for the SLES hosts the OS comes back as nothing — Katello doesn't seem to map the distribution name reported by the subscription consumer to anything at all, so they end up without a proper OS assignment. + +Expected: SLES (and SUSE Linux Enterprise in general, since the distribution name reported can vary a bit) should be a recognized OS just like RHEL / CentOS / Fedora are. Could support for it be added? \ No newline at end of file diff --git a/tasks/format-code-task-000131/task.toml b/tasks/format-code-task-000131/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..c347107e997253513b349b6b252b3bafdfdcc292 --- /dev/null +++ b/tasks/format-code-task-000131/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000131" +description = "SLES hosts aren't being recognized as a known OS" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Ruby" +domain = "code" +keywords = ["code", "Ruby"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000131" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "SLES hosts aren't being recognized as a known OS" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:5477d554b0339de5d9615aad38b27e8acc8607a7de0fa3419aaf6fcfb6e69d95" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVx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3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000136/instruction.md b/tasks/format-code-task-000136/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..e058363a8fdbb17b0c7451264ea4b60315bef1cc --- /dev/null +++ b/tasks/format-code-task-000136/instruction.md @@ -0,0 +1,6 @@ +Fix the following issue: + +Default to Anonymous Access when no identity config is present +Currently the AuthConfig requires at least one identity evaluator config to be present or all requests will fail with `401 Unauthorized`. One who wants to skip identity verification phase needs to explicitly add a trivial `anonymous: {}` identity config. + +This is an RFE to make this the standard behaviour when no identity evaluator config is present in the AuthConfig. \ No newline at end of file diff --git a/tasks/format-code-task-000136/task.toml b/tasks/format-code-task-000136/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..aac757e87fa4ff6528ba23fe5c2e94d70b8c27ba --- /dev/null +++ b/tasks/format-code-task-000136/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000136" +description = "Default to Anonymous Access when no identity config is present" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000136" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Default to Anonymous Access when no identity config is present" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:3ad9131f66172e4fa5bd09c87b3308185738ca59575717ec1978cd414f60736a" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbR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2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000225/instruction.md b/tasks/format-code-task-000225/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..4a8a9f8432e8999c02b11990bda85734456f3285 --- /dev/null +++ b/tasks/format-code-task-000225/instruction.md @@ -0,0 +1,62 @@ +Fix the following issue: + +Change `dims` keyword of sum functions to `dim` +I have come across a case where linopy does not adhere to the naming of xarray and this problem can only be solved with an unnecessary type check. Here is a short linear equation that should work with both pure xarray instances and a xarray/linopy mix. + +For this let $$func(A,x,\tilde x) = A^T(x-\tilde x) = A^Tx - A^T\tilde x = u$$ + +where +- $A \in \mathbb{R}^n \times \mathbb{R}^m$ is some (xarray) data matrix +- $\tilde x \in \mathbb{R}^n$ is a (xarray) data array +- $x \in \mathbb{R}^n$ is **EITHER** a (linopy) variable **OR** a (xarray) data array +- $u \in \mathbb{R}^m$ is the result. + +The following minimal example shows that a type check must be made in the implementation of $func$. The reason for this is only the different naming of `dim` and `dims`: + +```python +import linopy +import xarray as xr + + +def func(A, x, x_tilde): + tmp = A * x - A * x_tilde + if type(tmp) == xr.DataArray: + return tmp.sum(dim="X") + return tmp.sum(dims="X") + + +dimX = xr.DataArray(["x1", "x2", "x3"], dims=["X"]) +dimU = xr.DataArray(["u1", "u2", "u3", "u4"], dims=["U"]) +A = xr.DataArray( + [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3]], + coords={"X": dimX, "U": dimU}, +) +x_tilde = xr.DataArray([10, 20, 30], dims=["X"]) + +x_as_variable = linopy.Model().add_variables(coords=[dimX]) +x_as_value = xr.DataArray([1, 2, 3], coords=[dimX]) + +print(func(A, x_as_variable, x_tilde)) +print("===") +print(func(A, x_as_value, x_tilde)) +``` + +with the expected output + +``` +LinearExpression (U: 4): +------------------------ +[u1]: +1 var0[x1] + 2 var0[x2] + 3 var0[x3] - 140 +[u2]: +1 var0[x1] + 2 var0[x2] + 3 var0[x3] - 140 +[u3]: +1 var0[x1] + 2 var0[x2] + 3 var0[x3] - 140 +[u4]: +1 var0[x1] + 2 var0[x2] + 3 var0[x3] - 140 +=== + +array([-126, -126, -126, -126]) +Coordinates: + * U (U) module`. Given a name it resolves the full module so callers +can reach its data-fetching hooks: + +- unknown name → `null`; +- lazy module (has a `module` function) → the result of invoking that function; +- static module → the stored object itself. + +### `getComponentFactory(config?)` + +Accepts an optional config object with an optional `isEditing` boolean (treat a missing config as +`{}`). Returns a function `(componentName, exportName?) => Component` that resolves to the React +component for a name: + +- unknown name → `null`; +- lazy component (has an `element` function) → the result of invoking `element(isEditing)`, passing + the configured editing flag straight through; +- static module: + - when an `exportName` other than the SXA default name `"Default"` is supplied, return that named + export from the module; + - otherwise return the module's default component, preferring the SXA `Default` export, then the + Next.js `default` export, and `null` if neither exists. (Asking for the `"Default"` export name + explicitly follows this same default-resolution rule.) + +Each call to `getModuleFactory()` / `getComponentFactory()` must return a usable factory, and the +two factories must reflect the same registry the builder was constructed with. diff --git a/tasks/format-code-task-000249/task.toml b/tasks/format-code-task-000249/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..bbbef91896f0b5b6d9c7280958fcf6fed8ad9224 --- /dev/null +++ b/tasks/format-code-task-000249/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000249" +description = "Add a ComponentBuilder for the Next.js package" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "TypeScript" +domain = "code" +keywords = ["code", "TypeScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000249" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Add a ComponentBuilder for the Next.js package" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:e17ded671e1c8df75928320eb14ddd08a6d4748531246d307033ace0d8ff0828" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vO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1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000271/instruction.md b/tasks/format-code-task-000271/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..3f918a8c6cd7176a3e09fcde26c083e08ea34b73 --- /dev/null +++ b/tasks/format-code-task-000271/instruction.md @@ -0,0 +1,80 @@ +Fix the following issue: + +[ts-interface-generator ] Return type for the method "remove" for aggregation of cardinality 0 .. n does not match runtime behaviour +**Describe the bug** +I was just having a look into OpenUI5 with TypeScript for a private project. I played around with custom controls. +I defined a custom aggreagation with `multiple: true`: +```ts +import Control from "sap/ui/core/Control"; +import type { MetadataOptions } from "sap/ui/core/Element"; +import RenderManager from "sap/ui/core/RenderManager"; + +/** + * @namespace ui5.typescript.helloworld.control + */ +export default class MyControl extends Control { + // The following three lines were generated and should remain as-is to make TypeScript aware of the constructor signatures + constructor(idOrSettings?: string | $MyControlSettings); + constructor(id?: string, settings?: $MyControlSettings); + constructor(id?: string, settings?: $MyControlSettings) { super(id, settings); } + + static readonly metadata: MetadataOptions = { + properties: { + "text": "string" + }, + aggregations: { + "columns": { type: "sap.ui.core.Control", multiple: true}, + } + }; + + static renderer = { + apiVersion: 2, + render: function (rm: RenderManager, control: MyControl): void { + rm.openStart("div", control); + rm.openEnd(); + rm.text(control.getText()); + rm.close("div"); + } + }; + + onclick = function() { + alert("Hello World!"); + } +} +``` + +This leads to the following generated interface: +```ts +export default interface MyControl { + + // property: text + getText(): string; + setText(text: string): this; + + // aggregation: columns + getColumns(): Control[]; + addColumn(columns: Control): this; + insertColumn(columns: Control, index: number): this; + removeColumn(columns: number | string | Control): this; + removeAllColumns(): Control[]; + indexOfColumn(columns: Control): number; + destroyColumns(): this; + } +} +``` + +Nevertheless during runtime the method `insertColumn` and ``removeColumn` return the inserted or removed element: +![image](https://github.com/user-attachments/assets/7646e89c-f25a-40b9-9689-0b096e900505) + +**Expected behavior** +The interface generator should generate the return type according to runtime behaviour: +``` + insertColumn(columns: Control, index: number): Control | undefined; +removeColumn(columns: number | string | myColumn): Control | undefined; +``` + +I checked with other aggregations with the cardinality `0 .. n`. They have all the return type `Type of Aggregation |null` (see `sap.ui.table.Table` or `sap.m.Page`). + +**Additional context** +I used version `0.8.3` of the module `@ui5/ts-interface-generator` and the following OpenUI5 version: +![image](https://github.com/user-attachments/assets/8c380f23-a931-481a-b1b1-24e2efd11cbf) \ No newline at end of file diff --git a/tasks/format-code-task-000271/task.toml b/tasks/format-code-task-000271/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..e097bcabff95ec7be647829e90bfd846ec21e379 --- /dev/null +++ b/tasks/format-code-task-000271/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000271" +description = "[ts-interface-generator ] Return type for the method \"remove\" for aggregation of cardinality 0 .. n does not…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "TypeScript" +domain = "code" +keywords = ["code", "TypeScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000271" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "[ts-interface-generator ] Return type for the method \"remove\" for aggregation of cardinality 0 .. n does not…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:ca6ebc025ee81ba81e3f5ee807dee13262ab8eadb4a87781124895ea27381a02" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsy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/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000276/instruction.md b/tasks/format-code-task-000276/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..9128878cfed5da3d8684fdca0a71267c3306ff3d --- /dev/null +++ b/tasks/format-code-task-000276/instruction.md @@ -0,0 +1,25 @@ +Fix the following issue: + +## False positive "undefined variable" inside `elseif` branch when the condition uses `isset` + +I'm running noverify on a fairly small PHP file and it's flagging variables as undefined in an `elseif` branch even though I clearly guard them with `isset` in that same `elseif`'s condition. + +Roughly what my code looks like: + +```php +`, defaulting the output path to `./mutations_presence_absence.csv`, refusing to overwrite an existing output file unless `--force` is supplied, and exiting non-zero with `Outfile already exists. Change name of outfile or run with --force` or `Unable to locate input file ` for those error cases. + +For a VCF whose metadata includes `##fileformat=VCFv4.1` and `##FORMAT=`, the command should print `VCF version 4.1 detected` while processing and `Reached the end of the file` before exiting 0. It should write a quoted comma-separated CSV whose header is the VCF header with a `DUMMY` column inserted between `FORMAT` and the sample columns. For example, a record `NC_000962 4013 0 T C 9999 0 TYPE=snp GT 0 1 1 1` should become a CSV row with the original first nine fields, `False` in the `DUMMY` column, and only the genotype values `0,1,1,1` in the sample columns even if genotype cells contain colon-separated subfields. + +The `--types` option should accept a comma-separated list such as `--types snp,ins,del`; when it is not `ALL`, only VCF records whose INFO column contains a matching `TYPE=` should be emitted. Multiallelic ALT values should be split into separate binary reference-versus-alternate rows: for `ALT=C,A` with sample genotypes `0,0,1,2`, the output should contain one row for `C` with `DUMMY` set to `True` and sample values `0,0,1,0`, and another row for `A` with sample values `0,0,0,1`; missing genotype `.` should be treated as `0`. If the VCF metadata says the GT format has `Number` other than `1`, the command should exit non-zero with `ERROR: Expected a single allele per genotype. Scoary only works for haploid organisms.` \ No newline at end of file diff --git a/tasks/format-code-task-000303/task.toml b/tasks/format-code-task-000303/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..9175ff8d84de01bc294cbd731a43d8c3f6898abb --- /dev/null +++ b/tasks/format-code-task-000303/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000303" +description = "I want Scoary to install a `vcf2scoary` command for converting haploid VCF files into the Roary/Scoary-style…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Unknown" +domain = "code" +keywords = ["code", "Unknown"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000303" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want Scoary to install a `vcf2scoary` command for converting haploid VCF files into the Roary/Scoary-style…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:0b36240913bbf2623276d6e2811d4db07cb78a285db080758d0a4f4a17218cc6" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXL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dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000332/instruction.md b/tasks/format-code-task-000332/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..7661cb69c85082d749fdcea78b2bee1fe92e2963 --- /dev/null +++ b/tasks/format-code-task-000332/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +I want PeekingDuck's dabble pipeline nodes to support zone occupancy counting from object detections through two node objects: `dabble.bbox_to_btm_midpoint.Node(config: Dict[str, Any] = None, **kwargs: Any)` with `run(inputs: Dict[str, Any]) -> Dict[str, Any]`, and `dabble.zone_count.Node(config: Dict[str, Any] = None, **kwargs: Any)` with `run(inputs: Dict[str, Any]) -> Dict[str, Any]`. + +The `bbox_to_btm_midpoint` node should read normalized bounding boxes from `inputs["bboxes"]` and the image array from `inputs["img"]`, then return `{"btm_midpoint": [...]}` where each point is the integer bottom midpoint in image pixels. For an image with shape `(400, 600, 3)` and one bbox `[0.1, 0.2, 0.3, 0.4]`, `run()` should return `{"btm_midpoint": [(120, 160)]}`. For the same image with no boxes, it should return `{"btm_midpoint": []}`, and it should not mutate the input image or bbox list. + +The `zone_count` node should accept a config containing `input`, `output`, `resolution`, and `zones`, prepare the configured polygons at construction time, and count incoming `inputs["btm_midpoint"]` points on each call to `run()`. Zone coordinates may be all non-negative integer pixel coordinates, or all fractions between 0 and 1 that are resolved against `resolution`; for `resolution: [1280, 720]`, the fractional zone `[[0.5, 0], [1, 0], [1, 1], [0.5, 1]]` should resolve to `[(640, 0), (1280, 0), (1280, 720), (640, 720)]` in the returned `"zones"` list. With zones `[[[0, 0], [640, 0], [640, 720], [0, 720]], [[0.5, 0], [1, 0], [1, 1], [0.5, 1]]]` and points `[(2, 2), (3, 3), (720, 700), (650, 50)]`, `run()` should return `"zone_count": [2, 2]`; with no points it should return counts `[0, 0]` and the same resolved zones. If a single configured zone mixes pixel coordinates and fractional coordinates, constructing the node should raise `ValueError` explaining that the zone must be all pixel-wise points or all fractions of the frame between 0 and 1. \ No newline at end of file diff --git a/tasks/format-code-task-000332/task.toml b/tasks/format-code-task-000332/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..d745caf5e180cd66f37c45b179648f84744e6d92 --- /dev/null +++ b/tasks/format-code-task-000332/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000332" +description = "I want PeekingDuck's dabble pipeline nodes to support zone occupancy counting from object detections through…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000332" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want PeekingDuck's dabble pipeline nodes to support zone occupancy counting from object detections through…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:bc95ee4920fa1ff9a3c1fb895837bbd4708c18f5c15f9e07d1c5f79d5934d4c6" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX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69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000418/instruction.md b/tasks/format-code-task-000418/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..6354765d7f54bc3a874379bd935f7f8b40c520f6 --- /dev/null +++ b/tasks/format-code-task-000418/instruction.md @@ -0,0 +1,63 @@ +Fix the following issue: + +### Apache Airflow version + +2.10.5 + +### If "Other Airflow 2 version" selected, which one? + +_No response_ + +### What happened? + +When configuring Vault as secrets backend with AWS IAM authentication, for example, when installing Airflow on AWS EKS, and using the IRSA (IAM Role for Service Accounts) of the Airflow Pods to authenticate to Vault, the STS authentication call will fail if Vault is configured with a STS region other than `us-east-1`. This is a pretty common scenario whenever one is not using that region and wants to minimize the latency of STS API calls. +The `region` parameter is never passed to `hvac.api.auth_methods.Aws.iam_login()` by the `airflow.providers.hashicorp._internal_client.vault_client._VaultClient._auth_aws_iam()` method, which [defaults to `us-east-1`](https://github.com/hvac/hvac/blob/ea3a6520cc08f69470494cce0ac26a2ab025f91d/hvac/api/auth_methods/aws.py#L747). + +Example error message: +``` +hvac.exceptions.InvalidRequest: error making upstream request: received error code 403 from STS: + + Sender + SignatureDoesNotMatch + Credential should be scoped to a valid region. + + 84b47cd7-fc7b-442f-b75b-309b93d2b2ee + +, on post http://vault-active.vault.svc.cluster.local:8200/v1/auth/aws/login +``` + +### What you think should happen instead? + +The AWS region should be configurable as an input parameter of VaultBackend (and _VaultClient), and should default to the boto3 configuration if not provided (from env vars, instance metadata, etc.). + +### How to reproduce + +Just configure Vault with a regional STS endpoint different than `us-east-1`. + +### Operating System + +Debian 12 Bookworm + +### Versions of Apache Airflow Providers + +`apache-airflow-providers-hashicorp==4.0.0` + +### Deployment + +Official Apache Airflow Helm Chart + +### Deployment details + +_No response_ + +### Anything else? + +_No response_ + +### Are you willing to submit PR? + +- [x] Yes I am willing to submit a PR! + +### Code of Conduct + +- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) \ No newline at end of file diff --git a/tasks/format-code-task-000418/task.toml b/tasks/format-code-task-000418/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..ca37cda253bab38d911ea7dced9616884201ccac --- /dev/null +++ b/tasks/format-code-task-000418/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000418" +description = "Apache Airflow version" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000418" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Apache Airflow version" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:df6da86374e3f9cf19e78ffb02f8a03c585fa4683232234e2ea69966495f5e72" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qL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1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000420/instruction.md b/tasks/format-code-task-000420/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..b1a6543032f708e694084c8fe1610c72b57e2b45 --- /dev/null +++ b/tasks/format-code-task-000420/instruction.md @@ -0,0 +1,37 @@ +Fix the following issue: + +## Add support for the `decimal` logical type in Python AVRO + +The Avro spec defines a `decimal` logical type that annotates either a `bytes` or `fixed` schema with `precision` and `scale` properties — typically used for representing exact-precision values like monetary amounts. The Java implementation handles this, but the Python library currently has no real support for it. + +For example, I have a schema like: + +```json +{ + "type": "record", + "name": "Transaction", + "fields": [ + { + "name": "amount", + "type": { + "type": "bytes", + "logicalType": "decimal", + "precision": 4, + "scale": 2 + } + } + ] +} +``` + +Parsing this with `avro.schema.parse(...)` succeeds, but the `logicalType` / `precision` / `scale` keys just end up sitting in the "other properties" bucket of the parsed schema — there's no decimal-aware behaviour anywhere downstream. Concretely: + +- if I try to write `{"amount": Decimal("12.34")}` the writer fails validation, because a `bytes` field is expected to be a `str`; +- the same problem happens for a `fixed`-typed decimal; +- and on the read side I just get raw bytes back instead of a `Decimal`. + +I'd like the Python implementation to actually support the `decimal` logical type on both `bytes`- and `fixed`-backed schemas, so a Python `decimal.Decimal` value can be round-tripped through serialization and deserialization, with the bytes encoded per the Avro spec (two's-complement big-endian of the unscaled integer). + +It would also be very useful if schema parsing validated `precision` / `scale` at parse time — misconfigured schemas (e.g. non-positive precision, negative scale, scale greater than precision, or a precision that wouldn't even fit in the declared fixed size) should fail loudly rather than silently producing garbage at write time. + +Tracked upstream as AVRO-1816. \ No newline at end of file diff --git a/tasks/format-code-task-000420/task.toml b/tasks/format-code-task-000420/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..d1a8f4986a05fd45f5bf217cee8578f264351729 --- /dev/null +++ b/tasks/format-code-task-000420/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000420" +description = "Add support for the `decimal` logical type in Python AVRO" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000420" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Add support for the `decimal` logical type in Python AVRO" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:b6aa396275b7aae15c7861d89d772c1ccfd5e62378480b4b49081d490e0a4136" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWx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r8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000427/instruction.md b/tasks/format-code-task-000427/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..35fceed3f3d31d221769f3c68c3b6896a83bb507 --- /dev/null +++ b/tasks/format-code-task-000427/instruction.md @@ -0,0 +1,38 @@ +Fix the following issue: + +1. Please describe the issue you observed: + 1. start local RocketMQ cluster + 2. use example/consumer/simple/main.go start a consumer. + 3. use ./mqadmin resetOffset tool to reset offset. + 4. consumer process exit with. + + INFO[0005] receive reset consumer offset request... broker="127.0.0.1:30931" consumerGroup=groupB timestamp=631123200000 topic=topicB +panic: runtime error: index out of range [1] with length 1 +goroutine 113 [running]: +github.com/apache/rocketmq-client-go/v2/internal.(*ResetOffsetBody).Decode(0xc000461d20, {0xc00040c100, 0xfd, 0xfd}) + /Users/bytedance/github/rocketmq-client-go/internal/model.go:309 +0xa45 +github.com/apache/rocketmq-client-go/v2/internal.GetOrNewRocketMQClient.func5(0xc000416a80, {0x14ed5c8, 0xc0003260c0}) + /Users/bytedance/github/rocketmq-client-go/internal/client.go:303 +0x3f8 +github.com/apache/rocketmq-client-go/v2/internal/remote.(*remotingClient).processCMD.func2() + /Users/bytedance/github/rocketmq-client-go/internal/remote/remote_client.go:207 +0x94 +github.com/apache/rocketmq-client-go/v2/primitive.WithRecover(0xc000421ef0) + /Users/bytedance/github/rocketmq-client-go/primitive/base.go:100 +0x47 +created by github.com/apache/rocketmq-client-go/v2/internal/remote.(*remotingClient).processCMD + /Users/bytedance/github/rocketmq-client-go/internal/remote/remote_client.go:206 +0x378 +Exiting. + ``` + +2. Please tell us about your environment: + mac local + master client-go code. + rocketmq broker with fastjson-1.2.76.jar + +3. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc): +the test code in decode ResetOffsetBody json format is different from mine + +mine from rocketmq broker response rpc +```json +{"offsetTable":{{"brokerName":"RaftNode00","queueId":0,"topic":"topicB"}:0,{"brokerName":"RaftNode00","queueId":1,"topic":"topicB"}:0,{"brokerName":"RaftNode00","queueId":2,"topic":"topicB"}:0,{"brokerName":"RaftNode00","queueId":3,"topic":"topicB"}:0}} +``` + +any different from fastjson config ? \ No newline at end of file diff --git a/tasks/format-code-task-000427/task.toml b/tasks/format-code-task-000427/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..5d36dd19b22f6f6f91f1155ed7cf57bd506d0f69 --- /dev/null +++ b/tasks/format-code-task-000427/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000427" +description = "1. Please describe the issue you observed:" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000427" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "1. Please describe the issue you observed:" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:6219ee480cdd0dc87d2eeeb62f96733d66a1d909428abac77a74f25ca6824252" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS9oLQ31nGfijFkG/UysGl53/Wbi2nHULOhbQpS4nQ8OJym/bSRiQ69cR0dQL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AeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000487/instruction.md b/tasks/format-code-task-000487/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..5276a2001c049e83c87d6bc7a7af6a2f6b88e413 --- /dev/null +++ b/tasks/format-code-task-000487/instruction.md @@ -0,0 +1,22 @@ +Fix the following issue: + +## `ToIPDesc` can't parse IPv6 addresses + +I'm trying to use `utils.ToIPDesc` with IPv6 peer addresses and it doesn't work. For example: + +```go +desc, err := utils.ToIPDesc("::1:9651") +// err != nil -> "bad ip format" +``` + +Any IPv6 address goes through this path because `ToIPDesc` looks like it just splits the input on `:` and expects exactly two parts, which is fine for `127.0.0.1:9651` but obviously falls apart the moment the host itself contains colons. + +The reverse direction has the same problem. If I build an `IPDesc` with an IPv6 `net.IP` and call `String()` on it, I get something like + +``` +::1:9651 +``` + +which is ambiguous — you can't tell where the address ends and the port begins, and feeding it back into `ToIPDesc` won't round-trip. + +IPv4 still needs to keep working as before (`127.0.0.1:9651` etc.), but `ToIPDesc` / `IPDesc.String()` should handle IPv6 in an unambiguous way so nodes can actually be addressed over v6. \ No newline at end of file diff --git a/tasks/format-code-task-000487/task.toml b/tasks/format-code-task-000487/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..c6a263dff5c30322c612f27d3e1b44aaed7dd907 --- /dev/null +++ b/tasks/format-code-task-000487/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000487" +description = "`ToIPDesc` can't parse IPv6 addresses" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000487" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "`ToIPDesc` can't parse IPv6 addresses" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:679370c28f3b07cf3943f177574f2511d87355c3deed9ff342b3154444e8acb5" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMF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gNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000552/instruction.md b/tasks/format-code-task-000552/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..afaaa425520fec51f6a3b94fc01e7c857379b99a --- /dev/null +++ b/tasks/format-code-task-000552/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +I want the existing `NSE` client object to expose corporate filings and exchange communications query methods that use the client session and return the NSE JSON response directly. The public instance methods should be `actions(segment: Literal["equities", "sme", "debt", "mf"] = "equities", symbol: Optional[str] = None, from_date: Optional[datetime] = None, to_date: Optional[datetime] = None) -> List[Dict]`, `announcements(index: Literal["equities", "sme", "debt", "mf", "invitsreits"] = "equities", symbol: Optional[str] = None, fno=False, from_date: Optional[datetime] = None, to_date: Optional[datetime] = None) -> List[Dict]`, and `boardMeetings(index: Literal["equities", "sme"] = "equities", symbol: Optional[str] = None, fno: bool = False, from_date: Optional[datetime] = None, to_date: Optional[datetime] = None) -> List[Dict]`. + +For `actions()`, call `/corporates-corporateActions` with `index` set from `segment`; include `symbol` only when supplied, and include `from_date` and `to_date` formatted as `dd-mm-YYYY` only when both dates are supplied. For `announcements()`, call `/corporate-announcements` with `index`, optional `symbol`, optional `fo_sec=True` when `fno` is true, and the same paired date-window behavior. For `boardMeetings()`, call `/corporate-board-meetings` with the same `index`, optional `symbol`, optional `fo_sec=True`, and paired date-window behavior. In all three of those methods, if both dates are supplied and `from_date > to_date`, raise `ValueError` with the exact message "'from_date' cannot be greater than 'to_date'". + +I also need `annual_reports(symbol: str, segment: Literal["equities", "sme"] = "equities") -> Dict[str, List[Dict[str, str]]]` to call `/annual-reports` with `index=segment` and `symbol=symbol`, and `shareholding(symbol: str, index: Literal["equities", "sme"] = "equities") -> List[dict]` to call `/corporate-share-holdings-master` with `index=index` and the uppercased symbol. The same feature should include `listPastIPO(from_date: Optional[datetime] = None, to_date: Optional[datetime] = None) -> List[Dict]`: when no dates are supplied it should use today as `to_date` and 90 days before that as `from_date`, send both as `dd-mm-YYYY` to `/public-past-issues`, and return the response JSON. If `listPastIPO` receives a `to_date` earlier than `from_date`, it should raise `ValueError` with the exact message "Argument `to_date` cannot be less than `from_date`". + +Finally, add `circulars(subject: Optional[str] = None, dept_code: Optional[str] = None, from_date: Optional[datetime] = None, to_date: Optional[datetime] = None) -> dict` for exchange circular searches. With no dates it should default `to_date` to today and `from_date` to seven days before that, format both as `dd-mm-YYYY`, call `/circulars`, include `sub=subject` only when a subject is given, and include `dept=dept_code.upper()` only when a department code is given. If `circulars` receives a `to_date` earlier than `from_date`, it should raise `ValueError` with the exact message "Argument `to_date` cannot be less than `from_date`". For every method above, if the NSE response body parses to a list like `[{"symbol": "HDFCBANK"}]` or a dict like `{"data": []}`, the method should return that parsed object unchanged rather than wrapping or transforming it. \ No newline at end of file diff --git a/tasks/format-code-task-000552/task.toml b/tasks/format-code-task-000552/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..8eccb78fb08f0309a2e6f8f88833f27bbf4fc73c --- /dev/null +++ b/tasks/format-code-task-000552/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000552" +description = "I want the existing `NSE` client object to expose corporate filings and exchange communications query…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000552" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want the existing `NSE` client object to expose corporate filings and exchange communications query…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:2cab3c04b27282f16546f6975771299770b3a9685c7056cb6969f93e1c42ce4b" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmND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DjLmO6PcZakQuU8+WVtiJn+Ni6pGVDPD//n151Yvmui2gO7aJBhm+TapVEGyVXrbpBOUSumY8yPsE/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000555/instruction.md b/tasks/format-code-task-000555/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..124eb4a14357b36637bce9a9b3b14509635d02fc --- /dev/null +++ b/tasks/format-code-task-000555/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +I want the Cosmos EVM historical plugin returned by historical.NewPlugin(...) to provide finalized Ethereum block, receipt, and transaction lookup storage once it has been prepared with a Cosmos SDK context. The public methods I need are StoreBlock(block *Block) error, StoreReceipts(blockHash common.Hash, receipts Receipts) error, StoreTransactions(blockNum uint64, blockHash common.Hash, txs Transactions) error, GetBlockByNumber(number uint64) (*Block, error), GetBlockByHash(blockHash common.Hash) (*Block, error), GetTransactionByHash(txHash common.Hash) (*TxLookupEntry, error), and GetReceiptsByHash(blockHash common.Hash) (Receipts, error). Here Block, Receipts, and Transactions are from github.com/ethereum/go-ethereum/core/types, TxLookupEntry is from github.com/berachain/polaris/eth/core/types, and common.Hash is from github.com/ethereum/go-ethereum/common. + +In a concrete session, if I prepare the plugin at height 1, create a block numbered 1 containing one transaction, call StoreBlock(block), StoreReceipts(block.Hash(), receipts), and StoreTransactions(1, block.Hash(), block.Transactions()), then GetBlockByNumber(1) should return a block with the same hash and GetBlockByHash(block.Hash()) should return that same block. GetTransactionByHash(tx.Hash()) should return a lookup entry whose Tx is the transaction, TxIndex is 0, BlockNum is 1, and BlockHash is the containing block hash. GetReceiptsByHash(block.Hash()) should return receipts for that block with derived Ethereum receipt fields, including the transaction hash and block hash matching the stored block. + +Genesis should also be readable through the same block lookup API: after genesis initialization, GetBlockByNumber(0) should return the genesis block, and GetBlockByHash(genesisBlock.Hash()) should return a block with that hash. If GetBlockByHash is called with an unknown block hash, it should return core.ErrBlockNotFound. If GetTransactionByHash is called with an unknown transaction hash, it should return core.ErrTxNotFound. If GetReceiptsByHash is called for a block hash with no stored receipts, it should return a non-nil error; if receipts exist but the corresponding block cannot be found, it should return that block lookup error. + +StoreBlock should persist blocks by block number and by block hash, and it should update the historical store version to the stored block number. For non-genesis blocks, StoreBlock should reject an out-of-sequence write by panicking when the current historical store version is not exactly blockNum - 1. StoreReceipts should return any receipt marshaling error instead of silently succeeding, and StoreTransactions should return any transaction lookup entry encoding error instead of silently dropping a transaction. \ No newline at end of file diff --git a/tasks/format-code-task-000555/task.toml b/tasks/format-code-task-000555/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..7ff2614fb4ce730a6ad78135ddace6750e7d6e49 --- /dev/null +++ b/tasks/format-code-task-000555/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000555" +description = "I want the Cosmos EVM historical plugin returned by historical.NewPlugin(...) to provide finalized Ethereum…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000555" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want the Cosmos EVM historical plugin returned by historical.NewPlugin(...) to provide finalized Ethereum…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:3e644731d44c223a69d4d8edbfe5b3d346058b308428b3b8d0d030514da46878" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX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o && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000599/instruction.md b/tasks/format-code-task-000599/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..40d69eb21a1b5db9a5d4ae8509af28164c658f9c --- /dev/null +++ b/tasks/format-code-task-000599/instruction.md @@ -0,0 +1,26 @@ +Fix the following issue: + +## Allow hooks to skip checkout by clearing `BUILDKITE_REPO` + +### Use case + +We have a few buildkite pipelines that don't actually need source code—things like deployment jobs, maintenance tasks that hit external APIs, jobs that just orchestrate other jobs, etc. For those, doing a full git clone is pointless and just slows things down. + +What I'd like to do is decide in a hook (typically `environment`) whether the job needs source for this particular run, and if not, skip checkout entirely. The most natural way to express that is from the hook itself, e.g. something like: + +```bash +# .buildkite/hooks/environment +if [[ "$BUILDKITE_PIPELINE_SLUG" == "deploy-prod" ]]; then + export BUILDKITE_REPO="" +fi +``` + +### What actually happens + +Clearing or unsetting `BUILDKITE_REPO` from a hook doesn't skip checkout—the agent still goes into the checkout phase and tries to clone, which then fails (since there's no repo URL to clone from) and the whole job errors out before the command phase ever runs. + +### What I'd expect + +If `BUILDKITE_REPO` ends up empty by the time the checkout phase starts, the agent should just skip checkout and continue on to run the command. The command still needs somewhere reasonable to execute from, so the working directory should be set up sensibly even when nothing was checked out (and ideally cleaned up afterwards so we don't leak directories on the agent host across many such jobs). + +This would let people opt individual jobs out of checkout from a hook, without having to maintain a separate agent / queue / pipeline config for "no-checkout" jobs. \ No newline at end of file diff --git a/tasks/format-code-task-000599/task.toml b/tasks/format-code-task-000599/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..0bb59ccc78e65a57cc2b78c140bf7f58b93ef0b3 --- /dev/null +++ b/tasks/format-code-task-000599/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000599" +description = "Allow hooks to skip checkout by clearing `BUILDKITE_REPO`" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000599" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Allow hooks to skip checkout by clearing `BUILDKITE_REPO`" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:994c37646758ba7e20bf2558802d607829e6d2bf8cf691490aa3c08311d51470" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ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8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000641/instruction.md b/tasks/format-code-task-000641/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..e9f6d360543e99add01b9acad4dfea38abd4bbb4 --- /dev/null +++ b/tasks/format-code-task-000641/instruction.md @@ -0,0 +1,37 @@ +Fix the following issue: + +# Make the Redis engine's PUB/SUB subscriptions concurrency-safe + +The Redis engine drives all of its channel fan-out through a single Redis PUB/SUB +connection. Under load this falls apart: many client connections call into the +engine's `subscribe` / `unsubscribe` paths from different goroutines at the same +time, and they all poke that one shared PUB/SUB connection directly. The result is +a corrupted protocol stream — most of the calls come back with errors (you'll see +things like `redigo: connection closed`) and the channels never actually end up +subscribed, so messages published to them are silently dropped. + +Fix the engine so that subscribing and unsubscribing are safe to call +concurrently from any number of goroutines, while keeping the existing +single-threaded behavior intact. + +Required observable behavior: + +- `subscribe(chID)` and `unsubscribe(chID)` may be called concurrently from many + goroutines, including for different channels at the same time and for the same + channel from several goroutines. Each call must return only after its + subscription change has been applied to Redis, returning a `nil` error on + success. +- After a set of `subscribe` calls return successfully, every one of those + channels must really be subscribed on the engine's PUB/SUB connection: a + `publish` to such a channel must report that it has active subscribers. +- After a successful `unsubscribe`, the channel must no longer be subscribed: a + `publish` to it must report no active subscribers. +- Subscribing the same channel is idempotent — a single `unsubscribe` for a + channel returns it to the unsubscribed state regardless of how many times it was + subscribed. +- The engine must continue to receive and dispatch messages published to + subscribed channels exactly as before, and all of the engine's other operations + (publish, presence, history, the API listener) keep working unchanged. + +The engine is started via its `run` method before any subscribe/unsubscribe calls +are made. diff --git a/tasks/format-code-task-000641/task.toml b/tasks/format-code-task-000641/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..e5859207db2824e2791807667feb3da717d2bc69 --- /dev/null +++ b/tasks/format-code-task-000641/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000641" +description = "Make the Redis engine's PUB/SUB subscriptions concurrency-safe" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000641" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Make the Redis engine's PUB/SUB subscriptions concurrency-safe" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:e916c0668386c7f393f665e9f01f2fdd714debdb61801b590f10dbfba372eea4" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2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WdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000756/instruction.md b/tasks/format-code-task-000756/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..8123fde18f7abb69f75271baf17d6e6a8292255b --- /dev/null +++ b/tasks/format-code-task-000756/instruction.md @@ -0,0 +1,34 @@ +Fix the following issue: + +## `getValueNode` / `getValueNodes` can't address individual items inside a repeated field + +I'm using the TS `lilac` library to render rows in our web UI. After `deserializeRow`, I want to look up specific cells in the tree by path — including elements inside repeated (array) fields. + +Suppose I have a schema with a repeated field `items` where each item has a `name`. After deserializing a row, I'd expect to be able to do something like: + +```ts +const row = deserializeRow(rawRow, schema); + +// First item's name +getValueNode(row, ['items', '0', 'name']); + +// All items' names +getValueNodes(row, ['items', '*', 'name']); +``` + +What actually happens: + +1. `getValueNode(row, ['items', '0', 'name'])` returns `undefined`. In fact any concrete-index path into a repeated field returns `undefined`. +2. If I dump every value node with `listValueNodes(row)` and inspect their `L.path(...)`, every element under `items` reports the same path — something like `['items', '*', 'name']`. There's no way to tell two array elements apart, so even iterating the list manually doesn't help me find "the 0th item". +3. `getValueNodes(row, ['items', '*', 'name'])` also returns nothing useful, because the comparison is strict equality and (separately) once I fix the per-element paths I'd still want the `*` form to work as a query that pulls every element. + +So I'm stuck — there's no path I can pass to `getValueNode` that addresses a single element of a repeated field, and a wildcard query doesn't pull all of them either. + +The behavior I'd expect: + +- Each element inside a repeated field is individually addressable in the deserialized row. +- A path that uses `*` as the index segment (matching how schema field paths are written) should match every element of that repeated field when querying values / fields. + +Same issue applies to `getField(schema, path)` if I pass a concrete-index path — it doesn't find the field, because schema field paths use `*` and the lookup is strict equality. + +While we're touching this area, it would also be handy to expose a small helper like `listFieldParents(field, schema)` that returns the chain of parent schema fields for a given field — useful when walking up the tree from a leaf. \ No newline at end of file diff --git a/tasks/format-code-task-000756/task.toml b/tasks/format-code-task-000756/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..3a69a9e15d39f923624fd34676b4f127a64913f9 --- /dev/null +++ b/tasks/format-code-task-000756/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000756" +description = "`getValueNode` / `getValueNodes` can't address individual items inside a repeated field" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "TypeScript" +domain = "code" +keywords = ["code", "TypeScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000756" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "`getValueNode` / `getValueNodes` can't address individual items inside a repeated field" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:f260c8214727f3f08fc053b66c619246cf5928fb049b3c217c5bb91f307ce16a" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklb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8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000758/instruction.md b/tasks/format-code-task-000758/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..8268d1a09cbddd19040f79a0dc8a00489dc4041a --- /dev/null +++ b/tasks/format-code-task-000758/instruction.md @@ -0,0 +1,23 @@ +Fix the following issue: + +## Problem Statement + +When I list SCIM users or service principals through the Go APIs, the responses are huge because every item drags along all its roles, even though I usually don’t need them for filtering/listing. Can we avoid fetching roles for those list/filter calls by default, and give me a way to do the same for group filtering when I don’t need roles? I still need looking up a group by display name to give me the full group object, though. + +## Expected outcomes + +- User list and filter calls through the Go SCIM user API should request list results without per-user roles by default. +- Service principal list and filter calls through the Go SCIM service principal API should request list results without per-principal roles by default. +- The public Go group filtering API should let callers explicitly choose whether group list/filter results include roles. For this task, the public contract is `GroupsAPI.Filter(filter string, includeRoles bool) (GroupList, error)`. +- Calling `GroupsAPI.Filter` with `includeRoles` set to `false` should request group list/filter results without roles; calling it with `true` should preserve the previous behavior of requesting roles. +- Looking up a group by display name should still return the complete group object, including fields that are omitted from the initial list/filter lookup. + +## Implementation notes + +- Except for the public API contract explicitly named above, the exact internal structure, helper functions, and call sites are up to the implementation. +- Use the repository’s existing SCIM request patterns and error-handling conventions. +- Preserve existing filtering semantics apart from omitting roles where the behavior above requires it. + +## Required output literals (exact-match contract) + +When a SCIM user, service principal, or group list/filter request must omit roles, the outgoing SCIM request MUST include the query parameter `excludedAttributes=roles`. Query parameter order is not part of the contract. diff --git a/tasks/format-code-task-000758/task.toml b/tasks/format-code-task-000758/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..0b7115e08dcc588530b6ebb53f60d36c5b1d28ae --- /dev/null +++ b/tasks/format-code-task-000758/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000758" +description = "When I list SCIM users or service principals through the Go APIs, the responses are huge because every item…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000758" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "When I list SCIM users or service principals through the Go APIs, the responses are huge because every item…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:6fe4110d8ec93eac3f0e76fc75f39c6f191133f8b9d9481cc2e543c5930b9e35" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlS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YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000767/instruction.md b/tasks/format-code-task-000767/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..c9fc003492c75cf1671f563be88e39c389faeb1e --- /dev/null +++ b/tasks/format-code-task-000767/instruction.md @@ -0,0 +1,66 @@ +Fix the following issue: + +**Describe the bug** +- dbt `>1.5` introduced [model versions](https://docs.getdbt.com/docs/collaborate/govern/model-versions) +- the precommit hooks `Check the model has properties file` and `Check the model has description` fail +- probably because it expects description for each version, while there is none + +**To Reproduce** +Steps to reproduce the behavior: +1. Create two versions of the same model `fancy_model_v1.sql` and `fancy_model_v2.sql` +2. Adapt the `yml` file +```yml +- name: fancy_model + latest_version: 1 + description: fancy model + config: + contract: + enforced: true + columns: + - name: tool_raw + description: raw name of tool + data_type: varchar(20) + constraints: + - type: not_null + - type: primary_key + warn_unenforced: False + - name: tool + description: tool name, "jpg-to-pdf" + data_type: varchar(20) + + versions: + - v: 1 + - v: 2 + columns: + - include: all + exclude: [tool] + - name: new_column + data_type: varchar(6) + description: "I am an experimental column" +``` +3. Run the `Check the model has properties file` and `Check the model has description` +4. The error is: +``` +#14 [dbt_precommit 4/4] RUN pre-commit run --all-files +... +#14 1.186 Check the model has properties file......................................Failed +#14 8.483 - hook id: check-model-has-properties-file +#14 8.483 - exit code: 1 +#14 8.483 models/fancy_model_v1.sql: does not have model properties defined in any .yml file. +#14 8.483 models/fancy_model_v2.sql: does not have model properties defined in any .yml file. +... +#14 8.484 Check the model has description..........................................Failed +#14 34.62 - hook id: check-model-has-description +... +#14 34.62 models/fancy_model_v1.sql: does not have defined description or properties file is missing. +#14 34.62 models/fancy_model_v2.sql: does not have defined description or properties file is missing. +``` + +**Expected behavior** +- `precommit` should understand that `fancy_model_v1.sql` and `fancy_model_v2.sql` are the same and have description under `fancy_model` in `yml` file + +**Version:** +v0.1.0 + +**Additional context** +Add any other context about the problem here. \ No newline at end of file diff --git a/tasks/format-code-task-000767/task.toml b/tasks/format-code-task-000767/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..b7c6d39444085ff5684bd02e841dd55c1e5ad5f4 --- /dev/null +++ b/tasks/format-code-task-000767/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000767" +description = "- dbt `>1.5` introduced [model versions](https://docs.getdbt.com/docs/collaborate/govern/model-versions)" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000767" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "- dbt `>1.5` introduced [model versions](https://docs.getdbt.com/docs/collaborate/govern/model-versions)" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:9e6879c43570fdd48058f4175304642187411b420d622824a3be7c9776b502fa" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJ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bhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000769/instruction.md b/tasks/format-code-task-000769/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..5f64265230558141c9a0c0d6fe9af248bd93f4cd --- /dev/null +++ b/tasks/format-code-task-000769/instruction.md @@ -0,0 +1,12 @@ +Fix the following issue: + +I'm trying to trace exactly which version of a dbt node ran just from the structured log events, but `node_info` doesn't tell me the node's source checksum, so I have to go look it up somewhere else. Could dbt include the node checksum in the `node_info` event data when it's available? + +Expected outcomes: +- Structured log event data that includes `node_info` should expose a `node_info.node_checksum` field. +- When the logged node has a source checksum available, `node_info.node_checksum` should contain that checksum string so log consumers can identify the exact node source version from the log event alone. +- When the logged node does not have checksum information available, `node_info.node_checksum` should still be present in the Python dictionary representation and should have a null/`None` value rather than a source hash. +- The protobuf event contract should expose the same information through `NodeInfo.node_checksum`. + +Implementation notes: +- The specific code path, data structure, and validation location used to populate the checksum are up to the implementer, as long as the existing structured logging behavior is preserved and the checksum is consistently represented in both the dictionary event data and the protobuf event data. \ No newline at end of file diff --git a/tasks/format-code-task-000769/task.toml b/tasks/format-code-task-000769/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..f55f86d483b76ea13f5407dfbf0beed0a628c12f --- /dev/null +++ b/tasks/format-code-task-000769/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000769" +description = "I'm trying to trace exactly which version of a dbt node ran just from the structured log events, but…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000769" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I'm trying to trace exactly which version of a dbt node ran just from the structured log events, but…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:669d8be6ea4011150e20ac472a2cd92d3521f3670e661d485e21aa5174930758" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPH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nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000794/instruction.md b/tasks/format-code-task-000794/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..c5b482cc9b2011f8f40d90e9b4b51c7a5afedf96 --- /dev/null +++ b/tasks/format-code-task-000794/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +I want the stateful EVM library to support nested contract-call execution when bytecode run through `FakeBlockchain` and `chain.vm.runCode(environment)` reaches the `CALL` (`0xf1`), `CALLCODE` (`0xf2`), or `DELEGATECALL` (`0xf4`) opcodes. + +For `CALL`, the opcode should pop gas, target address, value, input memory offset, input size, return memory offset, and return size from the stack; read the requested input bytes from caller memory; execute the target account's code in a nested frame whose account is the target, whose caller is the current account, whose value is the popped value, and whose depth is one greater than the caller. For `CALLCODE`, it should execute the target account's code while keeping the current account as the execution account and using the current account as caller. For `DELEGATECALL`, it should execute the target account's code while keeping the current execution account and current caller, and with zero call value. + +Each nested call should run inside a checkpointed blockchain layer. If the nested frame stops without reverting, commit that layer, push `1` to the caller stack, copy up to the requested return size into caller memory at the requested return offset with zero padding, store the full nested return bytes as the caller's last return data, and advance the caller program counter past the call opcode. If the nested frame reverts or otherwise does not finish cleanly, roll back the layer, push `0` to the caller stack, clear the caller's last return data, leave return memory uncopied, and still advance past the call opcode. + +A concrete session should work like this: create `const chain = new FakeBlockchain()`, install an account at address `"2"` whose code stores `0x2a` in memory and returns 32 bytes, then run caller bytecode that pushes return size `32`, return offset `0`, zero input size and offset, zero value, address `2`, gas, and executes `CALL`. The resulting `state.stack` should contain a success flag of `1`, `state.memory` should contain the 32 returned bytes at offset `0`, and `state.lastReturned` should equal those 32 bytes. If the target account instead writes storage and then executes `REVERT`, the caller should receive stack flag `0`, the target storage write should not be visible through the blockchain after the call, and `state.lastReturned` should be an empty array. \ No newline at end of file diff --git a/tasks/format-code-task-000794/task.toml b/tasks/format-code-task-000794/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..f1be84b8ef976568d37962bd2b58a21b2be0516a --- /dev/null +++ b/tasks/format-code-task-000794/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000794" +description = "I want the stateful EVM library to support nested contract-call execution when bytecode run through…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "TypeScript" +domain = "code" +keywords = ["code", "TypeScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000794" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want the stateful EVM library to support nested contract-call execution when bytecode run through…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:a0a08bdfde14876b70e394c8dd117ebe405d36dffdcaa1c5061fb2510a90d0af" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0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j+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000814/instruction.md b/tasks/format-code-task-000814/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..804743ec52b149c037853912c0041d2fae4af0f4 --- /dev/null +++ b/tasks/format-code-task-000814/instruction.md @@ -0,0 +1,44 @@ +Fix the following issue: + +[BUG] [Formatter] Weired blank lines added when preserve_blank_lines is active +First of all, thanks for this nice tool! + +## System Info + - OS: ubuntu 20.04 (vagrant virtual box provider) + - Python Version 3.8.10 + - djLint Version 1.7.2 + - template language: django + +## Issue +A blank line is inserted in the beginning of the file before most HTML or template tags, when preserve_blank_lines is active. +Also, I noticed some strange new empty lines between multiple \
tags that are separated by spaces. + + +## How To Reproduce +pyproject.toml: +``` +[tool.djlint] +preserve_blank_lines = true +profile = "django" +``` +Django template file: + +``` +{% block someblock %}{% endblock %} +

+``` + +Is now reformatted to +``` + +{% block someblock %}{% endblock %} +
+ +
+ +``` + +Note the space in the "empy" line between the \
tags. + +I saw, that `extends` is not affected, whereas nearly every other template tag is affected, when placed in the beginning of the file. +I also experienced it with multiple HTML tags when they are placed in the beginning of the file. \ No newline at end of file diff --git a/tasks/format-code-task-000814/task.toml b/tasks/format-code-task-000814/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..e2e133927ddac367211f07b4b9f20e4d97cb54c8 --- /dev/null +++ b/tasks/format-code-task-000814/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000814" +description = "[Formatter] Weired blank lines added when preserve_blank_lines is active" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000814" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "[Formatter] Weired blank lines added when preserve_blank_lines is active" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:b90f42877c116f7e5a483d8bbec32f9351c0b3ce8cfa97aec467bee9e7ebf200" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3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hu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000840/instruction.md b/tasks/format-code-task-000840/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..fed8f3955f9d7ef0a8690d968543c1d30c3afb81 --- /dev/null +++ b/tasks/format-code-task-000840/instruction.md @@ -0,0 +1,12 @@ +Fix the following issue: + +Questions: check if type is assignable to other +Need a bit of help here: how do I check if types assignable to one other? + +Scenario 1: I have two nodes, I can get their types via `getType()`. How do I check if A is assignable to B and if B is assignable to A? + +Scenario 2: I have one node, and I want to check if it's assignable to custom type that I will conclude based on a string (template in a framework). To give context, user does something like (let's assume Angular syntax for familiarity) `*ngIf="foo"`. In my framework, `ngIf` doesn't exist runtime and there's no `boolean` type anywhere where I can `getType` it -- so how can I create it? What about more complex cases? + +I was expecting some `Type` constructors, but browsing through `.d.ts` files gives me nothing. Also _assignable_ gives no results. I see the docs mention the type checker but I don't see anything useful there either based on method names. + +Any pointers would be appreciated. :smile: \ No newline at end of file diff --git a/tasks/format-code-task-000840/task.toml b/tasks/format-code-task-000840/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..33cd54d3eb545874cefff8039331efce932c6642 --- /dev/null +++ b/tasks/format-code-task-000840/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000840" +description = "Questions: check if type is assignable to other" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "TypeScript" +domain = "code" +keywords = ["code", "TypeScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000840" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Questions: check if type is assignable to other" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:07c36be55ff4f8b7a14645ab8d20ef801c15d4df873f25a674ba8b12d4946bf9" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2k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cz0BpYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000847/instruction.md b/tasks/format-code-task-000847/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..de3e6c0bfa368c955eb534ae4413e3224e4ea277 --- /dev/null +++ b/tasks/format-code-task-000847/instruction.md @@ -0,0 +1,20 @@ +Fix the following issue: + +## Problem Statement + +When I set `export DYNACONF_THING=True` and then read `settings.THING`, I get the string `"True"` back instead of an actual boolean. Same thing happens with `False`. But if I use lowercase `true`/`false` it correctly comes through as a real bool. Just trying to flag a boolean config value through an env var and it's tripping me up. + +## Expected outcomes + +- Environment variables whose bare value is `True` should be read by Dynaconf settings as the Python boolean `True`, not as the string `"True"`. +- Environment variables whose bare value is `False` should be read by Dynaconf settings as the Python boolean `False`, not as the string `"False"`. +- Existing behavior for lowercase bare `true` and `false` environment variable values should continue to produce Python booleans. +- The change should apply to bare environment-variable values only; string values embedded inside TOML-style environment data structures should remain strings. +- TOML settings files should continue to follow TOML’s own type rules: quoted `"True"` / `"False"` values remain strings, while TOML booleans remain booleans. +- Users who explicitly request a string value from an environment variable, such as through Dynaconf’s string casting syntax or by supplying a quoted string value, should still receive the original string. + +## Implementation notes + +- Keep the fix focused on externally visible configuration-loading behavior rather than on any specific helper, module layout, or parsing hook. +- The exact place where environment-variable values are normalized or parsed is up to the implementation, as long as all supported environment-variable loading paths exhibit the expected behavior. +- Do not change TOML file parsing semantics or TOML data-structure semantics while fixing bare environment-variable boolean values. \ No newline at end of file diff --git a/tasks/format-code-task-000847/task.toml b/tasks/format-code-task-000847/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..4d02ede6df42f7886a00ec9efdc5ed74b93fae37 --- /dev/null +++ b/tasks/format-code-task-000847/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000847" +description = "When I set `export DYNACONF_THING=True` and then read `settings.THING`, I get the string `\"True\"` back…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000847" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "When I set `export DYNACONF_THING=True` and then read `settings.THING`, I get the string `\"True\"` back…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:fda63f4e10c2c13d8bfdb23d629a587dc50532339357883029a46d83c7faff19" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2j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dMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000871/instruction.md b/tasks/format-code-task-000871/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..b19154af8965f8b71549fbac0eebf03303a006ff --- /dev/null +++ b/tasks/format-code-task-000871/instruction.md @@ -0,0 +1,73 @@ +Fix the following issue: + +# Let Airflow operator parameters consume outputs from parent nodes + +Right now, when we parse an Apache Airflow operator into a component, every parameter we +surface in the pipeline editor is locked to a single input control matching the parameter's +detected type (a text box for strings, a checkbox for booleans, a number field for numbers, +and so on). The only thing a user can do is type a literal value. + +We want Airflow operators to be able to exchange data: any operator parameter should *also* +be able to receive, as its value, an output produced by one of its parent nodes in the +pipeline. The editor already knows how to render a "pick one of several input types" control, +so what's missing is that our parsed Airflow components need to describe each parameter as a +choice between **its native value control** and a control that lets the user **select an output +from a parent node**. + +Concretely, the canvas properties we generate for an Airflow component +(`ComponentCatalog.to_canvas_properties(component)`) must change for every parsed operator +parameter (the synthetic `label` and `component_source` fields must stay exactly as they are +today and must not be turned into this new structure). + +For each operator parameter, the `uihints.parameter_info` entry must look like: + +```jsonc +{ + "parameter_ref": "elyra_", + "control": "custom", + "custom_control_id": "OneOfControl", + ... + "data": { + "controls": { + "": { "label": "", "format": "" }, + "NestedEnumControl": { "label": "", "format": "inputpath", "allownooptions": false } + }, + "required": + } +} +``` + +where: + +- `custom_control_id` is `"OneOfControl"` for every operator parameter. +- `data.controls` holds **exactly two** entries: + - `"NestedEnumControl"` — the option to consume a parent node's output. Its `format` is + `"inputpath"` and it carries `"allownooptions": false`. + - the parameter's **native control** — `"NumberControl"` for numeric parameters, + `"BooleanControl"` for boolean parameters, and `"StringControl"` for everything else + (strings, dictionaries, lists, undetermined types). Its `format` is the parameter's + detected data type (e.g. `"string"`, `"number"`, `"boolean"`, `"dictionary"`, `"list"`). + - each control entry includes a non-empty human-readable `"label"` string. +- `data.required` is a boolean: a parameter is **required** when the operator's `__init__` + argument has no default value, and **optional** when it does. + +The matching `current_parameters` entry for each operator parameter must become an object that +records which control is initially active and stores the parameter's default value under that +control: + +```jsonc +"elyra_": { + "activeControl": "", + "": +} +``` + +The initially active control is the parameter's native control, and the value stored under it +is the parameter's default value as it is determined today (`''` for a string with no default, +the parsed default otherwise; `false`/`true` for booleans; the integer for numbers; etc.). + +Components for other runtimes (e.g. Kubeflow Pipelines) must be unaffected — their parameters +should keep their single native control and their flat `data.format`/scalar +`current_parameters` values. + +The rendered properties must remain valid JSON. diff --git a/tasks/format-code-task-000871/task.toml b/tasks/format-code-task-000871/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..49cfbfac1deec334da0662979390cbf7f0d3b971 --- /dev/null +++ b/tasks/format-code-task-000871/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000871" +description = "Let Airflow operator parameters consume outputs from parent nodes" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000871" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Let Airflow operator parameters consume outputs from parent nodes" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:3ba0be04cb143acbe6e53bc88eb5c2932ee307eac456be71d8cf24e155169dff" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4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KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000877/instruction.md b/tasks/format-code-task-000877/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..067f29123ca1c0ab190818a163be2b1441831f9b --- /dev/null +++ b/tasks/format-code-task-000877/instruction.md @@ -0,0 +1,3 @@ +Fix the following issue: + +I want RapidCheck to provide unique STL container generators through `rc::gen::unique(Gen gen) -> Gen`, `rc::gen::unique(std::size_t count, Gen gen) -> Gen`, `rc::gen::uniqueBy(Gen gen, F f) -> Gen`, and `rc::gen::uniqueBy(std::size_t count, Gen gen, F f) -> Gen`. `unique>(gen::arbitrary())` should generate vectors where no two elements compare equal, and every shrink of a generated vector should also keep that no-duplicate invariant. `unique>(3, gen::arbitrary())` should always generate exactly three distinct elements when successful, and its shrinks should preserve both the requested length behavior for fixed-size generation paths and element uniqueness. `uniqueBy>>(gen::arbitrary>(), [](const auto &p) { return p.first; })` should generate pairs whose first components are all distinct even when the second components repeat. For a concrete fixed-size case, `uniqueBy>>(2, gen::arbitrary>(), key_fn)` should return a generator whose produced containers have exactly two elements and two distinct projected keys. If the supplied generator cannot produce enough distinct values, such as `unique>(2, gen::just(0))`, evaluating the returned generator should fail with `rc::GenerationFailure` instead of returning a container with duplicates. Creating these generators should not mutate the supplied generator object, touch the filesystem or network, or depend on hidden global state beyond the normal randomness and size parameters used when the returned `Gen` is evaluated. \ No newline at end of file diff --git a/tasks/format-code-task-000877/task.toml b/tasks/format-code-task-000877/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..cfcb6d8cde6d6a6d885b7feb2dbd747a7e82f276 --- /dev/null +++ b/tasks/format-code-task-000877/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000877" +description = "I want RapidCheck to provide unique STL container generators through `rc::gen::unique(Gen gen)…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "C++" +domain = "code" +keywords = ["code", "C++"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000877" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want RapidCheck to provide unique STL container generators through `rc::gen::unique(Gen gen)…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:57aab86b7dd01ac72012a28fdd3819472aa5fdb9223149a61e7393ac85357497" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k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/var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000878/instruction.md b/tasks/format-code-task-000878/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..96adced13fc4ff9c85f2cf0f3ed8b036e28f8906 --- /dev/null +++ b/tasks/format-code-task-000878/instruction.md @@ -0,0 +1,21 @@ +Fix the following issue: + +I'm running a Starlette app under `/api`, and inside a handler `request.url_for("user", id=123)` is giving me an absolute URL without that prefix, so the link points to a route that doesn't exist from the outside. I also hit this when trying to write a `TestClient` test for the same setup, because the app always sees an empty `root_path`. + +Expected outcomes: +- URL generation with deployment prefixes: + - When a request is handled under an externally visible root or mount prefix, `request.url_for(name, **path_params)` should return an absolute URL that includes that prefix. + - Reverse URL generation should continue to work for routes both at the application root and inside mounted sub-applications. +- Request base URL: + - `Request.base_url` should expose the current request’s scheme, host, and application root as a base URL, without including the current request path or query string. + - The base URL should preserve the root path that external clients use to reach the application. +- TestClient root path simulation: + - `TestClient(app, root_path="...")` should allow tests to simulate an ASGI `root_path`. + - The configured root path should be visible to the application for HTTP requests and WebSocket connections. +- URL construction from ASGI scopes: + - Constructing a `URL` from an ASGI scope that does not include `query_string` should treat the query string as empty instead of failing. + +Implementation notes: +- The specific internal data flow, caching strategy, and validation locations are up to the implementation. +- Preserve existing public behavior outside the root-path and URL-construction cases described above. +- Avoid making tests depend on private helpers or internal adapter details; the intended behavior should be observable through Starlette’s public request, URL, routing, and test-client APIs. \ No newline at end of file diff --git a/tasks/format-code-task-000878/task.toml b/tasks/format-code-task-000878/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..19578e5cfe73e9fb0be7845bab9889855f903553 --- /dev/null +++ b/tasks/format-code-task-000878/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000878" +description = "I'm running a Starlette app under `/api`, and inside a handler `request.url_for(\"user\", id=123)` is giving…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000878" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I'm running a Starlette app under `/api`, and inside a handler `request.url_for(\"user\", id=123)` is giving…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:00de9bd95221d372517167db7c17daf106c245da777c815a7b879c49f17f44a4" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/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pYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000885/instruction.md b/tasks/format-code-task-000885/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..399e1079f56e49b7a3682d36e822febd939f79e8 --- /dev/null +++ b/tasks/format-code-task-000885/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +I want an optional LMDB-backed ImageNet data path for the training and validation scripts. First, I should be able to run `python3 utils/dataset/folder2lmdb.py --name --write_frequency ` on an ImageFolder-style split directory such as `/train`; it should print the source directory, output LMDB path, periodic `[current/total]` progress lines, and `Flushing database ...`, then create `/.lmdb` plus `/_images_idx.txt` with `basename index` lines. The LMDB should store each sample under numeric byte-string keys, include `__keys__` and `__len__` metadata, and preserve the raw image bytes with its integer class label so the data can be read later. + +When I run `train_imagenet.py --lmdb ...`, training should load `/train_lmdb/train.lmdb` for training and `/test_lmdb/test.lmdb` for evaluation instead of the normal `train` and `val` folders. When I run `validate.py --lmdb ...`, validation should load `/test_lmdb/test.lmdb`. The LMDB reader should decode the stored image bytes as RGB, apply any provided transform before returning the sample, convert the transformed image to a NumPy array, apply any target transform, and return `(array, int_target)` with `len(dataset)` coming from the stored `__len__` metadata. The config-driven dataflow should also accept `dataset: imagenet_lmdb`, use the same ImageNet transforms as `dataset: imagenet`, and construct train, val, and test datasets from `train_lmdb/train.lmdb`, `val_lmdb/val.lmdb`, and `test_lmdb/test.lmdb` under `dataset_dir`. + +If the requested split folder, LMDB database, or sidecar index file is missing, the command or dataset setup should fail with a non-zero process exit instead of silently falling back to folder loading. A successful conversion or LMDB-backed train/validation setup should exit normally unless the underlying training or validation work fails. \ No newline at end of file diff --git a/tasks/format-code-task-000885/task.toml b/tasks/format-code-task-000885/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..8047bf42838f9ed9ff8d678e8203e4ec12758e00 --- /dev/null +++ b/tasks/format-code-task-000885/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000885" +description = "I want an optional LMDB-backed ImageNet data path for the training and validation scripts." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Unknown" +domain = "code" +keywords = ["code", "Unknown"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000885" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want an optional LMDB-backed ImageNet data path for the training and validation scripts." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:b17700b43bb1830e996b4632cfd717cd71017ac46306d051be800edcf0c1edc8" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtS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UM82exXfF0UZL3tBFVmN5Vm4RiGKg9dyxnAlvSi7jhJUel5B5pMmoU/Tia7KRcq9PyXZFBD64zpzHRHBErWIO6XxztR9K3ok2BzQvjuNFfVnET4WTkvQeX3WxRI1KO1TeycmZPtwjrF48jrsxZ6h1rc9YrBVS4Q6zFCxqBgYM8bZN8phfiMgvOHuNXU1b6w6fDjLmO6PcZakQuU8+WVtiJn+Ni6pGVDPD//n151Yvmui2gO7aJBhm+TapVEGyVXrbpBOUSumY8yPsE/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000903/instruction.md b/tasks/format-code-task-000903/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..f43c4b409e2889c4c1bd63c251cedc66bcfd335d --- /dev/null +++ b/tasks/format-code-task-000903/instruction.md @@ -0,0 +1,21 @@ +Fix the following issue: + +### `AncientRange` returns only one item when `maxBytes` is 0 + +I'm building a small tool that pulls items in bulk out of the freezer through the `ethdb.AncientReaderOp.AncientRange(kind, start, count, maxBytes)` API. In some code paths I genuinely don't care about a byte budget — I just want exactly `count` items if they're present in the freezer. The natural way to express "no byte limit" felt like passing `maxBytes = 0`, so I tried: + +```go +items, err := db.AncientRange("bodies", start, 100, 0) +if err != nil { + log.Fatal(err) +} +fmt.Println(len(items)) // expected: 100 (or however many are available) +``` + +What I actually get back is a slice of length 1. Asking for 50, 100 or 1000 items all behave the same — only the first one comes back. So in practice I have to call `AncientRange` in a loop one item at a time, which kind of defeats the point of having a range API. + +The obvious workaround is to pass a huge number like `math.MaxUint64` for `maxBytes`, but that's awkward — it reads like "I'm fine allocating 16 EiB up front" rather than "I genuinely don't want a byte cap", and it also relies on the implementation not actually trying to honor that as a buffer size. + +The current doc on `AncientRange` says it will return "at most `count` items, at least 1 item (even if exceeding maxBytes), but will otherwise return as many items as fit into maxBytes." That's a reasonable contract when the caller does specify a byte budget, but there's no documented way to say "no budget, just give me `count` items". It would be really useful if `maxBytes = 0` meant exactly that — return up to `count` items, ignoring any byte-size cap — while a nonzero `maxBytes` keeps behaving the way it does today. + +This should apply both at the top-level `Freezer.AncientRange` and at the underlying `freezerTable.RetrieveItems`, since both take the same `maxBytes` parameter. \ No newline at end of file diff --git a/tasks/format-code-task-000903/task.toml b/tasks/format-code-task-000903/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..cf05a1a9a4c841d118368c35ad880b345c904eeb --- /dev/null +++ b/tasks/format-code-task-000903/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000903" +description = "`AncientRange` returns only one item when `maxBytes` is 0" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000903" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "`AncientRange` returns only one item when `maxBytes` is 0" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:2a150135de4c1f8b4727cd6f73f63742e5560090dd8764ba1295261a8951c0b7" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NB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O9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000932/instruction.md b/tasks/format-code-task-000932/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..25142c416714c6d8f62d1e731cfbc02ebb2d47f8 --- /dev/null +++ b/tasks/format-code-task-000932/instruction.md @@ -0,0 +1,87 @@ +Fix the following issue: + +Enforce schema when using json_writer() or json_reader() +Hi, + +I have reproduced the example in https://fastavro.readthedocs.io/en/latest/json_writer.html but I've changed some items of the `records` array in order to introduce some type mismatches. + +``` +from fastavro import json_writer, parse_schema +from io import StringIO + +schema = { + 'doc': 'A weather reading.', + 'name': 'Weather', + 'namespace': 'test', + 'type': 'record', + 'fields': [ + {'name': 'station', 'type': 'string'}, + {'name': 'time', 'type': 'long'}, + {'name': 'temp', 'type': 'int'}, + ], +} +parsed_schema = parse_schema(schema) + +records = [ + {u'station': u'011990-99999', u'temp': 0, u'time': 1433269388}, + {u'station': u'011990-99999', u'temp': 22, u'time': "last day"}, + {u'station': u'011990-99999', u'temp': -11, u'time': 1433273379}, + {u'station': u'012650-99999', u'temp': 111.9, u'time': 1433275478}, +] + +text_stream = StringIO() +json_writer(text_stream, parsed_schema, records) +print(text_stream.getvalue()) +``` + +The 2nd row now has a string `time` instead of a long. +The 4th row now has a float `temp` instead of a int. + +So clearly, some of the records doesn't respect the avro schema. + +When I run this code, I get this output: + +``` +{"station": "011990-99999", "time": 1433269388, "temp": 0} +{"station": "011990-99999", "time": "last day", "temp": 22} +{"station": "011990-99999", "time": 1433273379, "temp": -11} +{"station": "012650-99999", "time": 1433275478, "temp": 111.9} +``` + +No warning, no error, the items are written as-is. + +Same thing happens to the `json_reader`. +This code runs flawlessly: + +``` +from fastavro import json_reader +from io import StringIO + +schema = { + 'doc': 'A weather reading.', + 'name': 'Weather', + 'namespace': 'test', + 'type': 'record', + 'fields': [ + {'name': 'station', 'type': 'string'}, + {'name': 'time', 'type': 'long'}, + {'name': 'temp', 'type': 'int'}, + ] +} + +records = """{"station": "011990-99999", "time": 1433269388, "temp": 0} +{"station": "011990-99999", "time": "last day", "temp": 22} +{"station": "011990-99999", "time": 1433273379, "temp": -11} +{"station": "012650-99999", "time": 1433275478, "temp": 111.9} +""" + +avro_reader = json_reader(StringIO(records), schema) +for record in avro_reader: + print(record) +``` + +I would have expected these two snippets to raise an Exception because of incompatible types. Since I use a schema, I expect the encoder/decoder to respect it. + +Is it possible to fix that in the library? Or maybe add a parameter to enforce schema validation? + +Thanks. \ No newline at end of file diff --git a/tasks/format-code-task-000932/task.toml b/tasks/format-code-task-000932/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..531ee579a3c84adf4697aff229f339306237f8b7 --- /dev/null +++ b/tasks/format-code-task-000932/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000932" +description = "Enforce schema when using json_writer() or json_reader()" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000932" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Enforce schema when using json_writer() or json_reader()" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:24fadce099f6c8cb979686992433d79330f7074bb3a965a5c69345a4034748e2" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8H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ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-000935/instruction.md b/tasks/format-code-task-000935/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..3873cdb3de045860a902db85cfd1795d772799f1 --- /dev/null +++ b/tasks/format-code-task-000935/instruction.md @@ -0,0 +1,24 @@ +Fix the following issue: + +Certain errors result in request being null +If an error occurs before the Validation part of the lifecycle, `request` is `null` in: + ++ The `onSend` hook + + ```js +fastify.addHook('onSend', function(request, reply, payload, next) { + console.log(request) // null +}) +``` + ++ Any custom error handler + +```js +fastify.setErrorHandler(function(err, reply) { + console.log(reply.request) // null +}) +``` + +This is very much unexpected in the `onSend` hook and this also makes it more difficult to access the `req` object in the error handler. + +See PR #551 for a potential fix. \ No newline at end of file diff --git a/tasks/format-code-task-000935/task.toml b/tasks/format-code-task-000935/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..45f37e47c6f02ab489542841f0666b4c84c39401 --- /dev/null +++ b/tasks/format-code-task-000935/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-000935" +description = "Certain errors result in request being null" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-000935" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Certain errors result in request being null" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:51d54d6c1eefe34bde9916a0dc8e0231b85124f82dc60969928681cafaffb8fc" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVygg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BcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001010/instruction.md b/tasks/format-code-task-001010/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..135a0b5832ba6b47577d01707f8bd82c10153062 --- /dev/null +++ b/tasks/format-code-task-001010/instruction.md @@ -0,0 +1,3 @@ +Fix the following issue: + +The `bgp_facts` Ansible module collects neighbor details from `vtysh -c "show ip bgp neighbors"` and publishes them under `ansible_facts.bgp_neighbors`. The current parser assumes every neighbor address is dotted-decimal, so IPv6 peers can overwrite an IPv4 record or disappear entirely; operators then receive an incomplete and misleading inventory even though vtysh reported all peers. Update the module so a successful collection represents every neighbor reported by vtysh, regardless of address family.\n\nEach `BGP neighbor is ...` record must be keyed by the exact address text shown in the header, keeping compressed and expanded IPv6 spellings distinct. IPv4 behavior must remain intact. For IPv6 records, populate the same documented scalar fields as for IPv4: remote and local AS numbers, description, lower-case session state, minimum advertisement interval, accepted-prefix count, established and dropped connection counts, and remote router ID. Preserve the values associated with the record they came from.\n\nThe per-neighbor `message statistics` mapping must likewise be retained for both families. Every reported category (including names containing spaces such as `Route Refresh`) carries integer `sent` and `rcvd` values, and zeroes are real values rather than omissions. The module should continue returning these facts through its normal Ansible result so existing IPv4 consumers remain compatible. \ No newline at end of file diff --git a/tasks/format-code-task-001010/task.toml b/tasks/format-code-task-001010/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..b02b4f91c9ddb337a10f9458047bff9e8831f4fc --- /dev/null +++ b/tasks/format-code-task-001010/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001010" +description = "The `bgp_facts` Ansible module collects neighbor details from `vtysh -c \"show ip bgp neighbors\"` and…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001010" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "The `bgp_facts` Ansible module collects neighbor details from `vtysh -c \"show ip bgp neighbors\"` and…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:49b7aecddfaa0f59219f814a71db340accf301eeab224df6df7261f2120d7ba9" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS9oLQ31nGfijFkG/UysGl53/Wbi2nHULOhbQpS4nQ8OJym/bSRiQ69cR0dQLMYB/oszVTFI7V46lsdR8OO/f7q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66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001017/instruction.md b/tasks/format-code-task-001017/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..f3bc02466a86522621adc4feaccc2ba89d2046c0 --- /dev/null +++ b/tasks/format-code-task-001017/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +Extend the shared Redis connection options so the collection can use mutual TLS without forcing callers to replace these modules with custom code. The affected public modules are `community.general.redis`, `redis_info`, `redis_data`, `redis_data_info`, and `redis_data_incr`, all of which should accept the same client-certificate profile. + +Add `client_cert_file` and `client_key_file` for the PEM client certificate and private key, plus `client_key_password` for an encrypted private key. When TLS is enabled and a complete profile is supplied, pass those values to redis-py as its client certificate, key, and key-password connection settings. Do not emit client-certificate settings when no profile was requested, and do not pass a password merely because the option is absent. + +Reject an incomplete profile: certificate and key must be supplied together, a key password requires a key, and any client-profile option requires `tls: true`. These failures must happen at module argument/connection setup time and identify the relevant option names. Existing behavior remains compatible: the modules keep their current TLS defaults (`redis` and `redis_info` disabled by default, the data modules enabled), an enabled TLS connection without `ca_certs` still uses certifi, `validate_certs` retains its current effect, and username/password authentication continues to be forwarded unchanged. + +Keep the option set consistent across all five modules and their shared Redis documentation so a playbook can move between information and mutation modules without changing its connection profile. \ No newline at end of file diff --git a/tasks/format-code-task-001017/task.toml b/tasks/format-code-task-001017/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..ba9eb4b0e013e9f149dd2539dae488f72301d31b --- /dev/null +++ b/tasks/format-code-task-001017/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001017" +description = "Extend the shared Redis connection options so the collection can use mutual TLS without forcing callers to…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001017" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Extend the shared Redis connection options so the collection can use mutual TLS without forcing callers to…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:093dcf302b2d071743ee8914c715b735994b0fe1f251bc52fa19ead4110f8dfb" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3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nazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001019/instruction.md b/tasks/format-code-task-001019/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..6bd50e18f18eca00d57d40b2881a517e5c3b2333 --- /dev/null +++ b/tasks/format-code-task-001019/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +CKAN extension test configurations commonly inherit the core test configuration with `[app:main] use = config:`. `CKANConfigLoader` currently handles one parent, but an extension configuration that inherits an environment-specific overlay (which itself inherits the core file) silently stops after that first hop. Make configuration inheritance transitive and safe without changing the established one-file and two-file behavior. + +Starting from the file passed to `CKANConfigLoader`, follow every `[app:main] use = config:` reference until a non-`config:` `use` value is reached. Relative references are resolved against the directory of the file that declares them, including at intermediate levels; absolute references remain valid. Merge ordinary `[app:main]` options so that the most specific (initial/child) file wins conflicts, while options found only in any ancestor remain available. Interpolation is scoped to the declaring file: every `%(here)s` used by either an application option or a `DEFAULT` option expands to that file's directory before layers are combined. + +Preserve CKAN's existing `DEFAULT` compatibility semantics across the full chain. Defaults from every layer must appear both in the top-level result and in `global_conf`; when the same default is declared at multiple levels, the farthest ancestor wins. In the returned metadata, `__file__` in both locations continues to identify the initial file, while `global_conf['here']` identifies the directory of the terminal ancestor. Existing direct/single-level loading and the current two-file precedence and interpolation results must remain unchanged. + +Invalid inheritance must fail deterministically with `CkanConfigurationException`. A missing referenced file must produce a message containing `not found` plus the absolute normalized paths of both the referring file and missing target. An empty `config:` target must produce a message containing `config`, `empty`, and the initial file path. Direct self-inheritance must produce a message containing `circular` and the file path. An indirect cycle must likewise contain `circular` and the absolute normalized path of every file in the cycle, so operators can diagnose the complete chain. \ No newline at end of file diff --git a/tasks/format-code-task-001019/task.toml b/tasks/format-code-task-001019/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..30ff72e84446a7f874e5e5a5b153fec8e73d02e7 --- /dev/null +++ b/tasks/format-code-task-001019/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001019" +description = "CKAN extension test configurations commonly inherit the core test configuration with `[app:main] use =…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001019" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "CKAN extension test configurations commonly inherit the core test configuration with `[app:main] use =…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:4a800273a1197650af9be84beba01305bd7af9d987212750e15539718e9608e9" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0Oxp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4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001028/instruction.md b/tasks/format-code-task-001028/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..8173db5f32ed1b6f23601921e43d5227aad2ce2f --- /dev/null +++ b/tasks/format-code-task-001028/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +The inner-message codec is used on broker and client paths, but its current ByteBuffer routines trust corrupted length fields, consume partial input before reporting errors, and can expose implementation-level exceptions. Harden the public MessageDecoder wire-format API so malformed producer data is rejected predictably and callers can safely retry or inspect the buffer. + +Keep the existing compact frame format and successful behavior: encodeMessage/encodeMessages must preserve flags, bodies, properties, ordering, and support an empty batch; decodeMessage must decode exactly one frame and leave any following frame unread; decodeMessages and countInnerMsgNum must process every complete frame in order. + +For every decode/count operation, validate the declared total size and body/property lengths against the bytes actually available, reject negative lengths, truncated headers or payloads, impossible/inconsistent frame sizes, and malformed later frames with IllegalArgumentException. A failed single-frame, batch, or counting operation must leave the supplied ByteBuffer at its entry position, including when earlier frames in a batch were valid. Encoding must reject null messages, missing bodies, and property payloads that cannot be represented by the short length field with IllegalArgumentException rather than leaking unchecked buffer or array errors. These checks are about observable wire safety; do not change valid-message compatibility or require a particular helper layout. \ No newline at end of file diff --git a/tasks/format-code-task-001028/task.toml b/tasks/format-code-task-001028/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..a1ed9841066ec0c6953c8306555fea8c6fac9ac0 --- /dev/null +++ b/tasks/format-code-task-001028/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001028" +description = "The inner-message codec is used on broker and client paths, but its current ByteBuffer routines trust…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Java" +domain = "code" +keywords = ["code", "Java"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001028" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "The inner-message codec is used on broker and client paths, but its current ByteBuffer routines trust…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:69a7d749439f3411eea9e91c9cf5e8f22332b2be77c4caedb403fe82087aecd9" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YN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R1iTC5Dzzx+D32l+TI6+V1Klmb8XA8OJ1s6PFqdWrapuGWcz0BpYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001109/instruction.md b/tasks/format-code-task-001109/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..9e94a0c0b42cbd6f68d0299f3cf181d6d1c308c6 --- /dev/null +++ b/tasks/format-code-task-001109/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +RobustConnection promises to restore queues, exchanges, bindings, and consumers after a reconnect, but the current topology bookkeeping loses information and can drift from what was actually acknowledged by the broker. In particular, a binding is identified by more than just its source and routing key: RabbitMQ permits the same key with different argument tables. Mutable argument dictionaries must also be snapshotted when the bind succeeds, otherwise later caller edits silently change the topology that will be replayed. + +Make robust topology recovery deterministic and failure-safe for the public RobustExchange and RobustQueue APIs. Successful robust bindings must be retained with their complete identity (source/exchange, destination or queue, routing key, and binding arguments), preserve the arguments as they were at the successful call, and replay each distinct binding once after the object is redeclared. Re-registering an identical binding should not create duplicate replay calls, while a different argument table remains a separate binding. Replay must perform declaration first, then all saved bindings in registration order, and only then restore robust consumers in registration order. + +Unbinding must remove only the exact binding requested, and its saved record is removed only after the broker unbind call succeeds; if that call raises, the binding remains eligible for a later reconnect. The same success-before-removal rule applies to RobustQueue.cancel: a failed cancellation must leave that consumer saved for replay, while a successful cancellation removes it. Bindings and consumers created with robust=False are intentionally ephemeral and must never be replayed. Preserve existing method signatures, return values, and ordinary (non-robust) AMQP operations. \ No newline at end of file diff --git a/tasks/format-code-task-001109/task.toml b/tasks/format-code-task-001109/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..410a847083c97f8ce4bdfa7e9bb9b855944fef46 --- /dev/null +++ b/tasks/format-code-task-001109/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001109" +description = "RobustConnection promises to restore queues, exchanges, bindings, and consumers after a reconnect, but the…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001109" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "RobustConnection promises to restore queues, exchanges, bindings, and consumers after a reconnect, but the…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:051b1947a28a7041f83aa6cf56a6512e2fd17dd898428b99fc28fc09d5d07c8c" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2j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dMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001131/instruction.md b/tasks/format-code-task-001131/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..3d264613354dee711e66fffe12fe2d52da64d164 --- /dev/null +++ b/tasks/format-code-task-001131/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +Sarama advertises support through Kafka 2.4, but its Metadata API codec and the metadata requests generated by clients stop at version 5. This prevents callers from observing partition leader epochs and Kafka's authorized-operation bitfields even when the configured broker version supports them. Complete Metadata API versions 6, 7, and 8 while preserving the older protocol behavior. + +`MetadataRequest` versions 6 and 7 have the same body as version 5. Version 8 appends two independently controlled booleans after `AllowAutoTopicCreation`: expose them as public fields named `IncludeClusterAuthorizedOperations` and `IncludeTopicAuthorizedOperations`, in that wire order. Encoding and decoding must preserve either flag combination. Versions above 8 remain unsupported. The minimum Kafka versions are 2.0.0 for metadata v6, 2.1.0 for v7, and 2.3.0 for v8; sending one through `Broker.GetMetadata` against an older configured broker must return `ErrUnsupportedVersion`. + +`MetadataResponse` version 6 retains the version 5 layout. Starting in version 7, every `PartitionMetadata` carries a public `LeaderEpoch int32` immediately after `Leader`; version 8 retains that field. Version 8 also carries a public `ClusterAuthorizedOperations int32` after `ControllerID`, and a public `TopicAuthorizedOperations int32` at the end of each `TopicMetadata`. These are opaque signed bitfields: preserve their exact values, including negative values, on decode and re-encode. + +Metadata requests created internally by an ordinary client must select versions from `Config.Version` as follows: pre-0.10 uses v0, Kafka 0.10 and 0.11 use v1, Kafka 1.0 and 1.1 use v5, Kafka 2.0 uses v6, Kafka 2.1 and 2.2 use v7, and Kafka 2.3 and 2.4 use v8. `ClusterAdmin.DescribeTopics` and `ClusterAdmin.DescribeCluster` must use v5/v6/v7/v8 for configured Kafka 1.x/2.0/2.1-2.2/2.3-2.4 respectively. Internally generated v8 requests must leave both authorized-operation flags false; callers who construct a `MetadataRequest` directly can opt in through the public fields. Existing v0-v5 request encoding and the established v0, v1, and v5 response layouts must remain compatible. \ No newline at end of file diff --git a/tasks/format-code-task-001131/task.toml b/tasks/format-code-task-001131/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..5ad64394c7116ffd4cab6d810945cf0ab6745106 --- /dev/null +++ b/tasks/format-code-task-001131/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001131" +description = "Sarama advertises support through Kafka 2.4, but its Metadata API codec and the metadata requests generated…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001131" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Sarama advertises support through Kafka 2.4, but its Metadata API codec and the metadata requests generated…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:527a767d3d65aca25cd9b75dda103eb49273d6b27aaacb19bc3cd88f6cc659cb" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA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3slipMhEvsR1iTC5Dzzx+D32l+TI6+V1Klmb8XA8OJ1s6PFqdWrapuGWcz0BpYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001162/instruction.md b/tasks/format-code-task-001162/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..20051697e91d379117b2499a478ad0d827841640 --- /dev/null +++ b/tasks/format-code-task-001162/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +The `no-invalid-html-attribute` rule validates `rel` in JSX, but its `React.createElement` support does not apply the same static analysis: a literal containing several space-separated relation tokens is treated as one unknown value, and shortcut-icon pairing is skipped entirely. This makes codebases that use the factory API receive different diagnostics from equivalent JSX. + +Bring the factory-call path into parity for statically knowable `rel` props. For a literal string, interpret relation tokens separated by HTML whitespace (including tabs) individually. Report an unknown token as never valid, and report a known token used on an element that does not support it as not valid for that element. Preserve the existing handling of non-literal expressions, computed or shorthand properties, non-HTML/custom element names, and unrelated attributes. + +Apply the same `shortcut` pairing rule used by JSX: on a `link`, `shortcut` must be followed directly by `icon` within the same literal value; a lone shortcut or a different following token must produce the corresponding pairing diagnostic. Literal array values remain statically checkable: validate each string member independently while leaving dynamic members unchecked. Do not regress the existing JSX diagnostics or autofix behavior. \ No newline at end of file diff --git a/tasks/format-code-task-001162/task.toml b/tasks/format-code-task-001162/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..5fa288bb811761918953658841f5bd39df26ba51 --- /dev/null +++ b/tasks/format-code-task-001162/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001162" +description = "The `no-invalid-html-attribute` rule validates `rel` in JSX, but its `React.createElement` support does not…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001162" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "The `no-invalid-html-attribute` rule validates `rel` in JSX, but its `React.createElement` support does not…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:c4a6edb2ee5fbe26678544531a61f4ba9ea53a67a25efd0e6d207d4e560dfd97" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBh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T7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001165/instruction.md b/tasks/format-code-task-001165/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..fcb29d43546bdabf30110ab4fab670eaad3c7773 --- /dev/null +++ b/tasks/format-code-task-001165/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +The RPC helper receives pending blocks and pending logs through two ingress paths: the mining/txpool subscriptions and the remote eth-backend event stream. The txpool handlers already define the intended public behavior, but the remote PENDING_LOGS and PENDING_BLOCK events are currently ignored, and malformed RLP can leak zero values to subscribers. Bring both paths to one predictable contract. + +For a non-empty, valid RLP payload, a PENDING_LOGS event must decode to `types.Logs` and be delivered to every active `SubscribePendingLogs` subscriber. A PENDING_BLOCK payload must decode to `*types.Block`, become the value returned by `LastPendingBlock`, and be delivered to every active `SubscribePendingBlock` subscriber. The same delivery and state behavior must continue for valid txpool `OnPendingLogsReply` and `OnPendingBlockReply` messages. + +An empty payload, malformed RLP, or nil reply is not an event: ignore it without publishing anything, replacing an earlier pending block, or panicking. In particular, a malformed block must leave the last valid block observable through `LastPendingBlock`. Keep the existing public subscription APIs and their observable delivery semantics unchanged. \ No newline at end of file diff --git a/tasks/format-code-task-001165/task.toml b/tasks/format-code-task-001165/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..3a4638f9e7d9ed5f5c59430cafcfca93305d5f87 --- /dev/null +++ b/tasks/format-code-task-001165/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001165" +description = "The RPC helper receives pending blocks and pending logs through two ingress paths: the mining/txpool…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001165" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "The RPC helper receives pending blocks and pending logs through two ingress paths: the mining/txpool…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:010759cb01cc888f6716bbee370b52a55e26cd2eb0a560d83dd677b0f1471677" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /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8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001191/instruction.md b/tasks/format-code-task-001191/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..808d1ed7755f2dda4687e3df22125deba633819e --- /dev/null +++ b/tasks/format-code-task-001191/instruction.md @@ -0,0 +1,3 @@ +Fix the following issue: + +The library already defines an ETS (Enhanced Transmission Selection) qdisc encoder/decoder, but callers cannot use it through the generic queueing-discipline API: creating an object with Kind ets is rejected as not implemented, and objects returned by Qdisc().Get() cannot expose or decode their ETS options. Wire ETS into the same exported Qdisc workflow as the other supported qdiscs. Attribute must expose an Ets *Ets option, and Add, Replace, Change, and Link must accept a configured ETS object and encode its scalar settings plus the nested quanta and priority-map lists. Preserve explicitly supplied zero values and list order. Get must report Kind ets and reconstruct all supplied ETS fields from netlink options regardless of attribute ordering. Delete must remain usable with only the kind and message, as with other qdisc deletions. Creating ETS without options must return ErrNoArg, while invalid device IDs and unknown kinds retain their existing errors; existing parameterless qdiscs such as qfq must continue to work. Keep the public API and wire behavior implementation-agnostic beyond these observable contracts. \ No newline at end of file diff --git a/tasks/format-code-task-001191/task.toml b/tasks/format-code-task-001191/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..f78d9e5d107490acc2890093a15cb5fc259e967d --- /dev/null +++ b/tasks/format-code-task-001191/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001191" +description = "The library already defines an ETS (Enhanced Transmission Selection) qdisc encoder/decoder, but callers…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001191" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "The library already defines an ETS (Enhanced Transmission Selection) qdisc encoder/decoder, but callers…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:d685a1c7a5165b81d7ef745f2efcae6fe9a509e411dbfb701984f605699cb0d9" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbe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nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001196/instruction.md b/tasks/format-code-task-001196/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..a7fbeb9a200bac20e37a116723c942a9aa02997e --- /dev/null +++ b/tasks/format-code-task-001196/instruction.md @@ -0,0 +1,27 @@ +Fix the following issue: + +## Strict isinstance check rejects values that the transformer could actually convert + +I have a task that takes a `FlyteFile` input: + +```python +from flytekit import task, workflow +from flytekit.types.file import FlyteFile + +@task +def process(f: FlyteFile) -> int: + with open(f, "r") as fp: + return len(fp.read()) + +@workflow +def wf(path: str) -> int: + # I'd also like to be able to just hand a path string in directly + # when driving things programmatically / locally + return process(f=path) +``` + +When I try to drive this with a plain string path as the value for the `FlyteFile` input, flytekit blows up with a `FlyteTypeException` complaining that `str` is not an instance of `FlyteFile`. The conversion never gets a chance to run, even though the registered transformer for `FlyteFile` is perfectly capable of turning a path string into the right literal. + +I'd expect the type engine to attempt the conversion through the registered transformer and only raise `FlyteTypeException` if the transformer itself can't handle the value. Right now anything that isn't already an `isinstance` of the declared type is rejected up front, which makes it impossible to leverage transformers that do legitimate type coercion (path-like → file, etc.). + +Could the type engine be a bit less eager about the up-front isinstance check, and let the transformer have a say in whether the value is acceptable? \ No newline at end of file diff --git a/tasks/format-code-task-001196/task.toml b/tasks/format-code-task-001196/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..acdbb17fdaa842ae66a630a96cc778ece7149964 --- /dev/null +++ b/tasks/format-code-task-001196/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001196" +description = "Strict isinstance check rejects values that the transformer could actually convert" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001196" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Strict isinstance check rejects values that the transformer could actually convert" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:c4a76c29376cdfd2bcbfebdba5018b2c86a6fa1f0fbd614341882f419e676c01" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+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uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001199/instruction.md b/tasks/format-code-task-001199/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..f73f6f21d3ed41a047a53c0f112e9588e3d4749d --- /dev/null +++ b/tasks/format-code-task-001199/instruction.md @@ -0,0 +1,11 @@ +Fix the following issue: + +## `googlefonts/article/images` should report missing image files as a blocking error, not a warning + +I maintain a font family for Google Fonts and recently shipped an `article/ARTICLE.en_us.html` along with the font. The HTML references a couple of images under `article/images/` via `` tags. I renamed one of the image files and forgot to update the corresponding `src` in the HTML. + +When I ran fontbakery's Google Fonts profile to validate the family before submitting, the `googlefonts/article/images` check did flag the broken reference — but only as a **WARN** under the `missing-visual-file` message. I almost missed it among the other warnings and was about to submit the family. If it had gone through, the article page on the Google Fonts site would have rendered with a broken image placeholder. + +A missing image file referenced from the article HTML isn't a "nice to fix" issue — it's a guaranteed visual breakage on the published page. WARN is too easy to skim past, and there's no way to argue this is acceptable to ship. The check should report missing image files at the most severe level so that it's treated as a hard blocker, on par with other issues that genuinely prevent shipping. Right now it sits at the same level as cosmetic suggestions, which doesn't reflect the actual impact. + +Please bump the severity of `missing-visual-file` in the `googlefonts/article/images` check accordingly. \ No newline at end of file diff --git a/tasks/format-code-task-001199/task.toml b/tasks/format-code-task-001199/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..cefd7cd970357947c551bd00566b340728ca0eb6 --- /dev/null +++ b/tasks/format-code-task-001199/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001199" +description = "`googlefonts/article/images` should report missing image files as a blocking error, not a warning" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001199" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "`googlefonts/article/images` should report missing image files as a blocking error, not a warning" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:d742532f0949b0b6fb392f75c9f01e7de97ad7e495a812d67606c8ba0e225ef4" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9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yHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001222/instruction.md b/tasks/format-code-task-001222/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..86cdbdc64de0226ced2cf29e971bf81e789c221e --- /dev/null +++ b/tasks/format-code-task-001222/instruction.md @@ -0,0 +1,43 @@ +Fix the following issue: + +## Non-HTTP socket traffic blows up when HTTPretty is enabled + +I'm using HTTPretty to mock HTTP responses in my tests, but the code under +test also opens a regular TCP connection to a non-HTTP service (in my case +Redis, but it would happen with anything that's not on ports 80/443). As +soon as that code path calls `send()` or `recv()` on its socket, the test +explodes with: + +``` +RuntimeError: +HTTPretty intercepted and unexpected socket method call. +Please open an issue at 'https://github.com/gabrielfalcao/HTTPretty/issues' +And paste the following traceback: +... +``` + +Roughly what I'm doing: + +```python +@httprettified +def test_something(): + httpretty.register_uri(httpretty.GET, "http://example.com/api", body="ok") + + # this part of the code talks HTTP — fine, gets mocked + do_http_call() + + # this part talks to e.g. redis on a non-HTTP port — boom + do_non_http_call() +``` + +The HTTP mocking itself works as expected. The problem is that *every* +socket created while HTTPretty is enabled has its `send` / `sendto` / +`recv` / `recvfrom` / `recv_into` / `recvfrom_into` replaced with a stub +that always raises, regardless of whether the socket is actually talking +to something HTTPretty cares about. + +I'd expect HTTPretty to only intercept sockets that are actually being +used for HTTP traffic, and to leave other sockets alone so they behave +like normal sockets. Otherwise it's pretty much impossible to use +HTTPretty in any test where the code under test also touches a non-HTTP +service. \ No newline at end of file diff --git a/tasks/format-code-task-001222/task.toml b/tasks/format-code-task-001222/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..85b30f1d993c735eba9540dbc6ce8c51ad2e14d9 --- /dev/null +++ b/tasks/format-code-task-001222/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001222" +description = "Non-HTTP socket traffic blows up when HTTPretty is enabled" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001222" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Non-HTTP socket traffic blows up when HTTPretty is enabled" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:20d6735e02ea8f51c745c3a897bd4174e0ebf600be1298e2748994344cf462b2" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS9oLQ31nGfijFkG/UysGl53/Wbi2nHULOhbQpS4nQ8OJym/bSR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slVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001225/instruction.md b/tasks/format-code-task-001225/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..83e59f66d732fb7b66f0e894dccb0e2bd1b1a1ed --- /dev/null +++ b/tasks/format-code-task-001225/instruction.md @@ -0,0 +1,8 @@ +Fix the following issue: + +"require-returns" requires useless return statements for return type "undefined" +Subject says it. If the return type is undefined I don't need a return statement in the code. + +This plugin should concern itself with JSDoc — not with the code style! The return type when there is no `return` statement is `undefined`, so describing such a function as having `@returns {undefined}` is 100% correct. I should not get + + Present JSDoc @returns declaration but not available return expression in function jsdoc/require-returns \ No newline at end of file diff --git a/tasks/format-code-task-001225/task.toml b/tasks/format-code-task-001225/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..34f628de5988b9e3acb3b2662bf3bd21e0df02d1 --- /dev/null +++ b/tasks/format-code-task-001225/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001225" +description = "\"require-returns\" requires useless return statements for return type \"undefined\"" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001225" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "\"require-returns\" requires useless return statements for return type \"undefined\"" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:101f2e6df72026b064e196c30dacaf1a1f4ad05fd8efc923b5686a6ecb417abe" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0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zzx+D32l+TI6+V1Klmb8XA8OJ1s6PFqdWrapuGWcz0BpYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001303/instruction.md b/tasks/format-code-task-001303/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..9097d57525f66659bc0d6ac5b294fea22ea40d93 --- /dev/null +++ b/tasks/format-code-task-001303/instruction.md @@ -0,0 +1,11 @@ +Fix the following issue: + +I want the `sd/lb` package to provide retrying endpoint wrappers for load-balanced clients. The public API should include `func Retry(max int, timeout time.Duration, b Balancer) endpoint.Endpoint`, `type Callback func(n int, received error) (keepTrying bool, replacement error)`, and `func RetryWithCallback(timeout time.Duration, b Balancer, cb Callback) endpoint.Endpoint`. + +When I create `retry := Retry(3, time.Second, balancer)` and call `retry(ctx, request)`, each failed attempt should ask `balancer.Endpoint()` for an endpoint, invoke that endpoint with the same request under the retry timeout, and continue until an endpoint returns a successful response, the attempt limit is reached, or the timeout expires. For example, with a round-robin balancer over endpoints that return `error one`, then `error two`, then `"ok"`, `Retry(3, time.Second, balancer)(ctx, req)` should return `"ok", nil`; with `Retry(2, time.Second, balancer)` over the same endpoints it should return an error after the second failed endpoint. + +If the balancer has no endpoints, the returned endpoint should surface that failure through the retry path. If the timeout expires before an attempt returns, the returned endpoint should return the context deadline error. Passing a nil `Balancer` to `RetryWithCallback` should panic with `nil Balancer`. + +`RetryWithCallback` should call the callback after each failed attempt with the 1-based attempt number and the exact error received from the balancer or endpoint. If the callback returns `false`, retries should stop immediately; if it also returns a replacement error, that replacement should become the final error. A nil callback should mean retry indefinitely until success or timeout. + +Retry failures should be returned as a public `RetryError` value with `RawErrors []error`, `Final error`, and an `Error() string` method. The final error string should be the final error message, and when multiple failures occurred it should append the earlier errors in the form `final error (previously: first error; second error)`. \ No newline at end of file diff --git a/tasks/format-code-task-001303/task.toml b/tasks/format-code-task-001303/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..150f9b26fce34c5e5d9be6fef850fafa580b905c --- /dev/null +++ b/tasks/format-code-task-001303/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001303" +description = "I want the `sd/lb` package to provide retrying endpoint wrappers for load-balanced clients." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001303" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want the `sd/lb` package to provide retrying endpoint wrappers for load-balanced clients." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:fbd8fe838f1104e8f0af52ab36d348227bd017d44a95e8ffd39b30fa791f797e" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5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vJIhP5EtdyYyf3gScev8f+khx5vbxOJWszHo4Hp5MNPV6tTk3bNNxyriegNPEzIp9gRnOlAjgPOPSF8uUkujGq3i3JjUM82exXfF0UZL3tBFVmN5Vm4RiGKg9dyxnAlvSi7jhJUel5B5pMmoU/Tia7KRcq9PyXZFBD64zpzHRHBErWIO6XxztR9K3ok2BzQvjuNFfVnET4WTkvQeX3WxRI1KO1TeycmZPtwjrF48jrsxZ6h1rc9YrBVS4Q6zFCxqBgYM8bZN8phfiMgvOHuNXU1b6w6fDjLmO6PcZakQuU8+WVtiJn+Ni6pGVDPD//n151Yvmui2gO7aJBhm+TapVEGyVXrbpBOUSumY8yPsE/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001350/instruction.md b/tasks/format-code-task-001350/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..754788c1673e0c24490848b1ab9ffe2cb1ad6412 --- /dev/null +++ b/tasks/format-code-task-001350/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +I want `grumpc ` to compile Python call expressions into runnable Go source. When the input file contains `def add(a, b): return a + b` followed by `result = add(2, 3)`, `grumpc -modname=sample sample.py` should exit 0 and write valid Go source to stdout that evaluates the callee expression, passes the two positional arguments in order, and stores the call result in `result` when the generated module runs. + +Calls with explicit keyword arguments should also compile. For example, a source file with `def pair(a, b): return (a, b)` and `result = pair(b="bee", a="aye")` should produce Go source that preserves the keyword names and values so the generated module binds `a` to `"aye"` and `b` to `"bee"`. + +The compiler should support Python splat call syntax in the same call-expression path. A source file containing `result = f(1, *more)` should compile so the generated code appends the iterable contents of `more` after the explicit positional argument before invoking `f`; a source file containing `result = f(x=1, **extra)` should compile so the generated code merges the explicit keyword with the dictionary keywords before invoking `f`. + +If a call expression contains an unsupported subexpression inside the callee or any argument, `grumpc` should still report the normal compile error for that subexpression and exit non-zero rather than emitting partial or invalid call code. Valid call expressions should not print diagnostics to stderr. \ No newline at end of file diff --git a/tasks/format-code-task-001350/task.toml b/tasks/format-code-task-001350/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..2045802aee4623ae702d9289f75963457d45c063 --- /dev/null +++ b/tasks/format-code-task-001350/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001350" +description = "I want `grumpc ` to compile Python call expressions into runnable Go source." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Unknown" +domain = "code" +keywords = ["code", "Unknown"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001350" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want `grumpc ` to compile Python call expressions into runnable Go source." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:301ce9caa89ecb06354d5c5cac0003bec3e82f910ea0513d39ea566699b3719c" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxR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q6zFCxqBgYM8bZN8phfiMgvOHuNXU1b6w6fDjLmO6PcZakQuU8+WVtiJn+Ni6pGVDPD//n151Yvmui2gO7aJBhm+TapVEGyVXrbpBOUSumY8yPsE/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001368/instruction.md b/tasks/format-code-task-001368/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..f643040e87f4e0eba441d6f3e57f33c73f8b2ff2 --- /dev/null +++ b/tasks/format-code-task-001368/instruction.md @@ -0,0 +1,59 @@ +Fix the following issue: + +Translate API usage +#### Environment details + +OS: Mac OS 10.12.6 +Node.js version: 6.11.0 +npm version: 3.10.10 +google-cloud-node version: 1.0.0 + +#### Steps to reproduce + +``` +const gcloud_translator = require('@google-cloud/translate')({ key: GCLOUD_API_KEY, promise: Promise }); + +module.exports.translate = (msg, from, to) => { + // https://googlecloudplatform.github.io/google-cloud-node/#/docs/translate/1.0.0/translate?method=translate + return gcloud_translator + .translate(msg, { from, to }) + .then(data => { + const translation = data[0]; + // const api_response = data[1]; + + return Array.isArray(msg) ? arrify(translation) : translation; + }); +}; +``` + +https://github.com/GoogleCloudPlatform/google-cloud-node/blob/translate-1.0.0/packages/translate/src/index.js#L371 and https://github.com/GoogleCloudPlatform/google-cloud-node/blob/translate-1.0.0/packages/translate/src/index.js#L410 + +This is causing inconsistency in returning messages via the API. For example, + +``` +gcloud_translator.translate('Hello world', { from: 'en', to: 'vn' }).then(data => { + const translation = data[0]; + + // translation is a string +}) +``` + +``` +gcloud_translator.translate(['Hello world'], { from: 'en', to: 'vn' }).then(data => { + const translation = data[0]; + + // translation is also a string, which is unexpected +}) +``` + +In other case like + +``` +gcloud_translator.translate(['Hello world', 'How are you doing?'], { from: 'en', to: 'vn' }).then(data => { + const translation = data[0]; + + // translation is an array, which is expected +}) +``` + +I think this line https://github.com/GoogleCloudPlatform/google-cloud-node/blob/translate-1.0.0/packages/translate/src/index.js#L410 should rely on the default input instead of arrify version to return correctly data to the caller \ No newline at end of file diff --git a/tasks/format-code-task-001368/task.toml b/tasks/format-code-task-001368/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..036ee18233aff39766e2fb644f0a2ac17ee690ca --- /dev/null +++ b/tasks/format-code-task-001368/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001368" +description = "Translate API usage" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001368" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Translate API usage" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:e785337806026a1078ee6a46c2251e7b59a46b44cef4a0bf49a08e1ad2db3f62" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uI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veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001473/instruction.md b/tasks/format-code-task-001473/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..5fc99fa60250b8ada70c323e76c7cd96694efc28 --- /dev/null +++ b/tasks/format-code-task-001473/instruction.md @@ -0,0 +1,11 @@ +Fix the following issue: + +I want every WAAX plug-in instance, such as an object returned by `WX.Fader()` or another registered generator, processor, or analyzer factory, to expose a common stateful control surface for routing, parameters, and presets. + +A plug-in instance should support `to(target)`, where `target` may be another WAAX plug-in with an audio input or a native Web Audio `AudioNode`; it should connect the instance's output to that target and return the target so patching can be chained. Calling `cut()` on the instance should disconnect all outgoing connections from that plug-in. + +The instance should support `set(param, arg)` and `get(param)`. For a single value, `set('input', 0.25)` should immediately update that parameter at the current audio context time and return the same plug-in instance for chaining; a later `get('input')` should return `0.25`. For an automation envelope, `set('gain', [[0.0], [1.0, 0.01, 1], [0.0, 0.5, 2]])` should apply each envelope point to the named parameter in order, passing through each point's value, time, and ramp type. Setting an unknown parameter should be a no-op that still returns the same instance, and getting an unknown parameter should return `null`. + +The instance should support `setPreset(preset)` and `getPreset()`. Calling `setPreset({ input: 0.5, output: 0.75 })` should immediately apply each listed parameter at the current audio context time. Calling `getPreset()` should return a plain object snapshot of the instance's current parameter values, so after setting those values the snapshot includes `input: 0.5` and `output: 0.75`. + +If `to(target)` receives something that cannot be patched as a plug-in or Web Audio node, it should report a WAAX connection error instead of silently succeeding. \ No newline at end of file diff --git a/tasks/format-code-task-001473/task.toml b/tasks/format-code-task-001473/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..33d7bb469118af7f8d40c144c9f24c6aab32d57e --- /dev/null +++ b/tasks/format-code-task-001473/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001473" +description = "I want every WAAX plug-in instance, such as an object returned by `WX.Fader()` or another registered…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001473" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want every WAAX plug-in instance, such as an object returned by `WX.Fader()` or another registered…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:065735a5c0fbd15081233479fb9cdba6e812e2d41b7e29a35df6b9f98f81f766" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gK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/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001474/instruction.md b/tasks/format-code-task-001474/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..17fb2be21d2dbf67ad29a3553ff672ecc97b251f --- /dev/null +++ b/tasks/format-code-task-001474/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +I want a stateful `WX.NoteClip()` API for managing a collection of `WX.Note` objects in browser-side WAAX code. A session should look like `var clip = WX.NoteClip(); var id = clip.push(WX.Note(60, 64, 0, 120)); clip.get(id)` and `get(id)` should return the same note object while `getSize()` reports `1` and `hasId(id)` reports `true`. + +`push(note)` should assign a unique string ID that does not collide with IDs already in that clip, store the note under that ID, increment the clip size, and return the ID. `delete(id)` should remove and return the stored note when the ID exists, decrementing the size; deleting a missing ID should return `null` and leave the clip unchanged. `empty()` should remove all notes and make `getSize()` return `0`. + +I need lookup and selection helpers for piano-roll editing. `findNoteIdAtPosition(pitch, tick)` should return the ID of a note whose pitch matches and whose tick falls inclusively between `note.start` and `note.getEnd()`, or `null` if there is no match. `findNotesIdInArea(minPitch, maxPitch, startTick, endTick)` should return an array of IDs whose note pitch and note start are within the inclusive ranges, or `null` when none match. `scanNotesInTimeSpan(start, end)` should return the matching note objects whose start tick is within the inclusive range, or `null` when none match. + +The clip also needs `getAllId()` to return all stored note IDs, `set(id, note)` to update an existing note by copying properties through the note API and to make an absent ID retrievable with that note, and `iterate(callback)` to call `callback(id, note, index)` once for each stored note in the clip. Two independent `WX.NoteClip()` instances should keep separate note stores and sizes. \ No newline at end of file diff --git a/tasks/format-code-task-001474/task.toml b/tasks/format-code-task-001474/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..345c8f219b770a74dd5d2812e8b76d84eb438036 --- /dev/null +++ b/tasks/format-code-task-001474/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001474" +description = "I want a stateful `WX.NoteClip()` API for managing a collection of `WX.Note` objects in browser-side WAAX…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001474" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want a stateful `WX.NoteClip()` API for managing a collection of `WX.Note` objects in browser-side WAAX…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:622ee7d292700621c23a10d348e0e85917d48a028ec7a5237d51efb6c63856e6" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa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poon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001480/instruction.md b/tasks/format-code-task-001480/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..f2d60ec687ac24b951354e832ef701fbd56eee47 --- /dev/null +++ b/tasks/format-code-task-001480/instruction.md @@ -0,0 +1,76 @@ +Fix the following issue: + +Restarting frigate full access addon fails due to wrong slug: second dash in addon's name makes trouble +### The problem + +To reproduce: +1. Install full access version of frigate +2. Create a simple automation e.g. using the UI just executing the service to restart the "full access" frigate addon. +3. Execute this automation + +Alternatively just execute the restart service through the developer tools. + +Executing the automation/service will fail because the full access version of frigate is named "ccab4aaf-frigate-fa". + +Reason: The automation uses a slug "ccab4aaf_frigate-fa", which still contains one '-', which is an invalid char in a slug. +The YAML snippet below features the name of the addon and you can see the issue. This name has not been entered manually but was created once I selected the Frigate addon using the UI. + +Workaround could be to rename the addon to something like "ccab4aaf-frigatefa", but I'm afraid of side effects ... + +Any other reasonable workaround is appreciated :-) + +Actually, am not sure if Home Assistant Core should be able to deal with addons using more than 1 dash or if rather the addon should use a more compliant name. + +### What version of Home Assistant Core has the issue? + +core-2023.9.0 + +### What was the last working version of Home Assistant Core? + +_No response_ + +### What type of installation are you running? + +Home Assistant OS + +### Integration causing the issue + +frigate (full access) addon 0.12.1 + +### Link to integration documentation on our website + +https://github.com/blakeblackshear/frigate-hass-addons + +### Diagnostics information + +_No response_ + +### Example YAML snippet + +```yaml +description: "" +mode: single +trigger: [] +condition: [] +action: + - service: hassio.addon_restart + data: + addon: ccab4aaf_frigate-fa +``` + + +### Anything in the logs that might be useful for us? + +```txt +Logger: homeassistant.helpers.script.websocket_api_script +Source: helpers/script.py:420 +First occurred: 11:44:46 (2 occurrences) +Last logged: 11:44:51 + +websocket_api script: Error executing script. Invalid data for call_service at pos 1: invalid slug ccab4aaf_frigate-fa (try ccab4aaf_frigate_fa) for dictionary value @ data['addon'] +``` + + +### Additional information + +obviously it does not make sense to rename the slug manually because it needs to match the addon ... \ No newline at end of file diff --git a/tasks/format-code-task-001480/task.toml b/tasks/format-code-task-001480/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..3f4921105329534e61bb12da1bc223c30f0d52b3 --- /dev/null +++ b/tasks/format-code-task-001480/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001480" +description = "Restarting frigate full access addon fails due to wrong slug: second dash in addon's name makes trouble" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001480" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Restarting frigate full access addon fails due to wrong slug: second dash in addon's name makes trouble" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:d9e354d56e0e035c2e83070a794eac5f9751a9558304f5c4c8d533f6ae0e80a0" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4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YFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001487/instruction.md b/tasks/format-code-task-001487/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..25d35f1097fd62e2be8a914747009f821cec6342 --- /dev/null +++ b/tasks/format-code-task-001487/instruction.md @@ -0,0 +1,67 @@ +Fix the following issue: + +NIBE F2040: step size for room sensor set point wrong +### The problem + +I have a NIBE F2040 ASHP and SMO20. In #131583 the `47398 - Room sensor set point value heating climate system 1` key was added, allowing me to adjust the heating set point from HA. + +However the HA only allows steps of 1 degree, where it should be 0.5 degree (which can be done via the physical panel or uplink web interface). + +The relevant part of the diagnostic output is + +```json + { + "category": "SMO 20", + "parameterId": "47398", + "parameterName": "Room sensor set point value heating climate system 1", + "parameterUnit": "\u00b0C", + "writable": true, + "timestamp": "2024-12-11T13:23:12+00:00", + "value": 14.5, + "strVal": "14.5\u00b0C", + "smartHomeCategories": [], + "minValue": 50.0, + "maxValue": 350.0, + "stepValue": 5.0, + "enumValues": [], + "scaleValue": "0.1", + "zoneId": null + }, +``` +That is after having set to a .5 value from the uplink web interface. + +### What version of Home Assistant Core has the issue? + +core-2024.12.2 + +### What was the last working version of Home Assistant Core? + +_No response_ + +### What type of installation are you running? + +Home Assistant OS + +### Integration causing the issue + +myuplink + +### Link to integration documentation on our website + +https://www.home-assistant.io/integrations/myuplink + +### Diagnostics information + +_No response_ + +### Example YAML snippet + +_No response_ + +### Anything in the logs that might be useful for us? + +_No response_ + +### Additional information + +There is a diagnostic file on #131583 let me know if you need a new one. \ No newline at end of file diff --git a/tasks/format-code-task-001487/task.toml b/tasks/format-code-task-001487/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..8d3181e4eb429a7df2d13143aaa498234cf49b3c --- /dev/null +++ b/tasks/format-code-task-001487/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001487" +description = "NIBE F2040: step size for room sensor set point wrong" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001487" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "NIBE F2040: step size for room sensor set point wrong" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:f60e8a747d29de701d35c18544729e20c5fbb5919ec8d32efa31030d6ffc19b2" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gK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Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001489/instruction.md b/tasks/format-code-task-001489/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..e934f093499453570330ea7fdd4a6878a36e4131 --- /dev/null +++ b/tasks/format-code-task-001489/instruction.md @@ -0,0 +1,29 @@ +Fix the following issue: + +# Problem Statement + +I'm working on the deCONZ integration and trying to move it over to the config entries flow instead of the old discovery-based platform loading. The problem is when I call `hass.config_entries.async_forward_entry_setup(entry, "binary_sensor")` (and same for `sensor` and `scene`), it doesn't work — those base components don't seem to support being set up from a config entry the way `light` does. Could we get these entity platforms to participate correctly in the config-entry setup flow, so integrations like deCONZ can register their entities through the config-entry platform setup path instead of relying on legacy discovery loading? + +# Expected outcomes + +- Config-entry forwarding support: + - Forwarding a config entry to `binary_sensor`, `sensor`, or `scene` through `hass.config_entries.async_forward_entry_setup(...)` should succeed when the target integration exposes platform setup for config entries. + - The `binary_sensor`, `sensor`, and `scene` base components should support Home Assistant’s existing config-entry forwarding flow for entity platforms. + +- deCONZ config-entry setup: + - Setting up deCONZ from a config entry should initialize the bridge from the config entry data. + - deCONZ’s config-entry setup should reach its supported entity platforms through the config-entry platform setup flow. + - During config-entry setup, deCONZ should not also load those entity platforms through the legacy discovery path. + +- deCONZ platform behavior: + - deCONZ entity platforms should add the same entities from bridge data when invoked through the config-entry platform setup path as they previously did through the discovery-based path. + - The legacy discovery-based platform setup path should not create duplicate entities for deCONZ after this migration. + +- Existing deCONZ guard behavior: + - Attempting to set up a second deCONZ config entry while one is already registered should still fail and report that a deCONZ instance already exists. + +# Implementation notes + +- Match the existing Home Assistant config-entry forwarding conventions for entity platforms. +- The exact organization of helper functions, intermediate data structures, and setup code is up to the implementer as long as the externally observable setup behavior above is satisfied. +- Preserve existing entity creation semantics for deCONZ platforms; this task is about how those platforms are reached and invoked, not changing which deCONZ entities are created from bridge data. \ No newline at end of file diff --git a/tasks/format-code-task-001489/task.toml b/tasks/format-code-task-001489/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..eebde2d8afe885c5cbb42cfb57ce6ff3f78c10ab --- /dev/null +++ b/tasks/format-code-task-001489/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001489" +description = "I'm working on the deCONZ integration and trying to move it over to the config entries flow instead of the…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001489" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I'm working on the deCONZ integration and trying to move it over to the config entries flow instead of the…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:12e42f61ba444629cf6e8aa5953f097aa6e421322692b5588d4153b1cde1180d" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKoh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K2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001501/instruction.md b/tasks/format-code-task-001501/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..e0c6635150186033072b5311d8120d29f1f29929 --- /dev/null +++ b/tasks/format-code-task-001501/instruction.md @@ -0,0 +1,22 @@ +Fix the following issue: + +## Cannot edit climate device actions when the referenced entity isn't loaded + +I have an automation that contains a few "set HVAC mode" / "set preset mode" device actions pointing at one of my thermostats (a climate entity). It works fine while everything is loaded. + +The trouble starts when that climate entity is temporarily not present in the running instance — for example I disabled the integration while debugging something, or the entity is otherwise not added yet at startup, even though it's still in the entity registry and my automation still references it by entity_id. + +When I open that automation in the UI to tweak something else, two things go wrong: + +1. The HVAC-related device actions for that device sometimes don't show up at all in the device actions list, even though the entity is known to the registry and my automation already uses it. + +2. If I try to edit one of the existing `set_hvac_mode` actions, the "HVAC mode" dropdown is empty, so I can't pick anything and the editor won't let me save the action. Same story for `set_preset_mode` — the preset dropdown is empty. I'm not trying to change the entity, I just want to adjust the mode value (or just look at / re-save what's already there), but the form is unusable. + +So effectively, as soon as the underlying climate entity isn't currently loaded, any automation referencing it via a climate device action becomes uneditable in the UI, even though Home Assistant clearly still knows the entity exists. + +I'd expect the device action editor to still work in this situation: + +- The HVAC mode / preset mode device actions for a known climate entity should remain visible / listable, not vanish just because the entity isn't currently providing a live state. +- The dropdowns for HVAC mode and preset mode should still be populated with the entity's supported modes, so I can actually edit and save the automation. The information about which modes the entity supports is already known to Home Assistant — it shouldn't only be reachable via a live state. + +This is pretty painful because any time an integration is briefly unavailable, all the automations referring to its climate entities become read-only in the UI. \ No newline at end of file diff --git a/tasks/format-code-task-001501/task.toml b/tasks/format-code-task-001501/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..6c2de97033bbc8e55aa8a40f4ce99cf38ad62faa --- /dev/null +++ b/tasks/format-code-task-001501/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001501" +description = "Cannot edit climate device actions when the referenced entity isn't loaded" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001501" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Cannot edit climate device actions when the referenced entity isn't loaded" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:d1b6dca7ac387f3b4ae5f094522e769923f90d16ee6eedb4269361eaf7dd5de2" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6x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MnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001506/instruction.md b/tasks/format-code-task-001506/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..3e90b5168777e103ec3f403a8749cc845f899ad7 --- /dev/null +++ b/tasks/format-code-task-001506/instruction.md @@ -0,0 +1,26 @@ +Fix the following issue: + +# Problem Statement + +I can only see Pi-hole Core/Web/FTL update availability as binary sensors right now, so they don’t show up with the rest of Home Assistant’s update entities. Could Pi-hole expose those three as proper update entities, with the current/latest version and a link to the release notes when an update is available? + +# Expected outcomes + +- Pi-hole exposes three first-class Home Assistant update entities for the Core, Web interface, and FTL components, corresponding to the existing Core Update Available, Web Update Available, and FTL Update Available update indicators. +- Each new update entity reports whether an update is available through the standard Home Assistant update entity state, so the entities can be discovered and displayed with other update entities. +- Each new update entity exposes standard update metadata: `current_version` and `latest_version`. + - The Core update entity uses Pi-hole’s Core current/latest version data. + - The Web interface update entity uses Pi-hole’s Web current/latest version data. + - The FTL update entity uses Pi-hole’s FTL current/latest version data. +- When a latest version is known, each update entity exposes a `release_url` pointing to the release notes for that component’s latest version. + - Core links to the Pi-hole Core GitHub release tag. + - Web interface links to the AdminLTE Web interface GitHub release tag. + - FTL links to the FTL GitHub release tag. +- The update entities have user-facing titles for the component they represent: Pi-hole Core, Pi-hole Web interface, and Pi-hole FTL DNS, and are categorized as diagnostic entities. +- The existing Pi-hole binary sensor update indicators remain available for compatibility, but newly created Core Update Available, Web Update Available, and FTL Update Available binary sensor entities are disabled by default to avoid duplicate update reporting. + +# Implementation notes + +- Preserve existing Pi-hole integration behavior outside of update reporting. +- The exact internal organization, helper types, and validation location are up to the implementer, as long as the behavior is observable through Home Assistant’s standard update entity model and existing entity registry behavior. +- Handle missing or unavailable Pi-hole version data gracefully instead of failing setup or update entity creation. \ No newline at end of file diff --git a/tasks/format-code-task-001506/task.toml b/tasks/format-code-task-001506/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..c6df86583488d904d4a50c70fee71b4f2ea8eb7a --- /dev/null +++ b/tasks/format-code-task-001506/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001506" +description = "I can only see Pi-hole Core/Web/FTL update availability as binary sensors right now, so they don’t show up…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001506" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I can only see Pi-hole Core/Web/FTL update availability as binary sensors right now, so they don’t show up…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:e1d14a2733830ef48f2a5583e870cf61a4f445add5fa5e715df7a25a710318ff" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRu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tOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001539/instruction.md b/tasks/format-code-task-001539/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..c9e8055daf954d16ce49a0c9550f338331631819 --- /dev/null +++ b/tasks/format-code-task-001539/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +I want a `cachedAsyncBuffer(file: AsyncBuffer, options?: { minSize?: number }) -> AsyncBuffer` helper for wrapping any existing async byte buffer with range caching. The returned object should preserve `file.byteLength` and expose `slice(start: number, end?: number): ArrayBuffer | Promise`. + +For a small file, such as `file.byteLength === 100` with `{ minSize: 200 }`, the wrapper should read the whole source once with `file.slice(0, 100)`, then serve later calls like `slice(0, 10)` and `slice(50, 60)` from that cached whole buffer without calling the source again. For a larger file, such as `file.byteLength === 1000` with `{ minSize: 100 }`, two calls to `slice(0, 10)` should share the same underlying `file.slice(0, 10)` promise, while `slice(10, 20)` should make a separate source call. + +The cache should normalize equivalent ranges: `slice(100)` on a 1000-byte file should cache the same range as `slice(100, 1000)`, and `slice(-10)` should cache the same range as `slice(990, 1000)`. Invalid range requests should fail before calling the source: `slice(-10, 20)` should throw `Error('invalid suffix range [-10, 20]')`, and `slice(20, 10)` should throw `Error('invalid empty range [20, 10]')`. Separate wrappers around the same source should keep independent caches. \ No newline at end of file diff --git a/tasks/format-code-task-001539/task.toml b/tasks/format-code-task-001539/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..fdf7ec4be0bc35c71aefd6708d99babb248ad353 --- /dev/null +++ b/tasks/format-code-task-001539/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001539" +description = "I want a `cachedAsyncBuffer(file: AsyncBuffer, options?: { minSize?: number }) -> AsyncBuffer` helper for…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001539" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want a `cachedAsyncBuffer(file: AsyncBuffer, options?: { minSize?: number }) -> AsyncBuffer` helper for…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:36becd9eef4f98db18733e5cf9803e3fd5c3aa081a4e38174483241bf3430d09" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5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gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001555/instruction.md b/tasks/format-code-task-001555/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..635fbb9caf1e01168b1e039c7ff062e96fbfd0f9 --- /dev/null +++ b/tasks/format-code-task-001555/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +I want IITC to expose a stateful COMM message filtering API at IITC.comm.declarativeMessageFilter so plugins can register declarative rules and have matching COMM rows hidden when the chat is rendered. The API should support addRule(id: string, rule: {conditions: Array}), removeRule(id: string), getRuleById(id: string), getAllRules(), and filterMessage(message: object): boolean, with rule state retained across calls on the singleton. + +A rule matches only when every condition matches. A condition can read a nested message field using dot paths and bracket indexes such as player.name or markup[5][1].plain, then compare either an exact value via value or a regular expression via pattern; if invert is true, that condition result is negated. For example, after addRule('directComparison', {conditions: [{field: 'player.name', value: '43Bad'}]}), filterMessage({player: {name: '43Bad'}}) should return true, while filterMessage({player: {name: 'Spedd'}}) should return false. After addRule('regexPattern', {conditions: [{field: 'markup[0][1].plain', pattern: /UK\)$/i}]}), a message whose first markup payload plain text is 'Bridge (UK)' should return true, and one with 'Bridge (US)' should return false. + +Rules should be manageable by ID: getRuleById(id) returns the registered rule or null, getAllRules() returns the current rule map, removeRule(id) removes an existing rule, adding an existing ID overwrites it and logs a warning, and removing an unknown ID logs an error. Conditions with missing fields or without either value or pattern should not match. When the COMM renderer processes stored messages, it should call this filter on the parsed message object and omit rows whose filterMessage result is true, while keeping all non-matching messages in the normal rendered chat output. \ No newline at end of file diff --git a/tasks/format-code-task-001555/task.toml b/tasks/format-code-task-001555/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..45238699658d90c37ad54cbff51b1a887ed063cd --- /dev/null +++ b/tasks/format-code-task-001555/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001555" +description = "I want IITC to expose a stateful COMM message filtering API at IITC.comm.declarativeMessageFilter so plugins…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001555" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want IITC to expose a stateful COMM message filtering API at IITC.comm.declarativeMessageFilter so plugins…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:4f680d08dd0abe286e717cb184bfbcd03eef9564fcf58c102f0bd060830e0ef7" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS9oLQ31nGfijFkG/UysGl53/Wb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TUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001641/instruction.md b/tasks/format-code-task-001641/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..5e1c865cac44bb4538f1254fb89be9b2c7b38f27 --- /dev/null +++ b/tasks/format-code-task-001641/instruction.md @@ -0,0 +1,5 @@ +Fix the following issue: + +I want the django-tables2 template library to provide a `{% render_table %}` tag for Django templates. After `{% load django_tables2 %}`, `{% render_table table %}` should resolve `table` from the template context, accept a `django_tables2.Table` instance, and return the rendered HTML from that table's configured template name. The tag should also support `{% render_table table "custom.html" %}` and render with the explicit template name instead of the table default, and the second argument should be allowed to resolve to a list or tuple of template names using Django's normal first-existing-template selection. + +The rendering should use the current request from the template context when rendering the table template, and it should call the table's `before_render(request)` hook before producing the HTML. Template columns rendered inside the table should be able to see the surrounding template context, so a `TemplateColumn` can use values that were available where `{% render_table %}` was invoked. Passing a Django queryset such as `{% render_table user_queryset %}` should create a table for the queryset model and render the queryset rows. Passing any value that is neither a table nor a queryset should raise `ValueError` with a message like `Expected table or queryset, not dict`. Rendering with the same table, request, and template context should produce the same HTML and should not replace or mutate variables in the caller's template context. \ No newline at end of file diff --git a/tasks/format-code-task-001641/task.toml b/tasks/format-code-task-001641/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..6ff6178911c646635d98c10b08297bad3f8ff68a --- /dev/null +++ b/tasks/format-code-task-001641/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001641" +description = "I want the django-tables2 template library to provide a `{% render_table %}` tag for Django templates." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001641" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want the django-tables2 template library to provide a `{% render_table %}` tag for Django templates." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:6d21298d694946c28bed838748842b13bd0612b94628d8d0679f3ba7fb024608" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLX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Cbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001679/instruction.md b/tasks/format-code-task-001679/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..2808f4bf99ebe5b33f12e5621b2b35e295875111 --- /dev/null +++ b/tasks/format-code-task-001679/instruction.md @@ -0,0 +1,5 @@ +Fix the following issue: + +I want the `nodefront minify` CLI to optimize image assets as part of the minify command. `nodefront minify --images` and `nodefront minify -i` should select JPEG and PNG files, including `.jpg`, `.jpeg`, and `.png` targets, and run the appropriate image optimizer for each matched file. A plain target should also work with an explicit image type, for example `nodefront minify -p images/photo.jpg -t jpg` and `nodefront minify -p images/icon.png -t png`. + +On a successful run, the command should write the optimized image to the output path chosen by the minify command and print a line like `Optimized images/photo.jpg to images/photo.min.jpg.` or `Optimized images/icon.png to images/icon.min.png.` to stdout. Successful image optimization should exit with code 0. If the image optimizer process reports an error, the command should fail with a non-zero exit code and should not print the success message for that file. `nodefront minify --help` should advertise `-i, --images` as the shortcut for optimizing JPEG/PNG files, and the `--type` help text should list `jpg`, `jpeg`, and `png` as supported forced types. \ No newline at end of file diff --git a/tasks/format-code-task-001679/task.toml b/tasks/format-code-task-001679/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..40b4ae965da54c7e7d960c0b8a1553d7de17416d --- /dev/null +++ b/tasks/format-code-task-001679/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001679" +description = "I want the `nodefront minify` CLI to optimize image assets as part of the minify command." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Unknown" +domain = "code" +keywords = ["code", "Unknown"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001679" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want the `nodefront minify` CLI to optimize image assets as part of the minify command." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:486f62c1ee8118ae0301fef141b365ed12da074322355045574d3c9849d35544" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXj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8f+khx5vbxOJWszHo4Hp5MNPV6tTk3bNNxyriegNPEzIp9gRnOlAjgPOPSF8uUkujGq3i3JjUM82exXfF0UZL3tBFVmN5Vm4RiGKg9dyxnAlvSi7jhJUel5B5pMmoU/Tia7KRcq9PyXZFBD64zpzHRHBErWIO6XxztR9K3ok2BzQvjuNFfVnET4WTkvQeX3WxRI1KO1TeycmZPtwjrF48jrsxZ6h1rc9YrBVS4Q6zFCxqBgYM8bZN8phfiMgvOHuNXU1b6w6fDjLmO6PcZakQuU8+WVtiJn+Ni6pGVDPD//n151Yvmui2gO7aJBhm+TapVEGyVXrbpBOUSumY8yPsE/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001684/instruction.md b/tasks/format-code-task-001684/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..15585b00b6c503a22f5c46bfb93b72db81fdc69a --- /dev/null +++ b/tasks/format-code-task-001684/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +I want a command-line bone stream generator in `data_gen/gen_bone_data.py` that I can run from the `data_gen` directory as `python gen_bone_data.py --dataset ntu`, `python gen_bone_data.py --dataset ntu120`, or `python gen_bone_data.py --dataset kinetics`. The `--dataset` flag is required and only accepts `ntu`, `ntu120`, and `kinetics`; missing or invalid values should use standard argparse behavior with usage on stderr and a non-zero exit code. + +For `--dataset ntu`, the command should process `ntu/xview` and `ntu/xsub`; for `--dataset ntu120`, it should process `ntu120/xset` and `ntu120/xsub`; for `--dataset kinetics`, it should process `kinetics`. For every selected benchmark it should process both `train` and `val`, print a line like `ntu/xview train` or `kinetics val`, read `../data//_data_joint.npy` with NumPy mmap mode, and create `../data//_data_bone.npy` as a float32 NumPy memmap with shape `(N, 3, T, V, M)` from the input tensor shape `(N, C, T, V, M)`. + +The output tensor should start by copying the input joint coordinates into the first `C` channels, then replace each child joint coordinate with the vector from that child joint to its paired parent joint. NTU and NTU120 should share these one-based skeleton pairs, converted to zero-based indices before indexing: `(1,2), (2,21), (3,21), (4,3), (5,21), (6,5), (7,6), (8,7), (9,21), (10,9), (11,10), (12,11), (13,1), (14,13), (15,14), (16,15), (17,1), (18,17), (19,18), (20,19), (22,23), (21,21), (23,8), (24,25), (25,12)`. Kinetics should use zero-based pairs directly: `(0,0), (1,0), (2,1), (3,2), (4,3), (5,1), (6,5), (7,6), (8,2), (9,8), (10,9), (11,5), (12,11), (13,12), (14,0), (15,0), (16,14), (17,15)`. + +If a benchmark/part input file is missing or any other exception happens while processing it, the command should not abort the remaining work. It should print `Run into error: ` and then `Skipping ( )`, then continue with the next part or benchmark. \ No newline at end of file diff --git a/tasks/format-code-task-001684/task.toml b/tasks/format-code-task-001684/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..82a989e196c9fe14789de46d2a6875320df35c23 --- /dev/null +++ b/tasks/format-code-task-001684/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001684" +description = "I want a command-line bone stream generator in `data_gen/gen_bone_data.py` that I can run from the…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Unknown" +domain = "code" +keywords = ["code", "Unknown"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001684" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want a command-line bone stream generator in `data_gen/gen_bone_data.py` that I can run from the…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:8a1933ffe2778f549a5dce578dc88bd92edff8472a3286e6bdd38eddd749ba55" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5U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+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001733/instruction.md b/tasks/format-code-task-001733/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..1f2a3b464b8eba94551b3cca9e23b67995aaf0ca --- /dev/null +++ b/tasks/format-code-task-001733/instruction.md @@ -0,0 +1,46 @@ +Fix the following issue: + +# Add block-volume snapshot support to the Supervisor (WCP) controller + +The Supervisor-cluster CSI controller currently rejects every snapshot request: its +`CreateSnapshot` and `DeleteSnapshot` entry points just return an "unimplemented" gRPC +error. We already support CSI snapshots for block volumes elsewhere in the driver; we now +need the same lifecycle to work when the controller is running in the Supervisor (WCP) +flavor. + +Wire up `CreateSnapshot` and `DeleteSnapshot` on the WCP controller so a block volume can +be snapshotted and the snapshot later removed, using the same CNS-backed snapshot +operations the rest of the driver relies on. + +## Expected behavior + +**CreateSnapshot** + +- Given a request that carries the source volume ID of an existing block volume and a + snapshot name, create a snapshot of that volume and return a populated response whose + `Snapshot` has: + - a `SnapshotId` that identifies the snapshot by combining the CNS volume ID and the CNS + snapshot ID, joined by the driver's snapshot-ID delimiter (`"+"`), i.e. + `"+"`. This combined ID must be the value that + `DeleteSnapshot` later accepts. + - `SourceVolumeId` equal to the request's source volume ID, + - `SizeBytes` equal to the size of the source volume (in bytes), + - `ReadyToUse` set to `true`, + - a non-nil `CreationTime`. +- A request without a source volume ID, or without a snapshot name, is invalid and must be + rejected with an error rather than producing a snapshot. +- A request whose source volume ID refers to a migrated in-tree vSphere volume (the volume + ID contains `.vmdk`) is not supported and must fail with the gRPC `Unimplemented` code. +- The number of snapshots per block volume is capped by the configured maximum + (`GlobalMaxSnapshotsPerBlockVolume`). A `CreateSnapshot` request for a volume that has + already reached that maximum must be rejected with the gRPC `FailedPrecondition` code + rather than creating another snapshot. + +**DeleteSnapshot** + +- Given the combined `SnapshotId` returned by `CreateSnapshot`, delete the underlying CNS + snapshot and return a non-nil, empty response with no error. + +The two operations must round-trip: a snapshot created through `CreateSnapshot` can be +deleted through `DeleteSnapshot` using the returned snapshot ID, and after deletion that +snapshot no longer exists on the source volume. diff --git a/tasks/format-code-task-001733/task.toml b/tasks/format-code-task-001733/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..0b2cd8bc2c6819ca4100e04c7a1e515132889d57 --- /dev/null +++ b/tasks/format-code-task-001733/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001733" +description = "Add block-volume snapshot support to the Supervisor (WCP) controller" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001733" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Add block-volume snapshot support to the Supervisor (WCP) controller" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:d80710ee6f4048b74165a24d127207b6c0115f7d684ba9f74a2ae79d30b16aae" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9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g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001734/instruction.md b/tasks/format-code-task-001734/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..5392ceaf55e70e3abc31ea21b40d9b82cadf9acf --- /dev/null +++ b/tasks/format-code-task-001734/instruction.md @@ -0,0 +1,16 @@ +Fix the following issue: + +## Can't run syncer integration tests without a full vSphere testbed + +I'd like to add integration tests for the metadata syncer / full sync flows under `pkg/syncer`, similar to what already exists for the CSI controller. The problem is the test setup story for syncer — there's no easy way to get a usable `*config.Config` unless you have a real vCenter testbed to point at. + +Right now the only way to construct a config is `config.FromEnv`, which requires the full set of `VSPHERE_VCENTER` / `VSPHERE_USER` / `VSPHERE_PASSWORD` / `VSPHERE_DATACENTER` / ... environment variables to be set, and on top of that you actually need a live vCenter reachable on the other end. The `integration-unit-test` Makefile target enforces all of those vars and bails out otherwise. + +This is fine when you do have a deployed testbed, but it makes it really painful to: + +- write and iterate on syncer integration tests on a dev machine that has no testbed, +- run the syncer integration tests as part of `make integration-unit-test` alongside the existing CSI controller ones. + +govmomi already ships in-process simulators (vcsim, plus the CNS and PBM SDK simulators), and other tests in this repo already wire those up locally to exercise code paths against a fake vCenter. It would be great if `pkg/common/config` provided a single entry point for tests to obtain a `Config`: prefer the real environment variables when they're set (so a real testbed is still used when available), and otherwise transparently fall back to a config that points at a freshly stood-up simulator. + +With that in place I can write proper integration tests for the syncer workflows and have them included in `integration-unit-test`, without forcing every contributor running the target to have a vCenter on hand. The new helper I'd expect would be something like `FromEnvOrSim` in `pkg/common/config`. \ No newline at end of file diff --git a/tasks/format-code-task-001734/task.toml b/tasks/format-code-task-001734/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..e2862db494679dcce3922f8d6c685a894df6e6a7 --- /dev/null +++ b/tasks/format-code-task-001734/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001734" +description = "Can't run syncer integration tests without a full vSphere testbed" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001734" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Can't run syncer integration tests without a full vSphere testbed" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:6e0e867b92113170b0114063dd8624e13b720a12e1881f3758e3e096c13c9476" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21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Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001758/instruction.md b/tasks/format-code-task-001758/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..b5fce2f923910274d08e7d8ced6906bd18685b71 --- /dev/null +++ b/tasks/format-code-task-001758/instruction.md @@ -0,0 +1,23 @@ +Fix the following issue: + +### Feature request: a reverse counterpart to `Str::wrap` + +`Str::wrap()` lets you surround a value with a `before`/`after` string, which is handy. I keep running into the opposite need across projects and there's no clean helper for it. + +A few examples of what I end up writing manually: + +```php +// I want to strip the surrounding quotes off a value +$raw = '"Unquote"'; +// expected result: Unquote + +// I want to peel off the braces around a JSON-ish blob +$raw = '{ some: "json" }'; +// expected result: ' some: "json" ' +``` + +Today I have to hand-roll `substr` + `str_starts_with` / `str_ends_with` checks every time, and remember to only strip the delimiters when they're actually present (so I don't accidentally chop real content off a string that wasn't wrapped). + +It would be great if `Str` (and the fluent `Stringable`) had a reverse of `wrap` that takes the same `(value, before, after = null)` shape as `Str::wrap` — symmetric with `wrap` so that wrapping and then unwrapping with the same arguments round-trips back to the original string, and where `after` defaults to `before` when omitted (same convention as `wrap`). + +The new helper I'd expect is something like `Str::unwrap(...)` (with a matching method on `Stringable`). \ No newline at end of file diff --git a/tasks/format-code-task-001758/task.toml b/tasks/format-code-task-001758/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..78180f100f32220d9e5556db8282caefbce6d43a --- /dev/null +++ b/tasks/format-code-task-001758/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001758" +description = "Feature request: a reverse counterpart to `Str::wrap`" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "PHP" +domain = "code" +keywords = ["code", "PHP"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001758" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Feature request: a reverse counterpart to `Str::wrap`" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:0921f836de95a95b10aac166066c0bf767e206343773753533a08a95784ae476" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT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4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001767/instruction.md b/tasks/format-code-task-001767/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..a0973ccc32df3c3f2d1b48337be4682d9a13afc4 --- /dev/null +++ b/tasks/format-code-task-001767/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +I want the `ledis` package to expose full-database dump and import methods on an opened `*Ledis` instance: `Dump(w io.Writer) error`, `DumpFile(path string) error`, `LoadDump(r io.Reader) (*DumpHead, error)`, and `LoadDumpFile(path string) (*DumpHead, error)`. `DumpHead` should contain the dump stream commit id as `CommitID uint64`. + +When I create a `*Ledis` with `ledis.Open(cfg)`, write keys into one database, and call `DumpFile("/tmp/ledis.dump")`, the method should create the file and write a complete snapshot of the current store. If I then open a separate empty `*Ledis` and call `LoadDumpFile("/tmp/ledis.dump")`, all raw key/value records from the dumped store should be present in the target with the same bytes as the source. + +`Dump(w)` should write to any `io.Writer` without requiring a filesystem path, and `LoadDump(r)` should read the same stream from any `io.Reader`. The stream format should begin with a big-endian uint64 commit id, followed by repeated records where each key is Snappy-compressed and prefixed with a big-endian uint16 length, and each value is Snappy-compressed and prefixed with a big-endian uint32 length; end of file marks the end of records. + +The dump operation should be point-in-time consistent even if other writes happen after it starts. The load operation should clear the target database before applying the dump stream, return a `DumpHead` containing the stream commit id, and return an error for unreadable files, malformed headers, truncated records, or invalid Snappy data. \ No newline at end of file diff --git a/tasks/format-code-task-001767/task.toml b/tasks/format-code-task-001767/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..ad5e0a0eb2ec8668105ae24a7162ea0821c59967 --- /dev/null +++ b/tasks/format-code-task-001767/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001767" +description = "I want the `ledis` package to expose full-database dump and import methods on an opened `*Ledis` instance…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Go" +domain = "code" +keywords = ["code", "Go"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001767" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want the `ledis` package to expose full-database dump and import methods on an opened `*Ledis` instance…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:4b17085254e7342b71c16f99c027f90ed54f4eb777bf5c7b3ffa7aaa81d6510d" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13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48jrsxZ6h1rc9YrBVS4Q6zFCxqBgYM8bZN8phfiMgvOHuNXU1b6w6fDjLmO6PcZakQuU8+WVtiJn+Ni6pGVDPD//n151Yvmui2gO7aJBhm+TapVEGyVXrbpBOUSumY8yPsE/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001793/instruction.md b/tasks/format-code-task-001793/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..ac0823590f7adb0b6bd9cf0ac64299b3bf36d340 --- /dev/null +++ b/tasks/format-code-task-001793/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +I need a Python API for routing outgoing Iris messages through configured vendor backends. The public class should be `IrisVendorManager(vendors: list[dict], application_vendors: list[str])`, with `send_message(message: dict)` and `cleanup()` methods, plus an `IrisVendorException` for exhausted delivery attempts. + +When I construct `IrisVendorManager([{"type": "iris_dummy"}], ["dummy_app"])`, calling `send_message({"mode": "call"})` should use the default dummy vendor and return `1`. With the same manager instance, calling `send_message({"application": "dummy app", "mode": "call"})` should use the application-specific wrapper and return `2`. + +The manager should build vendor instances once during construction from each vendor config's `type`, register each vendor for every supported mode, and keep those instances alive across sends so repeated `send_message()` calls use the manager's current vendor rotation state. If an application-specific wrapper exists for `message["application"]` and supports `message["mode"]`, that wrapper should be preferred; otherwise the manager should fall back to the default vendor rotation for that mode. If a selected vendor raises during send, `send_message()` should try the next vendor for that mode, stop after the manager's per-message retry limit, and then raise `IrisVendorException` indicating that all vendors for the requested mode failed. Calling `cleanup()` should call `cleanup()` on every constructed vendor instance that provides it and should ignore vendors that do not expose a cleanup method. \ No newline at end of file diff --git a/tasks/format-code-task-001793/task.toml b/tasks/format-code-task-001793/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..e615309ca02ffa8ca5aaf35c1491e8ebb51c4e14 --- /dev/null +++ b/tasks/format-code-task-001793/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001793" +description = "I need a Python API for routing outgoing Iris messages through configured vendor backends." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001793" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I need a Python API for routing outgoing Iris messages through configured vendor backends." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:57c9318f609fb4e841d54458ca00acc383268e318c1041d351dd4c72ffd34d8d" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2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6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001813/instruction.md b/tasks/format-code-task-001813/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..054c8f601ea87d0897480ae4fb786f85a568ffaa --- /dev/null +++ b/tasks/format-code-task-001813/instruction.md @@ -0,0 +1,5 @@ +Fix the following issue: + +I want a public `locust.stats.get_readable_percentiles(percentile_list: list[float]) -> list[str]` helper that formats percentile fractions as human-readable percentage labels for reports. It should return a new list and leave the input list unchanged, with no filesystem, network, or global-state side effects. + +For `get_readable_percentiles([])`, it should return `[]`. For `get_readable_percentiles([0.5, 0.66, 0.75, 0.8, 0.95, 1.0])`, it should return `["50%", "66%", "75%", "80%", "95%", "100%"]`. For high-precision fractions like `get_readable_percentiles([0.999, 0.9999, 0.666666])`, it should return `["99.9%", "99.99%", "66.6666%"]`, using integer labels when the percentage is a whole number and otherwise rounding the percentage value to at most 6 decimal places before adding `%`. Calling it multiple times with the same input should produce equal results. If an item is not numeric, for example `get_readable_percentiles([None])`, the call should fail with `TypeError` rather than silently returning an invalid label. \ No newline at end of file diff --git a/tasks/format-code-task-001813/task.toml b/tasks/format-code-task-001813/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..5bfc5f4bcd042956db8867f3987e65a4d9c50bd9 --- /dev/null +++ b/tasks/format-code-task-001813/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001813" +description = "I want a public `locust.stats.get_readable_percentiles(percentile_list: list[float]) -> list[str]` helper…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001813" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want a public `locust.stats.get_readable_percentiles(percentile_list: list[float]) -> list[str]` helper…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:4baf7b08aa79e6d8eb975f67ecfc633372b8a4f33088a350b63e3a3045c34965" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/H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QxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001825/instruction.md b/tasks/format-code-task-001825/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..fc2ad77e5b19dc4de5278eb7f13dbb82d4f11c87 --- /dev/null +++ b/tasks/format-code-task-001825/instruction.md @@ -0,0 +1,81 @@ +Fix the following issue: + +Don't close MLflow run context when training model +**Is your feature request related to a problem? Please describe.** +Currently I am using MLflow projects to run a python script that trains a model using ludwig. I would like to set the experiment name and model name to the one I pass via CLI parameters. At the same time the model name should also be the run's name in mlflow and the experiment names should match as well. The MlflowCallback seems to currently end mlflow runs if not called through hyperopt. Therefore it is not possible to let ludwig log to a run started before calling the train method. + +This is the current version of `train.py`: +```python +import mlflow +from ludwig.api import LudwigModel +from ludwig.contribs.mlflow import MlflowCallback +import pandas as pd +import pathlib +import click + + +@click.command() +@click.option("--data_path", help="Path to data", type=click.Path(exists=True)) +@click.option( + "--model_config_path", + help="Path to model config", + type=click.Path(exists=True), +) +@click.option( + "--output_path", help="Path to save trained model", type=click.Path() +) +@click.option( + "--model_name", + help="Name of the model", + type=click.STRING, +) +@click.option( + "--experiment_name", + help="Name of the experiment", + type=click.STRING, +) +def train( + data_path, model_config_path, output_path, model_name, experiment_name +): + """Train model""" + + data_path = pathlib.Path(data_path) + output_path = pathlib.Path(output_path) + + # load data + df = pd.read_csv(data_path) + + # create model with mlflow callback + # will log metrics, artifacts, and model + model = LudwigModel( + config=model_config_path, + logging_level=30, + callbacks=[MlflowCallback()], + ) + # train model + _, _, output_dir = model.train( + dataset=df, + experiment_name=experiment_name, + model_name=model_name, + output_directory=output_path, + ) + +if __name__ == "__main__": + train() +``` + +And the call I want to make is: +`mlflow run -e train -P data_path=data/train.csv -P model_config_path=config/model_config.yaml -P model_name=test -P experiment_name=titanic .` + +The result should be a run with name "test" under experiment with name "titanic" containing the logs by the MlflowCallback. + +**Describe the use case** +A user wants to define custom experiment and run names when using the MlflowCallback. + +**Describe the solution you'd like** +A way to make it possible for the user to start a run and let the MlflowCallback log to that run. Might be enough to remove the `mlflow.end_run()` call when no experiment_id is set yet. + +**Describe alternatives you've considered** +I could define experiment name and model/run name as CLI parameters to the entrypoint as well as to mlflow. That's a little ugly because it would mean writing both two times. +E.g. `mlflow run -e train -P model_name=titanic -P experiment_name=test --run-name titanic --experiment-name test`. +I also tried a partial workaround where I set the mlflow.runName tag after using LudwigModel.train() of the last active run (`mlflow.last_active_run()`). This does not work for the experiment_name, though. \ No newline at end of file diff --git a/tasks/format-code-task-001825/task.toml b/tasks/format-code-task-001825/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..9cc2cff44e183fc7dee4c647d32b48946d7b8870 --- /dev/null +++ b/tasks/format-code-task-001825/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001825" +description = "Don't close MLflow run context when training model" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001825" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Don't close MLflow run context when training model" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:3a44da841b9dc87e01af39d1e7c2e9341f01d89e60745fba403c40d7057e5a22" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ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n++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001932/instruction.md b/tasks/format-code-task-001932/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..48edb996c7e24fbde78842e25d0c30bdd382d18a --- /dev/null +++ b/tasks/format-code-task-001932/instruction.md @@ -0,0 +1,42 @@ +Fix the following issue: + +Used var declaration is removed with default reduce_vars=true +**Bug report or feature request?** +bug + +**Uglify version (`uglifyjs -V`)** +uglify-js 3.6.0 + +**JavaScript input** +UglifyJs.minify(\` +function xxx(module) { + function fun() { + console.log(MODE.BlockStatement === 'a'); + } + var MODE = { + BlockStatement: 'BlockStatement', + }; + module.exports = fun; +} +\`) + +**The `uglifyjs` CLI command executed or `minify()` options used.** +use deafult options + +**JavaScript output or error produced.** +function xxx(o){o.exports=function(){console.log("a"===c.BlockStatement)}} + +PS: `var MODE = { + BlockStatement: 'BlockStatement', + };` was removed unexpected and result in runtime error + +while the UglifyJs output is ok with the options +`{ + compress: { + reduce_vars: false + } +} +` + + +`function xxx(t){function o(){console.log("a"===e.BlockStatement)}var e={BlockStatement:"BlockStatement"};t.exports=o}` \ No newline at end of file diff --git a/tasks/format-code-task-001932/task.toml b/tasks/format-code-task-001932/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..e637c705e3af8cdc58dcec4eea69a606d2f225fd --- /dev/null +++ b/tasks/format-code-task-001932/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001932" +description = "Used var declaration is removed with default reduce_vars=true" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001932" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Used var declaration is removed with default reduce_vars=true" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:f29c4deb8a49987ddc136722b662f842654d57c0fbcdc1b3fae5c3fcef62e63c" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk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HYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001935/instruction.md b/tasks/format-code-task-001935/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..51c29529d3ac3e0d5e6d62b4481c74253ecd86cc --- /dev/null +++ b/tasks/format-code-task-001935/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +I want `csvq` to load LTSV data as a query table source from the command line. When I run `csvq --repository /tmp/data "select name, age from ltsv(people)"`, it should find `people.ltsv`, parse rows like `name:Alice\tage:30`, use the LTSV labels as column names, and print a normal query result containing Alice's name and age with exit code 0. + +I also want `LTSV(table_identifier, encoding, without_null)` to work in SQL table objects. The optional encoding argument should be honored before parsing the file, and when `without_null` is true, missing labels in a row should produce empty strings instead of null values while rows with fewer labels are padded out to the full header. + +The import-format flag should accept LTSV for ordinary table references too: `csvq --import-format LTSV --repository /tmp/data "select name from people"` should search for and load `people.ltsv`. If I pass too many arguments to `ltsv(...)`, the command should fail before query execution with a non-zero exit code and an error explaining the table object argument length problem. If a requested LTSV file cannot be found, the command should fail non-zero with the normal missing-table/file error instead of silently treating it as CSV. \ No newline at end of file diff --git a/tasks/format-code-task-001935/task.toml b/tasks/format-code-task-001935/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..0fd4145a7c742acffb9795a8d0f39916eb82e9c2 --- /dev/null +++ b/tasks/format-code-task-001935/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001935" +description = "I want `csvq` to load LTSV data as a query table source from the command line." +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Unknown" +domain = "code" +keywords = ["code", "Unknown"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001935" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want `csvq` to load LTSV data as a query table source from the command line." + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:33f1553849c7c89323589656cde1bd4301e903280a5cb92481d4114b01e6ee40" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbh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/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001957/instruction.md b/tasks/format-code-task-001957/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..90c315660eae20cd7630a77bbf4f9844fed3216d --- /dev/null +++ b/tasks/format-code-task-001957/instruction.md @@ -0,0 +1,13 @@ +Fix the following issue: + +I want @react-facet/core to provide facet-aware React component helpers for mounting children from facet values. + +The public exports should include `Mount`, `Map`, `With`, `Unwrap`, and `Times`. `Mount` should be usable as `{child}` and render `child` only when the boolean facet value is `true`; when passed `condition={false}`, it should render only when the facet value is `false`. For example, with a facet initially set to `true`, `
Hello
` renders `Hello`, and with the same component driven by `false` it renders nothing. + +`Unwrap` should be usable as `{value => node}`. It should call the render prop with the current facet value once the facet has a concrete value, including `undefined` or `null`, and render nothing while the facet value is `NO_VALUE`. For example, a string facet set to `"Foo"` should render the result of `children("Foo")`, while a facet set to `NO_VALUE` should not call or display the child content. + +`With` should be usable as `{nonNullFacet => node}`. It should render only when the facet value is neither `null` nor `undefined`, and the render prop should receive a facet refined to the non-null value. For example, a facet holding `{ user: "Zelda" }` should let the child render `Zelda`, while a facet holding `null`, `undefined`, or `NO_VALUE` should render nothing; if the facet later changes to `null`, the child subtree should unmount. + +`Map` should be usable as `{(itemFacet, index, length) => node}`. It should render one child per array item, pass each child a per-index facet for that item, pass the numeric index and total length, and update the mounted item count when the array facet grows or shrinks. For example, a facet holding five objects should render five children with indexes `0` through `4`, and after the array changes to two objects only two children should remain. When an `equalityCheck` is supplied, unchanged item facets should avoid notifying their child subtree while changed item positions still update. + +`Times` should be usable as `{(index, count) => node}`. It should render the child function exactly `count` times after the count facet has a concrete number, passing indexes from `0` through `count - 1` and the total count each time; for a count facet set to `3`, rendering the indexes should produce `012`. \ No newline at end of file diff --git a/tasks/format-code-task-001957/task.toml b/tasks/format-code-task-001957/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..72aa243a10ed0af0caa38b27a7233051273e7760 --- /dev/null +++ b/tasks/format-code-task-001957/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001957" +description = "I want @react-facet/core to provide facet-aware React component helpers for mounting children from facet…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "TypeScript" +domain = "code" +keywords = ["code", "TypeScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001957" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want @react-facet/core to provide facet-aware React component helpers for mounting children from facet…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:41b4a048973bffa695c418eb1575d630d7571f3f71f7466c4aeb27cba79931d2" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiW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TG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001959/instruction.md b/tasks/format-code-task-001959/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..8c927f2aa24d34e5cf3914faae2108ed0f2c1b86 --- /dev/null +++ b/tasks/format-code-task-001959/instruction.md @@ -0,0 +1,5 @@ +Fix the following issue: + +I want Moment durations created with `moment.duration(input)` to serialize themselves as ISO 8601 duration strings through `duration.toISOString() -> string`. For `moment.duration(0).toISOString()` the result should be `P0D`, and for `moment.duration({ days: 1, hours: 2, minutes: 3, seconds: 4, milliseconds: 5 }).toISOString()` the result should be `P1DT2H3M4.005S`. Month buckets should serialize separately from day and time buckets: `moment.duration({ months: 14 }).toISOString()` should return `P1Y2M`. + +The method should preserve the sign rules for each internal bucket when a duration contains mixed positive and negative components, rather than flattening everything into one unit. Invalid durations should return the active locale's invalid-date text, for example `moment.duration.invalid().toISOString()` should return `Invalid date` in the default English locale. I also need `duration.toString()` and `duration.toJSON()` to return the same string as `duration.toISOString()`, so implicit string conversion and JSON serialization expose the ISO duration value. The compatibility spelling `duration.toIsoString()` should call the same serializer and emit the standard deprecation warning for that spelling. \ No newline at end of file diff --git a/tasks/format-code-task-001959/task.toml b/tasks/format-code-task-001959/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..3e5a50129e7ada5adbaae74231268759a6ec80d8 --- /dev/null +++ b/tasks/format-code-task-001959/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001959" +description = "I want Moment durations created with `moment.duration(input)` to serialize themselves as ISO 8601 duration…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001959" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want Moment durations created with `moment.duration(input)` to serialize themselves as ISO 8601 duration…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:a9ac510175048c8bcab4e443903263abe8d0afa24a1e806fe74ee06f5840fa63" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MH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64zpzHRHBErWIO6XxztR9K3ok2BzQvjuNFfVnET4WTkvQeX3WxRI1KO1TeycmZPtwjrF48jrsxZ6h1rc9YrBVS4Q6zFCxqBgYM8bZN8phfiMgvOHuNXU1b6w6fDjLmO6PcZakQuU8+WVtiJn+Ni6pGVDPD//n151Yvmui2gO7aJBhm+TapVEGyVXrbpBOUSumY8yPsE/n0U77ppici9pNmR7krj+v8Cb3lHVhcqSjYCuStMzn4PPfpu4nffqpoon3gtLQMISfAX6DFpCBmH8FVHhR3bb+fGMQuxmS7HQnqfIZZNq0Vih6qhCTUL5KCEwGK5yLT55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001961/instruction.md b/tasks/format-code-task-001961/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..b5b7173855367877565231c3dcc2b0b36ca442fb --- /dev/null +++ b/tasks/format-code-task-001961/instruction.md @@ -0,0 +1,21 @@ +Fix the following issue: + +## `bson_validate_with_error_and_offset` returns false but leaves `error` / `offset` uninitialized for some invalid inputs + +I'm using `bson_validate_with_error_and_offset` to vet untrusted BSON buffers before handing them to the rest of my pipeline. My code roughly looks like: + +```c +bson_t doc; +bson_init_static (&doc, buf, buf_len); + +bson_error_t err; +size_t off; +if (!bson_validate_with_error_and_offset (&doc, BSON_VALIDATE_NONE, &off, &err)) { + fprintf (stderr, "bson invalid at offset %zu: %s\n", off, err.message); + return -1; +} +``` + +For most malformed inputs this works as expected — the function returns `false` and `err.message` / `off` describe what went wrong. But on certain inputs (some hand-crafted buffers that are bad right at the very start) the function still returns `false`, but the `bson_error_t` I pass in comes back looking empty/garbage and the offset I print is clearly uninitialized memory. So my log line is useless for those cases — I can tell something is wrong, but not what or where. + +I'd expect that whenever `bson_validate_with_error_and_offset` reports failure, both the `error` and `offset` out-parameters are filled in with a meaningful description, regardless of where in the buffer the problem is. \ No newline at end of file diff --git a/tasks/format-code-task-001961/task.toml b/tasks/format-code-task-001961/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..829100468b0780243196ce3f1b67d520c020f0ee --- /dev/null +++ b/tasks/format-code-task-001961/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001961" +description = "`bson_validate_with_error_and_offset` returns false but leaves `error` / `offset` uninitialized for some…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "C" +domain = "code" +keywords = ["code", "C"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001961" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "`bson_validate_with_error_and_offset` returns false but leaves `error` / `offset` uninitialized for some…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:88d26ce6334027461d7a704817d3694efc2fc9764ff7b9fbe1aa8c29580a2162" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7G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vE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001966/instruction.md b/tasks/format-code-task-001966/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..ba8e3f234cf313649a4c2416b636258f6fc4e72d --- /dev/null +++ b/tasks/format-code-task-001966/instruction.md @@ -0,0 +1,7 @@ +Fix the following issue: + +I want MongoEngine querysets to support string-matching keyword operators on string-like fields when filtering documents. Users should be able to call `Document.objects(field__contains=value)`, chain `QuerySet.filter(field__startswith=value)`, or compose `Q(field__icontains=value)` expressions, then execute the queryset with methods like `first()` or `count()` and get the documents whose field text matches the requested string condition. + +For a document with `name = StringField()`, after saving `Person(name="Guido van Rossum")`, `Person.objects(name__contains="van").first()` should return that document while `Person.objects(name__contains="Van").first()` should return `None`; `name__icontains="Van"` should match it. `name__startswith="Guido"` and `name__endswith="Rossum"` should match case-sensitively, while `name__istartswith="guido"` and `name__iendswith="rossum"` should match case-insensitively. `name__exact="Guido van Rossum"` should match the full value, `name__iexact="gUIDO VAN rOSSUM"` should also match, and partial exact values should not match. + +The same filter API should support `wholeword` and `iwholeword`, so `name__wholeword="Guido"` matches but `name__wholeword="Rossu"` does not, and `name__iwholeword="rOSSUM"` matches. It should also support `regex` and `iregex` where the supplied pattern is used as the regular expression, with the `i` form applying case-insensitive matching. Literal string operators such as `contains` must escape user text before building the regular expression, so a search like `name__icontains="[.'Geek"` matches a stored value containing those characters instead of raising a regex parse error. Dict fields containing string values should accept these same string operators, for example `Document.objects(info__title__exact="test")` should match a dictionary entry whose `title` value is exactly `"test"`. \ No newline at end of file diff --git a/tasks/format-code-task-001966/task.toml b/tasks/format-code-task-001966/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..4601377405a39f28ef112edfef4425878baf53f9 --- /dev/null +++ b/tasks/format-code-task-001966/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001966" +description = "I want MongoEngine querysets to support string-matching keyword operators on string-like fields when…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001966" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I want MongoEngine querysets to support string-matching keyword operators on string-like fields when…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:c8925b2877539bc760f059c2961fa48284b457063444e464fcd37f84955bd1ba" +workdir = "/workspace/repo" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz8/+Mqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS9oLQ31nGfijFkG/UysGl53/Wbi2nHULOhbQpS4n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T55RHL32zVfzCk1Ijm7RfHjt6lELbmq0bAncHmLCtADJwqDDeaBqkHhxrjQu4rK1kwXPcCM1xmK7gaAGVBnqHTa9tGgS9OnM0vxRThZTjtIuR6HmashAwb9Y+TKu+R9hgyf5raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001992/instruction.md b/tasks/format-code-task-001992/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..53d6944a97f89762cac7da9c37fe712f7d41cf45 --- /dev/null +++ b/tasks/format-code-task-001992/instruction.md @@ -0,0 +1,27 @@ +Fix the following issue: + +# Problem Statement + +I’m hitting a couple of odd cases while rendering some DXFs: `Bezier4P.approximate(0)` blows up with a `ZeroDivisionError`, and text entities whose content is only spaces or tabs still get measured/rendered by the matplotlib/pyqt drawing backends. I also noticed that when an `INSERT` expands to virtual entities that get skipped, nothing shows up in the frontend skipped-entity log, so it’s hard to tell what disappeared. + +# Expected outcomes + +- Bezier approximation: + - `Bezier4P.approximate(segments)` should reject non-positive segment counts with a clear caller-facing exception instead of failing later with a division-by-zero error or returning an odd partial approximation. + - Valid positive segment counts should continue to produce the same approximation vertices as before. + +- Drawing backend whitespace handling: + - The matplotlib and pyqt drawing backends should treat text made only of whitespace characters as having no drawable content. + - Such whitespace-only text should not be rendered by backend text drawing. + - The backend text-width measurement for whitespace-only input should report zero width. + - Non-empty text that includes leading, internal, or trailing whitespace should continue to be handled as drawable/measurable text according to the existing rendering behavior. + +- Skipped virtual entities from inserts: + - When the drawing frontend expands an `INSERT` and a virtual entity is skipped during that expansion, the skipped entity should be reported through the frontend’s existing skipped-entity logging path. + - Existing drawing of insert attributes and drawable virtual entities should continue to work. + +# Implementation notes + +- The exact validation location, control flow, and helper structure are up to the implementer. +- The fix should preserve the existing public rendering and geometry APIs while making the above edge cases observable through their normal external behavior. +- Do not rely on a particular backend internals layout; the intended behavior is defined by drawing, measuring, approximation, and frontend skip-log results. \ No newline at end of file diff --git a/tasks/format-code-task-001992/task.toml b/tasks/format-code-task-001992/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..a33c6f49f3394c83ebc3eebaca0af67d6599e7ec --- /dev/null +++ b/tasks/format-code-task-001992/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001992" +description = "I’m hitting a couple of odd cases while rendering some DXFs: `Bezier4P.approximate(0)` blows up with a…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001992" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "I’m hitting a couple of odd cases while rendering some DXFs: `Bezier4P.approximate(0)` blows up with a…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:bf0e1156b727d520b3a3fc4a36d1710399482c3a78276f9edd55672db84d2dac" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS9oLQ31nGfijFkG/Uys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wmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-001995/instruction.md b/tasks/format-code-task-001995/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..7f36eb20c6a800df1b4d0a8757cc269accc8e27d --- /dev/null +++ b/tasks/format-code-task-001995/instruction.md @@ -0,0 +1,48 @@ +Fix the following issue: + +# Make the JUnit report reflect every Cucumber result status (and stop leaking state) + +Our plugin turns Cucumber's JSON output into a JUnit XML report so CI servers can +consume the results. The JUnit generator takes the parsed Cucumber output (an array of +features, each with `elements` representing scenarios, each scenario with an ordered +list of `steps`) together with an options object that at least carries the `output` +file path to write, and writes a `` document: one `` per feature +and one `` per scenario. + +Right now the generator only understands two situations: a scenario containing a failed +step is recorded as a failure, and a scenario containing an undefined step is recorded +as skipped. Everything else — including scenarios that Cucumber reports as *pending* or +*ambiguous* — is silently emitted as a clean, passing test case, which misrepresents the +run on CI. On top of that, generating more than one report inside the same process +produces a corrupted document: each new report contains all the suites from the reports +generated before it. + +Please make the report faithfully represent each scenario's outcome and make report +generation self-contained. + +## Expected behavior + +For each scenario, classify it from its steps and reflect that in its ``: + +- **Failure** — if any step failed, the test case is a failure (a `` child). + The failure message must mention the failing step's name and the error message Cucumber + reported for it. If several steps failed, every one of them must be mentioned. +- **Error** — otherwise, if any step is *ambiguous*, the test case is an error (an + `` child) whose message mentions the ambiguous step's name. +- **Skipped** — otherwise, if any step is *undefined* or *pending*, the test case is + skipped (a `` child). +- **Passed** — otherwise the test case has none of the above children. + +These categories are strictly ordered: a failure outranks an error, which outranks a +skip, which outranks a pass. A scenario must never be tagged with more than one of these +outcomes, and the one chosen is the most severe present among its steps. + +The structure and naming that already exist must be preserved: one suite per feature and +one case per scenario, with the suite name, the case `classname`, and the case name built +from the configurable `suiteNamePrefix`, `classNamePrefix`, and `scenarioNamePrefix` +options (defaulting to `"Feature: "`, `"Feature: "`, and `"Scenario: "` respectively). A +feature with no scenarios still yields its (empty) suite. + +Finally, every invocation of the generator must produce a document describing only the +features passed to that call. Generating one report must not be polluted by, nor pollute, +any other report produced earlier or later in the same process. diff --git a/tasks/format-code-task-001995/task.toml b/tasks/format-code-task-001995/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..a67cfdb639a912a08b4b6bc91cd64c34afab0f71 --- /dev/null +++ b/tasks/format-code-task-001995/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-001995" +description = "Make the JUnit report reflect every Cucumber result status (and stop leaking state)" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-001995" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Make the JUnit report reflect every Cucumber result status (and stop leaking state)" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:5812e2fbfec8a17ef0661851632bd315a533b01af74d041daa54c60d338930b2" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9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Pilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-002001/instruction.md b/tasks/format-code-task-002001/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..a5c6705047df8824fc9cb8e85462d1792eadfeca --- /dev/null +++ b/tasks/format-code-task-002001/instruction.md @@ -0,0 +1,18 @@ +Fix the following issue: + +## `unset` doesn't remove shell functions + +I have a script that defines some helper functions and later calls `unset` to clean them up: + +```sh +helper() { echo "doing helper stuff"; } +helper +unset helper +helper # I want this to fail — function should be gone +``` + +Under bash, the final `helper` call fails (function no longer exists), but when I run the same script through mvdan/sh, the function is still defined and runs normally. + +The same thing happens if I try `unset -f helper`, which is bash's explicit way of removing a function definition — it has no effect, and on top of that `-f` / `-v` don't seem to be recognized as flags at all (they get treated as names to unset). + +Would be great if `unset` matched bash here so I can actually drop function definitions from a running script. \ No newline at end of file diff --git a/tasks/format-code-task-002008/instruction.md b/tasks/format-code-task-002008/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..79542f045b32ed8d00bc13affcdf1de7a83eca46 --- /dev/null +++ b/tasks/format-code-task-002008/instruction.md @@ -0,0 +1,9 @@ +Fix the following issue: + +The HTTP Cloud Functions wrapper is currently limited to GET requests whose query string is assembled literally, and its response decoder assumes a perfectly formatted JSON content type. This makes ordinary values containing spaces or reserved characters unsafe, prevents functions that expect a JSON request body, and turns a successful response without a Content-Type header into a runtime error. Extend the public `rsf.functions.call` API while keeping existing callers source-compatible. + +`functions.call(functionName, parameters = {}, options = {})` must continue to issue the legacy GET request when options are omitted: parameters are encoded as URL query key/value components in their object insertion order, and the saga yields the same fetch effect shape (URL only). The URL must retain the configured region and project id. + +When `options.method` is `POST`, send the request to the function URL without a query string, JSON-stringify the parameters as the request body, and pass an init object containing `method: 'POST'` and the caller's headers. Header names are case-insensitive for determining whether a Content-Type was supplied; add `Content-Type: application/json` only when it is absent, while preserving all caller-provided header names and values. + +For every successful response, inspect its Content-Type case-insensitively. Treat `application/json` with parameters and any media type whose subtype ends in `+json` as JSON and decode with `response.json()`; decode every other media type, including a missing or null header, with `response.text()`. A response whose `ok` flag is false must be thrown unchanged before any content-type lookup or decoder is attempted. The saga must return the decoded value. Existing GET behavior, region selection, and non-OK error propagation must remain compatible. \ No newline at end of file diff --git a/tasks/format-code-task-002008/task.toml b/tasks/format-code-task-002008/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..bb5f070332ca9067fe8c1d8faa424a578f18601e --- /dev/null +++ b/tasks/format-code-task-002008/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-002008" +description = "The HTTP Cloud Functions wrapper is currently limited to GET requests whose query string is assembled…" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-002008" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "The HTTP Cloud Functions wrapper is currently limited to GET requests whose query string is assembled…" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:af7b60e433ca58d738f6d453489aba5ee40389a93dbe25dcb3bc0b961308e34f" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/Y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sR1iTC5Dzzx+D32l+TI6+V1Klmb8XA8OJ1s6PFqdWrapuGWcz0BpYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-002030/instruction.md b/tasks/format-code-task-002030/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..47b8839fcc92b38f7d7d4e22400d27f4ed94c34f --- /dev/null +++ b/tasks/format-code-task-002030/instruction.md @@ -0,0 +1,36 @@ +Fix the following issue: + +## Custom fields on `Query` type lose the auto-generated query arguments + +I'm using `makeAugmentedSchema` and would like to mix the auto-generated CRUD API with a few of my own query fields (custom resolvers, alternate entry points, etc.). The problem is that when I declare my own `Query` type in the SDL, my custom fields don't receive the standard query arguments (`first`, `offset`, `filter`, `orderBy`) even when they return a node type that otherwise gets them on the auto-generated query field. + +Minimal example: + +```js +const typeDefs = ` + type Movie { + movieId: ID! + title: String + year: Int + } + + type Query { + moviesByYear(year: Int!): [Movie] + } +`; + +const schema = makeAugmentedSchema({ typeDefs }); +``` + +After augmentation: + +- The auto-generated `Query.Movie(...)` field has all the expected args: `first`, `offset`, `filter: _MovieFilter`, `orderBy: [_MovieOrdering]`, etc. +- My `Query.moviesByYear(year: Int!): [Movie]` field only has `year` — none of the standard pagination / filtering / ordering args were added, even though it returns `[Movie]`. + +I'd expect any user-defined query field whose return type is an augmented node type to get the same standard argument set as the generated query field for that node type. Otherwise there's no way to add a custom query entry point that participates in the normal filtering / paging API — I have to choose between "let the lib generate everything" and "give up filter/orderBy entirely on my custom field". + +Same situation seems to apply if the field is defined via a schema extension on `Query`. + +Could the augmentation be extended so that fields on a user-declared `Query` type are processed the same way as auto-generated ones (i.e. node-typed return values get the standard query arguments + the related filter/ordering input types referenced)? + +While I'm at it — passing a partial config also bites: e.g. `config: { query: true, mutation: true }` (no `temporal` / `spatial` keys) behaves differently from omitting `config` entirely. It would be nice if missing config keys fell back to a sensible default rather than being treated as "disabled". \ No newline at end of file diff --git a/tasks/format-code-task-002030/task.toml b/tasks/format-code-task-002030/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..aa5ef9f21f389af5ec9769e6008be56f6e25ff4d --- /dev/null +++ b/tasks/format-code-task-002030/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-002030" +description = "Custom fields on `Query` type lose the auto-generated query arguments" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "JavaScript" +domain = "code" +keywords = ["code", "JavaScript"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-002030" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Custom fields on `Query` type lose the auto-generated query arguments" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:695a5573df7ff737939031f9f06f865cb5480a03ad3d725cf64aee0b12e0ee8b" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq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= 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-002037/instruction.md b/tasks/format-code-task-002037/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..93e3d86882373e1ea290623cfb723f0775c2a0ea --- /dev/null +++ b/tasks/format-code-task-002037/instruction.md @@ -0,0 +1,11 @@ +Fix the following issue: + +### Feature: filter contact assignments by the contact's group + +I organize my contacts into contact groups by team (e.g. *Network Ops*, *Security*, *Datacenter Smart Hands*). When I want to see what a team is on the hook for, the natural query is "give me all contact assignments where the assigned contact belongs to group X". + +On the Contact endpoint this works fine — I can pull contacts in a group with something like `/api/tenancy/contacts/?group_id=5` (or by slug). But the equivalent doesn't exist on the ContactAssignment endpoint. Hitting `/api/tenancy/contact-assignments/?group_id=5` just returns everything, the parameter is silently ignored. + +Today the workaround is two round trips: first list every contact in the group, then list assignments filtered by each `contact_id`. That gets unwieldy quickly for larger groups and it's annoying to do from the UI filter panel too, where there's just no "Contact group" option to pick from on the contact assignments list. + +It would be great if the contact-assignments filter set understood "contact group" as a first-class filter, the same way the contacts list already does. Then I could go straight from "which team" to "what they're assigned to" in one query, both via the REST API and via the list view filters. \ No newline at end of file diff --git a/tasks/format-code-task-002037/task.toml b/tasks/format-code-task-002037/task.toml new file mode 100644 index 0000000000000000000000000000000000000000..59d4f4ce19c0f7e007852321e7efda984d1db5e9 --- /dev/null +++ b/tasks/format-code-task-002037/task.toml @@ -0,0 +1,40 @@ +schema_version = "1.4" + +[task] +name = "mimo-v2.6-rl/format-code-task-002037" +description = "Feature: filter contact assignments by the contact's group" +keywords = ["mimo-v2.6-rl", "code"] + +[metadata] +adapter = "mimo_harbor 1.1.0" +category = "Python" +domain = "code" +keywords = ["code", "Python"] +reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1" +reference_step_limit = 500 +source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss" +source_id = "format-code-task-002037" +source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f" +title = "Feature: filter contact assignments by the contact's group" + +[agent] +timeout_sec = 3600.0 + +[verifier] +timeout_sec = 2100.0 +user = "root" + +[environment] +docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:9c344261b9b87ae0ee548d56f772b17f0ee9d8673020f17a5eb80d2c7c3c0863" +workdir = "/testbed" +cpus = 2 +memory_mb = 8192 +network_mode = "public" +build_timeout_sec = 1800.0 + +[environment.healthcheck] +# one-time setup before the agent (environment/setup/setup.sh) +command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9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Pilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'" +timeout_sec = 1200.0 +retries = 0 +interval_sec = 5.0 diff --git a/tasks/format-code-task-002129/instruction.md b/tasks/format-code-task-002129/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..a2d1d230e38d5228ce3860df6e97deffbdbd3b06 --- /dev/null +++ b/tasks/format-code-task-002129/instruction.md @@ -0,0 +1,30 @@ +Fix the following issue: + +## `no-redundant-role` flags `