base_commit string | created_at string | image_name string | instance_id string | interface string | language string | license string | patch string | pr_description string | problem_statement string | repo string | test_patch string | FAIL_TO_PASS list | PASS_TO_PASS list | install_config dict | meta dict | tags list | workdir string | env list | test_files list | test_env list | quality_flags list |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a091fab020ac26548250c907bae0855273a98778 | 2020-10-12 13:21:50 | docker.io/swerebenchv2/0b01001001-spectree:64-a091fab@sha256:be06b21afc57a57442c3904e23f48efa077b347389068ae188dce0d8abe41cf3 | 0b01001001__spectree-64 | python | Apache-2.0 | diff --git a/setup.py b/setup.py
index 1b3cb64..4ef21e6 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
setup(
name='spectree',
- version='0.3.7',
+ version='0.3.8',
author='Keming Yang',
author_email='kemingy94@gmail.... | [BUG]description for query paramters can not show in swagger ui
Hi, when I add a description for a schema used in query, it can not show in swagger ui but can show in Redoc
```py
@HELLO.route('/', methods=['GET'])
@api.validate(query=HelloForm)
def hello():
"""
hello 注释
:return:
"""
return 'ok'
clas... | 0b01001001/spectree | diff --git a/tests/common.py b/tests/common.py
index 0f2d696..83b4140 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -1,7 +1,7 @@
from enum import IntEnum, Enum
from typing import List
-from pydantic import BaseModel, root_validator
+from pydantic import BaseModel, root_validator, Field
class Order(IntE... | [
"tests/test_utils.py::test_query_field_description_in_generated_spec"
] | [
"tests/test_utils.py::test_comments",
"tests/test_utils.py::test_has_model",
"tests/test_utils.py::test_parse_code",
"tests/test_utils.py::test_parse_name",
"tests/test_utils.py::test_parse_params",
"tests/test_utils.py::test_parse_request",
"tests/test_utils.py::test_parse_resp"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e .[flask,falcon,starlette]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /spectree && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA ... | {
"llm_metadata": null,
"num_modified_files": 2,
"num_modified_lines": 5,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/0b01001001/spectree/pull/64"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /spectree | [] | [
"tests/common.py",
"tests/test_utils.py"
] | [] | [] | ||
195207eb90fcb131728a51b0591c3b428571eded | 2022-10-26 10:11:48 | docker.io/swerebenchv2/0xpolygonhermez-zkevm-node:1336-195207e@sha256:1ed601d8407c023e53f4d9996d87151cabe930db35f2e3b12f3b960972b13c6f | 0xpolygonhermez__zkevm-node-1336 | No new interfaces are introduced. | go | custom-check-github | diff --git a/config/default.go b/config/default.go
index bb3d0090..bc8947d1 100644
--- a/config/default.go
+++ b/config/default.go
@@ -47,6 +47,8 @@ PercentageToIncreaseGasLimit = 10
[RPC]
Host = "0.0.0.0"
Port = 8123
+ReadTimeoutInSec = 60
+WriteTimeoutInSec = 60
MaxRequestsPerIPAndSecond = 50
SequencerNodeURI = ... | improve: making the timeout of the RPC server to be configurable and fixing deprecated func for creating temp file.
Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Closes #614 .
### What does this PR do?
Making the `ReadTimeout` and `WriteTimeout` of the `RPC HTTP Server` to be configurable by expecti... | Timeout for the RPC server should be configurable
Right now it's constant at one second
### Additional contract requirements
The RPC server's HTTP read and write timeouts must be configurable through the
node configuration file. The configuration exposes two settings in the `[RPC]`
section named `ReadTimeoutInSec` an... | 0xPolygonHermez/zkevm-node | diff --git a/config/config_test.go b/config/config_test.go
index 181058d..694aed1 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -1,9 +1,12 @@
package config_test
import (
+ "errors"
"flag"
- "io/ioutil"
+ "fmt"
+ "io"
"math/big"
+ "net"
"os"
"reflect"
"strings"
@@ -12,6 +15,7 @@ import... | [
"Test_Defaults",
"Test_Defaults/RPC_default_ReadTimeoutInSec",
"Test_Defaults/RPC_default_WriteTimeoutInSec",
"Test_RPCServerTimeoutIsConfigurable",
"Test_RPCServerWriteTimeoutIsConfigurable"
] | [
"TestForcedBatchEvent",
"TestGEREvent",
"TestLoadCustomNetworkConfig",
"TestLoadCustomNetworkConfig/empty_JSON_gives_error",
"TestLoadCustomNetworkConfig/happy_path",
"TestLoadCustomNetworkConfig/imported_from_network-config.example.json",
"TestLoadCustomNetworkConfig/not_valid_JSON_gives_error",
"Tes... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /zkevm-node | [] | [
"config/config_test.go",
"test/config/test.node.config.toml"
] | [] | [] |
47ffeb6a611eb425482741aaca27aa444a9cd0ea | 2023-02-01 12:42:32 | docker.io/swerebenchv2/0xs34n-starknet.js:508-47ffeb6@sha256:39405a897064fc5f8642afcbff8953dcc749532d90ff4c23f0b14dcd36426151 | 0xs34n__starknet.js-508 | Function: encodeShortString(str: string)
Location: src/utils/shortString.ts
Inputs: An ASCII‑only string of maximum 31 characters. Throws an error if the string contains non‑ASCII characters (`"<value> is not an ASCII string"`) or exceeds 31 characters (`"<value> is too long"`).
Outputs: A hex‑encoded string prefixed w... | ts | MIT | diff --git a/src/utils/shortString.ts b/src/utils/shortString.ts
index c597a6f2..2a682ec7 100644
--- a/src/utils/shortString.ts
+++ b/src/utils/shortString.ts
@@ -1,4 +1,5 @@
import { addHexPrefix, removeHexPrefix } from './encode';
+import { isHex } from './number';
export function isASCII(str: string) {
// esl... | decodeShortString was not handling properly Integer Strings
Fix #501
## Motivation and Resolution
The function decodeShortString returns a wrong answer if the input is a string representing an integer.
See issue #501 for example of bug.
Now, the answer is correct
## Usage related changes
No change for... | decodeShortString : wrong answer of the function
**Describe the bug**
Hello,
I noted a problem with the function `utils/shortstrings.ts/decodeShortString`.
If I use it with an hex string ('0x321....456'), everything is fine.
But if the str:string is an integer string ('1542233...56'), the function accept it, process w... | 0xs34n/starknet.js | diff --git a/__tests__/utils/shortString.test.ts b/__tests__/utils/shortString.test.ts
index e6262e0..1759886 100644
--- a/__tests__/utils/shortString.test.ts
+++ b/__tests__/utils/shortString.test.ts
@@ -4,19 +4,29 @@ describe('shortString', () => {
test('should convert string to number', () => {
expect(encode... | [
"should convert decimal number string to string"
] | [
"Block identifier and queryIdentifier",
"Should test getStarknetIdContract",
"Should test useDecoded and useEncoded hook with an encoded number",
"Should test useEncoded and useDecoded hook with a random string",
"calculated checksum address should validate",
"calculated contract address should match the ... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci --ignore-scripts",
"npm run build"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npm test -- --verbose --no-color"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /starknet.js | [] | [
"__tests__/utils/shortString.test.ts"
] | [] | [] |
bf95c99e9738b4b79a8225c462815a4fe984228d | 2023-02-08 00:33:50 | docker.io/swerebenchv2/100phlecs-tailwind-formatter:19-bf95c99@sha256:0ecc4a63a3d64601f54208899863509a66b7670910528c513d7fcba796bdc79a | 100phlecs__tailwind_formatter-19 | No new interfaces are introduced. | elixir | MIT | diff --git a/lib/tailwind_formatter/defaults.ex b/lib/tailwind_formatter/defaults.ex
index 9cb68b4..6cb88fd 100644
--- a/lib/tailwind_formatter/defaults.ex
+++ b/lib/tailwind_formatter/defaults.ex
@@ -1,7 +1,7 @@
defmodule TailwindFormatter.Defaults do
@moduledoc false
- @class_pattern ~r/(?:class\s*(?:=|:)\s*)(({... | handle nested interpolated strings
Related to #18 | Formatter inserts incorrect `}`
The first time I tried the formatter in one of our projects it worked. The second time I got an FunctionClauseError `no function clause matching in Phoenix.LiveView.HTMLFormatter.to_tree/4`.
It turns out that the first run of the tailwind formatter formats the following
```elixir
<... | 100phlecs/tailwind_formatter | diff --git a/test/tailwind_formatter_test.exs b/test/tailwind_formatter_test.exs
index 47c4519..cc243c2 100644
--- a/test/tailwind_formatter_test.exs
+++ b/test/tailwind_formatter_test.exs
@@ -12,12 +12,6 @@ defmodule TailwindFormatterTest do
assert second_pass == expected
end
- defp assert_formatter_raise(i... | [
"can handle multiple interpolated strings"
] | [
"aborts on bad input custom variant does not flip",
"aborts on bad input incomplete inline elixir",
"aborts on bad input invalid elixir fn",
"aborts on bad input missing final quote",
"aborts on bad input missing number tag inline elixir",
"allows comparisons inline elixir",
"allows string concatenation... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /tailwind_formatter | [] | [
"test/tailwind_formatter_test.exs"
] | [] | [] |
285b58e1ea0bd29536ddffd4bc0f4a1e2b4c119e | 2023-03-04 09:44:27 | docker.io/swerebenchv2/100phlecs-tailwind-formatter:22-285b58e@sha256:360975dcc9bf51c069106630f1c37dfab4e70d28924300f55ace26fbadfac8c7 | 100phlecs__tailwind_formatter-22 | No new interfaces are introduced. | elixir | MIT | diff --git a/lib/tailwind_formatter.ex b/lib/tailwind_formatter.ex
index 8591d23..2fedb89 100644
--- a/lib/tailwind_formatter.ex
+++ b/lib/tailwind_formatter.ex
@@ -93,7 +93,7 @@ defmodule TailwindFormatter do
dynamic_classes
|> Enum.reduce(contents, fn
{dynamic_class, index}, contents ->
- ... | Fixed error with more than nine string interpolations
When adding placeholders, we need to allow them to be multiple digits long! Closes #21 | Bug when formatting multiple assigns
This seems like a super wierd but severe bug. It seems like when having more than nine assigns in a string interpolation, all following string interpolations will be malformatted!
## Steps to reproduce
Format the following `.heex` code:
```heex
<div text={"foo: #{@foo}"} />
<div ... | 100phlecs/tailwind_formatter | diff --git a/test/tailwind_formatter_test.exs b/test/tailwind_formatter_test.exs
index f8edc63..f1656f3 100644
--- a/test/tailwind_formatter_test.exs
+++ b/test/tailwind_formatter_test.exs
@@ -316,13 +316,13 @@ defmodule TailwindFormatterTest do
test "missing final quote" do
input = ~S"""
<a class={"... | [
"aborts on bad input works with more than nine string interpolations"
] | [
"aborts on bad input custom variant does not flip",
"aborts on bad input incomplete inline elixir",
"aborts on bad input invalid elixir fn",
"aborts on bad input missing final quote",
"aborts on bad input missing number tag inline elixir",
"allows comparisons inline elixir",
"allows string concatenation... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /tailwind_formatter | [] | [
"test/tailwind_formatter_test.exs"
] | [] | [] |
3a1f6aa5073bca88b5be5b386640b986cfaeb385 | 2025-01-02 19:34:45 | docker.io/swerebenchv2/100phlecs-tailwind-formatter:64-3a1f6aa@sha256:9b2949215190d115b60304836155910410ab993af2520ba7307a589ec0b938eb | 100phlecs__tailwind_formatter-64 | No new interfaces are introduced. | elixir | MIT | diff --git a/lib/tailwind_formatter.ex b/lib/tailwind_formatter.ex
index e3d37a9..9ac3829 100644
--- a/lib/tailwind_formatter.ex
+++ b/lib/tailwind_formatter.ex
@@ -94,7 +94,7 @@ defmodule TailwindFormatter do
defp sort_variant_chains(classes) do
classes
- |> String.split()
+ |> String.split(~r/\s+(?![^... | handle arbitrary properties
Closes #63 | Formatter breaks special class attribute: `[scrollbar-gutter: stable]`
The space before the `stable` keyword is mandatory
```
[...]layouts/root.html.heex
1 1 |<!DOCTYPE html>
2 -|<html lang="en" class="[scrollbar-gutter: stable]">
2 +|<html lang="en" class="stable] :[scrollbar-gutter">
3 3 | <he... | 100phlecs/tailwind_formatter | diff --git a/test/tailwind_formatter_test.exs b/test/tailwind_formatter_test.exs
index b462736..84c625c 100644
--- a/test/tailwind_formatter_test.exs
+++ b/test/tailwind_formatter_test.exs
@@ -523,4 +523,15 @@ defmodule TailwindFormatterTest do
assert_formatter_output(input, expected)
end
+
+ # https://tailw... | [
"preserves the required space in arbitrary properties"
] | [
"allows comparisons inline elixir",
"allows string concatenation",
"can handle multiple interpolated strings",
"classes with backslash are sorted",
"classes with hash are sorted",
"custom variant does not flip",
"decimal classes are sorted",
"does not stringify variables",
"dynamic classes",
"dyna... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://tailwindcss.com/docs/adding-custom-styles#arbitr... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /tailwind_formatter | [] | [
"test/tailwind_formatter_test.exs"
] | [] | [] |
b047fc711b24b91223f531a4c375403696838afe | 2021-07-04 18:06:16 | docker.io/swerebenchv2/11ty-eleventy:1876-b047fc7@sha256:ba01fa62134a0ac5e482060cc374ae561a6f8673541e0e891145ee9e6ce7db7e | 11ty__eleventy-1876 | No new interfaces are introduced. | js | MIT | diff --git a/src/TemplateData.js b/src/TemplateData.js
index bf90503d..92eeaa14 100755
--- a/src/TemplateData.js
+++ b/src/TemplateData.js
@@ -586,6 +586,9 @@ class TemplateData {
} else if (data.tags === null) {
data.tags = [];
}
+
+ // Deduplicate tags
+ data.tags = [...new Set(data.t... | Deduplicate tags when using deepDataMerge
Resolves #1810.
As described in #1810, tags can be duplicated through a data deep merge if they appear in more than one place.
I can't think of a reason why anyone needs a tag to appear more than once within the data cascade, so this uses `new Set` to deduplicate the outp... | Deduplicate tags after merging
**Is your feature request related to a problem? Please describe.**
When I'm generating a collection on my site, I sometimes use data merging to provide tags common to the series and then tag individual posts further. If I happen to forget that I already have a tag for a given collection, ... | 11ty/eleventy | diff --git a/test/TemplateTest.js b/test/TemplateTest.js
index 8c59088..dd92d6f 100644
--- a/test/TemplateTest.js
+++ b/test/TemplateTest.js
@@ -1489,6 +1489,26 @@ test("Data Cascade Tag Merge (Deep merge)", async (t) => {
t.deepEqual(data.tags.sort(), ["tagA", "tagB", "tagC", "tagD"]);
});
+test("Data Cascade Ta... | [
"TemplateTest › Data Cascade Tag Merge (Deep Merge - Deduplication)",
"TemplateTest › Data Cascade Tag Merge (Deep merge)"
] | [
"BenchmarkTest › Nested Benchmark (nested calls are ignored while a parent is measuring)",
"BenchmarkTest › Reset Benchmark",
"BenchmarkTest › Standard Benchmark",
"CapitalizeTest › capitalize",
"ComputedDataProxyTest › Get vars used by function",
"ComputedDataProxyTest › Get vars used by function (multip... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"js"
] | /eleventy | [] | [
"test/TemplateTest.js",
"test/stubs/data-cascade/template.11tydata.js"
] | [] | [] |
f3831c317b0d829e398e722c83715e03d6911ec0 | 2021-11-20 13:34:33 | docker.io/swerebenchv2/11ty-eleventy:2111-f3831c3@sha256:cdae3787136992ca0336d8b218118016378c58b675fa88fa59f259aa4eb5a424 | 11ty__eleventy-2111 | No new interfaces are introduced. | js | MIT | diff --git a/src/TemplateFileSlug.js b/src/TemplateFileSlug.js
index ed95edeb..a98f3db1 100644
--- a/src/TemplateFileSlug.js
+++ b/src/TemplateFileSlug.js
@@ -23,7 +23,12 @@ class TemplateFileSlug {
}
_getRawSlug() {
- let slug = this.filenameNoExt;
+ const slug = this.filenameNoExt;
+ return this._str... | Strip date from directory slugs
Closes #1947
`2021-11-20-my-awesome-post/index.md` gets a slug of `my-awesome-post` rather than `2021-11-20-my-awesome-post`. | page.fileSlug and directory index files: date doesn't get stripped out
**Describe the bug**
Currently, my post Markdown files follow the `YYYY-MM-DD-file-slug.md` convention and are located immediately under a `_posts` directory. [I aggregate all of these files into a custom `posts` collection](https://github.com/Alek... | 11ty/eleventy | diff --git a/test/TemplateFileSlugTest.js b/test/TemplateFileSlugTest.js
index 972cab5..ae66bb3 100644
--- a/test/TemplateFileSlugTest.js
+++ b/test/TemplateFileSlugTest.js
@@ -1,7 +1,11 @@
const test = require("ava");
+const fs = require("fs");
+const os = require("os");
+const path = require("path");
const Template... | [
"TemplateFileSlugTest › page.fileSlug strips date from an index file's directory"
] | [
"BenchmarkTest › Nested Benchmark (nested calls are ignored while a parent is measuring)",
"BenchmarkTest › Reset Benchmark",
"BenchmarkTest › Standard Benchmark",
"ComputedDataProxyTest › Get vars used by function",
"ComputedDataProxyTest › Get vars used by function (multiple functions—not computed keys)",... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.11ty.dev/docs/data-eleventy-supplied/#file... | [
"swe-rebench",
"swe-rebench-v2.1",
"js"
] | /eleventy | [] | [
"test/TemplateFileSlugTest.js"
] | [] | [] |
c513c8939314572c1c431d361415cbb91597cffa | 2022-05-03 17:36:17 | docker.io/swerebenchv2/11ty-eleventy:2358-c513c89@sha256:05abb21e7008efce5fa79543e11f8fe5061fc477faf05fbd2a22652596b3438b | 11ty__eleventy-2358 | Method: CustomEngine._resolveCompileResult(compiledFn)
Location: src/Engines/Custom.js – internal handling of the user‑provided `compile` function for a custom template extension.
Inputs: `compiledFn` – either a function, a Promise that resolves to a function, or any other value (e.g., `undefined`).
Outputs: Retu... | js | MIT | diff --git a/src/Engines/Custom.js b/src/Engines/Custom.js
index 09510643..a51d54f7 100644
--- a/src/Engines/Custom.js
+++ b/src/Engines/Custom.js
@@ -170,7 +170,12 @@ class CustomEngine extends TemplateEngine {
// Bind defaultRenderer to render function
if ("then" in fn && typeof fn.then === "function") ... | Fix #2350
Currently, it fails when a custom template extension has an async compile function and it returns undefined to ignore, because there is no type check before binding defaultRenderer. (#2350)
The fix is simply to add a type check. | Custom template fails to render in v1.0.1
**Describe the bug**
I'm using Eleventy custom templates to handle sass files with template skips via .startsWith('_'); as described by this example here: https://www.11ty.dev/docs/languages/custom/#skipping-a-template-from-inside-of-the-compile-function. However since updating... | 11ty/eleventy | diff --git a/test/TemplateTest-CustomExtensions.js b/test/TemplateTest-CustomExtensions.js
index a056a2b1..2c99ddb1 100644
--- a/test/TemplateTest-CustomExtensions.js
+++ b/test/TemplateTest-CustomExtensions.js
@@ -466,3 +466,31 @@ test("Return undefined in compile to ignore #2267", async (t) => {
let data = await t... | [
"TemplateTest-CustomExtensions › Return undefined in compile to ignore (async compile function) #2350"
] | [
"BenchmarkTest › Nested Benchmark (nested calls are ignored while a parent is measuring)",
"BenchmarkTest › Reset Benchmark",
"BenchmarkTest › Standard Benchmark",
"ComputedDataProxyTest › Get vars used by function",
"ComputedDataProxyTest › Get vars used by function (multiple functions—not computed keys)",... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://www.11ty.dev/docs/languages/custom/#skipping-a-t... | [
"swe-rebench",
"swe-rebench-v2.1",
"js"
] | /eleventy | [] | [
"test/TemplateTest-CustomExtensions.js"
] | [] | [] |
5ce01f9818b615689428e85084be333e0b5563f2 | 2024-09-03 16:59:38 | docker.io/swerebenchv2/11ty-eleventy:3430-5ce01f9@sha256:7fb93b8c828fb216a5495c430aff173d30906123badc061085dc05d4ce7c5b3f | 11ty__eleventy-3430 | Function: IdAttributePlugin(eleventyConfig, options = {})
Location: src/Plugins/IdAttributePlugin.js
Inputs:
- **eleventyConfig**: an EleventyConfig instance used to register the plugin (e.g., addPosthtmlPlugin, addPlugin, etc.).
- **options** *(optional object)*:
- **selector** *(string)* – CSS selector used to matc... | js | MIT | diff --git a/src/Plugins/IdAttributePlugin.js b/src/Plugins/IdAttributePlugin.js
index df5e2a2f..1e63f6f9 100644
--- a/src/Plugins/IdAttributePlugin.js
+++ b/src/Plugins/IdAttributePlugin.js
@@ -27,25 +27,37 @@ function IdAttributePlugin(eleventyConfig, options = {}) {
options.slugify = MemoizeUtil(slugifyFilter);
... | Fixes #3424, conflicts with existing id attributes from IdAttributePlugin
Automatically resolve conflicts with other elements on the page that have an `id` attribute. Warning: preference given to first `id` found and any subsequent conflicting ids will be renamed.
```html
<div id="testing"></div>
<h1>Testing</h1>
... | The IdAttributePlugin can create conflicts
### Operating system
macOS Sonoma 14.6.1
### Eleventy
3.0.0-beta.1
### Describe the bug
The plugin does not check for existing `id` attributes in the markup, only ones created for headers previously. That means the following markup (from a real example):
```html
<section... | 11ty/eleventy | diff --git a/test/IdAttributePluginTest.js b/test/IdAttributePluginTest.js
index 6e969f9c..85dbd9ca 100644
--- a/test/IdAttributePluginTest.js
+++ b/test/IdAttributePluginTest.js
@@ -3,6 +3,10 @@ import test from "ava";
import { IdAttributePlugin } from "../src/Plugins/IdAttributePlugin.js";
import Eleventy from "../... | [
"Issue #3424, id attribute conflicts (hard coded id conflicts)",
"Issue #3424, id attribute conflicts (id attribute supplied first)",
"Issue #3424, id attribute conflicts (id attribute supplied last)"
] | [
"Using the IdAttribute plugin #3356",
"Using the IdAttribute plugin with escaped quoted text"
] | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"jav... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.82,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... | [
"swe-rebench",
"swe-rebench-v2.1",
"js"
] | /eleventy | [] | [
"test/IdAttributePluginTest.js"
] | [] | [] |
19fe59856e373de04384fbcea2424ec9fe871434 | 2019-10-16 19:49:55 | docker.io/swerebenchv2/11ty-eleventy:735-19fe598@sha256:071cf388edceb58e07451f78db1c139e60a6c7ed6b94f5fc521631b40fd7feed | 11ty__eleventy-735 | No new interfaces are introduced. | js | MIT | diff --git a/src/Util/Merge.js b/src/Util/Merge.js
index 3eb57b90..17cb3eeb 100644
--- a/src/Util/Merge.js
+++ b/src/Util/Merge.js
@@ -7,9 +7,12 @@ function getMergedItem(target, source, parentKey) {
return source;
}
- if (!target) {
- return source;
- } else if (Array.isArray(target) && Array.isArray(so... | Merge logic flaw causes data spillage with dataDeepMerge = true
Among other things, this fixes #676 in which data that pertains to one file or directory can show up in completely unrelated files.
In debugging #676, I observed that `Template.getData()` during the async call to `this.addPageDate()` the contents of `me... | front matter from subdirectories bleeds into its parent
**Describe the bug**
I see front matter data from an unrelated, nested file in other files.
I discovered that front matter overrides from data files overrides rather than merges so enabled `setDataDeepMerge(true)`. This led to odd behavior I'll show below:
**To ... | 11ty/eleventy | diff --git a/test/MergeTest.js b/test/MergeTest.js
index f5e99fd..53fd3f3 100644
--- a/test/MergeTest.js
+++ b/test/MergeTest.js
@@ -1,4 +1,8 @@
import test from "ava";
+import fs from "fs-extra";
+import path from "path";
+import Eleventy from "../src/Eleventy";
+import templateConfig from "../src/Config";
import Me... | [
"MergeTest › Front matter from one file does not affect data in another file"
] | [
"BenchmarkTest › Nested Benchmark (nested calls are ignored while a parent is measuring)",
"BenchmarkTest › Reset Benchmark",
"BenchmarkTest › Standard Benchmark",
"CapitalizeTest › capitalize",
"DeleteRequireCacheTest › deleteRequireCache",
"EleventyCommandCheckTest › Boolean argument",
"EleventyComman... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... | [
"swe-rebench",
"swe-rebench-v2.1",
"js"
] | /eleventy | [] | [
"test/MergeTest.js"
] | [] | [] |
7ae29931d2de55b71190f9c8746ac7efcfa5a748 | 2019-12-12 23:23:26 | docker.io/swerebenchv2/11ty-eleventy:821-7ae2993@sha256:b9a9642dec04ec23972a17b959a804508533e3b44177be5d0aa5fb64f574fae6 | 11ty__eleventy-821 | No new interfaces are introduced. | js | MIT | diff --git a/src/TemplateData.js b/src/TemplateData.js
index 83862e14..670e7f42 100644
--- a/src/TemplateData.js
+++ b/src/TemplateData.js
@@ -2,6 +2,7 @@ const fs = require("fs-extra");
const fastglob = require("fast-glob");
const parsePath = require("parse-filepath");
const lodashset = require("lodash/set");
+cons... | Global data files priority according to file extensions #794
This PR resolves #794 and also adds merging of global data from different files with the same base filename into one object
For example if we have files
```
//_data/data.js
module.exports = {
key1: "js-val1"
}
// _data/data.json
{
"key1": "... | Global data doesn’t have explicit rules about data overrides when data file roots are the same
In template and directory data files override is explicit:
`component.11tydata.js` overrides `component.11tydata.json` overrides `component.json`
No such explicit convention exists for global data files. It does one generic... | 11ty/eleventy | diff --git a/test/UserDataExtensionsTest.js b/test/UserDataExtensionsTest.js
index fa5cc1e6..cffb98b5 100644
--- a/test/UserDataExtensionsTest.js
+++ b/test/UserDataExtensionsTest.js
@@ -70,7 +70,6 @@ test("Global data", async t => {
"./test/stubs-630/_data/**/*.(nosj|yaml|json|js)"
]);
- let dataFilePaths =... | [
"UserDataExtensionsTest › Global data merging and priority"
] | [
"BenchmarkTest › Nested Benchmark (nested calls are ignored while a parent is measuring)",
"BenchmarkTest › Reset Benchmark",
"BenchmarkTest › Standard Benchmark",
"CapitalizeTest › capitalize",
"DeleteRequireCacheTest › deleteRequireCache",
"EleventyCommandCheckTest › Boolean argument",
"EleventyComman... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/11ty/eleventy/blob/ccbaf5af8cafeccb... | [
"swe-rebench",
"swe-rebench-v2.1",
"js"
] | /eleventy | [] | [
"test/UserDataExtensionsTest.js",
"test/stubs-630/_data/mergingGlobalData.js",
"test/stubs-630/_data/mergingGlobalData.json",
"test/stubs-630/_data/mergingGlobalData.nosj",
"test/stubs-630/_data/mergingGlobalData.yaml"
] | [] | [] |
a4b3091755a11ef31a3714858007a93b750b6a79 | 2022-05-04 08:13:02 | docker.io/swerebenchv2/12rambau-sepal-ui:459-a4b3091@sha256:f1903154923dd6b5dd8f1eb9072596b79515219525a83bd9038f288d545ea212 | 12rambau__sepal_ui-459 | python | MIT | diff --git a/docs/source/modules/sepal_ui.translator.Translator.rst b/docs/source/modules/sepal_ui.translator.Translator.rst
index 60fa976cc..642a3ab6e 100644
--- a/docs/source/modules/sepal_ui.translator.Translator.rst
+++ b/docs/source/modules/sepal_ui.translator.Translator.rst
@@ -27,6 +27,7 @@ sepal\_ui.translator.... | crowdin untranslated keys are marked as empty string
These string are interpreted as "something" by the translator leading to empty strings everywhere in the build-in component.
They should be ignored
| 12rambau/sepal_ui | diff --git a/tests/test_Translator.py b/tests/test_Translator.py
index 930a533..7120079 100644
--- a/tests/test_Translator.py
+++ b/tests/test_Translator.py
@@ -49,25 +49,36 @@ class TestTranslator:
# a test dict with many embeded numbered list
# but also an already existing list
test = {
- ... | [
"tests/test_Translator.py::TestTranslator::test_empty_translation_uses_default_text"
] | [
"tests/test_Translator.py::TestTranslator::test_available_locales",
"tests/test_Translator.py::TestTranslator::test_find_target",
"tests/test_Translator.py::TestTranslator::test_init",
"tests/test_Translator.py::TestTranslator::test_missing_keys",
"tests/test_Translator.py::TestTranslator::test_sanitize",
... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /sepal_ui && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --tb=line --color=n... | {
"llm_metadata": null,
"num_modified_files": 4,
"num_modified_lines": 34,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/12rambau/sepal_ui/pull/459"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /sepal_ui | [] | [
"tests/test_Translator.py"
] | [] | [] | ||
89f8d87dc4f83bfc2e96a111692ae252e470e8bc | 2022-10-13 11:16:16 | docker.io/swerebenchv2/12rambau-sepal-ui:601-89f8d87@sha256:6adbaf981ed5dd00eb34d3c3cee69fb31399ad9b1c4d4936ddb1f2338adbe0de | 12rambau__sepal_ui-601 | python | MIT | diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py
index 95fda88a..6293f828 100644
--- a/sepal_ui/sepalwidgets/inputs.py
+++ b/sepal_ui/sepalwidgets/inputs.py
@@ -6,6 +6,7 @@ import ee
import geopandas as gpd
import ipyvuetify as v
import pandas as pd
+from deprecated.sphinx import versio... | Datepicker is not fully customizable
As our main `DatePicker` usage is as in its "menu" form, it is not handy to set some use cases:
- set a min_, max_ value directly (you have to `datepicker.children.....min_`...)
- set a default initial value with `v_model` since it is hardcoded from the beginning
- the `jslink` "lin... | 12rambau/sepal_ui | diff --git a/tests/test_DatePicker.py b/tests/test_DatePicker.py
index d206c10..e8fd61a 100644
--- a/tests/test_DatePicker.py
+++ b/tests/test_DatePicker.py
@@ -20,9 +20,36 @@ class TestDatePicker:
value = "2022-03-14"
datepicker = sw.DatePicker(v_model=value)
assert datepicker.v_model == val... | [
"tests/test_DatePicker.py::TestDatePicker::test_date_bounds_apply_to_displayed_picker",
"tests/test_DatePicker.py::TestDatePicker::test_init"
] | [
"tests/test_DatePicker.py::TestDatePicker::test_bind",
"tests/test_DatePicker.py::TestDatePicker::test_check_date",
"tests/test_DatePicker.py::TestDatePicker::test_disable",
"tests/test_DatePicker.py::TestDatePicker::test_is_valid_date",
"tests/test_sepalwidgets.py::TestSepalWidgets::test_generated",
"tes... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /sepal_ui && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate b... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 36,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/12rambau/sepal_ui/pull/601"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /sepal_ui | [] | [
"tests/test_DatePicker.py",
"tests/test_sepalwidgets.py"
] | [] | [] | ||
8a8196e3c7893b7a0aebdb4910e83054f59e0374 | 2022-11-29 14:42:21 | docker.io/swerebenchv2/12rambau-sepal-ui:644-8a8196e@sha256:17d70dfa0fa140d74c81fec1243dee5f507a3f203994a262137f72ddf3f7ec10 | 12rambau__sepal_ui-644 | python | MIT | diff --git a/sepal_ui/sepalwidgets/btn.py b/sepal_ui/sepalwidgets/btn.py
index 137622fa..105f6160 100644
--- a/sepal_ui/sepalwidgets/btn.py
+++ b/sepal_ui/sepalwidgets/btn.py
@@ -25,6 +25,9 @@ class Btn(v.Btn, SepalWidget):
.. deprecated:: 2.13
``text`` and ``icon`` will be replaced by ``msg`` and ``gli... | sepal_ui.Btn does't work as expected
I want to create a simple Icon button, to do so:
```python
sw.Btn(icon=True, gliph ="mdi-plus")
```
Doing this, without "msg" parameter will add the default text to the button which is "click", I think is worthless having that value.
So if I want to remove the default text, I woul... | 12rambau/sepal_ui | diff --git a/tests/test_Btn.py b/tests/test_Btn.py
index fcaed76..b8b2626 100644
--- a/tests/test_Btn.py
+++ b/tests/test_Btn.py
@@ -11,7 +11,13 @@ class TestBtn:
btn = sw.Btn()
assert btn.color == "primary"
assert btn.v_icon.children[0] == ""
- assert btn.children[1] == "Click"
+ ... | [
"tests/test_Btn.py::TestBtn::test_init"
] | [
"tests/test_Btn.py::TestBtn::test_set_gliph",
"tests/test_Btn.py::TestBtn::test_set_msg",
"tests/test_Btn.py::TestBtn::test_toggle_loading"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL",
"pip install localtileserver",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"t... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 8,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/12rambau/sepal_ui/pull/644"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /sepal_ui | [] | [
"tests/test_Btn.py"
] | [] | [] | ||
8a8196e3c7893b7a0aebdb4910e83054f59e0374 | 2022-11-29 22:27:29 | docker.io/swerebenchv2/12rambau-sepal-ui:646-8a8196e@sha256:e755259ea458dce037baa17463e68f700243952515490f309a0cc512a79a7235 | 12rambau__sepal_ui-646 | python | MIT | diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py
index 68e3f115..de6d4abb 100644
--- a/sepal_ui/sepalwidgets/alert.py
+++ b/sepal_ui/sepalwidgets/alert.py
@@ -94,9 +94,10 @@ class Alert(v.Alert, SepalWidget):
self.show()
# cast the progress to float
+ total = tqdm_... | allow other values for progress
Now that we are supporting tqdm it should be possible to support progress values that are not between 0 and 1. https://github.com/12rambau/sepal_ui/blob/c15a83dc6c92d076e6932afab4e4b2987585894b/sepal_ui/sepalwidgets/alert.py#L98
| 12rambau/sepal_ui | diff --git a/tests/test_Alert.py b/tests/test_Alert.py
index af36093..45f0dcf 100644
--- a/tests/test_Alert.py
+++ b/tests/test_Alert.py
@@ -151,13 +151,17 @@ class TestAlert:
def test_update_progress(self, alert):
- # test a random update
+ # A normalized progress value remains supported.
... | [
"tests/test_Alert.py::TestAlert::test_update_progress"
] | [
"tests/test_Alert.py::TestAlert::test_add_live_msg",
"tests/test_Alert.py::TestAlert::test_add_msg",
"tests/test_Alert.py::TestAlert::test_append_msg",
"tests/test_Alert.py::TestAlert::test_init",
"tests/test_Alert.py::TestAlert::test_reset",
"tests/test_Alert.py::TestAlert::test_rmv_last_msg"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /sepal_ui && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --tb=line --color=n... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 9,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/12rambau/sepal_ui/pull/646"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /sepal_ui | [] | [
"tests/test_Alert.py"
] | [] | [] | ||
549667ffe968ab4d631766a96024819b0fabff00 | 2023-01-05 11:57:10 | docker.io/swerebenchv2/12rambau-sepal-ui:685-549667f@sha256:242650745ff6839e3c7dcb862c7d69f95fabe0716aff259197413cbdb4ebc091 | 12rambau__sepal_ui-685 | python | MIT | diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml
index 88dda404..e29b052d 100644
--- a/.github/workflows/unit.yml
+++ b/.github/workflows/unit.yml
@@ -60,15 +60,7 @@ jobs:
- name: Check that there are no unexpected Sphinx warnings
if: matrix.python-version == '3.8'
- shell: ... | NumberField is not using fontawesome icons
| 12rambau/sepal_ui | diff --git a/tests/check_warnings.py b/tests/check_warnings.py
new file mode 100644
index 0000000..af336d9
--- /dev/null
+++ b/tests/check_warnings.py
@@ -0,0 +1,56 @@
+import sys
+from pathlib import Path
+
+
+def check_warnings(file):
+ """
+ Check the list of warnings produced by the GitHub CI tests
+ raise... | [
"tests/test_PasswordField.py::TestPasswordField::test_number_field_uses_font_awesome_icons"
] | [
"tests/test_PasswordField.py::TestPasswordField::test_init",
"tests/test_PasswordField.py::TestPasswordField::test_toogle_viz",
"tests/test_ReclassifyView.py::TestReclassifyView::test_init_local",
"tests/test_ReclassifyView.py::TestReclassifyView::test_set_dst_class_file"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL",
"pip install localtileserver",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"t... | {
"llm_metadata": null,
"num_modified_files": 13,
"num_modified_lines": 634,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/12rambau/sepal_ui/pull/685"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /sepal_ui | [] | [
"tests/check_warnings.py",
"tests/data/warning_list.txt",
"tests/test_AoiModel.py",
"tests/test_PasswordField.py",
"tests/test_ReclassifyView.py"
] | [] | [] | ||
a683a7665a9710acd5ca939308e18539e92014b7 | 2023-02-08 10:00:39 | docker.io/swerebenchv2/12rambau-sepal-ui:747-a683a76@sha256:1defc900f81751193e36d3859ea193c567f4d9ec87666870997615916ba47fc2 | 12rambau__sepal_ui-747 | python | MIT | diff --git a/sepal_ui/sepalwidgets/sepalwidget.py b/sepal_ui/sepalwidgets/sepalwidget.py
index 40826809..00cbe015 100644
--- a/sepal_ui/sepalwidgets/sepalwidget.py
+++ b/sepal_ui/sepalwidgets/sepalwidget.py
@@ -177,11 +177,11 @@ class SepalWidget(v.VuetifyWidget):
is_klass = isinstance(w, klass)
... | make get_children [HIDDEN] again
previous implementation [HIDDEN] to find all children within the widget that matches with the query, now it returns only first level of matching children, could we make it [HIDDEN] again?
### Additional contract requirements
- `get_children` must return matching descendants throughout... | 12rambau/sepal_ui | diff --git a/tests/test_SepalWidget.py b/tests/test_SepalWidget.py
index 3abd719..a99fa1e 100644
--- a/tests/test_SepalWidget.py
+++ b/tests/test_SepalWidget.py
@@ -108,24 +108,19 @@ class TestSepalWidget:
assert len(res) == 0
# search for specific attributes in any class
- # one alert that c... | [
"tests/test_SepalWidget.py::TestSepalWidget::test_get_children"
] | [
"tests/test_SepalWidget.py::TestSepalWidget::test_hide",
"tests/test_SepalWidget.py::TestSepalWidget::test_init",
"tests/test_SepalWidget.py::TestSepalWidget::test_reset",
"tests/test_SepalWidget.py::TestSepalWidget::test_set_children",
"tests/test_SepalWidget.py::TestSepalWidget::test_set_children_error",
... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /sepal_ui && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --tb=line --color=n... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 6,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/12rambau/sepal_ui/pull/747"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /sepal_ui | [] | [
"tests/test_SepalWidget.py"
] | [] | [] | ||
6d825ae167f96ad2e7b76b96ca07de562f74dcf0 | 2023-04-11 07:43:35 | docker.io/swerebenchv2/12rambau-sepal-ui:814-6d825ae@sha256:e149545a9ed699f58c3ff1f291639259107d59ef8c2a92a907a4012aa5f6ccbc | 12rambau__sepal_ui-814 | python | MIT | diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py
index 19718f51..8dafab92 100644
--- a/sepal_ui/sepalwidgets/alert.py
+++ b/sepal_ui/sepalwidgets/alert.py
@@ -108,14 +108,17 @@ class Alert(v.Alert, SepalWidget):
Args:
progress: the progress status in float
... | avoid to force developer to set total each time
I should be able to init the progress of an Alert first and then simply update the progress.
as in:
```python
from sepal_ui import sepalwidgets as sw
alert = sw.Alert()
# init
alert.update_progress(0, "toto", total=10)
# loop
for i in range(10):
alert.update_prog... | 12rambau/sepal_ui | diff --git a/tests/test_sepalwidgets/test_Alert.py b/tests/test_sepalwidgets/test_Alert.py
index 3f8de9a4..cac14ebb 100644
--- a/tests/test_sepalwidgets/test_Alert.py
+++ b/tests/test_sepalwidgets/test_Alert.py
@@ -175,7 +175,8 @@ def test_update_progress() -> None:
# check that if total is set value can be more... | [
"tests/test_sepalwidgets/test_Alert.py::test_update_progress"
] | [
"tests/test_sepalwidgets/test_Alert.py::test_init",
"tests/test_sepalwidgets/test_Alert.py::test_add_msg",
"tests/test_sepalwidgets/test_Alert.py::test_add_live_msg",
"tests/test_sepalwidgets/test_Alert.py::test_append_msg",
"tests/test_sepalwidgets/test_Alert.py::test_reset",
"tests/test_sepalwidgets/tes... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /sepal_ui && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate b... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 9,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/12rambau/sepal_ui/pull/814"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /sepal_ui | [] | [
"tests/test_sepalwidgets/test_Alert.py"
] | [] | [] | ||
3ed1858b492542d0bc9b9e9ab9547641595e28c1 | 2020-07-30 14:25:04 | docker.io/swerebenchv2/15five-scim2-filter-parser:13-3ed1858@sha256:ba80c176ba2f05e2f7a7e05e8e9008f97ba0476542ed856072482efeb490155a | 15five__scim2-filter-parser-13 | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 12a5d4f..178f172 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,10 @@
CHANGE LOG
==========
+0.3.5
+-----
+- Update the sql.Transpiler to collect namedtuples rather than tuples for attr paths
+
0.3.4
-----
- Update tox.ini and clean up linting errors
di... | Return NamedTuple rather than tuple.
It would be nice to return a NamedTuple instead of a tuple here:
https://github.com/15five/scim2-filter-parser/blob/7ddc216f8c3dd1cdb2152944187e8f7f5ee07be2/src/scim2_filter_parser/transpilers/sql.py#L148
This way parts of each path could be accessed by name rather than by index i... | 15five/scim2-filter-parser | diff --git a/tests/test_transpiler.py b/tests/test_transpiler.py
index b8e1bb4..2c1be96 100644
--- a/tests/test_transpiler.py
+++ b/tests/test_transpiler.py
@@ -36,6 +36,20 @@ class RFCExamples(TestCase):
self.assertEqual(expected_sql, sql, query)
self.assertEqual(expected_params, params, query)
+ ... | [
"tests/test_transpiler.py::RFCExamples::test_attr_paths_are_created"
] | [
"tests/test_transpiler.py::AzureQueries::test_email_type_eq_primary_value_eq_uuid",
"tests/test_transpiler.py::AzureQueries::test_external_id_from_azure",
"tests/test_transpiler.py::AzureQueries::test_parse_simple_email_filter_with_uuid",
"tests/test_transpiler.py::CommandLine::test_command_line",
"tests/te... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e ."
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /scim2-filter-parser && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --tb=line --c... | {
"llm_metadata": null,
"num_modified_files": 3,
"num_modified_lines": 11,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/15five/scim2-filter-parser/pull/13"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /scim2-filter-parser | [] | [
"tests/test_transpiler.py"
] | [] | [] | ||
f7ad65d27328e93c5eb337a1f998ac368be4b881 | 2024-09-10 12:46:48 | docker.io/swerebenchv2/1c-syntax-bsl-language-server:3341-f7ad65d@sha256:99eea044b83a5b5932019f7263855137ac1e2b695f1b27fcd77fb0a2242e445c | 1c-syntax__bsl-language-server-3341 | No new interfaces are introduced. | java | custom-check-github | diff --git a/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/UsingSynchronousCallsDiagnostic.java b/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/UsingSynchronousCallsDiagnostic.java
index 3c6595406..3cb4320e5 100644
--- a/src/main/java/com/github/_1c_syntax/bsl/languageserver/di... | Игнорирование серверных модулей при диагностике UsingSynchronousCalls
## Описание
* В диагностике игнорируются модули, которые не могут содержать клиентского кода (а только он бывает асинхронным)
* Общие модули игнорируются, если у них не стоят клиентские флажки
* Расширен тест у диагностики, проверяются модули об... | [FP] UsingSynchronousCalls - проверяет модель менеджера
## Диагностика
UsingSynchronousCalls
## Версия
1.14.0
## Описание ложного срабатывания диагностики
Проверяет модуль менеджера
## Пример кода
УдалитьФайлы(ИмяВременногоФайла);
## Скриншоты
"
] | [
"#, count=1",
", count=0",
", count=1",
"A, count=1",
"AbstractSymbolTreeDiagnosticTest > testAllSymbolsWereVisited()",
"AllFunctionPathMustHaveReturnDiagnosticTest > testDefaultBehavior()",
"AllFunctionPathMustHaveReturnDiagnosticTest > testElsIfClausesWithoutElse()",
"AllFunctionPathMustHaveReturnDi... | {
"base_image_name": "java_21",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"jav... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... | [
"swe-rebench",
"swe-rebench-v2.1",
"java"
] | /bsl-language-server | [
{
"name": "_JAVA_OPTIONS",
"value": ""
}
] | [
"src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/UsingSynchronousCallsDiagnosticTest.java"
] | [] | [] |
02e53c24937d457d312970ea356889c38a733f6b | 2023-04-25 05:32:00 | docker.io/swerebenchv2/1password-typeshare:109-02e53c2@sha256:32a31683f08c779c940668f0e7a7dd18cff8a68d6044fbd4e5da4c793acff0bf | 1password__typeshare-109 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8857a4a..edee0a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,22 +1,3 @@
-# Version 1.5.0
-
-This release brings support for fixed-length arrays and fixes some premature changes made in 1.4.0 involving the
-representation of unit types and enum variants in Typescript... | Typeshare can now detect types within embedded modules
Say, for instance, you have this situation:
```
mod inline_module {
#[typeshare]
pub struct Inline;
}
```
Previously, `Inline` would not be detected since our parser was not scanning the contents of inline/embedded modules. This has been fixed.
Re... | Typeshare ignores type annotations in embedded modules
Hi,
I have code like this:
```rust
mod my_module {
// Types with Typeshare annotations
}
```
...which results in nothing being generated.
If I remove the module around the annotations, everything works.
### Additional contract requirements
Typeshare-annot... | 1Password/typeshare | diff --git a/core/tests/snapshot_tests.rs b/core/tests/snapshot_tests.rs
index 117868c..47f18c9 100644
--- a/core/tests/snapshot_tests.rs
+++ b/core/tests/snapshot_tests.rs
@@ -60,20 +60,56 @@ fn check(
.expect("file name must have an extension");
let expected_file_path = TESTS_FOLDER_PATH.join(test_name)... | [
"includes_annotated_types_from_nested_modules::go",
"includes_annotated_types_from_nested_modules::kotlin",
"includes_annotated_types_from_nested_modules::scala",
"includes_annotated_types_from_nested_modules::swift",
"includes_annotated_types_from_nested_modules::typescript"
] | [
"algebraic_enum_decorator::swift",
"anonymous_struct_with_rename::go",
"anonymous_struct_with_rename::kotlin",
"anonymous_struct_with_rename::scala",
"anonymous_struct_with_rename::swift",
"anonymous_struct_with_rename::typescript",
"blocklisted_types::test_hashmap_blocklisted_struct",
"blocklisted_ty... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"rust"
] | /typeshare | [] | [
"core/tests/snapshot_tests.rs"
] | [
{
"name": "CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS",
"value": "fallback"
},
{
"name": "RUST_TEST_THREADS",
"value": "1"
}
] | [] |
f99eb479f2649c02ca7d37240b829ec6b36e917c | 2022-12-20 18:23:47 | docker.io/swerebenchv2/1password-typeshare:39-f99eb47@sha256:1e84265a9603c84472f43f0ee21a931ed54f22baf4b4a55cdf4a6aa83126fd72 | 1password__typeshare-39 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/core/src/language/kotlin.rs b/core/src/language/kotlin.rs
index f40e507..cb399a5 100644
--- a/core/src/language/kotlin.rs
+++ b/core/src/language/kotlin.rs
@@ -309,7 +309,7 @@ impl Kotlin {
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;
write!(
w,
- ... | Change Kotlin to use val
Resolves #38
Literally a single character change to keep Kotlin consistent | Kotlin struct properties should be immutable
Currently in other languages (where it exists) typeshare emits properties that are immutable. In Kotlin, these are emitted as `var` which is mutable. To stay consistent, we should emit as `val`.
For example, this Rust type:
```rs
pub struct Foo {
pub a: i8,
pub b: i... | 1Password/typeshare | diff --git a/core/data/tests/anonymous_struct_with_rename/output.kt b/core/data/tests/anonymous_struct_with_rename/output.kt
index 3a925b8..29c9fa1 100644
--- a/core/data/tests/anonymous_struct_with_rename/output.kt
+++ b/core/data/tests/anonymous_struct_with_rename/output.kt
@@ -12,26 +12,26 @@ import kotlinx.serializ... | [
"anonymous_struct_with_rename::kotlin",
"can_apply_prefix_correctly::kotlin",
"can_generate_generic_enum::kotlin",
"can_generate_generic_struct::kotlin",
"can_generate_simple_struct_with_a_comment::kotlin",
"can_generate_struct_with_skipped_fields::kotlin",
"can_handle_anonymous_struct::kotlin",
"can_... | [
"algebraic_enum_decorator::swift",
"anonymous_struct_with_rename::go",
"anonymous_struct_with_rename::swift",
"anonymous_struct_with_rename::typescript",
"blocklisted_types::test_hashmap_blocklisted_struct",
"blocklisted_types::test_i64_blocklisted_struct",
"blocklisted_types::test_isize_blocklisted_str... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": "1.89.0",
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"rust"
] | /typeshare | [] | [
"core/data/tests/anonymous_struct_with_rename/output.kt",
"core/data/tests/can_apply_prefix_correctly/output.kt",
"core/data/tests/can_generate_generic_enum/output.kt",
"core/data/tests/can_generate_generic_struct/output.kt",
"core/data/tests/can_generate_simple_struct_with_a_comment/output.kt",
"core/dat... | [
{
"name": "CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS",
"value": "fallback"
},
{
"name": "RUST_TEST_THREADS",
"value": "1"
}
] | [] |
3de784a07b3f1a36dcd175c7d71ce1047f773f1b | 2023-02-09 11:28:10 | docker.io/swerebenchv2/1password-typeshare:61-3de784a@sha256:6708df377f4fb7db79fd386978ad1bdf42ad5a7c553b3e02ee3b0f5e18587449 | 1password__typeshare-61 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/core/src/language/typescript.rs b/core/src/language/typescript.rs
index 5ad5b4f..5e8b37e 100644
--- a/core/src/language/typescript.rs
+++ b/core/src/language/typescript.rs
@@ -219,12 +219,14 @@ impl TypeScript {
.format_type(&field.ty, generic_types)
.map_err(|e| std::io::Error::n... | Support the double option pattern for TypeScript
Double option pattern is used for partial updates of optional fields. See the [serde_with helper](https://docs.rs/serde_with/latest/serde_with/rust/double_option/) for more details.
Closes #59. | Double option pattern support
Hello,
I found a missing feature in `typeshare`. Some APIs support partial updates for DTOs. That means that they have a distinction between a missing field and a field equal to `null` eg.:
```rust
#[derive(Serialize, Deserialize, Debug)]
#[typeshare]
pub struct UserUpdateParams {
pub... | 1Password/typeshare | diff --git a/core/data/tests/can_generate_double_option_pattern/input.rs b/core/data/tests/can_generate_double_option_pattern/input.rs
new file mode 100644
index 0000000..62b1a29
--- /dev/null
+++ b/core/data/tests/can_generate_double_option_pattern/input.rs
@@ -0,0 +1,4 @@
+#[typeshare]
+pub struct SomeStruct {
+ f... | [
"can_generate_double_option_pattern::typescript"
] | [
"algebraic_enum_decorator::swift",
"anonymous_struct_with_rename::go",
"anonymous_struct_with_rename::kotlin",
"anonymous_struct_with_rename::swift",
"anonymous_struct_with_rename::typescript",
"blocklisted_types::test_hashmap_blocklisted_struct",
"blocklisted_types::test_i64_blocklisted_struct",
"blo... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.rs/serde_with/latest/serde_with/rust/doub... | [
"swe-rebench",
"swe-rebench-v2.1",
"rust"
] | /typeshare | [] | [
"core/data/tests/can_generate_double_option_pattern/input.rs",
"core/data/tests/can_generate_double_option_pattern/output.ts",
"core/tests/snapshot_tests.rs"
] | [
{
"name": "CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS",
"value": "fallback"
},
{
"name": "RUST_TEST_THREADS",
"value": "1"
}
] | [] |
4bc34694c44cee0688bc2b6984733708cb39fc58 | 2023-04-13 17:49:55 | docker.io/swerebenchv2/1password-typeshare:97-4bc3469@sha256:71e87f8e317df20d6e59be9ebbba3e3f49d37bf0fd558350e163a6e3ddd59617 | 1password__typeshare-97 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/core/src/language/typescript.rs b/core/src/language/typescript.rs
index 74879d7..32bf7ae 100644
--- a/core/src/language/typescript.rs
+++ b/core/src/language/typescript.rs
@@ -52,7 +52,7 @@ impl Language for TypeScript {
},
self.format_type(rtype2, generic_types)?
... | Revert "Merge pull request #82 from 1Password/jane/undefined-to-null"
This reverts commit 07e6220ef062dc269ee07a1ab7137761e6bdcf77, reversing changes made to 3d7aa59b0e6b6b318cbf8b633dba9691a1cbc808.
Fixes #96. | null content is no longer optional
https://github.com/1Password/typeshare/pull/82/
This PR changed `undefined` to `null` however it removed the optional operator (from `content?: undefined` to `content: null`)
This seems like a change that should at the very least be a setting.
This is useful if a rust FFI interface... | 1Password/typeshare | diff --git a/core/data/tests/boxed_value/output.ts b/core/data/tests/boxed_value/output.ts
index 0b45e70..7c8a223 100644
--- a/core/data/tests/boxed_value/output.ts
+++ b/core/data/tests/boxed_value/output.ts
@@ -1,6 +1,6 @@
/** This is a comment. */
export type Colors =
- | { type: "Red", content: null }
- | { type... | [
"boxed_value::typescript",
"can_generate_algebraic_enum_with_skipped_variants::typescript",
"can_generate_empty_algebraic_enum::typescript",
"can_generate_generic_struct::typescript",
"can_handle_anonymous_struct::typescript",
"can_handle_unit_type::typescript"
] | [
"algebraic_enum_decorator::swift",
"anonymous_struct_with_rename::go",
"anonymous_struct_with_rename::kotlin",
"anonymous_struct_with_rename::scala",
"anonymous_struct_with_rename::swift",
"anonymous_struct_with_rename::typescript",
"blocklisted_types::test_hashmap_blocklisted_struct",
"blocklisted_ty... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/1Password/typeshare/pull/82/"
]... | [
"swe-rebench",
"swe-rebench-v2.1",
"rust"
] | /typeshare | [] | [
"core/data/tests/boxed_value/output.ts",
"core/data/tests/can_generate_algebraic_enum_with_skipped_variants/output.ts",
"core/data/tests/can_generate_empty_algebraic_enum/output.ts",
"core/data/tests/can_generate_generic_struct/output.ts",
"core/data/tests/can_handle_anonymous_struct/output.ts",
"core/dat... | [
{
"name": "CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS",
"value": "fallback"
},
{
"name": "RUST_TEST_THREADS",
"value": "1"
}
] | [] |
dec5c73ec1bcd694bd45651901d68cd933721b3e | 2019-01-11 19:57:42 | docker.io/swerebenchv2/2gis-k8s-handle:73-dec5c73@sha256:aa8ae47711910203c5fcf6f17a6d873ee4000636eade20c4fed5537645d9094b | 2gis__k8s-handle-73 | python | Apache-2.0 | diff --git a/.dockerignore b/.dockerignore
index d3f33a2..fea1e67 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -6,5 +6,10 @@ Dockerfile*
.gitignore
.idea/
.tox/
+.travis.yml
+tox.ini
__pychache__
htmlcov/
+tests/
+*.png
+
diff --git a/k8s_handle/config.py b/k8s_handle/config.py
index acbf34f..6c2564f 100644
-... | It is not possible to concatenate several environment variables into one value
Привет.
Столкнулся с невозможностью одновременного использования нескольких переменных окружения при объявлении переменной в config.yaml. Небольшой пример:
Мы при развертывании сервиса иногда создаем более одного деплоя, registry используем ... | 2gis/k8s-handle | diff --git a/tests/test_config.py b/tests/test_config.py
index 2f2e2b3..ce3e228 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -118,13 +118,17 @@ def test_context_update_recursion(self):
'section1-key4': [0, 1, 2, 3],
'section1-key5': "{{ env='CUSTOM_ENV' }}",
... | [
"tests/test_config.py::TestContextGeneration::test_context_update_recursion"
] | [
"tests/test_config.py::TestContextGeneration::test_check_empty_var",
"tests/test_config.py::TestContextGeneration::test_common_section",
"tests/test_config.py::TestContextGeneration::test_concatination_with_env",
"tests/test_config.py::TestContextGeneration::test_config_incorrect",
"tests/test_config.py::Te... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e ."
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /k8s-handle && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base... | {
"llm_metadata": null,
"num_modified_files": 4,
"num_modified_lines": 25,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/2gis/k8s-handle/pull/73"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /k8s-handle | [] | [
"tests/test_config.py"
] | [] | [] | ||
92f764f44301bcd406d588a4db5cf0333fc1ccc2 | 2019-02-12 04:05:12 | docker.io/swerebenchv2/2gis-k8s-handle:84-92f764f@sha256:2bf2f2d91c0676a98949cbcdecbcee10df2172c7a0b5ef251732b34f6759c44e | 2gis__k8s-handle-84 | python | Apache-2.0 | diff --git a/k8s_handle/config.py b/k8s_handle/config.py
index df08de4..17cdb33 100644
--- a/k8s_handle/config.py
+++ b/k8s_handle/config.py
@@ -156,6 +156,9 @@ def _update_context_recursively(context, include_history=[]):
def load_context_section(section):
+ if not section:
+ raise RuntimeError('Empty s... | Empty section passes validation
Empty section string (-s "") passes validation and causes not wrapped KeyError.
| 2gis/k8s-handle | diff --git a/tests/test_config.py b/tests/test_config.py
index ce3e228..db974b5 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -1,5 +1,7 @@
import os
import shutil
+import subprocess
+import sys
import unittest
from k8s_handle import config
@@ -65,6 +67,21 @@ class TestContextGeneration(unittest.... | [
"tests/test_config.py::TestContextGeneration::test_empty_section"
] | [
"tests/test_config.py::TestContextGeneration::test_check_empty_var",
"tests/test_config.py::TestContextGeneration::test_common_section",
"tests/test_config.py::TestContextGeneration::test_concatination_with_env",
"tests/test_config.py::TestContextGeneration::test_config_incorrect",
"tests/test_config.py::Te... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /k8s-handle && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 6,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/2gis/k8s-handle/pull/84"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /k8s-handle | [] | [
"tests/test_config.py"
] | [] | [] | ||
a34ab8fcca9f1133ec1c4fc446a59b71acf5613e | 2019-09-17 11:47:16 | docker.io/swerebenchv2/3hren-msgpack-rust:218-a34ab8f@sha256:028ec3189a00e75f36245790b6050dec3029daa433975574a7b4e508ba566812 | 3hren__msgpack-rust-218 | No new interfaces are introduced. | rust | MIT | diff --git a/rmp/src/encode/mod.rs b/rmp/src/encode/mod.rs
index b3676c7..e88ec91 100644
--- a/rmp/src/encode/mod.rs
+++ b/rmp/src/encode/mod.rs
@@ -257,8 +257,6 @@ pub fn write_map_len<W: Write>(wr: &mut W, len: u32) -> Result<Marker, ValueWrit
/// Panics if `ty` is negative, because it is reserved for future Message... | Allow timestamp extension
The timestamp extension is using `-1` as identifier, support such negative values.
Closes #174. | [HIDDEN]
I'm using the `rmpv` crate to serialize some data to MessagePack, some of this data contains dates, so the data needs to be serialized as a Timestamp extension type, with type `-1`. See spec here: https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type.
When trying to serialize that da... | 3Hren/msgpack-rust | diff --git a/rmp/tests/func/encode/ext.rs b/rmp/tests/func/encode/ext.rs
index 363cb47..f625a9f 100644
--- a/rmp/tests/func/encode/ext.rs
+++ b/rmp/tests/func/encode/ext.rs
@@ -28,6 +28,13 @@ fn pass_pack_meta_fix4() {
assert_eq!([0xd6, 0x10], buf);
}
+#[test]
+fn pass_pack_meta_fix4_timesamp() {
+ let mut b... | [
"decode::test_as_ref_reader",
"display_array",
"display_binary",
"display_bool",
"display_ext",
"display_float",
"display_int",
"display_map",
"display_nil",
"display_string",
"fail_bool_from_fixint",
"fail_enum_map_mismatch",
"fail_enum_overflow",
"fail_internally_tagged_enum_tuple - shou... | [
"func::decode::array::from_array16_max_read_size",
"func::decode::array::from_array16_min_read_size",
"func::decode::array::from_array16_unexpected_eof_read_size",
"func::decode::array::from_array32_max_read_size",
"func::decode::array::from_array32_min_read_size",
"func::decode::array::from_array32_unexp... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": "1.89.0",
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/msgpack/msgpack/blob/master/spec.md#t... | [
"swe-rebench",
"swe-rebench-v2.1",
"rust"
] | /msgpack-rust | [] | [
"rmp/tests/func/encode/ext.rs"
] | [
{
"name": "CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS",
"value": "fallback"
}
] | [] |
6e1cfaec17a8d2fd9dc9d997fffa43c875d51cb0 | 2021-06-21 23:19:43 | docker.io/swerebenchv2/3hren-msgpack-rust:282-6e1cfae@sha256:cabe4fed546b874041669fd85002c2f16009ca7d43501a49848e7af5712a7dcd | 3hren__msgpack-rust-282 | Function: MAX_DEPTH
Location: rmpv::decode (public constant)
Inputs: none
Outputs: usize – the default maximum recursion depth used by the decoder; exceeded depth results in `Error::DepthLimitExceeded`.
Description: Defines the hard‑coded limit for nested container depth when decoding MessagePack data. It is consulted ... | rust | MIT | diff --git a/rmpv/src/decode/mod.rs b/rmpv/src/decode/mod.rs
index 35651c3..6f25d2a 100644
--- a/rmpv/src/decode/mod.rs
+++ b/rmpv/src/decode/mod.rs
@@ -7,8 +7,11 @@ use rmp::decode::{MarkerReadError, ValueReadError};
pub mod value;
pub mod value_ref;
-pub use self::value::read_value;
-pub use self::value_ref::read... | fix: add stack depth checking to rmpv
This should resolve #281.
The constant `MAX_DEPTH` came from running `cargo test` on the computer I developed this on. `256` was the largest power of 2 that did not cause a stack overflow, so that seemed good enough. This should allow at least 100 nested structures, if I figure ... | rmpv read_value has no depth limit
I am using `rmpv::decode::read_value` to do some parsing and am running into stack overflows from this crate when fuzz testing my code:
```
# ...snip...
#186 0x103c9be86 in rmpv::decode::value::read_value::h598f53b10a56f428+0x1596 (packet:x86_64+0x100086e86)
#187 0x103ca380b ... | 3Hren/msgpack-rust | diff --git a/rmpv-tests/tests/decode.rs b/rmpv-tests/tests/decode.rs
index d675b07..1f43e16 100644
--- a/rmpv-tests/tests/decode.rs
+++ b/rmpv-tests/tests/decode.rs
@@ -20,6 +20,83 @@ fn test_decode(buf: &[u8], v: Value) {
assert_eq!(v, val1);
}
+// The contract fixes the maximum container nesting depth at 1024... | [
"decode::test_as_ref_reader",
"display_array",
"display_binary",
"display_bool",
"display_ext",
"display_float",
"display_int",
"display_map",
"display_nil",
"display_string",
"fail_bool_from_fixint",
"fail_depth_limit",
"fail_enum_map_mismatch",
"fail_enum_overflow",
"fail_internally_ta... | [] | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"rust"
] | /msgpack-rust | [] | [
"rmpv-tests/tests/decode.rs"
] | [
{
"name": "CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS",
"value": "fallback"
}
] | [] |
aef3db3e4198d06c38bc4b0874e72ed657891eea | 2021-12-20 21:27:38 | docker.io/swerebenchv2/3yourmind-django-migration-linter@sha256:6e86ff38498edd885c6231ca408cf7d401cc3cac993afdf2c41d5032ac521106 | 3yourmind__django-migration-linter-186 | Function: has_create_index(sql_statements, **kwargs)
Location: django_migration_linter/sql_analyser/postgresql.py
Inputs:
- sql_statements (Iterable[str]): list (or any iterable) of SQL statements that belong to a single migration transaction.
- **kwargs: additional keyword arguments passed by the analyser (currently... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d1ec8e5..15fefc0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,8 @@
-## 4.0.0
+## 4.0.0 (unreleased)
- Drop support for Python 2.7 and 3.5
- Drop support for Django 1.11, 2.0, 2.1, 3.0
+- Fix index creation detection when table is being created in the transac... | Fix #178 -- Don't detect an index creation when the table is being created
Fixes #178 | Linter fails on CREATE INDEX when creating a new table
Here is an example `CreateModel` from Django:
```python
migrations.CreateModel(
name='ShipmentMetadataAlert',
fields=[
('deleted_at', models.DateTimeField(blank=True, db_index=True, null=True)),
('created_at', common.fields.CreatedField(def... | 3YOURMIND/django-migration-linter | diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py
index 00dd50e..65ab7f0 100644
--- a/tests/unit/test_sql_analyser.py
+++ b/tests/unit/test_sql_analyser.py
@@ -233,6 +233,23 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase):
sql = "CREATE UNIQUE INDEX title_idx ON films (tit... | [
"tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_non_concurrently_with_table_creation"
] | [
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTe... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /django-migration-linter | [] | [
"tests/unit/test_sql_analyser.py"
] | [] | [] |
3baf9487bde6ae27c3ba7623a410ab6c39bb0584 | 2022-07-09 13:34:11 | docker.io/swerebenchv2/3yourmind-django-migration-linter@sha256:faea106c5ecaa425b49ce867e231bdf602dcbda684d6e34d6c2d4aeb2af3735a | 3yourmind__django-migration-linter-222 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a1b5213..300fe00 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 4.1.1 (unreleased)
+
+- Fixed `RunPython` model import check when using a `through` object like `MyModel.many_to_many.through.objects.filter(...)` (issue #218)
+
## 4.1.0
- Allow configur... | Fix #218 - Handle model 'objects' call with other parts in the name.
Fix #218 | Linter failing when using django 'through'
### through doc
https://docs.djangoproject.com/en/4.0/ref/models/fields/#django.db.models.ManyToManyField.through
### Example code
```
def forwards_func(apps, schema_editor):
Question = apps.get_model("solution", "Question")
...
Question.many_to_may.through.object... | 3YOURMIND/django-migration-linter | diff --git a/tests/functional/test_data_migrations.py b/tests/functional/test_data_migrations.py
index 5478eff..2bb039c 100644
--- a/tests/functional/test_data_migrations.py
+++ b/tests/functional/test_data_migrations.py
@@ -137,7 +137,7 @@ class DataMigrationModelImportTestCase(unittest.TestCase):
def test_not_... | [
"tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_m2m_through_orm_usage"
] | [
"tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_correct_get_model_import",
"tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_correct_one_param_get_model_import",
"tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_mi... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.djangoproject.com/en/4.0/ref/models/fields/... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /django-migration-linter | [] | [
"tests/functional/test_data_migrations.py"
] | [] | [] |
366d16b01a72d0baa54fef55761d846b0f05b8dd | 2023-07-03 18:35:18 | docker.io/swerebenchv2/3yourmind-django-migration-linter@sha256:93a90974d3f8462b212b9083926b053290f0ced08022e95af305185b0d440eae | 3yourmind__django-migration-linter-258 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3069d91..beafd65 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,10 +4,21 @@
Instead, the linter crashes and lets the `sqlmigrate` error raise, in order to avoid letting a problematic migration pass.
One common reason for such an error is the SQL generation which requ... | Don't consider partial index creation as making a column not nullable.
Fixes #250 | Adding an index with a NOT NULL condition incorrectly triggers NOT_NULL rule
Adding an index with a `WHERE` clause including `NOT NULL` gets flagged as a `NOT NULL constraint on columns` error.
## Steps to reproduce
The follow migration operation:
```python
AddIndexConcurrently(
model_name="prediction",
inde... | 3YOURMIND/django-migration-linter | diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py
index d7349fc..012d53c 100644
--- a/tests/unit/test_sql_analyser.py
+++ b/tests/unit/test_sql_analyser.py
@@ -297,6 +297,10 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase):
sql = "CREATE UNIQUE INDEX CONCURRENTLY title_idx ... | [
"tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_concurrently_where"
] | [
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTe... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/3YOURMIND/django-migration-linter/blo... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /django-migration-linter | [] | [
"tests/unit/test_sql_analyser.py"
] | [] | [] |
c2c0d5886af4c696b903fee3e774262bf2afb9e3 | 2025-03-30 16:49:20 | docker.io/swerebenchv2/3yourmind-django-migration-linter@sha256:eb87cdbc3602b68bc021792f22e871576efd2cf6147e7c4d7e88e78c12516ad8 | 3yourmind__django-migration-linter-300 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1f9e2b4..e40ebc3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
## 5.x.y
+Bug:
+- Don't detect an index creation during a transaction with an exclusive lock, when the table is being created (#264)
+
Miscellaneous:
- Add support for Python 3.13
diff --g... | Don't detect an index creation during a transaction with an exclusive lock, when the table is being created
Fix #264
Created from https://github.com/3YOURMIND/django-migration-linter/pull/295 | `CREATE_INDEX` and `CREATE_INDEX_EXCLUSIVE` docs are not helpful
Hi! Thanks for working on this project.
Today I updated to v5 and got some new CI failures.
Here's my migration file: https://github.com/tough-dev-school/python-testing-homework/blob/master/server/apps/identity/migrations/0001_initial.py
It generate thi... | 3YOURMIND/django-migration-linter | diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py
index 6dbce6b..7d1f608 100644
--- a/tests/unit/test_sql_analyser.py
+++ b/tests/unit/test_sql_analyser.py
@@ -1,6 +1,7 @@
from __future__ import annotations
import unittest
+from pathlib import Path
from django_migration_linter.sql_an... | [
"tests/unit/test_sql_analyser.py::DocumentationTestCase::test_create_index_exclusive_docs_explain_concurrently",
"tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_exclusive_with_prior_table_creation"
] | [
"tests/unit/test_sql_analyser.py::DocumentationTestCase::test_create_index_docs_explain_concurrent_guidance",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field",
"tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null",
"tests/unit/test_sql_analyser.py::My... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/tough-dev-school/python-testing-homew... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /django-migration-linter | [] | [
"tests/unit/test_sql_analyser.py"
] | [] | [] |
fbf0f4419336fcb1235fa57f5575ad2593354e44 | 2019-01-21 21:29:34 | docker.io/swerebenchv2/3yourmind-django-migration-linter:47-fbf0f44@sha256:ed30f3c97cdb00acd669ad4ccc2fd8b0c61e80130a897ebee51e09893702f2df | 3yourmind__django-migration-linter-47 | python | Apache-2.0 | diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py
index f9c0ab1..03c2054 100644
--- a/django_migration_linter/migration_linter.py
+++ b/django_migration_linter/migration_linter.py
@@ -20,7 +20,7 @@ from subprocess import Popen, PIPE
import sys
from .cache import ... | Add --version option
Pretty straightforward. Have a `--version` that prints the current version of the linter.
| 3YOURMIND/django-migration-linter | diff --git a/tests/functional/test_cmd_line_call.py b/tests/functional/test_cmd_line_call.py
index a2861fa..a4c98ec 100644
--- a/tests/functional/test_cmd_line_call.py
+++ b/tests/functional/test_cmd_line_call.py
@@ -16,7 +16,7 @@ import os
import shutil
import unittest
from subprocess import Popen, PIPE
-from djang... | [
"tests/functional/test_cmd_line_call.py::VersionOptionLinterFromCommandLineTest::test_call_with_version_option"
] | [
"tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_cache",
"tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_errors",
"tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_i... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e .[test]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /django-migration-linter && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --t... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 5,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/3YOURMIND/django-migration-linter/pull/47"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /django-migration-linter | [] | [
"tests/functional/test_cmd_line_call.py"
] | [] | [] | ||
ac43163453fab1b23434d29f71a3c1b34b251c0a | 2019-04-06 20:23:05 | docker.io/swerebenchv2/4catalyzer-flask-resty:248-ac43163@sha256:fbc4e9eea29010d3de3efc429e212b499cbb2b2ec9bba6bb83b9b112a866a729 | 4catalyzer__flask-resty-248 | python | MIT | diff --git a/.travis.yml b/.travis.yml
index 708e4a9..00ffb59 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,16 +4,21 @@ services:
- postgresql
matrix:
include:
- - { python: "2.7", env: "TOXENV=py-full DATABASE_URL=postgres://localhost/travis_ci_test" }
- - { python: "3.5", env: "TOXENV=py-full DATA... | Support Marshmallow 3
[From here](https://marshmallow.readthedocs.io/en/latest/upgrading.html#schemas-are-always-strict):
> Schema().load and Schema().dump don’t return a (data, errors) tuple any more. Only data is returned.
### Additional contract requirements
- Argument-schema parsing must honor Marshmallow 3’s `da... | 4Catalyzer/flask-resty | diff --git a/tests/test_args.py b/tests/test_args.py
index 827aa4c..b8af204 100644
--- a/tests/test_args.py
+++ b/tests/test_args.py
@@ -13,10 +13,14 @@ def schemas():
name = fields.String(required=True)
class NameListSchema(Schema):
- names = fields.List(fields.String(), load_from='name', requir... | [
"tests/test_args.py::test_caching",
"tests/test_args.py::test_error_get_name_many",
"tests/test_args.py::test_error_get_name_missing",
"tests/test_args.py::test_error_get_names_missing",
"tests/test_args.py::test_get_name_default",
"tests/test_args.py::test_get_name_default_specified",
"tests/test_args.... | [
"tests/test_fields.py::test_dump_many",
"tests/test_fields.py::test_dump_single",
"tests/test_fields.py::test_error_load_many_missing",
"tests/test_fields.py::test_error_load_single_missing"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /flask-resty && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activat... | {
"llm_metadata": null,
"num_modified_files": 6,
"num_modified_lines": 89,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/4Catalyzer/flask-resty/pull/248"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /flask-resty | [] | [
"tests/test_args.py",
"tests/test_fields.py"
] | [] | [] | ||
a89507304acce5931f940c34025a6547fa8227b5 | 2016-04-30 17:21:04 | docker.io/swerebenchv2/4degrees-clique:26-a895073@sha256:fbc9e2ab6d9ec786bbb68359d0e0bd96d2ab0f11dcb6d794168668628e07103c | 4degrees__clique-26 | python | Apache-2.0 | diff --git a/source/clique/collection.py b/source/clique/collection.py
index 0c3b296..db9276c 100644
--- a/source/clique/collection.py
+++ b/source/clique/collection.py
@@ -251,15 +251,25 @@ class Collection(object):
else:
data['padding'] = '%d'
- if self.indexes:
+ if '{holes}' in... | collection.format hits maximum recursion depth for collections with lots of holes.
The following code gives an example.
```python
paths = ["name.{0:04d}.jpg".format(x) for x in range(2000)[::2]]
collection = clique.assemble(paths)[0][0]
collection.format("{head}####{tail}")
```
| 4degrees/clique | diff --git a/test/unit/test_collection.py b/test/unit/test_collection.py
index ce4daa7..11cb01e 100644
--- a/test/unit/test_collection.py
+++ b/test/unit/test_collection.py
@@ -2,6 +2,7 @@
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
+import sys
import inspect
import py... | [
"test/unit/test_collection.py::test_format_sparse_collection"
] | [
"test/unit/test_collection.py::test_change_property[padding-4-^head\\\\.(?P<index>(?P<padding>0*)\\\\d+?)\\\\.tail$-head.0001.tail]",
"test/unit/test_collection.py::test_unsettable_indexes",
"test/unit/test_collection.py::test_str",
"test/unit/test_collection.py::test_repr",
"test/unit/test_collection.py::t... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e ."
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /clique && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --tb=line --color=no -p no... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 21,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/4degrees/clique/pull/26"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /clique | [] | [
"test/unit/test_collection.py"
] | [] | [] | ||
18e0401103d3eb2be534b01ec519cde1c6f11407 | 2020-09-23 12:25:45 | docker.io/swerebenchv2/8398a7-action-slack:111-18e0401@sha256:df7cdea7139462a6175edfa4355101c02fe34cd0e6ff907f087f86a65015d14e | 8398a7__action-slack-111 | Method: With.job_name
Location: src/client.ts
Inputs: None (property of the With interface)
Outputs: string – the explicit job name to use when the job name is overridden. If empty, the action falls back to the GitHub context job name. This field enables the job field to correctly report renamed jobs.
Function: newWit... | ts | MIT | diff --git a/action.yml b/action.yml
index f00ab6d..208b5c5 100644
--- a/action.yml
+++ b/action.yml
@@ -54,6 +54,10 @@ inputs:
description: override the legacy integration's default channel. This should be an ID, such as C8UJ12P4P.
default: ""
required: false
+ job_name:
+ description: Use this if y... | Issue/108
close #108 | “Job is not found. Check the matrix.”
**Describe the bug**
About two weeks ago the job field of our Github Action reports in Slack changed to report “Job is not found. Check the matrix.” The Action configuration has not changed in that time. To our knowledge nothing related to the Github Action or our git workflow or t... | 8398a7/action-slack | diff --git a/__tests__/client.test.ts b/__tests__/client.test.ts
index 6c89dc9..b718b05 100644
--- a/__tests__/client.test.ts
+++ b/__tests__/client.test.ts
@@ -7,6 +7,7 @@ import {
cancelMsg,
getTemplate,
getApiFixture,
+ newWith,
} from './helper';
import {
@@ -37,16 +38,25 @@ describe('8398a7/action-sl... | [
"includes the configured job name in the Slack field",
"not runs in matrix"
] | [
"can be mentioned channel",
"can be mentioned here",
"can be mentioned on always",
"can be mentioned on cancelled",
"can be mentioned on failure",
"can be mentioned on success",
"does not match the requirements of the mention",
"has no mention",
"is cancel",
"is failure",
"is full fields",
"is... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci",
"npm run build"
],
"log_parser": "parse_log_js_4",
"test_cmd": "NO_COLOR=1 npx jest --verbose"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /action-slack | [] | [
"__tests__/client.test.ts",
"__tests__/customJobName.test.ts",
"__tests__/fixtures/actions.custom-job-name.jobs.json",
"__tests__/helper.ts",
"__tests__/incorrectMatrix.test.ts",
"__tests__/matrix.test.ts",
"__tests__/pull_request.test.ts"
] | [] | [] |
945ecb26eaa6a190228d3010c4eda400fb03fe1a | 2020-12-16 10:14:26 | docker.io/swerebenchv2/8398a7-action-slack:120-945ecb2@sha256:ba8cdff41f9ea4a0f7146e702bda78e60d67519b3e10b1180aa03a8916d948db | 8398a7__action-slack-120 | Method: Client.constructor(props: With, token: string, webhookUrl?: string | null) Location: src/client.ts
Inputs:
- **props** – configuration object of type `With` (contains fields like `fields`, `status`, etc.).
- **token** – GitHub token as a non‑empty string.
- **webhookUrl** – optional Slack Incoming Webhook ... | ts | MIT | diff --git a/src/client.ts b/src/client.ts
index 0fe5675..a14e7c3 100644
--- a/src/client.ts
+++ b/src/client.ts
@@ -44,13 +44,13 @@ export class Client {
private octokit: Octokit;
private with: With;
- constructor(props: With, token: string, webhookUrl?: string) {
+ constructor(props: With, token: string, we... | Improve handling of incoming webhook url
close #118 | Validate SLACK_WEBHOOK_URL
**Is your feature request related to a problem? Please describe.**
Say, a user made a typo like:
```
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK.URL }}
```
the value of `SLACK_WEBHOOK_URL` would be `null`. This results in an obscure error like:
```
Cannot read property 'replace' of null
... | 8398a7/action-slack | diff --git a/__tests__/client.test.ts b/__tests__/client.test.ts
index 871b91f..1866cb1 100644
--- a/__tests__/client.test.ts
+++ b/__tests__/client.test.ts
@@ -9,6 +9,7 @@ import {
getApiFixture,
newWith,
githubToken,
+ webhookUrl,
} from './helper';
import {
@@ -38,6 +39,33 @@ describe('8398a7/action-sl... | [
"is returns exception because empty string value",
"is returns exception because null value"
] | [
"can be mentioned channel",
"can be mentioned here",
"can be mentioned on always",
"can be mentioned on cancelled",
"can be mentioned on failure",
"can be mentioned on success",
"does not match the requirements of the mention",
"has no mention",
"is cancel",
"is failure",
"is full fields",
"is... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci",
"npm run build"
],
"log_parser": "parse_log_js_4",
"test_cmd": "NO_COLOR=1 npx jest --verbose"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /action-slack | [] | [
"__tests__/client.test.ts",
"__tests__/customJobName.test.ts",
"__tests__/helper.ts",
"__tests__/incorrectMatrix.test.ts",
"__tests__/matrix.test.ts",
"__tests__/pull_request.test.ts"
] | [] | [] |
9c613f82be50ba1c5d845d3448861aba03da3d0b | 2021-02-18 09:40:34 | docker.io/swerebenchv2/8398a7-action-slack:131-9c613f8@sha256:49e6887664c73e8f5ee38a1add19342f31211c84edc69bc8958f6d930aef4b03 | 8398a7__action-slack-131 | Method: Client.constructor(this, props: With, token: string, gitHubBaseUrl: string, webhookUrl?: string | null)
Location: src/client.ts
Inputs:
- **props** – `With` object containing workflow configuration (status, fields, mention, etc.).
- **token** – GitHub token string used to instantiate Octokit.
- **gitH... | ts | MIT | diff --git a/README.md b/README.md
index 621f2a1..c91200d 100644
--- a/README.md
+++ b/README.md
@@ -48,3 +48,17 @@ steps:
```
<img width="501" alt="custom" src="https://user-images.githubusercontent.com/8043276/85949864-2b3df300-b994-11ea-9388-f4ff1aebc292.png">
+
+## For GitHub Enterprise
+
+```yaml
+steps:
+ - ... | Issue/129
close #129 | Add Support for GitHub Enterprise Instances
Hi, I wanted to use this action on an on premises GitHub Enterprise Server that has it's own url (e.g. https://git.acme.com)
I was hoping it would be possible to add a new input to the `action.yml` to support passing in a url for a Git instance that would default to GitHub.c... | 8398a7/action-slack | diff --git a/__tests__/client.test.ts b/__tests__/client.test.ts
index 7332d97..a4d00f5 100644
--- a/__tests__/client.test.ts
+++ b/__tests__/client.test.ts
@@ -1,4 +1,6 @@
import nock from 'nock';
+import { readFileSync } from 'fs';
+import { resolve } from 'path';
import {
setupNockCommit,
setupNockJobs,
@@ -... | [
"declares the github_base_url input",
"uses the supplied GitHub instance URL for all five field links"
] | [
"can be mentioned channel",
"can be mentioned here",
"can be mentioned on always",
"can be mentioned on cancelled",
"can be mentioned on failure",
"can be mentioned on success",
"defaults all five field links to github.com when the input is empty",
"does not match the requirements of the mention",
"... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci",
"npm run build"
],
"log_parser": "parse_log_js_4",
"test_cmd": "NO_COLOR=1 npx jest --verbose"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/8398a7/action-slack/blob/9c613f82be... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /action-slack | [] | [
"__tests__/client.test.ts",
"__tests__/customJobName.test.ts",
"__tests__/helper.ts",
"__tests__/incorrectMatrix.test.ts",
"__tests__/matrix.test.ts",
"__tests__/pull_request.test.ts"
] | [] | [] |
538f8cb439033b19c5bb2d4bcbbea9c41dbbb1c4 | 2022-01-07 16:20:00 | docker.io/swerebenchv2/8398a7-action-slack:184-538f8cb@sha256:15c7227ccfb1b442943cb9584106f81e6494f068cff02fb3b6c9c47f908acaa4 | 8398a7__action-slack-184 | Method: Client.prepare(this, initial?: string)
Location: src/client.ts
Inputs: Optional string used as initial message or context (can be empty string). No other parameters; uses the Client instance’s configuration (With, token, base URL, webhook URL).
Outputs: Promise<{ text: string; attachments: Array<{ auth... | ts | MIT | diff --git a/src/fields.ts b/src/fields.ts
index d6bbdc6..3712388 100644
--- a/src/fields.ts
+++ b/src/fields.ts
@@ -108,7 +108,9 @@ export class FieldFactory {
repo: context.repo.repo,
run_id: context.runId,
});
- const currentJob = resp?.data.jobs.find(job => job.name === this.jobName);
+ con... | Check reusable workflow's job name pattern
Close #183.
This PR changes job detection for `job` and `took` in `FieldFactory`.
In addition to the original exact match, It also checks if the job name matches with the pattern of reusable workflow's job name (`*** / ${this.jobName}`). | Auto detect the job in reusable workflow
**Is your feature request related to a problem? Please describe.**
In reusable workflow, action-slack cannot find job from [job list of current run](https://github.com/8398a7/action-slack/blob/v3.12.0/src/fields.ts#L141-L145). So field `job` and `took` are not available.
![imag... | 8398a7/action-slack | diff --git a/__tests__/fixtures/actions.reusable-workflow-job-name.jobs.json b/__tests__/fixtures/actions.reusable-workflow-job-name.jobs.json
new file mode 100644
index 0000000..611f04e
--- /dev/null
+++ b/__tests__/fixtures/actions.reusable-workflow-job-name.jobs.json
@@ -0,0 +1,30 @@
+{
+ "total_count": 1,
+ "jobs... | [
"works even if the job is in reusable workflow"
] | [
"can be mentioned channel",
"can be mentioned here",
"can be mentioned on always",
"can be mentioned on cancelled",
"can be mentioned on failure",
"can be mentioned on success",
"does not match the requirements of the mention",
"has no mention",
"is cancel",
"is failure",
"is full fields",
"is... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci",
"npm run build"
],
"log_parser": "parse_log_js_4",
"test_cmd": "NO_COLOR=1 npx jest --verbose"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/8398a7/action-slack/blob/v3.12.0/src/... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /action-slack | [] | [
"__tests__/fixtures/actions.reusable-workflow-job-name.jobs.json",
"__tests__/reusableWorkflowJobName.test.ts"
] | [] | [] |
99d5e91572822c3edddb2d8a10970140cbe992f0 | 2023-03-20 06:09:58 | docker.io/swerebenchv2/99designs-aws-vault:1196-99d5e91@sha256:7745bcddef4119a058efadb9c4f10e67c0cde4e132c2a05a522f8b008df4f333 | 99designs__aws-vault-1196 | Method: ConfigLoader.GetProfileConfig(self, profileName string)
Location: vault/config_loader.go (method of type *ConfigLoader)
Inputs: profileName – name of the profile to resolve; uses the loader’s File (parsed config) and ActiveProfile fields. Returns the resolved *ProfileConfig and an error if the profile cannot ... | go | MIT | diff --git a/vault/vault.go b/vault/vault.go
index 9f3d4a6..9fd27fe 100644
--- a/vault/vault.go
+++ b/vault/vault.go
@@ -41,6 +41,11 @@ func FormatKeyForDisplay(k string) string {
return fmt.Sprintf("****************%s", k[len(k)-4:])
}
+func isMasterCredentialsProvider(credsProvider aws.CredentialsProvider) bool ... | Prioritise source_profile over sso config
Prioritise the `source_profile` over sso config.
Fixes #1195 | source_profile is not working correctly.
- [v] I am using the latest release of AWS Vault
- [v] I have provided my `.aws/config` (redacted if necessary)
- [v] I have provided the debug output using `aws-vault --debug` (redacted if necessary)
It seems that the `source_profile` option is not working in 7.1.2-Homebrew ve... | 99designs/aws-vault | diff --git a/vault/vault_test.go b/vault/vault_test.go
new file mode 100644
index 0000000..0f3b6b9
--- /dev/null
+++ b/vault/vault_test.go
@@ -0,0 +1,174 @@
+package vault_test
+
+import (
+ "os"
+ "testing"
+
+ "github.com/99designs/aws-vault/v7/vault"
+ "github.com/99designs/keyring"
+)
+
+func TestIssue1195(t *testi... | [
"TestIssue1195"
] | [
"ExampleAddCommand",
"TestAddProfileToExistingConfig",
"TestAddProfileToExistingNestedConfig",
"TestConfigParsingDefault",
"TestConfigParsingProfiles",
"TestConfigParsingProfiles/profile_nopenotthere",
"TestConfigParsingProfiles/profile_user2",
"TestConfigParsingProfiles/profile_withMFA",
"TestConfi... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://xxxx.awsapps.com/start"
],
"intent_com... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /aws-vault | [] | [
"vault/vault_test.go"
] | [] | [] |
8a679cf21c5f74b7d9e967aa6ada2f9b543ba8cd | 2020-11-04 09:24:10 | docker.io/swerebenchv2/99designs-aws-vault:685-8a679cf@sha256:a56d332f108d266e6c4088df18bc4aae029e1a165d571beb6747ab4c8739f66b | 99designs__aws-vault-685 | Method: Config.SetSessionTags(self, s string) error
Location: vault/config.go
Inputs: a comma‑separated string of the form “key=value[,key=value...]”. Whitespace around keys and values is trimmed. Returns an error if any entry does not contain exactly one ‘=’.
Outputs: populates the Config.SessionTags map with the pars... | go | MIT | diff --git a/USAGE.md b/USAGE.md
index 1f6fc37..7910c8b 100644
--- a/USAGE.md
+++ b/USAGE.md
@@ -102,6 +102,21 @@ include_profile = root
role_arn=arn:aws:iam::123456789:role/administrators
```
+#### `session_tags` and `transitive_session_tags`
+
+It is possible to set [session tags](https://docs.aws.amazon.com/IAM/... | STS AssumeRole Session Tags implementation
This PR is trying to resolve #684 and implements the way to set Session Tags and Transitive Session Tags when `AssumeRole()` provider is used.
- Two new profile configuration parameters are introduced: `session_tags` and `transitive_session_tags`
- Two new environment vari... | Feature: add support for STS Session Tags when assuming roles
Our company is using aws-vault in our devops workflows and we would like to implement an ABAC authorisation strategy against some resources.
It would be great if aws-vault supported IAM Session Tags [when `AssumeRole()` is used](https://docs.aws.amazon.com/... | 99designs/aws-vault | diff --git a/vault/config_test.go b/vault/config_test.go
index 5db86c1..4d8af7e 100644
--- a/vault/config_test.go
+++ b/vault/config_test.go
@@ -4,11 +4,19 @@ import (
"bytes"
"fmt"
"io/ioutil"
+ "net/http"
+ "net/http/httptest"
+ "net/url"
"os"
"reflect"
+ "sort"
"testing"
"github.com/99designs/aws-vau... | [
"TestSessionTagsForEachChainedRoleReachAssumeRole",
"TestSessionTagsFromEnvironmentReachAssumeRole",
"TestSessionTagsFromProfileReachAssumeRole"
] | [
"ExampleAddCommand",
"TestAddProfileToExistingConfig",
"TestAddProfileToExistingNestedConfig",
"TestConfigParsingDefault",
"TestConfigParsingProfiles",
"TestConfigParsingProfiles/profile_nopenotthere",
"TestConfigParsingProfiles/profile_user2",
"TestConfigParsingProfiles/profile_withMFA",
"TestConfi... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_se... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /aws-vault | [] | [
"vault/config_test.go"
] | [] | [] |
4157ef997ff03647fe4ff9ede27b505fc098932f | 2024-09-14 22:09:52 | docker.io/swerebenchv2/99designs-gqlgen:3276-4157ef9@sha256:3d75183879487f78a4a7e250b641e9d632acd1971a4c7122edae9007d2b4093d | 99designs__gqlgen-3276 | No new interfaces are introduced. | go | MIT | diff --git a/graphql/handler/transport/http_post.go b/graphql/handler/transport/http_post.go
index 085f60a9..985f8db2 100644
--- a/graphql/handler/transport/http_post.go
+++ b/graphql/handler/transport/http_post.go
@@ -27,10 +27,6 @@ func (h POST) Supports(r *http.Request) bool {
return false
}
- if strings.Cont... | Accept event-stream for POST for urql-graphql
Fix #3275
There was an attempt to support SSE, but it broke HTTP POST.
#3153 added the following to the HTTP POST transport:
https://github.com/99designs/gqlgen/blob/4157ef997ff03647fe4ff9ede27b505fc098932f/graphql/handler/transport/http_post.go#L30-L32
From a g... | Getting "transport not supported" errors after updating to v0.17.50
Hi. We recently upgraded from `v0.17.49` to `v0.17.50`, and all requests (queries/mutations) started failing with an error "transport not supported".
After some digging, I discovered the cause. #3153 added the following to the HTTP POST transport:
... | 99designs/gqlgen | diff --git a/graphql/handler/transport/http_post_test.go b/graphql/handler/transport/http_post_test.go
index 28095d85..3a98b7d7 100644
--- a/graphql/handler/transport/http_post_test.go
+++ b/graphql/handler/transport/http_post_test.go
@@ -1,6 +1,7 @@
package transport_test
import (
+ "bufio"
"fmt"
"net/http"
... | [
"TestPOST",
"TestPOST/mutation_with_SSE_in_Accept",
"TestPOST/validate_SSE"
] | [
"TestBytesRead",
"TestBytesRead/fail_to_read_if_pointer_is_nil",
"TestBytesRead/read_updated_pointer_value",
"TestBytesRead/read_using_buffer",
"TestBytesRead/read_using_buffer_multiple_times",
"TestBytesRead/test_concurrency",
"TestFileUpload",
"TestFileUpload/fail_map_entry_with_invalid_operations_p... | {
"base_image_name": "go_1.23.8",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.23.0",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/99designs/gqlgen/blob/4157ef997ff0364... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /gqlgen | [] | [
"graphql/handler/transport/http_post_test.go"
] | [] | [] |
9ecbc32cf558e5358032dca9d0befbd64805f1d6 | 2025-03-22 23:23:46 | docker.io/swerebenchv2/a-h-templ:1107-9ecbc32@sha256:e9577c0330d45f1c56ec1c5c75204982a8b9ab8a7a364f3f5112977b3d7e60ea | a-h__templ-1107 | No new interfaces are introduced. | go | MIT | diff --git a/.gitignore b/.gitignore
index 0420c67..8318e77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,8 @@ result
# Editors
## nvim
.null-ls*
+# vscode
+.vscode/
# Go workspace.
go.work
diff --git a/parser/v2/fuzz.sh b/parser/v2/fuzz.sh
index cee8f72..c74517c 100755
--- a/parser/v2/fuzz.sh
+++ b/pars... | fix: incorrect parsing of HTML within JavaScript strings, fixes #1106 | Generation gets stuck after update
After updating to [v0.3.850](https://github.com/a-h/templ/releases/tag/v0.3.850) `templ generate` would get stuck after generating a specific template. This happens both locally and in GitHub Actions. I've updated `go.mod` to the latest release as well.
Here's a sample verbose output... | a-h/templ | diff --git a/parser/v2/scriptparser_test.go b/parser/v2/scriptparser_test.go
index 2082589..7f3263b 100644
--- a/parser/v2/scriptparser_test.go
+++ b/parser/v2/scriptparser_test.go
@@ -1,7 +1,12 @@
package parser
import (
+ "context"
+ "os"
+ "os/exec"
+ "path/filepath"
"testing"
+ "time"
"github.com/a-h/pars... | [
"TestGenerateCompletesWithHTMLInJSString"
] | [
"FuzzElement",
"FuzzElement/seed#0",
"FuzzElement/seed#1",
"FuzzElement/seed#2",
"FuzzElement/seed#3",
"FuzzElement/seed#4",
"Test",
"TestAttributeParser",
"TestAttributeParser/HTMX_wildcard_attribute_names_are_supported",
"TestAttributeParser/attribute_containing_escaped_text",
"TestAttributePa... | {
"base_image_name": "go_1.23.8",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.23.6",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/a-h/templ/releases/tag/v0.3.850",
... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /templ | [] | [
"parser/v2/scriptparser_test.go"
] | [] | [] |
65c2618c1695e50bc9186db1f81ca796c102e169 | 2024-08-03 03:14:28 | docker.io/swerebenchv2/a-h-templ:871-65c2618@sha256:4dc1e9710d630db6ae1cc827cea480335b3e2e3967f42e5dbdb7c437cff31c94 | a-h__templ-871 | No new interfaces are introduced. | go | MIT | diff --git a/.version b/.version
index 5cc385c..1148158 100644
--- a/.version
+++ b/.version
@@ -1,1 +1,1 @@
-0.2.759
\ No newline at end of file
+0.2.763
\ No newline at end of file
diff --git a/parser/v2/goexpression/parse.go b/parser/v2/goexpression/parse.go
index 77c413c..22e2db1 100644
--- a/parser/v2/goexpression... | fix: advance past comments in raw go expressions
Fixes #870
When looking into the internal go/scanner package, I found the final comments are skipped. It works by scanning til the end of a comment, then a goto to the beginning of the Scan function if the mode is not set to ScanComments. If the scanner encounters th... | Raw go errors if block ends with a comment
**Describe the bug**
Comments in the middle of a raw code block is fine, but a comment at the end will cause an error when generating templates
**To Reproduce**
```templ
// example.templ
package bingo
templ innerDataPatient() {
{{
one := "one"
two := "tw... | a-h/templ | diff --git a/parser/v2/gocodeparser_test.go b/parser/v2/gocodeparser_test.go
index dff1443..8475491 100644
--- a/parser/v2/gocodeparser_test.go
+++ b/parser/v2/gocodeparser_test.go
@@ -115,4 +115,22 @@ func TestGoCodeParser(t *testing.T) {
}
})
}
+ // A terminal comment in a raw Go block must not prevent the e... | [
"TestGoCodeParser",
"TestGoCodeParser/template_accepts_terminal_raw_Go_comment"
] | [
"Test",
"TestAttributeParser",
"TestAttributeParser/HTMX_wildcard_attribute_names_are_supported",
"TestAttributeParser/attribute_containing_escaped_text",
"TestAttributeParser/attribute_name_with_hyphens",
"TestAttributeParser/attribute_parsing_handles_boolean_expression_attributes",
"TestAttributeParse... | {
"base_image_name": "go_1.23.8",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.23.6",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /templ | [] | [
"parser/v2/gocodeparser_test.go"
] | [] | [] |
4c14ab057e179ef0b160bfe1a399a261f4d79399 | 2024-08-17 14:52:33 | docker.io/swerebenchv2/a-h-templ:887-4c14ab0@sha256:4c8e7593ee985239b8d36d0f9df4be6988c7387646e12066017292bd1a0d32a9 | a-h__templ-887 | Function: voidElementCloserParser.Parse(pi *parse.Input) (Node, bool, error)
Location: parser/v2/elementparser.go – defined as method on type voidElementCloserParser.
Inputs:
- pi *parse.Input – the parsing input stream positioned at the start of a potential void‑element closing tag (e.g., </br>, </img>, etc.).
Outputs... | go | MIT | diff --git a/parser/v2/diagnostics.go b/parser/v2/diagnostics.go
index a8ee5e9..8f36653 100644
--- a/parser/v2/diagnostics.go
+++ b/parser/v2/diagnostics.go
@@ -2,7 +2,6 @@ package parser
import (
"errors"
- "fmt"
)
type diagnoser func(Node) ([]Diagnostic, error)
@@ -35,7 +34,6 @@ func walkNodes(t []Node, f fu... | refactor: improve void element parsing perf, fixes #886 and #857
This PR changes the behaviour of templ's void element handling.
Previously, you could do `<input>Text</input>` and templ would allow it, despite it not being valid HTML. The LSP would emit a warning, but it would render.
However, this caused a perfo... | performance: templ parse takes a long time and uses high CPU when unclosed void elements are used
**Describe the bug**
With the code I show here templ takes VERY long to compile, about 29 seconds. If I add more cases to the switch case it takes even longer, to the point where it is completey unusable and locked.
If I ... | a-h/templ | diff --git a/generator/test-html/template.templ b/generator/test-html/template.templ
index 8afe58f..4f338ca 100644
--- a/generator/test-html/template.templ
+++ b/generator/test-html/template.templ
@@ -10,5 +10,5 @@ templ render(p person) {
<hr noshade?={ true }/>
<hr optionA optionB?={ true } optionC="other" option... | [
"TestParseManyUnclosedVoidElementsDoesNotLockUp"
] | [
"Test",
"TestAttributeParser",
"TestAttributeParser/HTMX_wildcard_attribute_names_are_supported",
"TestAttributeParser/attribute_containing_escaped_text",
"TestAttributeParser/attribute_name_with_hyphens",
"TestAttributeParser/attribute_parsing_handles_boolean_expression_attributes",
"TestAttributeParse... | {
"base_image_name": "go_1.23.8",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.23.6",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/s00500/templ-switchcaseissue"
]... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /templ | [] | [
"generator/test-html/template.templ",
"generator/test-html/template_templ.go",
"parser/v2/benchmarks_test.go",
"parser/v2/benchmarktestdata/benchmark.txt",
"parser/v2/diagnostics_test.go",
"parser/v2/elementparser_test.go",
"parser/v2/formattestdata/void_elements_are_converted_to_self_closing_elements.t... | [] | [] |
faa65b7875c1eee5fa902d81138782b6f1d00232 | 2023-05-30 21:26:28 | docker.io/swerebenchv2/a-scie-jump:106-faa65b7@sha256:1e5d61cb6d2513f89b0c3fe17588def79abf3b545d352f8878e7980b0ab49d13 | a-scie__jump-106 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/CHANGES.md b/CHANGES.md
index 33b7373..1cd63db 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,5 +1,10 @@
# Release Notes
+## 0.11.1
+
+This release fixes a bug handling environment variable removal via regex when the environment
+contains non-utf8 entries.
+
## 0.11.0
Support is added for `{scie.env... | Fix regex env removal vs. non-utf8 env entries.
Previously the scie-jump boot would crash when a manifest requested
regex removals and the ambient environment contained non-utf8 entries.
Fixes #105 | Env var removal via regex blows up when the env contains non-utf8 env vars or values
The issue is here:
https://github.com/a-scie/jump/blob/faa65b7875c1eee5fa902d81138782b6f1d00232/jump/src/process.rs#L65-L66
The `env::vars()` call effectively asserts that the env will be fully utf8 decodable. Instead [HIDDEN].
### A... | a-scie/jump | diff --git a/examples/python/test.sh b/examples/python/test.sh
index 96e07d8..92ae38d 100644
--- a/examples/python/test.sh
+++ b/examples/python/test.sh
@@ -5,6 +5,8 @@
source "${COMMON}"
trap gc EXIT
+check_cmd env
+
"${SCIE_JUMP}" "${LIFT}"
gc "${PWD}/pants" "${PWD}/.pants.d" "${PWD}/.pids"
@@ -45,3 +47,22 @@... | [
"process::tests::to_env_vars",
"process::tests::to_env_vars_empty",
"process::tests::to_env_vars_non_utf8"
] | [
"cmd_env::tests::multi_step_recurse",
"cmd_env::tests::parse_env_placeholder",
"cmd_env::tests::self_recurse",
"cmd_env::tests::test_dynamic_env_var_default",
"cmd_env::tests::test_dynamic_env_var_name",
"cmd_env::tests::test_excessively_dynamic_env",
"cmd_env::tests::test_ignored_placeholders",
"conf... | {
"base_image_name": "rust_1.77",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": "1.74.1",
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/a-scie/jump/blob/faa65b7875c1eee5fa... | [
"swe-rebench",
"swe-rebench-v2.1",
"rust"
] | /jump | [] | [
"examples/python/test.sh"
] | [
{
"name": "CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS",
"value": "fallback"
},
{
"name": "RUST_TEST_THREADS",
"value": "1"
}
] | [] |
ec129291c7a214f7a99d73fb678905c5d402bbfd | 2023-03-23 20:03:06 | docker.io/swerebenchv2/aallam-openai-kotlin:127-ec12929@sha256:c0814b0c7b7ca21732be95ede9f45edc2e1304939afe90055e3e49b0c90f2ebe | aallam__openai-kotlin-127 | Method: Audio.transcription(request: TranscriptionRequest): Transcription
Location: com.aallam.openai.client.Audio
Inputs: request – a TranscriptionRequest containing the audio file, model id, optional prompt, temperature, language, and the new optional responseFormat (“text”, “json”, “verbose_json”, etc.).
Outputs: Tr... | kotlin | MIT | diff --git a/openai-client/src/commonMain/kotlin/com.aallam.openai.client/Audio.kt b/openai-client/src/commonMain/kotlin/com.aallam.openai.client/Audio.kt
index 75fddea2..1ad830bb 100644
--- a/openai-client/src/commonMain/kotlin/com.aallam.openai.client/Audio.kt
+++ b/openai-client/src/commonMain/kotlin/com.aallam.open... | | Q | A
| ----------------- | ----------
| Bug fix? | no
| New feature? | yes <!-- please update the /CHANGELOG.md file -->
| BC breaks? | no
| Related Issue | Fix #124
## Describe your change
Add support of other audio formats (e.g. verbose_json, text) | TranscriptionRequest responseFormat always text
Hi, as I understand we can request a responseFormat from TranscriptionRequest . But whether I use json, or verbose_json transcription.text is always int text format. I can see json respone in the body when I enable logging
Question is how to get json formatted version o... | aallam/openai-kotlin | diff --git a/openai-client/src/commonTest/kotlin/com/aallam/openai/client/TestAudio.kt b/openai-client/src/commonTest/kotlin/com/aallam/openai/client/TestAudio.kt
index 92327ca..6f4695b 100644
--- a/openai-client/src/commonTest/kotlin/com/aallam/openai/client/TestAudio.kt
+++ b/openai-client/src/commonTest/kotlin/com/a... | [
"com.aallam.openai.client.TestAudio[jvm] > transcriptionJsonVerbose[jvm]",
"com.aallam.openai.client.TestAudio[jvm] > transcriptionSubtitleFormats[jvm]",
"com.aallam.openai.client.TestAudio[jvm] > transcriptionText[jvm]",
"com.aallam.openai.client.TestAudio[jvm] > transcription[jvm]",
"com.aallam.openai.cli... | [] | {
"base_image_name": "kotlin-jdk-21",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aallam/sample-data/raw/main/openai/... | [
"swe-rebench",
"swe-rebench-v2.1",
"kotlin"
] | /openai-kotlin | [
{
"name": "_JAVA_OPTIONS",
"value": ""
}
] | [
"openai-client/src/commonTest/kotlin/com/aallam/openai/client/TestAudio.kt"
] | [] | [] |
e3d6cbbc6dcd049477b3c9c093c46157ce2bdf7e | 2024-07-25 06:04:03 | docker.io/swerebenchv2/aantron-lambdasoup:57-e3d6cbb@sha256:689a2f0d576f0df8014290a4eb66daaf5e8acb155a744527b74c1e43cb866532 | aantron__lambdasoup-57 | No new interfaces are introduced. | ocaml | MIT | diff --git a/src/soup.ml b/src/soup.ml
index c2e6b23..d7cb94e 100644
--- a/src/soup.ml
+++ b/src/soup.ml
@@ -598,6 +598,7 @@ struct
| Content s -> texts node |> String.concat "" |> has_substring s
| Has selector ->
descendants node
+ |> filter (fun descendant -> not (is_text descendant))
|>... | Fix the usage of type selector in :has()
The current implementation of `:has()` selector does not exclude text nodes while selecting elements.
Subsequently, during the parsing, these text nodes end up being passed to function `name node`, which throws an error because it expects only element nodes.
As a result, c... |
### Additional contract requirements
- When selecting from the list document, `ul:has(.even)` must match 1 element, `:has(ul)` must match 2 elements, and `:has(caption)` must match 0 elements.
- When selecting from the list document, `ul:has(.even)` must match 1 element, `:has(ul)` must match 2 elements, and `:has... | aantron/lambdasoup | diff --git a/test/test.ml b/test/test.ml
index d7c0ae0..8dedbb5 100644
--- a/test/test.ml
+++ b/test/test.ml
@@ -47,7 +47,7 @@ let suites = [
("parse-select-list" >:: fun _ ->
let soup = page "list" |> parse in
let test selector expected_count =
- assert_equal ~msg:selector
+ assert_equ... | [
"test.exe"
] | [
"ocamlc.opt"
] | {
"base_image_name": "ocaml_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "insufficient",
"pr_categories... | [
"swe-rebench",
"swe-rebench-v2.1",
"ocaml"
] | /lambdasoup | [] | [
"test/test.ml"
] | [] | [] |
bb6a7fffb2a520272fcb5d7129957ce22484ff77 | 2023-04-19 20:33:34 | docker.io/swerebenchv2/aarhus-psychiatry-research-timeseriesflattener:186-bb6a7ff@sha256:4abe489daa7de1ffb08670be47e8f9d83c0db10b96f07f9f21ab90372efdcbcc | aarhus-psychiatry-research__timeseriesflattener-186 | python | MIT | diff --git a/.github/workflows/static_type_checks.yml b/.github/workflows/static_type_checks.yml
index abf1bb5..620427d 100644
--- a/.github/workflows/static_type_checks.yml
+++ b/.github/workflows/static_type_checks.yml
@@ -32,7 +32,7 @@ jobs:
uses: actions/setup-python@v4
id: setup_python
w... | fix: change type hints in specs to allow for floats in interval_days
Currenty, float inputs to interval_days args in predictor and outcome specs are coerced into integers. Thus, it is not possible to generate predictors/outcomes with non-integer lookbehind/ahead windows.
- [ ] Add test
| Aarhus-Psychiatry-Research/timeseriesflattener | diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml
index 9567555..abe4801 100644
--- a/.github/actions/test/action.yml
+++ b/.github/actions/test/action.yml
@@ -10,32 +10,26 @@ runs:
using: "composite"
steps:
### Setup prerequisites
- - name: Cache venv
+ - name: Cache tox
... | [
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_lookahead_days_handles_floats",
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_lookbehind_days_handles_floats"
] | [
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_anyspec_incorrect_values_loader_str",
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_anyspec_init",
"tests/test_timeseriesflattener/test_feature_spec_objects.py::test_create_combinations_while_resolving_from_registry",
"tes... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e ."
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /timeseriesflattener && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda acti... | {
"llm_metadata": null,
"num_modified_files": 4,
"num_modified_lines": 87,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener/pull/186"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /timeseriesflattener | [] | [
".github/actions/test/action.yml",
"tests/test_timeseriesflattener/test_feature_spec_objects.py"
] | [] | [] | ||
0f21608e4c3743545c6aadb844493c47e895fc20 | 2024-01-18 10:44:13 | docker.io/swerebenchv2/aarhus-psychiatry-research-timeseriesflattener:337-0f21608@sha256:6f14f2030fdba150af1b2dc516da75e14a41413c6351b6579b979ff08d013adc | aarhus-psychiatry-research__timeseriesflattener-337 | python | MIT | diff --git a/docs/tutorials/01_basic.ipynb b/docs/tutorials/01_basic.ipynb
index 9bdd35d..a354fae 100644
--- a/docs/tutorials/01_basic.ipynb
+++ b/docs/tutorials/01_basic.ipynb
@@ -52,6 +52,15 @@
"execution_count": 1,
"metadata": {},
"outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",... | feat: add option to specify time range in predictions
Creating features in bins of e.g. 0-7, 7-30, 30-90, 90-365, 365-... days from prediction time instead of always going from 0-n as we do now, could potentially keep more temporal information and create better predictors.
### Additional contract requirements
A tempor... | Aarhus-Psychiatry-Research/timeseriesflattener | diff --git a/src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py b/src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py
index a12b34b..6b3b2bb 100644
--- a/src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_datas... | [
"src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py::test_outcome_interval_lookperiod_inside",
"src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py::test_outcome_with_interval_lookperiod_outside",
"src/timeseriesflattener... | [
"src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py::test_aggregation_fn_to_str",
"src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py::test_create_combinations_outcome_specs",
"src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_s... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e ."
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /timeseriesflattener && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda acti... | {
"llm_metadata": null,
"num_modified_files": 5,
"num_modified_lines": 787,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener/pull/337"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /timeseriesflattener | [] | [
"src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py",
"src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_dataset/test_errors.py"
] | [] | [] | ||
734c38b5e8fda8c5643ad389c00a734aeab82900 | 2022-12-08 14:52:59 | docker.io/swerebenchv2/aarhus-psychiatry-research-timeseriesflattener:62-734c38b@sha256:8fc77ce047fb702e2a97dbafba6427cf0f1983e3bafa7fee60103dacc536edad | aarhus-psychiatry-research__timeseriesflattener-62 | python | MIT | diff --git a/src/timeseriesflattener/feature_spec_objects.py b/src/timeseriesflattener/feature_spec_objects.py
index b498393..a1726bf 100644
--- a/src/timeseriesflattener/feature_spec_objects.py
+++ b/src/timeseriesflattener/feature_spec_objects.py
@@ -232,9 +232,6 @@ class TemporalSpec(AnySpec):
id_col_name: str ... | fix: remove hardcoded timestamp names
| Aarhus-Psychiatry-Research/timeseriesflattener | diff --git a/tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py b/tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py
index 7eea49e..11c9d23 100644
--- a/tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py
+++ b/tests/test_timeseriesfl... | [
"tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py::test_drop_pred_time_if_insufficient_look_distance",
"tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py::test_non_default_timestamp_is_used_for_temporal_value_resolution"
] | [
"tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py::test_add_spec",
"tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py::test_compute_specs"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /timeseriesflattener && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --tb=lin... | {
"llm_metadata": null,
"num_modified_files": 2,
"num_modified_lines": 128,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener/pull/62"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /timeseriesflattener | [] | [
"tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py"
] | [] | [] | ||
06ffba57f9460ff577eada5ad3fe2558593be4b9 | 2022-10-09 16:58:34 | docker.io/swerebenchv2/aaugustin-websockets@sha256:a4c871777e21009fe401914794b9a06df53268b54904a38b27d2d6bb9979b06a | aaugustin__websockets-1241 | Method: WebSocketServer.close(self, close_connections: bool = True) -> None
Location: src/websockets/legacy/server.py (class WebSocketServer)
Inputs:
- **close_connections** (bool, optional): When True (default) the server closes all existing connections with Close code 1001 (“going away”) and rejects new connections ... | python | BSD-3-Clause | diff --git a/docs/faq/server.rst b/docs/faq/server.rst
index 68490d7..22a9d3a 100644
--- a/docs/faq/server.rst
+++ b/docs/faq/server.rst
@@ -260,6 +260,21 @@ Here's an example that terminates cleanly when it receives SIGTERM on Unix:
.. literalinclude:: ../../example/shutdown_server.py
:emphasize-lines: 12-15,18
... | Add option keep connections open when closing server.
Fix #1174. | Stop listening for new connections for graceful stopping of server
Hello,
We're busy moving from tornado to websockets, and it looks like we can do almost everything, but much simpler. Great!
There is one thing I can't seem to get going: make the server stop listening for new connections, but keep current connection... | aaugustin/websockets | diff --git a/tests/legacy/test_client_server.py b/tests/legacy/test_client_server.py
index d02daed..7088505 100644
--- a/tests/legacy/test_client_server.py
+++ b/tests/legacy/test_client_server.py
@@ -407,8 +407,10 @@ class CommonClientServerTests:
wsuri = parse_uri(uri)
# Change host and port to in... | [
"tests/legacy/test_client_server.py::ClientServerTests::test_server_shuts_down_gracefully_during_connection_handling",
"tests/legacy/test_client_server.py::ClientServerTests::test_server_shuts_down_gracefully_rejects_new_connections",
"tests/legacy/test_client_server.py::ClientServerTests::test_server_shuts_dow... | [
"tests/legacy/test_client_server.py::AsyncAwaitTests::test_client",
"tests/legacy/test_client_server.py::AsyncAwaitTests::test_server",
"tests/legacy/test_client_server.py::AsyncIteratorTests::test_iterate_on_messages",
"tests/legacy/test_client_server.py::AsyncIteratorTests::test_iterate_on_messages_going_aw... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/legacy/test_client_server.py"
] | [] | [] |
68371dd26ed08cc7839987ca5c77e9e03248ca58 | 2018-05-24 20:31:18 | docker.io/swerebenchv2/aaugustin-websockets@sha256:596f5976915fb0b9659d2f07235d5b8db68036a6a88c7ea6d3f6a80851bfa39e | aaugustin__websockets-413 | Function: serve(ws_handler, host=None, port=None, *, create_server=None, reuse_address=None, reuse_port=None, ssl=None, loop=None, **kwargs)
Location: websockets/server.py (function serve)
Inputs:
- **ws_handler** – a coroutine function that processes each client connection.
- **host** – str or None, network interfa... | python | BSD-3-Clause | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 5399d4b..7712e38 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -8,6 +8,8 @@ Changelog
*In development*
+* Added compatibility with Python 3.7.
+
5.0
...
@@ -137,6 +139,8 @@ Also:
3.3
...
+* Ensured compatibility with Python 3.6.
+
* ... | Add support for Python 3.7.
Hopefully for real this time.
This is annoyingly complicated.
Fix #405. | Add support for Python 3.7
Add it to the testing matrix when it's supported on CircleCI... For now I'm removing that change from #404.
| aaugustin/websockets | diff --git a/websockets/py35/_test_client_server.py b/websockets/py35/_test_client_server.py
index 4375248..5360d8d 100644
--- a/websockets/py35/_test_client_server.py
+++ b/websockets/py35/_test_client_server.py
@@ -13,6 +13,43 @@ from ..server import *
from ..test_client_server import get_server_uri, handler
+cl... | [
"websockets/py35/_test_client_server.py::AsyncAwaitTests::test_client",
"websockets/py35/_test_client_server.py::AsyncAwaitTests::test_server",
"websockets/py35/_test_client_server.py::ContextManagerTests::test_client",
"websockets/py35/_test_client_server.py::ContextManagerTests::test_server",
"websockets/... | [
"websockets/test_client_server.py::ClientServerTests::test_compression_unsupported_server",
"websockets/test_client_server.py::SSLClientServerTests::test_compression_unsupported_server"
] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"websockets/py35/_test_client_server.py",
"websockets/test_client_server.py"
] | [] | [] |
638df3ac16669ecc711cb585c0e50bab55d8f89f | 2018-09-01 17:06:43 | docker.io/swerebenchv2/aaugustin-websockets@sha256:286d539472f21eea235573cf6a383edfbe3eac3f975740d2901fb61e20642498 | aaugustin__websockets-467 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/changelog.rst b/docs/changelog.rst
index c895baa..630ee87 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -3,11 +3,21 @@ Changelog
.. currentmodule:: websockets
-6.1
+7.0
...
*In development*
+.. warning::
+
+ **Version 7.0 changes how a :meth:`~protocol.WebSocketCommonProtocol... | Abort pending pings with ConnectionClosed.
Fix #464. | Pong's CancelledError races with ConnectionClosed error
I upgraded to the current version of this library and I find it difficult to handle `asyncio.CancelledError` in case the pong is being cancelled due to a disconnect.
What happens in my server is that I'm waiting for pongs in one task while sending and receiving i... | aaugustin/websockets | diff --git a/tests/test_protocol.py b/tests/test_protocol.py
index 133a015..660538c 100644
--- a/tests/test_protocol.py
+++ b/tests/test_protocol.py
@@ -605,13 +605,18 @@ class CommonTests:
self.run_loop_once()
self.assertTrue(ping.done())
- def test_cancel_ping(self):
- ping = self.loop.r... | [
"tests/test_protocol.py::ClientTests::test_abort_ping",
"tests/test_protocol.py::ServerTests::test_abort_ping"
] | [
"tests/test_protocol.py::ClientTests::test_acknowledge_ping",
"tests/test_protocol.py::ClientTests::test_acknowledge_previous_pings",
"tests/test_protocol.py::ClientTests::test_answer_ping",
"tests/test_protocol.py::ClientTests::test_canceled_ping",
"tests/test_protocol.py::ClientTests::test_close_connectio... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/test_protocol.py"
] | [] | [] |
aa6ba992b346d56b80e8aabc074ae83c40113213 | 2018-09-30 17:08:50 | docker.io/swerebenchv2/aaugustin-websockets@sha256:5ffbd660fe3c8c465d43bbf01d327a1c6705f6fa4797a1402adbc088161e32d1 | aaugustin__websockets-483 | Method: WebSocketCommonProtocol.wait_closed(self)
Location: websockets/protocol.py → class WebSocketCommonProtocol
Inputs: None
Outputs: An awaitable (coroutine) that completes when the WebSocket connection is closed; it shields the internal connection_lost_waiter from cancellation.
Description: Waits until the underly... | python | BSD-3-Clause | diff --git a/docs/changelog.rst b/docs/changelog.rst
index f2f9412..f1bfd0b 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -10,26 +10,44 @@ Changelog
.. warning::
- **Version 7.0 renames the** ``timeout`` **argument of**
- :func:`~server.serve()` **and** :func:`~client.connect()` **to**
- ``close_t... | Simplify connection termination on server shutdown.
Previously, there were two scenarios where a connection handler on the
server side would receive an unexpected connection termination:
1. When the remote endpoint closed the connection or it dropped for any
reason: this was signalled with a ConnectionClosed ex... | handling closed connections in ws_handler
I recently noticed that if a connection closes abnormally (and additionally is one that `websockets` is aware of), then `ws_handler` on the server side just continues running normally. This can create a problem by leaving protocol objects on the server-side running for longer t... | aaugustin/websockets | diff --git a/tests/test_client_server.py b/tests/test_client_server.py
index 55fee73..e54f6b0 100644
--- a/tests/test_client_server.py
+++ b/tests/test_client_server.py
@@ -64,11 +64,8 @@ def handler(ws, path):
elif path == '/subprotocol':
yield from ws.send(repr(ws.subprotocol))
elif path == '/slow_... | [
"tests/test_client_server.py::ClientServerTests::test_server_shuts_down_waits_until_handlers_terminate"
] | [
"tests/test_client_server.py::AsyncAwaitTests::test_client",
"tests/test_client_server.py::AsyncAwaitTests::test_server",
"tests/test_client_server.py::AsyncIteratorTests::test_iterate_on_messages",
"tests/test_client_server.py::AsyncIteratorTests::test_iterate_on_messages_going_away_exit_ok",
"tests/test_c... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/test_client_server.py",
"tests/test_framing.py",
"tests/test_protocol.py"
] | [] | [] |
52872a5485651d606900cddd720b4a4aa658d690 | 2019-02-03 21:11:28 | docker.io/swerebenchv2/aaugustin-websockets@sha256:ef443f902d9b21735768485887906b8043c00382c782b2e2765983a4bfc91fb3 | aaugustin__websockets-568 | Function: ConnectionClosedOK(code: int, reason: str)
Location: websockets.exceptions
Inputs:
- **code** (int): close status code; must be 1000 (OK) or 1001 (going away).
- **reason** (str): human‑readable close reason (may be ``None``).
Outputs:
- Returns an instance of ``ConnectionClosedOK`` (subclass of ``Connect... | python | BSD-3-Clause | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 9618c1d..ee407d1 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -31,6 +31,11 @@ Also:
:meth:`~protocol.WebSocketCommonProtocol.pong` support bytes-like types
:class:`bytearray` and :class:`memoryview` in addition to :class:`bytes`.
+* Added... | Add ConnectionClosed subclass for normal closure.
Thanks @cjerdonek for the suggestion.
Fix #285. | ConnectionClosed subclass for normal closure
I was thinking it would be a nice touch to add (and use) a `ConnectionClosed` subclass that corresponds to a normal closure (i.e. status code 1000).
This would make it easier for users to handle expected (normal) closures differently and more elegantly, namely without havin... | aaugustin/websockets | diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
index 3ccdadb..a1edac1 100644
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -1,5 +1,7 @@
+import asyncio
import unittest
+import websockets
from websockets.exceptions import *
from websockets.http import Headers
@@ -89,21 +91,11 ... | [
"tests/test_exceptions.py::ExceptionsTests::test_abnormal_closure_raises_connection_closed_error",
"tests/test_exceptions.py::ExceptionsTests::test_connection_closed_error_is_subclass",
"tests/test_exceptions.py::ExceptionsTests::test_connection_closed_error_represents_abnormal_closure",
"tests/test_exception... | [
"tests/test_exceptions.py::ExceptionsTests::test_str"
] | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aaugustin/websockets/blob/27549c4b3... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/test_exceptions.py"
] | [] | [] |
c0c31b89c1eb382ca0604a6edb762e0b2c919ed2 | 2019-06-22 15:31:38 | docker.io/swerebenchv2/aaugustin-websockets@sha256:88378197a8075433aada14f4ec3fe44f1c1aa774bc04078e72a748df7b0a1506 | aaugustin__websockets-627 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 77e9da0..5f22a06 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -59,6 +59,9 @@ Also:
* Improved support for sending fragmented messages by accepting asynchronous
iterators in :meth:`~protocol.WebSocketCommonProtocol.send`.
+* Prevented spurio... | Handle ConnectionClosed exception in keepalive_ping.
Fix #551.
Thanks @Harmon758 for diagnosing the root cause and proposing a fix. | Unexpected ConnectionClosed in keepalive ping task
Using websockets 7.0 on Python 3.7, this can occur semi-frequently:
```
Unexpected exception in keepalive ping task
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\site-packages\websockets\protocol.py", line 989, in keepalive_ping
ping_waiter,... | aaugustin/websockets | diff --git a/tests/test_protocol.py b/tests/test_protocol.py
index 938e54d..62319fc 100644
--- a/tests/test_protocol.py
+++ b/tests/test_protocol.py
@@ -864,6 +864,35 @@ class CommonTests:
self.assertTrue(pings[1][0].done())
self.assertFalse(pings[2][0].done())
+ def test_acknowledge_aborted_ping... | [
"tests/test_protocol.py::ClientTests::test_acknowledge_aborted_ping",
"tests/test_protocol.py::ClientTests::test_keepalive_ping_does_not_crash_when_connection_lost",
"tests/test_protocol.py::ServerTests::test_acknowledge_aborted_ping",
"tests/test_protocol.py::ServerTests::test_keepalive_ping_does_not_crash_w... | [
"tests/test_protocol.py::ClientTests::test_abort_ping",
"tests/test_protocol.py::ClientTests::test_acknowledge_ping",
"tests/test_protocol.py::ClientTests::test_acknowledge_previous_pings",
"tests/test_protocol.py::ClientTests::test_answer_ping",
"tests/test_protocol.py::ClientTests::test_canceled_ping",
... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aaugustin/websockets/blob/8fc78fee4... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/test_protocol.py"
] | [] | [] |
45e9a86e5dfdb772ce40a64863083b2664d2e44b | 2019-07-03 21:34:46 | docker.io/swerebenchv2/aaugustin-websockets@sha256:7f579727cb1fafd90e18b3db3479c778b525539c5f430b676f2c0782a49ff7a4 | aaugustin__websockets-641 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 2556d70..b99d3d0 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -68,6 +68,9 @@ Also:
If you were using ``ping_timeout=None`` as a workaround, you can remove it.
+* Changed :meth:`~server.WebSocketServer.close` to perform a proper closing
+ ... | Close connections properly in WebSocketServer.close.
Fix #541. | Wait for connections to terminate when closing a server
[HIDDEN] This sends a close frame with code 1001 and stops processing data immediately.
It would be nicer to close connections properly with `close(1001)`and wait for a close frame from the remote endpoint.
This is a follow-up on #394.
| aaugustin/websockets | diff --git a/tests/test_client_server.py b/tests/test_client_server.py
index 7281ec6..aa4bebd 100644
--- a/tests/test_client_server.py
+++ b/tests/test_client_server.py
@@ -1172,12 +1172,14 @@ class CommonClientServerTests:
@with_server()
def test_server_shuts_down_during_connection_handling(self):
w... | [
"tests/test_client_server.py::ClientServerTests::test_server_shuts_down_during_connection_handling",
"tests/test_client_server.py::SecureClientServerTests::test_server_shuts_down_during_connection_handling"
] | [
"tests/test_client_server.py::AsyncAwaitTests::test_client",
"tests/test_client_server.py::AsyncAwaitTests::test_server",
"tests/test_client_server.py::AsyncIteratorTests::test_iterate_on_messages",
"tests/test_client_server.py::AsyncIteratorTests::test_iterate_on_messages_going_away_exit_ok",
"tests/test_c... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/test_client_server.py"
] | [] | [] |
d72322764ee6a53fdd3a8a13a1a9bf324f7f844b | 2019-10-05 11:57:28 | docker.io/swerebenchv2/aaugustin-websockets@sha256:18c2efce14b7603db8a57fe6195be239ee490e2bb68f95c885e389d30442bd7a | aaugustin__websockets-675 | Method: Frame.write(self, write, *, mask, extensions=None)
Location: websockets.framing.Frame.write
Inputs:
- **write** – callable receiving a single ``bytes`` argument; used to emit the serialized frame.
- **mask** – ``bool`` indicating whether the frame must be masked (client‑side).
- **extensions** – optional seque... | python | BSD-3-Clause | diff --git a/.circleci/config.yml b/.circleci/config.yml
index a6c85d2..0877c16 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -29,6 +29,15 @@ jobs:
- checkout
- run: sudo pip install tox
- run: tox -e py37
+ py38:
+ docker:
+ - image: circleci/python:3.8.0rc1
+ steps:
... | Add support for Python 3.8
Fix #648. | Tests are broken on Python 3.8
From what I saw, many tests break on Python 3.8 beta (118 as time of writing) because new `DeprecationWarning` are raised. One I spotted is _class 'websockets.protocol.WebSocketCommonProtocol'> should be instaniated by asyncio internals only, please avoid its creation from user code_ whic... | aaugustin/websockets | diff --git a/tests/__init__.py b/tests/__init__.py
index e69de29..dd78609 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -0,0 +1,5 @@
+import logging
+
+
+# Avoid displaying stack traces at the ERROR logging level.
+logging.basicConfig(level=logging.CRITICAL)
diff --git a/tests/test_client_server.py b/tests/... | [
"tests/test_protocol.py::ClientTests::test_local_address_before_connection",
"tests/test_protocol.py::ClientTests::test_remote_address_before_connection",
"tests/test_protocol.py::ServerTests::test_local_address_before_connection",
"tests/test_protocol.py::ServerTests::test_remote_address_before_connection"
] | [
"tests/test_auth.py::AuthClientServerTests::test_basic_auth",
"tests/test_auth.py::AuthClientServerTests::test_basic_auth_bad_multiple_credentials",
"tests/test_auth.py::AuthClientServerTests::test_basic_auth_check_credentials",
"tests/test_auth.py::AuthClientServerTests::test_basic_auth_invalid_credentials",... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://bugzilla.redhat.com/show_bug.cgi?id=1718208"
... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/__init__.py",
"tests/test_client_server.py",
"tests/test_framing.py",
"tests/test_protocol.py"
] | [] | [] |
0c157d457b871a3055329a50ac30cef640787b67 | 2021-06-04 21:10:45 | docker.io/swerebenchv2/aaugustin-websockets@sha256:6b0d48ed9716e6c550f50dbb492e373365bde844e2b7ea0f66b137afc905753a | aaugustin__websockets-981 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/src/websockets/legacy/protocol.py b/src/websockets/legacy/protocol.py
index 992d678..353317a 100644
--- a/src/websockets/legacy/protocol.py
+++ b/src/websockets/legacy/protocol.py
@@ -926,14 +926,17 @@ class WebSocketCommonProtocol(asyncio.Protocol):
# is empty and parse_close() synthe... | Prevent crash of data transfer task
When the read buffer isn't empty, the following scenario is possible:
* TCP connection is closed (one way or another)
* transfer_data is still processing buffered data
* it encounters a ping and attempts to send a pong
transfer_data must never crash, so ignore the error in th... | Error in data transfer due to 1006
I'm writing some stress tests for a web app and I expect that no matter what clients do the server should never experience an error. However, the test occasionally fails because the below shows in the log:
```text
ERROR websockets.protocol:protocol.py:805 Error in data transfer
Tr... | aaugustin/websockets | diff --git a/tests/legacy/test_protocol.py b/tests/legacy/test_protocol.py
index 6f6e6f6..042ae50 100644
--- a/tests/legacy/test_protocol.py
+++ b/tests/legacy/test_protocol.py
@@ -1,5 +1,6 @@
import asyncio
import contextlib
+import logging
import unittest
import unittest.mock
import warnings
@@ -877,6 +878,28 @@... | [
"tests/legacy/test_protocol.py::ClientTests::test_answer_ping_does_not_crash_if_connection_closed",
"tests/legacy/test_protocol.py::ServerTests::test_answer_ping_does_not_crash_if_connection_closed"
] | [
"tests/legacy/test_protocol.py::ClientTests::test_abort_ping",
"tests/legacy/test_protocol.py::ClientTests::test_abort_ping_does_not_log_exception_if_not_retreived",
"tests/legacy/test_protocol.py::ClientTests::test_acknowledge_aborted_ping",
"tests/legacy/test_protocol.py::ClientTests::test_acknowledge_ping"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /websockets | [] | [
"tests/legacy/test_protocol.py"
] | [] | [] |
ee931c4091a001aee798c1f7532384cdab9c1ec7 | 2022-12-05 13:56:34 | docker.io/swerebenchv2/aave-aave-v3-core:745-ee931c4@sha256:1b022eefae8e385ec66c32d8f63cda715b7b8692849828ff9f0887c9c88290f0 | aave__aave-v3-core-745 | No new interfaces are introduced. | ts | custom-check-github | diff --git a/contracts/protocol/libraries/logic/LiquidationLogic.sol b/contracts/protocol/libraries/logic/LiquidationLogic.sol
index 9a8f6b74..f03edbbc 100644
--- a/contracts/protocol/libraries/logic/LiquidationLogic.sol
+++ b/contracts/protocol/libraries/logic/LiquidationLogic.sol
@@ -214,6 +214,13 @@ library Liquidat... | Do not emit `Transfer` and `Mint` events if senderBalanceIncrease is zero on aTokens transfer
Closes #744 | 3.0.1. SigmaP review. Not emit events on _transfer() when balanceIncrease == 0
### Context
Regarding https://github.com/aave/aave-v3-core/pull/701
https://github.com/aave/aave-v3-core/blob/84b900ce583eb8b1174357c05882e4a9f1854c38/contracts/protocol/tokenization/base/ScaledBalanceTokenBase.sol#L157-L158
When `balance... | aave/aave-v3-core | diff --git a/test-suites/helpers/utils/tokenization-events.ts b/test-suites/helpers/utils/tokenization-events.ts
index a068b346..ef54a9cc 100644
--- a/test-suites/helpers/utils/tokenization-events.ts
+++ b/test-suites/helpers/utils/tokenization-events.ts
@@ -182,6 +182,31 @@ export const withdraw = async (
return rc... | [
"100 bridged dai used to back unbacked",
"Activates the ETH reserve as collateral via pool admin",
"Activates the ETH reserve as collateral via risk admin",
"Activates the ETH reserve for borrowing via pool admin",
"Activates the ETH reserve for borrowing via risk admin",
"Activates the zero address reser... | [
"A non-owner user tries to set a new asset source (revert expected)",
"Check DEFAULT_ADMIN_ROLE",
"Check getters",
"Checks the addresses provider is added to the registry",
"DEFAULT_ADMIN tries to revoke FLASH_BORROW_ROLE (revert expected)",
"Delegates to user 2",
"Deploys a new MintableDelegationERC20 ... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci"
],
"log_parser": "parse_log_js_4",
"test_cmd": ". ./setup-test-env.sh && TS_NODE_TRANSPILE_ONLY=1 npx hardhat test test-suites/*.spec.ts"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/aave/aave-v3-core/pull/701",
"h... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /aave-v3-core | [] | [
"test-suites/helpers/utils/tokenization-events.ts"
] | [] | [] |
ee931c4091a001aee798c1f7532384cdab9c1ec7 | 2022-12-05 19:17:41 | docker.io/swerebenchv2/aave-aave-v3-core:747-ee931c4@sha256:7cf76dfcd7283dadb635da68d786df5b3420784aa7cc0f8c7d38c3f0ab217e11 | aave__aave-v3-core-747 | Function: setLiquidationProtocolFee(asset: address, fee: uint256)
Location: IPoolConfigurator (or PoolConfigurator) contract
Inputs:
- **asset** – address of the reserve whose liquidation protocol fee is being set. Must be a valid reserve registered in the pool.
- **fee** – uint256 expressed in basis points (e.g., “10... | ts | custom-check-github | diff --git a/contracts/protocol/libraries/logic/LiquidationLogic.sol b/contracts/protocol/libraries/logic/LiquidationLogic.sol
index 9a8f6b74..f03edbbc 100644
--- a/contracts/protocol/libraries/logic/LiquidationLogic.sol
+++ b/contracts/protocol/libraries/logic/LiquidationLogic.sol
@@ -214,6 +214,13 @@ library Liquidat... | Fix condition of unsetting asset as collateral if its fully liquidated (with non-zero liquidationProtocolFee)
Closes #746
Huge shout out to @GopherJ for his contribution on #740 ! | Collateral flag not disabled when collateral is fully liquidated (due to non-zero liquidationProtocolFee)
The `[HIDDEN]` function [HIDDEN] for setting to false the flag of `useAsCollateral`
```
// If the collateral being liquidated is equal to the user balance,
// we set the currency as not being used as colla... | aave/aave-v3-core | diff --git a/test-suites/liquidation-edge.spec.ts b/test-suites/liquidation-edge.spec.ts
index ab5189d2..d785af83 100644
--- a/test-suites/liquidation-edge.spec.ts
+++ b/test-suites/liquidation-edge.spec.ts
@@ -10,6 +10,7 @@ import {
evmSnapshot,
evmRevert,
waitForTx,
+ AToken__factory,
StableDebtToken__fa... | [
"Activates the zero address reserve for borrowing via pool admin (expect revert)",
"Add DAI and USDC to category id 1",
"Add asset after multiple drops",
"Adds category id 1 (stablecoins)",
"Admin sets a PriceOracleSentinel and activate it for DAI and WETH",
"Alice borrows 100 DAI, Bob borrows 100 DAI on ... | [
"100 bridged dai used to back unbacked",
"A non-owner user tries to set a new asset source (revert expected)",
"Activates the ETH reserve as collateral via pool admin",
"Activates the ETH reserve as collateral via risk admin",
"Activates the ETH reserve for borrowing via pool admin",
"Activates the ETH re... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci"
],
"log_parser": "parse_log_js_4",
"test_cmd": ". ./setup-test-env.sh && TS_NODE_TRANSPILE_ONLY=1 npx hardhat test test-suites/*.spec.ts"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/aave/aave-v3-core/pull/740"
],
... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /aave-v3-core | [] | [
"test-suites/liquidation-edge.spec.ts"
] | [] | [] |
09635012d0d19b7680c660bd6747b23216197da3 | 2022-12-16 12:30:18 | docker.io/swerebenchv2/aave-aave-v3-core:773-0963501@sha256:98fed2a8b2900aaed2c322d4ade343028d37d9873bfd66cf8d986d645476b9a5 | aave__aave-v3-core-773 | Method: setAutomine(enabled: boolean)
Location: helpers/misc‑utils.ts (exported utility for Hardhat network)
Inputs: enabled – a boolean flag; true to enable automatic mining of transactions, false to disable it (transactions will be queued until mining is re‑enabled).
Outputs: Promise<void> – resolves when the Hard... | ts | custom-check-github | diff --git a/contracts/protocol/libraries/logic/ReserveLogic.sol b/contracts/protocol/libraries/logic/ReserveLogic.sol
index 127fcaf8..a3cd77f5 100644
--- a/contracts/protocol/libraries/logic/ReserveLogic.sol
+++ b/contracts/protocol/libraries/logic/ReserveLogic.sol
@@ -192,9 +192,7 @@ library ReserveLogic {
var... | Fix calculation of IRs with non-zero unbacked and zero unbackedMintCap
Closed #772 | The update of interest rates does not account for the real unbacked amount (can be bypassed if cap is 0)
If there is `unbacked` liquidity in the system and governance decides to "switch off" portals (setting a zero `unbackedMintCap`), the calculation of the interest rates would be wrong since this function would pass 0... | aave/aave-v3-core | diff --git a/test-suites/__setup.spec.ts b/test-suites/__setup.spec.ts
index dd75c64b..adbc68d5 100644
--- a/test-suites/__setup.spec.ts
+++ b/test-suites/__setup.spec.ts
@@ -6,7 +6,7 @@ before(async () => {
console.log('-> Deployed market');
- console.log('-> Initializing test enviroment');
+ console.log('-> ... | [
"Admin sets a PriceOracleSentinel and activate it for DAI and WETH",
"Alice borrows 100 DAI, Bob borrows 100 DAI on behalf of Alice, Bob borrows 50 DAI, Alice borrows 50 DAI, repays 250 DAI and repays 50 DAI on behalf of Bob, borrows 10 DAI more (with index change)",
"Alice borrows 100 DAI, Bob borrows 100 DAI ... | [
"100 bridged dai used to back unbacked",
"A non-owner user tries to set a new asset source (revert expected)",
"Activates the ETH reserve as collateral via pool admin",
"Activates the ETH reserve as collateral via risk admin",
"Activates the ETH reserve for borrowing via pool admin",
"Activates the ETH re... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci"
],
"log_parser": "parse_log_js_4",
"test_cmd": ". ./setup-test-env.sh && TS_NODE_TRANSPILE_ONLY=1 npx hardhat test test-suites/*.spec.ts"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aave/aave-v3-core/blob/f3e037b3638e... | [
"swe-rebench",
"swe-rebench-v2.1",
"ts"
] | /aave-v3-core | [] | [
"test-suites/__setup.spec.ts",
"test-suites/helpers/scenario-engine.ts",
"test-suites/pool-edge.spec.ts"
] | [] | [] |
cdbfb2f6cab711fd74234af3e77811624a62cb3e | 2023-03-09 18:36:40 | docker.io/swerebenchv2/abahmed-kwatch:205-cdbfb2f@sha256:89cff3f8bbfed754b0c1348322c76895f4b869bc1d0421844526584f23b046e1 | abahmed__kwatch-205 | Method: Event.FormatMarkdown(self, clusterName string, text string, delimiter string) string
Location: event/format.go
Inputs:
- clusterName (string): name of the Kubernetes cluster, used in the formatted markdown.
- text (string): optional custom message prefix; if empty, a default text is used.
- delimiter (string):... | go | MIT | diff --git a/README.md b/README.md
index 4ef0ef6..b3202ba 100644
--- a/README.md
+++ b/README.md
@@ -283,6 +283,17 @@ title
| `alert.feishu.webhook` | FeiShu bot webhook URL |
| `alert.feishu.title` | Customized title in message |
+#### Custom webhook
+
+If you want to enable custom webhook, provide url ... | 🐛 use type assertions for strings in alerts
Fixes #203 #204
Changes proposed in this pull request:
- use type assertions for strings in alerts
- fix teams messaging
| Since v0.8.1 Slack fails with "failed to send msg with Slack: slack server error: 404 Not Found"
**Describe the bug**
After upgrading from 0.8.0 to 0.8.1, Slack messages are no long sent.
The configmap didn't change.
Downgrading to 0.8.0 solves the problem.
**To Reproduce**
Deploy kwatch 0.8.1 with this config map:
... | abahmed/kwatch | diff --git a/alertmanager/alertmanager_test.go b/alertmanager/alertmanager_test.go
index f1afc14..0e3034f 100644
--- a/alertmanager/alertmanager_test.go
+++ b/alertmanager/alertmanager_test.go
@@ -1,9 +1,13 @@
package alertmanager
import (
+ "encoding/json"
"errors"
+ "net/http"
+ "net/http/httptest"
"testing"
... | [
"TestSlackLegacyWebhookWithoutChannel"
] | [
"TestAddPodContainer",
"TestAlertManagerNoConfig",
"TestBuildRequestBodyFeiShu",
"TestConfigFromFile",
"TestConfigInvalidFile",
"TestDelPod",
"TestDelPodContainer",
"TestDingTalk",
"TestDiscord",
"TestDiscordEmptyConfig",
"TestDiscordInvalidConfig",
"TestEmail",
"TestEmailEmptyConfig",
"Te... | {
"base_image_name": "go_1.22.12",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.22.5",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /kwatch | [] | [
"alertmanager/alertmanager_test.go",
"alertmanager/feishu/feishu_test.go",
"alertmanager/webhook/webhook_test.go"
] | [] | [] |
39a5db9fa29ec6c13dceb51480fb3e56574aa2a7 | 2017-03-07 16:19:15 | docker.io/swerebenchv2/abantos-bolt:88-39a5db9@sha256:0257b1bdcc5175cbbadc24da5a4142e8a0e62740cb0b0967a9db9cd39be3c673 | abantos__bolt-88 | python | MIT | diff --git a/bolt/about.py b/bolt/about.py
index 3c285ba..9b6ae95 100644
--- a/bolt/about.py
+++ b/bolt/about.py
@@ -8,4 +8,4 @@ A task runner written in Python
copyright = u'2016 Abantos'
author = u'Isaac Rodriguez'
version = u'0.2'
-release = u'0.2.2'
+release = u'0.2.3'
diff --git a/bolt/tasks/bolt_setup.py b/bol... | Setup Task Swallows Errors Building Distribution
### Description
The current implementation of the Setup task does not evaluate the return object from `distutils.core.run_setup()` and it just assumes it works. Unfortunately, some environments will not have the right tools to build a distribution; therefore, the task wi... | abantos/bolt | diff --git a/test/test_tasks/test_bolt_setup.py b/test/test_tasks/test_bolt_setup.py
index d9a03b9..88aac92 100644
--- a/test/test_tasks/test_bolt_setup.py
+++ b/test/test_tasks/test_bolt_setup.py
@@ -1,4 +1,5 @@
import unittest
+from unittest import mock
import bolt.tasks.bolt_setup as bsetup
import _mocks as mck... | [
"test/test_tasks/test_bolt_setup.py::TestExecuteSetupTask::test_raises_exception_if_building_setup_fails"
] | [
"test/test_tasks/test_bolt_setup.py::TestExecuteSetupTask::test_uses_default_if_empty_configuration",
"test/test_tasks/test_bolt_setup.py::TestExecuteSetupTask::test_uses_specified_script",
"test/test_tasks/test_bolt_setup.py::TestRegisterTasks::test_registers_setup"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /bolt && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base;... | {
"llm_metadata": null,
"num_modified_files": 2,
"num_modified_lines": 12,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abantos/bolt/pull/88"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /bolt | [] | [
"test/test_tasks/test_bolt_setup.py"
] | [] | [] | ||
5667a7e6958346a092b070b240854b9e132407ea | 2024-02-13 13:56:16 | docker.io/swerebenchv2/abdelrahman0w-ouro:43-5667a7e@sha256:d0a79391b877917aac3ac1e11f809a3fee5eafc6a04cb4c7112eff5463edd45e | abdelrahman0w__ouro-43 | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1495953..ff21a4e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## 0.2.0 (2024-02-13)
+
+### Features
+
+- Enhance performance by around %60
+
## 0.1.3 (2024-01-31)
### Fixed
diff --git a/README.md b/README.md
index 81d452f..2ba6e2f 10064... | refactor-get-module-path
### Additional contract requirements
When import handling scans a project directory, a package-qualified import that refers to a Python module beneath that directory must be associated with that module's existing source file. This includes imports whose dotted name repeats the scanned directo... | abdelrahman0w/ouro | diff --git a/tests/test_nodes_initializer.py b/tests/test_nodes_initializer.py
index 12eb771..5d026a7 100644
--- a/tests/test_nodes_initializer.py
+++ b/tests/test_nodes_initializer.py
@@ -4,17 +4,28 @@ from ouro.nodes_initializer import NodesInitializer
from ouro.reader import Reader
-def test_nodes_initializer(m... | [
"tests/test_nodes_initializer.py::test_nodes_initializer_resolves_package_qualified_import"
] | [
"tests/test_reader.py::test_reader"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /ouro && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } && pytest --no-header -rA --tb=line --color=no -p... | {
"llm_metadata": null,
"num_modified_files": 9,
"num_modified_lines": 240,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abdelrahman0w/ouro/pull/43"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /ouro | [] | [
"tests/test_nodes_initializer.py",
"tests/test_reader.py"
] | [] | [] | ||
a8f1b580482fbd88d9e6660cf17cc4c63407f279 | 2024-10-15 10:31:43 | docker.io/swerebenchv2/abdullahselek-herepy:84-a8f1b58@sha256:93b49b024ebdf1aec2f7853fe1c21e67336d038c08360e72914f786a35c45726 | abdullahselek__herepy-84 | python | MIT | diff --git a/herepy/routing_api.py b/herepy/routing_api.py
index c2e2df2..4068c3d 100644
--- a/herepy/routing_api.py
+++ b/herepy/routing_api.py
@@ -457,17 +457,9 @@ class RoutingApi(HEREApi):
if alternatives:
data["alternatives"] = alternatives
if avoid:
- key = list(avoid.key... | In `RoutingAPI.route_v8`, some parameters are ignored.
When executing `route_v8`, `avoid`, `exclude` and `truck` parameters are ignored.
1. Only first key from argument dict is taken from those arguments [[1](https://github.com/abdullahselek/HerePy/blob/a8f1b580482fbd88d9e6660cf17cc4c63407f279/herepy/routing_api.py#L4... | abdullahselek/HerePy | diff --git a/tests/test_routing_api.py b/tests/test_routing_api.py
index 89b2169..90451b3 100644
--- a/tests/test_routing_api.py
+++ b/tests/test_routing_api.py
@@ -1215,3 +1215,32 @@ class RoutingApiTest(unittest.TestCase):
)
self.assertTrue(response)
self.assertIsInstance(response, herepy.R... | [
"tests/test_routing_api.py::RoutingApiTest::test_route_v8_url_parameters_multiple"
] | [
"tests/test_routing_api.py::RoutingApiTest::test_arrival_as_datetime",
"tests/test_routing_api.py::RoutingApiTest::test_arrival_as_string",
"tests/test_routing_api.py::RoutingApiTest::test_async_matrix_whensucceed",
"tests/test_routing_api.py::RoutingApiTest::test_bicycleroute_route_short",
"tests/test_rout... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /HerePy && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate bas... | {
"llm_metadata": null,
"num_modified_files": 2,
"num_modified_lines": 33,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abdullahselek/HerePy/pull/84"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /HerePy | [] | [
"tests/test_routing_api.py"
] | [] | [] | ||
fb7c4aa328a1581e0638b95e08fd7d3ad0f4bf01 | 2019-09-08 00:54:26 | docker.io/swerebenchv2/abe-winter-automigrate:4-fb7c4aa@sha256:905668b63f968a0dc45b0228fbd2163087d18e783041772986aaaa81cc8b40b7 | abe-winter__automigrate-4 | python | MIT | diff --git a/README.md b/README.md
index da4efda..d9613bb 100644
--- a/README.md
+++ b/README.md
@@ -108,3 +108,5 @@ Happy to accept PRs to generate ORM defs from `create table` stmts (or vice vers
pip install pytest
pytest # in repo root
```
+
+If you want to pitch in on the project, there are a bunch of `@pytest.m... | newlines not being treated as whitespace
## Traceback
```python
...
File "/home/awinter/2019/automigrate/automig/lib/wrappers.py", line 64, in name
assert isinstance(self.tokens[0], sqlparse.sql.Identifier)
AssertionError
```
| abe-winter/automigrate | diff --git a/test/test_diffing.py b/test/test_diffing.py
index f38ec21..e0bf946 100644
--- a/test/test_diffing.py
+++ b/test/test_diffing.py
@@ -44,3 +44,12 @@ def test_add_index():
@pytest.mark.skip
def test_all_caps_keywords():
raise NotImplementedError
+
+NEWLINE = [
+ 'create table whatever (\n a int\n);',
+... | [
"test/test_diffing.py::test_newline"
] | [
"test/test_diffing.py::test_create_table",
"test/test_diffing.py::test_add_column",
"test/test_diffing.py::test_add_index"
] | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /automigrate && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activat... | {
"llm_metadata": null,
"num_modified_files": 2,
"num_modified_lines": 10,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abe-winter/automigrate/pull/4"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /automigrate | [] | [
"test/test_diffing.py"
] | [] | [] | ||
ce2968934c3d25aabda033a544e3abcc0e80775e | 2016-10-06 11:03:51 | docker.io/swerebenchv2/abh1nav-gnippy:25-ce29689@sha256:60507d6cd1925d11eaa96f087f2834833beb7aafed4a0c53e005148a761598f5 | abh1nav__gnippy-25 | python | Apache-2.0 | diff --git a/gnippy/rules.py b/gnippy/rules.py
index 37877f8..be59fcc 100644
--- a/gnippy/rules.py
+++ b/gnippy/rules.py
@@ -31,7 +31,7 @@ def _check_rules_list(rules_list):
if not isinstance(rules_list, list):
fail()
- expected = ("value", "tag")
+ expected = ("value", "tag", "id")
for r in ... | New rule format breaks delete example
The examples in the README for deleting rules are broken due to the addition of the id field in the rules returned by GNIP.
from gnippy import rules
from gnippy.errors import RuleDeleteFailedException, RulesGetFailedException
try:
rules_list = rules.get_rules(... | abh1nav/gnippy | diff --git a/gnippy/test/test_rules.py b/gnippy/test/test_rules.py
index cfa1ee4..e5657ef 100644
--- a/gnippy/test/test_rules.py
+++ b/gnippy/test/test_rules.py
@@ -42,7 +42,8 @@ def good_get_no_rules(url, auth):
def good_get_one_rule(url, auth):
- return test_utils.GoodResponse(json={"rules":[{"value": "Hello"... | [
"gnippy/test/test_rules.py::RulesTestCase::test_delete_rules_returned_by_get"
] | [
"gnippy/test/test_rules.py::RulesTestCase::test_accept_multiple_rules",
"gnippy/test/test_rules.py::RulesTestCase::test_accept_one_rule",
"gnippy/test/test_rules.py::RulesTestCase::test_accept_rule_with_none_tag",
"gnippy/test/test_rules.py::RulesTestCase::test_add_many_rules_no_creds",
"gnippy/test/test_ru... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e ."
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /gnippy && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } ... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 5,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abh1nav/gnippy/pull/25"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /gnippy | [] | [
"gnippy/test/test_rules.py"
] | [] | [] | ||
78455e43b79cc7e154bd881130fecc9cc371b5ab | 2020-03-25 07:25:23 | docker.io/swerebenchv2/abhinavsingh-proxy.py@sha256:1a15ea2c900fc381a5866f4b26d57fd71b9f0049bbfdcfa11fb4f1b36982dc94 | abhinavsingh__proxy.py-321 | Function: create_default_context(purpose, cafile=None)
Location: ssl module
Inputs:
- purpose (ssl.Purpose): indicates the intended use of the context (e.g., SERVER_AUTH).
- cafile (Optional[str]): path to a custom CA bundle file; defaults to None. The test explicitly checks that the function is called with `cafile=N... | python | BSD-3-Clause | diff --git a/README.md b/README.md
index 7984b77..9140f9d 100644
--- a/README.md
+++ b/README.md
@@ -777,14 +777,14 @@ TLS Interception
=================
By default, `proxy.py` will not decrypt `https` traffic between client and server.
-To enable TLS interception first generate CA certificates:
+To enable TLS inte... | Add flag to specify custom system CA Path
Fixes #320
This is mostly needed on MacOS where Python now don't have direct access to MacOS root certificates. | [MacOS] Add flag to specify custom system CA Path
Today setup `proxy.py` on a fresh Macbook (Catalina) and observed Apple has further made it harder to reliably run interceptor. Had to hardcode `certifi` ca file to make it work
<img width="920" alt="Screen Shot 2020-03-24 at 9 59 39 PM" src="https://user-images.githu... | abhinavsingh/proxy.py | diff --git a/tests/codecov.yml b/tests/codecov.yml
new file mode 100644
index 0000000..f393de9
--- /dev/null
+++ b/tests/codecov.yml
@@ -0,0 +1,12 @@
+codecov:
+ require_ci_to_pass: yes
+ notify:
+ wait_for_ci: yes
+coverage:
+ status:
+ project:
+ default:
+ threshold: 1%
+ patch:
+ defaul... | [
"tests/http/test_http_proxy_tls_interception.py::TestHttpProxyTlsInterception::test_ca_file_defaults_to_none",
"tests/http/test_http_proxy_tls_interception.py::TestHttpProxyTlsInterception::test_ca_file_flag",
"tests/http/test_http_proxy_tls_interception.py::TestHttpProxyTlsInterception::test_custom_ca_file_kee... | [
"tests/http/test_http_proxy_tls_interception.py::TestHttpProxyTlsInterception::test_e2e",
"tests/http/test_http_proxy_tls_interception.py::TestHttpProxyTlsInterception::test_e2e_custom_ca_file"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B2",
"confidence": 0.87,
"detected_issues": {
"B1": false,
"B2": true,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://stackoverflow.com/questions/57630314/ssl-certi... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /proxy.py | [] | [
"tests/codecov.yml",
"tests/http/test_http_proxy_tls_interception.py"
] | [] | [] |
8052c907e8ed7bd889a13c8029a657675d6fd13a | 2021-11-15 09:06:59 | docker.io/swerebenchv2/abhinavsingh-proxy.py:740-8052c90@sha256:28b8800ce0cb76443e9f28bcf20ed4a75d55ffe746422e2e9aa08e34a9fe9a71 | abhinavsingh__proxy.py-740 | python | BSD-3-Clause | diff --git a/proxy/http/parser/parser.py b/proxy/http/parser/parser.py
index f81a100..151e037 100644
--- a/proxy/http/parser/parser.py
+++ b/proxy/http/parser/parser.py
@@ -27,7 +27,6 @@ from .protocol import ProxyProtocol
from .chunk import ChunkParser, chunkParserStates
from .types import httpParserTypes, httpParse... | [HttpParser] Handle invalid/malformed request chunks from client
**Describe the bug**
Currently, `HttpParser` works well assuming incoming client is not notorious :) Handle cases when client can send invalid chunks in requests.
**To Reproduce**
Steps to reproduce the behavior:
1. Run `proxy.py` as `proxy.py --pac-fil... | abhinavsingh/proxy.py | diff --git a/tests/http/test_http_parser.py b/tests/http/test_http_parser.py
index 11aa5c4..0d1ad68 100644
--- a/tests/http/test_http_parser.py
+++ b/tests/http/test_http_parser.py
@@ -23,6 +23,19 @@ class TestHttpParser(unittest.TestCase):
def setUp(self) -> None:
self.parser = HttpParser(httpParserTypes... | [
"tests/http/test_http_parser.py::TestHttpParser::test_issue_127"
] | [
"tests/http/test_http_parser.py::TestHttpParser::test_build_header",
"tests/http/test_http_parser.py::TestHttpParser::test_build_request",
"tests/http/test_http_parser.py::TestHttpParser::test_build_response",
"tests/http/test_http_parser.py::TestHttpParser::test_build_response_adds_content_length_header",
... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /proxy.py && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate b... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 20,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abhinavsingh/proxy.py/pull/740"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /proxy.py | [] | [
"tests/http/test_http_parser.py"
] | [] | [] | ||
74d68720756a025859d7bc038e41760908f21de7 | 2020-04-23 13:54:11 | docker.io/swerebenchv2/ably-ably-go:157-74d6872@sha256:6eb68ff1be3fc43370b7fd20bcf65f7ba8e4abafd926f435528f22daba2096fe | ably__ably-go-157 | No new interfaces are introduced. | go | Apache-2.0 | diff --git a/ably/error.go b/ably/error.go
index 132e84d..f306a9b 100644
--- a/ably/error.go
+++ b/ably/error.go
@@ -3,7 +3,6 @@ package ably
import (
"errors"
"fmt"
- "io"
"io/ioutil"
"mime"
"net"
@@ -89,12 +88,12 @@ func code(err error) int {
return 0
}
-func errFromUnprocessableBody(r io.Reader) erro... | Properly set Error.StatusCode
fixes #154
newError was completely ignoring response status code.
It was wrongly deriving it from error code.
This patch ensures Error,StatusCode is set with correct response status. | Lib failing to retrying on 5xx if it can't parse the body
[Customer using ably-go 1.1.2](https://support.ably.io/a/tickets/106111) reporting 400 errors. On investigation this was due to cloudfront returning rendered HTML for 502 errors; ably-go is then unable to parse the body, and turns it into a 400 error.
But this ... | ably/ably-go | diff --git a/ably/error_test.go b/ably/error_test.go
index a3ee1ff..e66517b 100644
--- a/ably/error_test.go
+++ b/ably/error_test.go
@@ -6,6 +6,7 @@ import (
"net/http/httptest"
"net/url"
"strconv"
+ "sync/atomic"
"testing"
"github.com/ably/ably-go/ably"
@@ -54,3 +55,75 @@ func TestIssue127ErrorResponse(t *... | [
"TestIssue_154",
"TestIssue_154_RetriesOn5xxWithUnparseableBody",
"TestIssue_154_RetriesOn5xxWithUnparseableBody/500",
"TestIssue_154_RetriesOn5xxWithUnparseableBody/501",
"TestIssue_154_RetriesOn5xxWithUnparseableBody/502",
"TestIssue_154_RetriesOn5xxWithUnparseableBody/503",
"TestIssue_154_RetriesOn5x... | [
"TestAuth_ClientID_Error",
"TestAuth_TimestampRSA10k",
"TestAuth_TimestampRSA10k/must_use_local_time_when_UseQueryTime_is_false",
"TestAuth_TimestampRSA10k/must_use_server_time_offset_",
"TestAuth_TimestampRSA10k/must_use_server_time_when_UseQueryTime_is_true",
"TestClientOptions",
"TestClientOptions/mu... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://docs.ably.io/client-lib-development-guide/featur... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /ably-go | [] | [
"ably/error_test.go"
] | [] | [] |
b8e63917cafb21aab8500c318933800c2268a266 | 2024-01-19 10:58:59 | docker.io/swerebenchv2/ably-ably-go:629-b8e6391@sha256:e9f4fc4c640eb48c9b80ec441bfd27b8eb8ec8e170896ddc5d7717cc2d84fa30 | ably__ably-go-629 | Method: MessageRecorder.URLs(self) []*url.URL
Location: ably/ably_test.go – implemented on the test‑only *MessageRecorder* type which records URLs used by the recorder.
Inputs: none (receiver *MessageRecorder)
Outputs: a slice copy of the internally stored URLs; callers can safely modify the returned slice without affe... | go | Apache-2.0 | diff --git a/ably/internal/ablyutil/strings.go b/ably/internal/ablyutil/strings.go
new file mode 100644
index 0000000..5c3514a
--- /dev/null
+++ b/ably/internal/ablyutil/strings.go
@@ -0,0 +1,74 @@
+package ablyutil
+
+import (
+ "math/rand"
+ "sort"
+ "strings"
+ "time"
+)
+
+const charset = "abcdefghijklmnopqrstuvwxy... | Fix/host fallback conditions
- Fixed #626
- Current work is based on one of the oldest PR that was supposed to fix the given issue
https://github.com/ably/ably-go/pull/316/files
- Still, more refactoring is needed in the future. | ably-go doesn't retry requests to fallback hosts on a timeout
https://sdk.ably.com/builds/ably/specification/main/features/#RSC15l specifies the the conditions of when an Ably SDK should retry a request to a fallback endpoint.
Specifically https://sdk.ably.com/builds/ably/specification/main/features/#RSC15l2 is not im... | ably/ably-go | diff --git a/ably/ably_test.go b/ably/ably_test.go
index 55f65d5..3f35722 100644
--- a/ably/ably_test.go
+++ b/ably/ably_test.go
@@ -7,7 +7,9 @@ import (
"io"
"net"
"net/http"
+ "net/http/httptest"
"net/url"
+ "strings"
"sync"
"testing"
"time"
@@ -15,6 +17,7 @@ import (
"github.com/ably/ably-go/ably"
... | [
"TestRest_RSC15_HostFallbackOnTimeout"
] | [
"TestAddHeaders",
"TestAddHeaders/Can_add_a_LeftHandSide_value_and_a_RightHandSidevalue",
"TestAddHeaders/if_a_RightHandSide_value_is_already_in_LeftHandSide_it_is_not_added_again",
"TestAddParams",
"TestAddParams/Can_add_a_LeftHandSide_value_and_a_RightHandSidevalue",
"TestAddParams/if_a_RightHandSide_va... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://sdk.ably.com/builds/ably/specification/main/fe... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /ably-go | [] | [
"ably/ably_test.go",
"ably/auth_integration_test.go",
"ably/http_paginated_response_integration_test.go",
"ably/realtime_channel_integration_test.go",
"ably/rest_client_integration_test.go",
"ablytest/ablytest.go"
] | [] | [] |
9eae66dd720b0efeae7097ad00c12c42348f1f0b | 2023-03-03 12:15:58 | docker.io/swerebenchv2/ably-ably-python@sha256:502f24db46433fe37bae9b76e73d31db7340da74586e198c81ecf6265e7cfbc6 | ably__ably-python-474 | Method: Channels.release(self, name)
Location: ably.rest.channel.Channels.release
Inputs: name (str) – the channel name to be released; if the channel does not exist the call is a no‑op.
Outputs: None (no return value); does not raise an error when the channel is absent.
Description: Deletes the Channel object from the... | python | Apache-2.0 | diff --git a/ably/rest/channel.py b/ably/rest/channel.py
index 5ea8efd..45f6cef 100644
--- a/ably/rest/channel.py
+++ b/ably/rest/channel.py
@@ -219,8 +219,19 @@ class Channels:
def __iter__(self) -> Iterator[str]:
return iter(self.__all.values())
- def release(self, key):
- del self.__all[key... | RSN4b Compliance
This change does the following:
- Removes the `__delitem__` magic method from the REST `Channels` implementation (as not part of spec)
- Fixes a non-compliance with `RSN4b` - whereby previously calling release on a non-existent channel would result in a KeyError being raised.
Fixes #472 | `RSN4b`: Error raised
Spec point `RSN4b`:
```
Calling release() with a channel name that does not correspond to an extant channel entity must return without error
```
At the moment, calling release on a non-existent channel results in an error being raised due to it not appearing in the channel map.
| ably/ably-python | diff --git a/test/ably/rest/restchannels_test.py b/test/ably/rest/restchannels_test.py
index c6a791f..dc7745e 100644
--- a/test/ably/rest/restchannels_test.py
+++ b/test/ably/rest/restchannels_test.py
@@ -70,19 +70,21 @@ class TestChannels(BaseAsyncTestCase):
assert isinstance(channel, Channel)
... | [
"test/ably/rest/restchannels_test.py::TestChannels::test_channels_release"
] | [
"test/ably/rest/restchannels_test.py::TestChannels::test_channel_has_presence",
"test/ably/rest/restchannels_test.py::TestChannels::test_channels_get_doesnt_updates_existing_with_none_options",
"test/ably/rest/restchannels_test.py::TestChannels::test_channels_get_returns_new_or_existing",
"test/ably/rest/rest... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /ably-python | [] | [
"test/ably/rest/restchannels_test.py"
] | [] | [] |
efb4883f048a20aff2016efcf4407f51fa1d6fb7 | 2023-05-15 17:19:25 | docker.io/swerebenchv2/ably-ably-python@sha256:44b159fab06998e7007a816d8ff88178d5857bdd0542c66677aa7bd152408a94 | ably__ably-python-500 | Method: Http.make_request(self, method: str, path: str, version: str = None, headers: dict = None, body: bytes | str = None, skip_auth: bool = False, timeout: float = None, raise_on_error: bool = True)
Location: ably/http/http.py, class Http
Inputs:
- **method** – HTTP verb (e.g., `'GET'`, `'POST'`).
- **path** – Rela... | python | Apache-2.0 | diff --git a/ably/http/http.py b/ably/http/http.py
index 054fe00..440bf0c 100644
--- a/ably/http/http.py
+++ b/ably/http/http.py
@@ -44,18 +44,19 @@ def reauth_if_expired(func):
class Request:
- def __init__(self, method='GET', url='/', headers=None, body=None,
+ def __init__(self, method='GET', url='/', ver... | refactor!: add mandatory version param to `Rest.request`
Resolves #494
See [spec change](https://github.com/ably/specification/commit/ebbf1bd9ede206b3cf49b4aafc22524d4cf8a933) and [ably-js implementation](https://github.com/ably/ably-js/pull/1231) | Add mandatory version param for `Rest.request`
See https://github.com/ably/specification/pull/89
### Additional contract requirements
- `AblyRest.request` must treat `version` as a required argument: calling it without a `version` argument must raise an error rather than silently falling back to a default version.
- ... | ably/ably-python | diff --git a/test/ably/rest/restrequest_test.py b/test/ably/rest/restrequest_test.py
index 2824d57..7a338e2 100644
--- a/test/ably/rest/restrequest_test.py
+++ b/test/ably/rest/restrequest_test.py
@@ -4,6 +4,7 @@ import respx
from ably import AblyRest
from ably.http.paginatedresult import HttpPaginatedResponse
+fro... | [
"test/ably/rest/restrequest_test.py::TestRestRequest::test_error",
"test/ably/rest/restrequest_test.py::TestRestRequest::test_get_bin",
"test/ably/rest/restrequest_test.py::TestRestRequest::test_get_text",
"test/ably/rest/restrequest_test.py::TestRestRequest::test_headers_bin",
"test/ably/rest/restrequest_t... | [
"test/ably/rest/resthttp_test.py::TestRestHttp::test_500_errors",
"test/ably/rest/resthttp_test.py::TestRestHttp::test_cached_fallback",
"test/ably/rest/resthttp_test.py::TestRestHttp::test_cumulative_timeout",
"test/ably/rest/resthttp_test.py::TestRestHttp::test_custom_http_timeouts",
"test/ably/rest/resth... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B3",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/ably/specification/pull/89"
],
... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /ably-python | [] | [
"test/ably/rest/restrequest_test.py"
] | [] | [] |
6af68afa3f61890fbc35744e1259fbdf75a1bc2c | 2020-02-24 19:11:46 | docker.io/swerebenchv2/abs-lang-abs:325-6af68af@sha256:61b2a2bbef2b42bc0d5da364151538ffd6cc9c1afca54339e9001286c31cbc07 | abs-lang__abs-325 | No new interfaces are introduced. | go | MIT | diff --git a/evaluator/evaluator.go b/evaluator/evaluator.go
index ad8aeed..99af9bb 100644
--- a/evaluator/evaluator.go
+++ b/evaluator/evaluator.go
@@ -830,9 +830,14 @@ func evalForExpression(
case *object.Error:
return res
}
- } else if res != NULL {
- // We had a return from withink the FOR loop... | Only explicit returns should interrupt for loops, closes #324 | push function break loop
This code shows [0] instead of [0,1,2,3,4,5,6,7,8,9]
```
names = []
for x = 0; x < 10; x = x + 1 {
names.push(x)
}
echo(names)
```
| abs-lang/abs | diff --git a/evaluator/evaluator_test.go b/evaluator/evaluator_test.go
index 41498f1..a1ba569 100644
--- a/evaluator/evaluator_test.go
+++ b/evaluator/evaluator_test.go
@@ -296,6 +296,20 @@ func TestForExpressions(t *testing.T) {
}
}
+func TestCountedLoopPushContinuesAfterOrdinaryBodyValue(t *testing.T) {
+ result... | [
"TestCountedLoopPushContinuesAfterOrdinaryBodyValue"
] | [
"TestArrayConcatenation",
"TestArrayIndexExpressions",
"TestArrayLiterals",
"TestAssignStatements",
"TestBacktickCommandParsing",
"TestBangOperator",
"TestBitwiseExpressions",
"TestBooleanExpression",
"TestBuiltinFunctions",
"TestBuiltinProperties",
"TestCallExpressionParameterParsing",
"TestC... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/abs-lang/abs/issues/324",
"ht... | [
"swe-rebench",
"swe-rebench-v2.1",
"go"
] | /abs | [] | [
"evaluator/evaluator_test.go"
] | [] | [] |
85fb3cccacdfa99132170c6ba8ae58d300b3ebfd | 2019-07-12 09:11:14 | docker.io/swerebenchv2/abs-tudelft-vhdeps:21-85fb3cc@sha256:74871262e5183021792d99b4e9ef2da55c8943d6777e089556490c82f56c904b | abs-tudelft__vhdeps-21 | python | Apache-2.0 | diff --git a/vhdeps/targets/ghdl.py b/vhdeps/targets/ghdl.py
index a354670..3e0e2b8 100644
--- a/vhdeps/targets/ghdl.py
+++ b/vhdeps/targets/ghdl.py
@@ -140,7 +140,7 @@ def _run_test_case(output_file, test_case, vcd_dir, ghdl_elaborate, ghdl_run):
exit_code, *_ = run_cmd(
output_file,
ghdl_elabor... | GHDL and vsim backends cannot handle multiple test cases in one file
See title. Individual test cases are represented as `VhdFile` objects everywhere in these backends, making use of the `VhdFile.unit` attribute, which can be `None` when multiple are defined per file. [HIDDEN]
| abs-tudelft/vhdeps | diff --git a/tests/test_ghdl.py b/tests/test_ghdl.py
index f37a06d..a02b2a8 100644
--- a/tests/test_ghdl.py
+++ b/tests/test_ghdl.py
@@ -40,6 +40,16 @@ class TestGhdlSimple(TestCase):
self.assertTrue('PASSED test_tc' in out)
self.assertTrue('Test suite PASSED' in out)
+ def test_multiple_per_fil... | [
"tests/test_patterns.py::TestPatterns::test_multi_tc_per_file",
"tests/test_vsim.py::TestVsimMocked::test_tcl_multiple_per_file"
] | [
"tests/test_ghdl.py::TestGhdlSpecific::test_analyze_error",
"tests/test_ghdl.py::TestGhdlSpecific::test_elaborate_error",
"tests/test_ghdl.py::TestGhdlSpecific::test_multi_version",
"tests/test_ghdl.py::TestGhdlSpecific::test_no_ghdl",
"tests/test_ghdl.py::TestGhdlSpecific::test_no_plumbum",
"tests/test_g... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e ."
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /vhdeps && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base; } ... | {
"llm_metadata": null,
"num_modified_files": 3,
"num_modified_lines": 49,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abs-tudelft/vhdeps/pull/21"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /vhdeps | [] | [
"tests/test_ghdl.py",
"tests/test_patterns.py",
"tests/test_vsim.py"
] | [] | [] | ||
f2b55a77340e99d13e1adea753c63d10f2b06d79 | 2019-07-12 14:41:55 | docker.io/swerebenchv2/abs-tudelft-vhdeps:22-f2b55a7@sha256:2f12c416ac6517bee28e3aec92fe43ca44e35e60ddc21a6b72193fdb67d71f96 | abs-tudelft__vhdeps-22 | python | Apache-2.0 | diff --git a/vhdeps/targets/ghdl.py b/vhdeps/targets/ghdl.py
index 3e0e2b8..ff426a1 100644
--- a/vhdeps/targets/ghdl.py
+++ b/vhdeps/targets/ghdl.py
@@ -81,7 +81,22 @@ def add_arguments(parser):
'regardless of whether it passed or not. If there are multiple test '
'cases, gtkwave is launched for the f... | Passing arbitrary arguments to GHDL
Sometimes one might want to pass some extra arguments to GHDL, especially with the GCC backend to pass additional compiler flags. There is currently no command-line syntax for this.
### Additional contract requirements
Users can repeat `-W` to pass comma-separated arguments to a GH... | abs-tudelft/vhdeps | diff --git a/tests/test_ghdl.py b/tests/test_ghdl.py
index a02b2a8..91651ad 100644
--- a/tests/test_ghdl.py
+++ b/tests/test_ghdl.py
@@ -2,6 +2,7 @@
from unittest import TestCase, skipIf
from unittest.mock import patch
+import re
import os
import tempfile
from plumbum import local
@@ -254,6 +255,20 @@ class Test... | [
"tests/test_ghdl.py::TestGhdlSpecific::test_extra_options"
] | [
"tests/test_ghdl.py::TestGhdlSpecific::test_analyze_error",
"tests/test_ghdl.py::TestGhdlSpecific::test_elaborate_error",
"tests/test_ghdl.py::TestGhdlSpecific::test_multi_version",
"tests/test_ghdl.py::TestGhdlSpecific::test_no_ghdl",
"tests/test_ghdl.py::TestGhdlSpecific::test_no_plumbum",
"tests/test_g... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /vhdeps && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate bas... | {
"llm_metadata": null,
"num_modified_files": 1,
"num_modified_lines": 36,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/abs-tudelft/vhdeps/pull/22"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /vhdeps | [] | [
"tests/test_ghdl.py"
] | [] | [] | ||
fcd1ba5d3c7b0b868ee570bdc5fb473cf2c9e5d2 | 2021-01-01 20:53:50 | docker.io/swerebenchv2/absinthe-graphql-absinthe:1015-fcd1ba5@sha256:e407527701e8045b1b43830dbddf546b24893fa597d5b4e961b6dcf61835c47c | absinthe-graphql__absinthe-1015 | No new interfaces are introduced. | elixir | custom-check-github | diff --git a/lib/absinthe/phase/schema/field_imports.ex b/lib/absinthe/phase/schema/field_imports.ex
index 6ce48ca7..55fd5d9f 100644
--- a/lib/absinthe/phase/schema/field_imports.ex
+++ b/lib/absinthe/phase/schema/field_imports.ex
@@ -29,11 +29,14 @@ defmodule Absinthe.Phase.Schema.FieldImports do
Schema.InputObje... | Fix introspection bug with import_fields and input
This PR fixes a bug that would include `__typename` in an `input` if it called `import_fields` on an object.
Fixes #989 | Import fields includes introspect fields
<!-- START BUG TEMPLATE (Please delete the rest of this if you're not filing a bug.) -->
If submitting a bug, please provide the following:
### Environment
* Elixir version (elixir -v): 1.10.2
* Absinthe version (mix deps | grep absinthe): 1.5.3
* Client Framework and version... | absinthe-graphql/absinthe | diff --git a/test/absinthe/introspection_test.exs b/test/absinthe/introspection_test.exs
index bdbefdfa..e4626d36 100644
--- a/test/absinthe/introspection_test.exs
+++ b/test/absinthe/introspection_test.exs
@@ -264,6 +264,51 @@ defmodule Absinthe.IntrospectionTest do
result
)
end
+
+ defmodule I... | [
"introspection of an input object type import_fields won't import __typename"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/introspection_test.exs"
] | [] | [] |
15eb3460e8c022453e3b32c624e6435321e2ddee | 2022-02-16 20:35:54 | docker.io/swerebenchv2/absinthe-graphql-absinthe:1158-15eb346@sha256:ee8e04b16ad3a5a6cea25a83a055b78c488f6613b413ee9399d1c6007844b768 | absinthe-graphql__absinthe-1158 | Method: Absinthe.Schema.Notation.import_directives(type_module_ast, opts \\ [])
Location: Used inside schema modules (e.g., `WithoutOptions`, `UsingOnlyOption`, `UsingExceptOption`) to declare that directives from another module should be imported.
Inputs:
- **type_module_ast** – AST (or expanded atom) of the mod... | elixir | custom-check-github | diff --git a/.formatter.exs b/.formatter.exs
index 83473934..81e279f5 100644
--- a/.formatter.exs
+++ b/.formatter.exs
@@ -17,6 +17,8 @@ locals_without_parens = [
field: 2,
field: 3,
field: 4,
+ import_directives: 1,
+ import_directives: 2,
import_fields: 2,
import_fields: 1,
import_types: 1,
diff -... | Add import_directives
There is some duplication between import_types but this PR is still relatively small so I wasnt sure if I should spend much time refactoring this to reduce some of the duplication
Closes #1152 | Add generic import_directives for macro based schemas
We have a library that defines its own prototype schema https://github.com/DivvyPayHQ/absinthe_federation/blob/main/lib/absinthe/federation/schema/prototype.ex that defines its own directives and we have a phoenix/absinthe API app that uses this library but also wan... | absinthe-graphql/absinthe | diff --git a/test/absinthe/schema/notation/experimental/import_directives_test.exs b/test/absinthe/schema/notation/experimental/import_directives_test.exs
new file mode 100644
index 00000000..2135cead
--- /dev/null
+++ b/test/absinthe/schema/notation/experimental/import_directives_test.exs
@@ -0,0 +1,40 @@
+defmodule A... | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | [
".unwrap of List extracts the inner name",
".unwrap of List extracts the inner name, even when multiple deep",
".unwrap of Name is left intact",
".unwrap of NonNull extracts the inner name",
".unwrap of NonNull extracts the inner name, even when multiple deep",
"Absinthe.Logger.document/1 given a blueprin... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/DivvyPayHQ/absinthe_federation/blob... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/schema/notation/experimental/import_directives_test.exs"
] | [] | [
"weak_f2p"
] |
df1808c9ec95158c9250a77cebe2bd404d7d59d4 | 2022-09-11 12:30:32 | docker.io/swerebenchv2/absinthe-graphql-absinthe:1195-df1808c@sha256:d25682697696f51673f5d73a55d6540a730b85033c8c3b250c10cb49f299b5e5 | absinthe-graphql__absinthe-1195 | Method: Absinthe.Phase.Schema.Validation.TypeReferencesExist.check_or_error(thing, type, types, opts)
Location: lib/absinthe/phase/schema/validation/type_references_exist.ex
Inputs:
- **thing** – any Blueprint node that is being validated (e.g., FieldDefinition, ObjectTypeDefinition, UnionTypeDefinition, etc.). ... | elixir | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d5a99d5e..e85eea82 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
## Unreleased
+- Bug Fix: [Validate type references for invalid wrapped types](https://github.com/absinthe-graphql/absinthe/pull/1195)
- Breaking Bugfix: [Validate repeatable directives o... | Validate type references for invalid wrapped types
In some places we were not checking for invalid wrapped types (non-null/list). E.g.
```elixir
union :my_union do
types [:boolean, list_of(:id)]
end
```
Or when using `import_fields` or `interface` with a wrapped type.
This PR adds the missing checks in the... | Invalid union arguments has a bad error message
If you create a union with invalid inner types the error message is cryptic and unhelpful. We should find a way to improve on it.
Related: https://github.com/absinthe-graphql/absinthe/issues/1047
```
union :my_union do
types [:boolean, list_of(:id)]
end
```
### Addit... | absinthe-graphql/absinthe | diff --git a/test/absinthe/phase/schema/type_references_exist_test.exs b/test/absinthe/phase/schema/type_references_exist_test.exs
new file mode 100644
index 00000000..1bc281ad
--- /dev/null
+++ b/test/absinthe/phase/schema/type_references_exist_test.exs
@@ -0,0 +1,151 @@
+defmodule Absinthe.Schema.Validation.TypeRefer... | [
"input object errors on import_fields with wrapped type",
"interface errors on interface with wrapped type",
"objects errors on import_fields with wrapped type",
"objects errors on interface with wrapped type",
"union type errors on types with wrapped type"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "B4",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": true,
"B4": true,
"B5": false,
"B6": false
},
"difficulty": "hard",
"external_urls": [
"https://github.com/absinthe-graphql/absinthe/issues/1047"... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/phase/schema/type_references_exist_test.exs",
"test/absinthe/schema/notation/import_test.exs"
] | [] | [] |
d564d8227d15ee0910a2182c691c136ebefd455a | 2022-12-04 10:18:40 | docker.io/swerebenchv2/absinthe-graphql-absinthe:1211-d564d82@sha256:f87899044e6292d3ad259f8d4b8605163877544ae0cd5f474aedd094a95d9107 | absinthe-graphql__absinthe-1211 | Method: Absinthe.Resolution.Helpers.dataloader(source, opts)
Location: lib/absinthe/resolution/helpers.ex – defined as `def dataloader(source, opts) when is_list(opts)` (arity‑2).
Inputs:
- **source** – atom identifying the Dataloader source (e.g. `:test`).
- **opts** – keyword list supporting
- `:args` – m... | elixir | custom-check-github | diff --git a/lib/absinthe/resolution/helpers.ex b/lib/absinthe/resolution/helpers.ex
index 94a42e19..5fe05f16 100644
--- a/lib/absinthe/resolution/helpers.ex
+++ b/lib/absinthe/resolution/helpers.ex
@@ -132,7 +132,9 @@ defmodule Absinthe.Resolution.Helpers do
@type dataloader_opt ::
{:args, map}
... | Pass resolution to dataloader helper's callback
Resolves #1192
Hi folks 👋🏻
This PR adds support for getting resolution inside a callback function that's passed to `dataloader` helper. Basically it allows to pass `callback/4` instead of `callback/3` to `dataloader` options, in that case last argument will be r... | [Feature suggestion] Pass context to the callback function of Absinthe.Resolution.Helpers.dataloader/2 options
Hello everyone!
According to the docs, the callback function of Absinthe.Resolution.Helpers.dataloader options
> Can be used to e.g. compute fields on the return value of the loader.
This is a very useful wa... | absinthe-graphql/absinthe | diff --git a/test/absinthe/middleware/dataloader_test.exs b/test/absinthe/middleware/dataloader_test.exs
index 201cd1bf..3e0c474a 100644
--- a/test/absinthe/middleware/dataloader_test.exs
+++ b/test/absinthe/middleware/dataloader_test.exs
@@ -77,6 +77,44 @@ defmodule Absinthe.Middleware.DataloaderTest do
fie... | [
"can resolve a field using the two-argument dataloader helper with an arity-4 callback",
"can resolve fields using dataloader helper with callback",
"dataloader callback errors are returned as field errors"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/middleware/dataloader_test.exs"
] | [] | [] |
bba6596f5928a08a78094cdf6a79ae6e7c23dcb7 | 2024-01-03 17:42:01 | docker.io/swerebenchv2/absinthe-graphql-absinthe:1291-bba6596@sha256:dddcd5a8e10f76362ba7e72df8e4073371b0b84724aa2ae7d3c2a86a8cd8d4fa | absinthe-graphql__absinthe-1291 | Method: Absinthe.Type.BuiltIns.Introspection.__type.input_fields(include_deprecated \\ false)
Location: Defined in `Absinthe.Type.BuiltIns.Introspection` as the resolver for the `inputFields` field of the `__type` introspection object.
Inputs:
- `include_deprecated` (boolean, default false) – when true, deprecate... | elixir | custom-check-github | diff --git a/lib/absinthe/type/built_ins/introspection.ex b/lib/absinthe/type/built_ins/introspection.ex
index 15ec76fe..61544a13 100644
--- a/lib/absinthe/type/built_ins/introspection.ex
+++ b/lib/absinthe/type/built_ins/introspection.ex
@@ -69,10 +69,17 @@ defmodule Absinthe.Type.BuiltIns.Introspection do
fiel... | Support deprecated input object fields in introspection query (fixes #1241)
I was setting up Apollo iOS in a new mobile app project, hoping to have it talk to my absinthe API. Apollo introspects the schema to generate types, however the [introspection query](https://gist.github.com/jgautsch/d95309a809e9ef8afd3ed4960607... | Support deprecated input object fields in introspection query
<!--
### Precheck
We're a small team and Absinthe is a big project, so please keep the
following in mind when submitting an issue:
- For help and support, use:
- Our Slack channel (#absinthe-graphql): https://elixir-slackin.herokuapp.com
- The Elixir ... | absinthe-graphql/absinthe | diff --git a/test/absinthe/introspection_test.exs b/test/absinthe/introspection_test.exs
index 3575efb9..c2e5dd1e 100644
--- a/test/absinthe/introspection_test.exs
+++ b/test/absinthe/introspection_test.exs
@@ -278,6 +278,93 @@ defmodule Absinthe.IntrospectionTest do
assert !match?({:ok, %{data: %{"__type" => %{... | [
"introspection of an input object type can include deprecated fields based on an arg",
"introspection of an input object type can use __type and ignore deprecated fields",
"scenario #1"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": null,
"confidence": null,
"detected_issues": null,
"difficulty": null,
"external_urls": null,
"intent_completeness": null,
"pr_categories": null,
"reasoning": null,
"test_alignment_issues": null
},
"num_modified_files": 1,
"num_modified_lines": 56,... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/introspection_test.exs",
"test/support/fixtures/contact_schema.ex"
] | [] | [] |
0ebe9cba103f6fe03964abb6b50f10de95d57be8 | 2024-08-02 14:27:55 | docker.io/swerebenchv2/absinthe-graphql-absinthe:1334-0ebe9cb@sha256:87cf192c4ca168eb5347e000751334560cc89db793b1293fc45ec4b4caebe5a0 | absinthe-graphql__absinthe-1334 | No new interfaces are introduced. | elixir | custom-check-github | diff --git a/lib/absinthe/phase/schema/compile.ex b/lib/absinthe/phase/schema/compile.ex
index 50461193..a76a166e 100644
--- a/lib/absinthe/phase/schema/compile.ex
+++ b/lib/absinthe/phase/schema/compile.ex
@@ -8,7 +8,10 @@ defmodule Absinthe.Phase.Schema.Compile do
%{schema_definitions: [schema]} = blueprint
... | Fix type resolution by recursing prototypes
This fixes an issue when you have types declared in a Prototype (such as input_object input types for a directive). Previously type resolution would look on the Schema, but not the Prototype for the type definitions.
You _could_ workaround this by duplicating your type def... | Introspection query fails when using a prototype schema that defines types for use by directive arguments
If submitting a bug, please provide the following:
### Environment
* Elixir version (elixir -v): 1.14.4
* Absinthe version (mix deps | grep absinthe): 1.7.5
* Client Framework and version (Relay, Apollo, etc): N/... | absinthe-graphql/absinthe | diff --git a/test/absinthe/introspection_test.exs b/test/absinthe/introspection_test.exs
index c2e5dd1e..3479e5a9 100644
--- a/test/absinthe/introspection_test.exs
+++ b/test/absinthe/introspection_test.exs
@@ -89,6 +89,160 @@ defmodule Absinthe.IntrospectionTest do
end
end
+ describe "introspection of compl... | [
"introspection of complex directives renders type for complex directives"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/absinthe-graphql/absinthe/blob/mast... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/introspection_test.exs"
] | [] | [] |
5705d9a0e16bf425d29f5fc7a945bbff4d751ec5 | 2024-08-03 04:40:05 | docker.io/swerebenchv2/absinthe-graphql-absinthe:1336-5705d9a@sha256:60f786db612c0f56a19be9bfb6db992430f749cf9712f31a00cc14cae20cdc4d | absinthe-graphql__absinthe-1336 | No new interfaces are introduced. | elixir | custom-check-github | diff --git a/lib/absinthe/subscription.ex b/lib/absinthe/subscription.ex
index e6bddec2..e4386019 100644
--- a/lib/absinthe/subscription.ex
+++ b/lib/absinthe/subscription.ex
@@ -176,7 +176,7 @@ defmodule Absinthe.Subscription do
registry = pubsub |> registry_name
for field_key <- pdict_fields(doc_id) do
- ... | Unregsiter duplicate (listening to the same topic) subscriptions individually
This PR fixes #1335. Having two subscriptions listening to the same topic, unsubscribe on one subscription would remove both references from the registry disrupting messages heading for the second subscription. Thе fix is to use `unregister_m... | With duplicate subscriptions unsubscribing of one of the subs kills both records in Registry
### Environment
* Elixir version (elixir -v): Elixir 1.16.0 (compiled with Erlang/OTP 26)
* Absinthe version (mix deps | grep absinthe): 1.7.6
* Client Framework and version (Relay, Apollo, etc): Apollo, version is probably ir... | absinthe-graphql/absinthe | diff --git a/test/absinthe/execution/subscription_test.exs b/test/absinthe/execution/subscription_test.exs
index 34aa5435..faa872aa 100644
--- a/test/absinthe/execution/subscription_test.exs
+++ b/test/absinthe/execution/subscription_test.exs
@@ -314,6 +314,57 @@ defmodule Absinthe.Execution.SubscriptionTest do
re... | [
"can unsubscribe from duplicate subscriptions individually",
"unsubscribing one selection leaves a different selection registered"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/absinthe-graphql/absinthe/blob/5705d9... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/execution/subscription_test.exs"
] | [] | [] |
7f7cb9ef545a6319f55b88649d3952bd0aca7b39 | 2019-05-27 02:21:01 | docker.io/swerebenchv2/absinthe-graphql-absinthe:738-7f7cb9e@sha256:a07bfb3b4d8d90e4a02d6d74dbb5f731d36f369a9738726211bc049dbf1f7d63 | absinthe-graphql__absinthe-738 | Method: Arg(identifier, type, attrs) – Macro
Location: Absinthe.Schema.Notation
Inputs:
- **identifier** – atom, the argument’s internal name.
- **type** – any valid Absinthe type AST (e.g., `:string`, `:boolean`).
- **attrs** – keyword list of additional options (e.g., `name: "HasAttrs"`, `description: "…"`, `def... | elixir | custom-check-github | diff --git a/lib/absinthe/blueprint/schema.ex b/lib/absinthe/blueprint/schema.ex
index 4f1706b9..9277120b 100644
--- a/lib/absinthe/blueprint/schema.ex
+++ b/lib/absinthe/blueprint/schema.ex
@@ -94,6 +94,7 @@ defmodule Absinthe.Blueprint.Schema do
Schema.EnumTypeDefinition,
Schema.DirectiveDefinition,
Sc... | Fix #650 (@desc not working on field arguments)
- Fix #650 (`@desc` not working on field arguments)
- Also fixes the `:name` option not working for arguments
### Approach I took
Since `Absinthe.Blueprint.Schema.build_types/3` doesn't push a `InputValueDefinition` onto the stack (it sets is on the `FieldDefinitio... | @desc does not work for field arguments
### Environment
* Elixir version (elixir -v): 1.7.3
* Absinthe version (mix deps | grep absinthe): 1.5.0-alpha.1
### Expected behavior
```
query do
field :my_operation do
@desc "My argument description"
arg :my_arg, :integer
end
end
```
I expect the `@desc` call t... | absinthe-graphql/absinthe | diff --git a/test/absinthe/schema/notation/experimental/argument_test.exs b/test/absinthe/schema/notation/experimental/argument_test.exs
new file mode 100644
index 0000000..69e3961
--- /dev/null
+++ b/test/absinthe/schema/notation/experimental/argument_test.exs
@@ -0,0 +1,74 @@
+defmodule Absinthe.Schema.Notation.Exper... | [
"arg with @desc",
"arg with @desc and a description attr",
"arg with attrs",
"handle_arg_attrs/3 applies deprecation handling",
"handle_arg_attrs/3 keeps a supplied name and type",
"handle_arg_attrs/3 normalizes the name and type"
] | [
"arg with a bare type",
"arg with a description attribute as a literal"
] | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/schema/notation/experimental/argument_test.exs"
] | [] | [] |
0e1f75a438ca50540bfe2a8779091f21bcab7c98 | 2019-12-05 07:18:24 | docker.io/swerebenchv2/absinthe-graphql-absinthe:816-0e1f75a@sha256:e0adf8d70f07dca163675c2e813c85c92b930b0a32f71491cea5979c3d739a98 | absinthe-graphql__absinthe-816 | Method: Absinthe.Phase.Document.Execution.Resolution.maybe_add_non_null_error(errors, value, type)
Location: lib/absinthe/phase/document/execution/resolution.ex
Inputs:
- **errors** – list of existing error messages (typically `%{message: ..., locations: ..., path: ...}` structs); the function matches only when this l... | elixir | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c051d7e0..4b89d53f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,10 +8,10 @@ For changes pre-v1.5 see the [v1.4](https://github.com/absinthe-graphql/absinthe
- Feature: Output rendered SDL for a schema
- Feature: Substantially lower subscription memory usage.
- Doc... | Match latest spec and return single error
The latest GraphQL spec states we should _not_ add an additional error when a resolver returns an explicit error.
https://graphql.github.io/graphql-spec/June2018/#sec-Errors-and-Non-Nullability
closes #803
@benwilson512 | "Cannot return null for non-nullable field" present when error was specified
### Environment
```
Elixir 1.9.0 (compiled with Erlang/OTP 22)
```
```
absinthe 1.4.16 (Hex package) (mix)
absinthe_relay 1.4.6 (Hex package) (mix)
absinthe_plug 1.4.7 (Hex package) (mix)
```
### Expected behavior
According to [current GQL ... | absinthe-graphql/absinthe | diff --git a/test/absinthe/phase/execution/non_null_test.exs b/test/absinthe/phase/execution/non_null_test.exs
index 8f7e15d7..08c0af02 100644
--- a/test/absinthe/phase/execution/non_null_test.exs
+++ b/test/absinthe/phase/execution/non_null_test.exs
@@ -117,11 +117,6 @@ defmodule Absinthe.Phase.Document.Execution.NonN... | [
"error propogation to root field returns nil on data",
"returning an error from a non null field makes the parent nullable null",
"returning an error from a non null field makes the parent nullable null at arbitrary depth"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://graphql.github.io/graphql-spec/June2018",
... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/phase/execution/non_null_test.exs"
] | [] | [] |
d84f6c76421cd57aae7ce98986317c64d9b00587 | 2019-12-10 08:11:23 | docker.io/swerebenchv2/absinthe-graphql-absinthe:822-d84f6c7@sha256:c8b3fa9e48cd1d0f18404c8eba9240ae271d57924124a3db7b9c0ce63dd19e30 | absinthe-graphql__absinthe-822 | Method: Absinthe.Schema.Notation.expand(fun)
Location: Defined as a macro in `lib/absinthe/schema/notation.ex`; used inside a `directive` block.
Inputs: `fun` – a function of arity 2 (`(Absinthe.Resolution.t(), any) -> any`). The macro records the expansion function for the surrounding directive definition.
Outpu... | elixir | custom-check-github | diff --git a/.formatter.exs b/.formatter.exs
index 88cb0259..50e79de9 100644
--- a/.formatter.exs
+++ b/.formatter.exs
@@ -32,8 +32,6 @@ locals_without_parens = [
object: 3,
on: 1,
parse: 1,
- record_object!: 4,
- recordable!: 4,
resolve: 1,
resolve_type: 1,
scalar: 2,
diff --git a/lib/absinthe/sche... | Implement placement enforcement
This PR implements placement checking in the new 1.5 schemas
@benwilson512 @bruce
closes #820 | Placement checking for schema notation macros
We need to check the `@placement` annotations when building the schema based on macros
`master`:
* https://github.com/absinthe-graphql/absinthe/blob/master/lib/absinthe/schema/notation.ex#L1751
Logic in `1.4`:
* https://github.com/absinthe-graphql/absinthe/blob/v1.4.16/l... | absinthe-graphql/absinthe | diff --git a/test/absinthe/schema/notation_test.exs b/test/absinthe/schema/notation_test.exs
index 23e1dd7..1640ed9 100644
--- a/test/absinthe/schema/notation_test.exs
+++ b/test/absinthe/schema/notation_test.exs
@@ -1,8 +1,6 @@
defmodule Absinthe.Schema.NotationTest do
use Absinthe.Case, async: true
- @moduleta... | [
"arg cannot be toplevel",
"description cannot be toplevel",
"directive cannot be non-toplevel",
"enum cannot be non-toplevel",
"expand cannot be toplevel",
"expand cannot be within object",
"field cannot be toplevel",
"input_object cannot be non-toplevel",
"interface cannot be under input_object as ... | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/absinthe-graphql/absinthe/blob/mast... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/schema/notation_test.exs"
] | [] | [] |
95e88c4333165a737c20c24a4c7a49193663b328 | 2020-01-17 22:50:44 | docker.io/swerebenchv2/absinthe-graphql-absinthe:848-95e88c4@sha256:2bdc6bb611964e21349beb10a112b25840ac801bf43cab962e7612f33e969f8b | absinthe-graphql__absinthe-848 | Function: __absinthe_types__(group)
Location: Defined in the compiled module for every schema (e.g., ThirdSchema.__absinthe_types__/1, Absinthe.Type.InputObjectTest.Schema.__absinthe_types__/1, Absinthe.Type.ObjectTest.Schema.__absinthe_types__/1, SdlRenderTest.SdlTestSchema.__absinthe_types__/1)
Inputs:
- **group** (... | elixir | custom-check-github | diff --git a/lib/absinthe/blueprint/result/leaf.ex b/lib/absinthe/blueprint/result/leaf.ex
index fb68c9c5..d7409d17 100644
--- a/lib/absinthe/blueprint/result/leaf.ex
+++ b/lib/absinthe/blueprint/result/leaf.ex
@@ -14,7 +14,7 @@ defmodule Absinthe.Blueprint.Result.Leaf do
@type t :: %__MODULE__{
emitter... | Mark used types better
Fixes #845
@binaryseed this solves the original issue where SDL would export undesired types. I've hit some snags trying to eliminate unused types entirely, will keep iterating on it. | SDL export excess types
With the following schema:
```elixir
defmodule Schema do
use Absinthe.Schema
object :query_fields do
field :foo, :integer
end
query name: "Query" do
import_fields :query_fields
end
end
```
I perform `mix absinthe.schema.sdl --schema Schema`
And it looks like all the object... | absinthe-graphql/absinthe | diff --git a/test/absinthe/schema/sdl_render_test.exs b/test/absinthe/schema/sdl_render_test.exs
index 9dd631d..dbb504f 100644
--- a/test/absinthe/schema/sdl_render_test.exs
+++ b/test/absinthe/schema/sdl_render_test.exs
@@ -4,6 +4,8 @@ defmodule SdlRenderTest do
defmodule SdlTestSchema do
use Absinthe.Schema
... | [
"Render SDL from blueprint defined with macros",
"SDL omits an object imported into the query while keeping its fields"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/schema/sdl_render_test.exs",
"test/absinthe/schema_test.exs",
"test/absinthe/type/input_object_test.exs",
"test/absinthe/type/object_test.exs"
] | [] | [] |
a5ed98fe4a29ecc6606c512625a36f726dc61e26 | 2020-02-06 17:17:28 | docker.io/swerebenchv2/absinthe-graphql-absinthe:865-a5ed98f@sha256:d4474c63784f6f82c2f00ada0bd681bfe0c1c01be3f317eeb390ce186b3df1da | absinthe-graphql__absinthe-865 | No new interfaces are introduced. | elixir | custom-check-github | diff --git a/lib/absinthe/schema/notation.ex b/lib/absinthe/schema/notation.ex
index bfd6af2d..f0cf87eb 100644
--- a/lib/absinthe/schema/notation.ex
+++ b/lib/absinthe/schema/notation.ex
@@ -1542,6 +1542,20 @@ defmodule Absinthe.Schema.Notation do
end
end
+ defp do_import_types(
+ {{:., _, [{:__alias... | Support "batching" type imports relative to __MODULE__
This PR should fix #864 by adding a clause for `do_import_types/3` that handles imports like this:
``` elixir
import_types __MODULE__.Types.{Category, OtherType}
```
<!--
### Precheck
Thank you for submitting a pull request! Absinthe is a large
proje... | Document changes to import_types in 1.5
### Environment
* Elixir version (elixir -v): 1.9.2
* Absinthe version (mix deps | grep absinthe): 1.5.0-rc.2
* Client Framework and version (Relay, Apollo, etc): N/A
Need some documentation around the fact that `import_types` wont work for "batched" imports, the same way it di... | absinthe-graphql/absinthe | diff --git a/test/absinthe/type/import_types_test.exs b/test/absinthe/type/import_types_test.exs
index f86d805..a0c01a9 100644
--- a/test/absinthe/type/import_types_test.exs
+++ b/test/absinthe/type/import_types_test.exs
@@ -29,9 +29,14 @@ defmodule Absinthe.Type.ImportTypesTest do
end
test "works with __MO... | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | [] | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/absinthe-graphql/absinthe/blob/v1.5... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/type/import_types_test.exs",
"test/support/fixtures/dynamic/import_types.ex"
] | [] | [] |
52ad5fdd138b820bfaa728e5114bca086e3aa254 | 2020-03-09 22:20:05 | docker.io/swerebenchv2/absinthe-graphql-absinthe:878-52ad5fd@sha256:ce3f56c0b9a43ecedb84790bc3316359395da62fd14d9ad483c742e7ebd37778 | absinthe-graphql__absinthe-878 | Function: non_null(type)
Location: `Absinthe.Schema.Notation` module – macro definition `defmacro non_null/1`.
Inputs:
- **type** – an AST node representing a GraphQL type reference (e.g., `:string`, `list_of(:int)`).
The macro pattern‑matches on the form `{:non_null, _, _}` to detect a nested `non_null`; any other... | elixir | custom-check-github | diff --git a/lib/absinthe/schema/notation.ex b/lib/absinthe/schema/notation.ex
index 80447ab5..4dc9d0e3 100644
--- a/lib/absinthe/schema/notation.ex
+++ b/lib/absinthe/schema/notation.ex
@@ -1081,6 +1081,12 @@ defmodule Absinthe.Schema.Notation do
See `field/3` for examples
"""
+
+ defmacro non_null({:non_null... | Do not allow nested non_null
Do not allow nested `non_null`, as that doesn't make sense, and is not allowed in the spec:
http://spec.graphql.org/draft/#sec-Type-System.Non-Null.Type-Validation
Fixes #877 | Nested `non_null` not caught by schema validator
### Environment
* Elixir version (elixir -v): 1.9.4
* Absinthe version (mix deps | grep absinthe): 1.5.0-rc.3
* Client Framework and version (Relay, Apollo, etc): Apollo
### Expected behavior
The schema validator should catch nested `non_null` field definitions at com... | absinthe-graphql/absinthe | diff --git a/test/absinthe/schema/notation_test.exs b/test/absinthe/schema/notation_test.exs
index 9d45d6e..313c4ea 100644
--- a/test/absinthe/schema/notation_test.exs
+++ b/test/absinthe/schema/notation_test.exs
@@ -534,6 +534,17 @@ defmodule Absinthe.Schema.NotationTest do
end
end
+ test "No nested non_nul... | [
"No nested non_null"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/schema/notation_test.exs"
] | [] | [] |
730bacdd305bdadf8e39ae2024178834dbd56368 | 2020-04-26 16:56:12 | docker.io/swerebenchv2/absinthe-graphql-absinthe:910-730bacd@sha256:9b7c7b003035af88a97d8e8c9160873a35be9c96796899b7a4f10d355b820b22 | absinthe-graphql__absinthe-910 | Function: value(identifier, raw_attrs \\ [])
Location: Absinthe.Schema.Notation (defmacro)
Inputs:
- **identifier** – atom that names the enum value.
- **raw_attrs** – keyword list of attributes for the enum value, commonly includes `as: literal_term` where the literal may be any Elixir term (integer, atom, string, ... | elixir | custom-check-github | diff --git a/lib/absinthe/schema/notation.ex b/lib/absinthe/schema/notation.ex
index 4dc9d0e3..cf3bae7e 100644
--- a/lib/absinthe/schema/notation.ex
+++ b/lib/absinthe/schema/notation.ex
@@ -1049,9 +1049,11 @@ defmodule Absinthe.Schema.Notation do
#{Utils.placement_docs(@placement)}
"""
defmacro value(identifi... | Handle negative enum value
Negative numbers are not represented in AST as literals so they need to be expanded.
Fixes #908
| Value as negative integer error
### Environment
* Elixir 1.9.4 (compiled with Erlang/OTP 22)
* absinthe 1.5.0-rc.5
### Expected behavior
After upgrading `absinthe` from `1.4` to `1.5-pre` I can't use negative numbers as `Enum` values anymore.
```
enum :upvote_direction do
value(:upvote, as: 1)
value(:downvote, ... | absinthe-graphql/absinthe | diff --git a/test/absinthe/type/enum_test.exs b/test/absinthe/type/enum_test.exs
index ed26a1d..0e569ad 100644
--- a/test/absinthe/type/enum_test.exs
+++ b/test/absinthe/type/enum_test.exs
@@ -12,6 +12,12 @@ defmodule Absinthe.Type.EnumTest do
{:ok, :red}
end
end
+
+ field :negative_valu... | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | [
"Absinthe.Logger.document/1 given a blueprint document with a name, is [COMPILED#<name>]",
"Absinthe.Logger.document/1 given a blueprint document without a name, is [COMPILED]",
"Absinthe.Logger.document/1 given a non-empty string, is the document with a leading newline",
"Absinthe.Logger.document/1 given an ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/type/enum_test.exs"
] | [] | [
"weak_f2p"
] |
5a3ea4be0b81cd2d398e6392213f18ab04c9a6a0 | 2020-06-08 21:23:59 | docker.io/swerebenchv2/absinthe-graphql-absinthe:944-5a3ea4b@sha256:1e3630c31f777fd77b7ae141895f22b2941615f18690d9b056462bcd34471427 | absinthe-graphql__absinthe-944 | No new interfaces are introduced. | elixir | custom-check-github | diff --git a/guides/subscriptions.md b/guides/subscriptions.md
index a30f97e1..a9dffc60 100644
--- a/guides/subscriptions.md
+++ b/guides/subscriptions.md
@@ -63,7 +63,7 @@ In your `MyAppWeb.Endpoint` module add:
use Absinthe.Phoenix.Endpoint
```
-For your socket, different configurations are used in `MyAppWeb.User... | Fix enum default value to work properly with list values.
An attempt to fix #941.
### The problem
The current `default_value` for enum looks like this:
```ex
default_valid? =
List.wrap(default_value)
|> Enum.all?(fn default -> default in values end)
```
It's quite limited as doesn't really take type... | [Enum] Default value not interpreted properly in case of keyword list
Given the following enum definition
```ex
enum :project_order_by do
value :inserted_at_asc, as: [asc: :inserted_at]
value :inserted_at_desc, as: [desc: :inserted_at]
end
```
and the following field with a default enum argument
```ex
field :pro... | absinthe-graphql/absinthe | diff --git a/test/absinthe/schema/rule/default_enum_value_present_test.exs b/test/absinthe/schema/rule/default_enum_value_present_test.exs
index 226e0cc5..aae35f40 100644
--- a/test/absinthe/schema/rule/default_enum_value_present_test.exs
+++ b/test/absinthe/schema/rule/default_enum_value_present_test.exs
@@ -2,7 +2,7 ... | [
"rule passes when the default_value is a list and that list is a valid enum value"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/absinthe-graphql/absinthe/blob/0060... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/schema/rule/default_enum_value_present_test.exs"
] | [] | [] |
8e9bb8673e6c138bf37fe8e487532bca2270ee10 | 2020-11-28 03:56:11 | docker.io/swerebenchv2/absinthe-graphql-absinthe:998-8e9bb86@sha256:8be6a8bf10123659b693d1ae94286ec05ecdbc7d357141864c016ec40005b4d7 | absinthe-graphql__absinthe-998 | Function: render_default_value(schema, adapter, field, value)
Location: lib/absinthe/type/built_ins/introspection.ex
Inputs:
- **schema** – the Absinthe.Schema where the type is defined.
- **adapter** – an Absinthe.Adapter implementation used for value serialization.
- **field** – an %Absinthe.Type.InputValue{} de... | elixir | custom-check-github | diff --git a/lib/absinthe/type/built_ins/introspection.ex b/lib/absinthe/type/built_ins/introspection.ex
index 837ca30e..3d3c9953 100644
--- a/lib/absinthe/type/built_ins/introspection.ex
+++ b/lib/absinthe/type/built_ins/introspection.ex
@@ -353,7 +353,9 @@ defmodule Absinthe.Type.BuiltIns.Introspection do
case A... | Fix partial default value input type
This PR fixes the default value rendering in cases when the default value contains just a subset of all the fields of an input type.
Fixes #939 | Introspection query breaks in the presence of query filters with default value
### Environment
* Elixir version (elixir -v):
```bash
Erlang/OTP 22 [erts-10.5] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
Elixir 1.9.4 (compiled with Erlang/OTP 20)
```
* Absinthe version (mix deps | grep absinthe):
`1.5.1`
* Client ... | absinthe-graphql/absinthe | diff --git a/test/absinthe/introspection_test.exs b/test/absinthe/introspection_test.exs
index d58e93a..7a9da38 100644
--- a/test/absinthe/introspection_test.exs
+++ b/test/absinthe/introspection_test.exs
@@ -241,28 +241,23 @@ defmodule Absinthe.IntrospectionTest do
"""
|> run(ComplexDefaultSchema)
... | [
"properly render partial default value input objects"
] | [
".before raises an exception if one can't be found",
".before returns the phases before",
".insert_before inserts the phase before",
".insert_before raises an exception if one can't be found",
".meta/1 when metadata is defined, returns the metadata as a map",
".meta/1 when no metadata is defined, returns ... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe | [] | [
"test/absinthe/introspection_test.exs",
"test/support/fixtures/arguments_schema.ex"
] | [] | [] |
5e8fdb9a0b6ad85f2fe4e2dab0c0ace7f4d6ab94 | 2021-02-04 22:22:41 | docker.io/swerebenchv2/absinthe-graphql-absinthe-plug:249-5e8fdb9@sha256:f41e140ed8806360092777aa628f01105209ff3cef91c3116c7dc244ab1c3b27 | absinthe-graphql__absinthe_plug-249 | Function: update_config(conn, config)
Location: lib/absinthe/plug.ex
Inputs:
- **conn** – a `Plug.Conn` struct from which private options (e.g., `:pubsub`, `:raw_options`, `:init_options`) are read.
- **config** – the existing Absinthe plug configuration (typically returned by `Absinthe.Plug.init/1`), containing field... | elixir | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 39adbc1..d0312e2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## v1.5.5
+
+- Bug Fix: [Don't wipe out an existing pubsub value in context](https://github.com/absinthe-graphql/absinthe_plug/pull/249)
+
## v1.5.4
- Feature: [Set all plug o... | Fix update_config bug
This PR fixes a bug in the `update_config` function so that it doesn't stomp any existing values in the `context`
Fixes #247 | upgrade from 1.5.3 to 1.5.4 breaks default pub sub option
The upgrade from 1.5.3 to 1.5.4 broke our application. We didn't set the `pubsub` option explicitly, but relied on the default `conn.private[:phoenix_endpoint]`. After the upgrade, this default apparently gets overwritten by the `update_config` function. We noti... | absinthe-graphql/absinthe_plug | diff --git a/test/lib/absinthe/plug_test.exs b/test/lib/absinthe/plug_test.exs
index 7a5364e..acc3a89 100644
--- a/test/lib/absinthe/plug_test.exs
+++ b/test/lib/absinthe/plug_test.exs
@@ -1,3 +1,27 @@
+defmodule Absinthe.PlugTest.PubSubSchema do
+ use Absinthe.Schema
+
+ query do
+ field :status, :boolean do
+ ... | [
"Subscriptions over HTTP with Server Sent Events chunked response"
] | [
".get compiled",
".get source",
"HTTP mutations receive the endpoint pubsub by default",
"Handle an accidentally double encoded JSON body",
"accept: text/html works",
"assign_context/2 doesn't wipe out previously set context if called twice",
"assign_context/2 values are merged properly",
"assign_cont... | {
"base_image_name": "elixir_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | [
"swe-rebench",
"swe-rebench-v2.1",
"elixir"
] | /absinthe_plug | [] | [
"test/lib/absinthe/plug_test.exs"
] | [] | [] |
739b4713cad1f91aefb1d17137377a880a692a0a | 2015-06-24 00:27:09 | docker.io/swerebenchv2/abuiles-ember-watson:49-739b471@sha256:bff302ce2d7487687483b1fb624fe70c6ca20b5ebfbd56bbcf974ea116642437 | abuiles__ember-watson-49 | Method: convert-ember-data-model-lookups.run(commandOptions, rawArgs)
Location: addon/commands/convert-ember-data-model-lookups.js
Inputs:
- **commandOptions** – Object (currently unused by this command).
- **rawArgs** – Array <string>. If present, the first element is interpreted as the directory to scan; otherwise de... | js | MIT | diff --git a/.jshintrc b/.jshintrc
index 39d2407..3363301 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -3,6 +3,7 @@
"require",
"describe",
"beforeEach",
+ "afterEach",
"it"
],
"node": true
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5f8feb9..4c84b67 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG... | Pass correct path to transformers
Fixes #47
//cc @abuiles | ENOENT, no such file or directory 'undefined/
When running `ember watson:convert-ember-data-model-lookups`, I get this:
```
ENOENT, no such file or directory 'undefined/'
Error: ENOENT, no such file or directory 'undefined/'
at Error (native)
at Object.fs.readdirSync (fs.js:761:18)
at walkSync (/Users/Tris... | abuiles/ember-watson | diff --git a/addon/commands/upgrade-qunit-tests.js b/addon/commands/upgrade-qunit-tests.js
index 081fe5b..07bc36b 100644
--- a/addon/commands/upgrade-qunit-tests.js
+++ b/addon/commands/upgrade-qunit-tests.js
@@ -12,7 +12,6 @@ module.exports = {
],
run: function(commandOptions, rawArgs) {
var path = rawArgs[... | [
"convert-ember-data-model-lookups calls the transform with the default or positional path",
"should pass for working directory"
] | [
"add skip if used",
"adds explicit async: false to options",
"custom path",
"default path",
"does not change the file if it is correct",
"includes Ember if not imported",
"includes Ember only if transformations are made",
"makes the correct transformations",
"migrates to a dasherized string",
"mig... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"js"
] | /ember-watson | [] | [
"addon/commands/upgrade-qunit-tests.js",
"tests/commands-test.js",
"tests/fixtures/prototype-extension-files/new.js",
"tests/fixtures/prototype-extension-files/old.js",
"tests/helpers/ast-equality.js"
] | [] | [] |
728bfcbc9fa45e3ec152bcd5146291527a657b88 | 2025-01-27 18:32:31 | docker.io/swerebenchv2/aburrell-ocbpy:144-728bfcb@sha256:5dee961ebe55a355d5c2b6eca4673513fa7c91edd509ce703f23cfbfacb91dc4 | aburrell__ocbpy-144 | python | BSD-3-Clause | diff --git a/Changelog.rst b/Changelog.rst
index 92250ee..0f0e843 100644
--- a/Changelog.rst
+++ b/Changelog.rst
@@ -7,6 +7,9 @@ Summary of all changes made since the first stable release
------------------
* DEP: Removed deprecated functions that depend on ssj_auroral_boundary package
* DEP: Removed deprecated meth... | dual boundary class can have a bad pair
**Describe the bug**
When running the vorticity pairing with a dual boundary class, it failed when a 'pair' was established with a good OCB and an EAB index outside of the data range.
**To Reproduce**
Steps to reproduce the behavior:
```
stime = dt.datetime(2000,1,1)
etime = dt.... | aburrell/ocbpy | diff --git a/ocbpy/tests/test_boundary_dual.py b/ocbpy/tests/test_boundary_dual.py
index 9e88808..679e2b0 100644
--- a/ocbpy/tests/test_boundary_dual.py
+++ b/ocbpy/tests/test_boundary_dual.py
@@ -265,6 +265,17 @@ class TestDualBoundaryMethodsGeneral(test_ocb.TestOCBoundaryMethodsGeneral):
self.assertE... | [
"ocbpy/tests/test_vort.py::TestVort2AsciiMethods::test_vort2ascii_ocb_skips_out_of_range_eab_pair"
] | [
"ocbpy/tests/test_boundary_dual.py::TestDualBoundaryFailure::test_bad_boundaries",
"ocbpy/tests/test_boundary_dual.py::TestDualBoundaryFailure::test_bad_max_delta",
"ocbpy/tests/test_boundary_dual.py::TestDualBoundaryInstruments::test_instrument_loading",
"ocbpy/tests/test_boundary_dual.py::TestDualBoundaryLo... | {
"base_image_name": null,
"docker_specs": null,
"install": [
"apt-get update",
"apt-get install -y gcc",
"pip install -e .[dev]"
],
"log_parser": "parse_log_pytest",
"test_cmd": "cd /ocbpy && source /opt/conda/etc/profile.d/conda.sh && { conda activate testbed 2>/dev/null || conda activate base... | {
"llm_metadata": null,
"num_modified_files": 3,
"num_modified_lines": 77,
"pr_author": null,
"pr_labels": null,
"pr_url": "https://github.com/aburrell/ocbpy/pull/144"
} | [
"swe-rebench",
"swe-rebench-v2.1",
"python",
"swe-rebench-v1"
] | /ocbpy | [] | [
"ocbpy/tests/test_boundary_dual.py",
"ocbpy/tests/test_vort.py"
] | [] | [] | ||
d6fff83a769797fe6b491d16193808b4ae585f6f | 2025-03-30 05:24:34 | docker.io/swerebenchv2/academysoftwarefoundation-opentimelineio@sha256:401c60be0a170dfc20c629423ebbe10bd3546b87fe3cb72d8c58b155a06cb7ea | academysoftwarefoundation__opentimelineio-1862 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/src/py-opentimelineio/opentimelineio/url_utils.py b/src/py-opentimelineio/opentimelineio/url_utils.py
index a67ad52..d99cc9b 100644
--- a/src/py-opentimelineio/opentimelineio/url_utils.py
+++ b/src/py-opentimelineio/opentimelineio/url_utils.py
@@ -77,7 +77,11 @@ def filepath_from_url(urlstr):
file... | Fix bug w/ url_utils.filepath_from_url + rel paths with a single "/"
* Fix traceback when using relative paths with one "/" and not two "/" were triggering a traceback - ie "./blah" but not "./blah/blah" in url_utils.
* url_utils is used by the otioz adapter (Which is where this was originally reported)
Fixes #181... | otioconvert to OTIOZ fails with relative media target_urls
## Description
otioconvert fails to convert OTIO to OTIOZ if there are media target_urls which start with "./"
Related bug: https://github.com/AcademySoftwareFoundation/OpenTimelineIO/issues/1783
## Reproduction Steps
1. Download the attached OTIO and media... | AcademySoftwareFoundation/OpenTimelineIO | diff --git a/tests/test_url_conversions.py b/tests/test_url_conversions.py
index 2e51901..e3d12af 100644
--- a/tests/test_url_conversions.py
+++ b/tests/test_url_conversions.py
@@ -5,6 +5,8 @@
import unittest
import os
+import shutil
+import tempfile
import opentimelineio as otio
@@ -79,6 +81,41 @@ class TestC... | [
"tests/test_url_conversions.py::TestConversions::test_relative_url_conversion"
] | [
"tests/test_url_conversions.py::TestConversions::test_posix_urls",
"tests/test_url_conversions.py::TestConversions::test_roundtrip_abs",
"tests/test_url_conversions.py::TestConversions::test_roundtrip_rel",
"tests/test_url_conversions.py::TestConversions::test_windows_unc_urls",
"tests/test_url_conversions.... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/AcademySoftwareFoundation/OpenTimelin... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /OpenTimelineIO | [] | [
"tests/test_url_conversions.py"
] | [] | [] |
09bf497c8906d1bfacf0d5169c4e187be6ced94e | 2024-10-26 16:45:01 | docker.io/swerebenchv2/academysoftwarefoundation-rez@sha256:ed7a75016d6c25897761761cee8dc0cecf408ad231a78b89762ea5b81e0dcae2 | academysoftwarefoundation__rez-1863 | Method: ResolvedContext.load(context_path)
Location: src/rez/resolved_context.py (class ResolvedContext)
Inputs:
- **context_path** (str): Filesystem path to a serialized context JSON file (e.g., a “resolved_context‑X.Y.json” file). The file may be from any supported serialize_version, including older versions that la... | python | Apache-2.0 | diff --git a/src/rez/resolved_context.py b/src/rez/resolved_context.py
index 0661978c..98082242 100644
--- a/src/rez/resolved_context.py
+++ b/src/rez/resolved_context.py
@@ -134,7 +134,7 @@ class ResolvedContext(object):
command within a configured python namespace, without spawning a child
shell.
"""
-... | Fix key error on getting the "testing" key on older contexts
Fixes #1862.
Now with a test to make sure we never regress. | Bake resolves with rez<3.2.0 can't be loaded due to missing `testing` key
Baked resolves generated with older versions are not compatible with rez-3.2.0.
Note a regression per say but a breaking change
**Environment**
* windows 10
* 3.2.0
* Python 3.11.4
**To Reproduce**
1. using rez-3.0.0, bake a simple resolve into... | AcademySoftwareFoundation/rez | diff --git a/src/rez/data/tests/contexts/resolved_context-4.8.json b/src/rez/data/tests/contexts/resolved_context-4.8.json
new file mode 100644
index 00000000..a92be60f
--- /dev/null
+++ b/src/rez/data/tests/contexts/resolved_context-4.8.json
@@ -0,0 +1,51 @@
+{
+ "append_sys_path": true,
+ "arch": "x86_64",
+ ... | [
"src/rez/tests/test_context.py::TestContext::test_deserialize_older_versions"
] | [
"src/rez/tests/test_context.py::TestContext::test_apply",
"src/rez/tests/test_context.py::TestContext::test_create_context",
"src/rez/tests/test_context.py::TestContext::test_execute_command",
"src/rez/tests/test_context.py::TestContext::test_orderer_package_argument",
"src/rez/tests/test_context.py::TestCo... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... | [
"swe-rebench",
"swe-rebench-v2.1",
"python"
] | /rez | [] | [
"src/rez/data/tests/contexts/resolved_context-4.8.json",
"src/rez/tests/test_context.py"
] | [] | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.