Datasets:
Commit ·
45721da
0
Parent(s):
SWE-PolyVision public task set (48 tasks): statements, assets and environment only
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +61 -0
- README.md +64 -0
- dataset.jsonl +0 -0
- instance_ids.json +50 -0
- tasks/GoogleChrome__lighthouse-5917/Dockerfile +53 -0
- tasks/GoogleChrome__lighthouse-5917/assets/001.png +3 -0
- tasks/GoogleChrome__lighthouse-5917/assets/002.png +3 -0
- tasks/GoogleChrome__lighthouse-5917/assets/003.png +3 -0
- tasks/GoogleChrome__lighthouse-5917/meta.json +18 -0
- tasks/GoogleChrome__lighthouse-5917/problem_statement.txt +176 -0
- tasks/PrismJS__prism-2509/Dockerfile +45 -0
- tasks/PrismJS__prism-2509/assets/001.png +3 -0
- tasks/PrismJS__prism-2509/assets/002.png +3 -0
- tasks/PrismJS__prism-2509/assets/003.png +3 -0
- tasks/PrismJS__prism-2509/assets/004.png +3 -0
- tasks/PrismJS__prism-2509/meta.json +19 -0
- tasks/PrismJS__prism-2509/problem_statement.txt +64 -0
- tasks/apache__echarts-10173/Dockerfile +77 -0
- tasks/apache__echarts-10173/assets/001.png +3 -0
- tasks/apache__echarts-10173/assets/002.png +3 -0
- tasks/apache__echarts-10173/assets/003.gif +3 -0
- tasks/apache__echarts-10173/assets/004.gif +3 -0
- tasks/apache__echarts-10173/meta.json +19 -0
- tasks/apache__echarts-10173/problem_statement.txt +51 -0
- tasks/apache__echarts-12850/Dockerfile +77 -0
- tasks/apache__echarts-12850/assets/001.png +3 -0
- tasks/apache__echarts-12850/assets/002.png +3 -0
- tasks/apache__echarts-12850/assets/003.png +3 -0
- tasks/apache__echarts-12850/assets/004.png +3 -0
- tasks/apache__echarts-12850/meta.json +19 -0
- tasks/apache__echarts-12850/problem_statement.txt +35 -0
- tasks/ariakit__ariakit-4251/Dockerfile +66 -0
- tasks/ariakit__ariakit-4251/assets/001.png +3 -0
- tasks/ariakit__ariakit-4251/assets/002.png +3 -0
- tasks/ariakit__ariakit-4251/assets/003.png +3 -0
- tasks/ariakit__ariakit-4251/meta.json +18 -0
- tasks/ariakit__ariakit-4251/problem_statement.txt +36 -0
- tasks/ariakit__ariakit-520/Dockerfile +64 -0
- tasks/ariakit__ariakit-520/assets/001.png +3 -0
- tasks/ariakit__ariakit-520/assets/002.png +3 -0
- tasks/ariakit__ariakit-520/meta.json +17 -0
- tasks/ariakit__ariakit-520/problem_statement.txt +80 -0
- tasks/bpmn-io__bpmn-js-1442/Dockerfile +96 -0
- tasks/bpmn-io__bpmn-js-1442/assets/001.gif +3 -0
- tasks/bpmn-io__bpmn-js-1442/assets/002.gif +3 -0
- tasks/bpmn-io__bpmn-js-1442/assets/003.gif +3 -0
- tasks/bpmn-io__bpmn-js-1442/assets/004.gif +3 -0
- tasks/bpmn-io__bpmn-js-1442/meta.json +19 -0
- tasks/bpmn-io__bpmn-js-1442/problem_statement.txt +58 -0
- tasks/chakra-ui__chakra-ui-5651/Dockerfile +48 -0
.gitattributes
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
tasks/directus__directus-26739/assets/001.mov filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- software-engineering
|
| 9 |
+
- multimodal
|
| 10 |
+
- swe-bench
|
| 11 |
+
- code-repair
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# SWE-PolyVision Public Tasks
|
| 17 |
+
|
| 18 |
+
Public question package for SWE-PolyVision from CosmosMind AI Lab.
|
| 19 |
+
|
| 20 |
+
This release contains the 48 tasks used in the benchmark. Each task includes only
|
| 21 |
+
the task statement, the fixed repository revision, and the visual evidence needed
|
| 22 |
+
to inspect the issue. Developer patches, reference fixes, verifier assets, model
|
| 23 |
+
results, traces, and answer materials are intentionally excluded.
|
| 24 |
+
|
| 25 |
+
The task statements are derived from the benchmark packages and scrubbed at the
|
| 26 |
+
boundary before the pre-fix discussion / reference-fix section.
|
| 27 |
+
|
| 28 |
+
## Layout
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
dataset.jsonl one JSON object per line
|
| 32 |
+
tasks/<instance_id>/
|
| 33 |
+
problem_statement.txt issue text
|
| 34 |
+
Dockerfile environment definition
|
| 35 |
+
meta.json task metadata
|
| 36 |
+
assets/ issue screenshots; videos also carry
|
| 37 |
+
derived/<id>/frame-NN.png extracted frames
|
| 38 |
+
instance_ids.json the 48 instance ids
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## `dataset.jsonl` schema
|
| 42 |
+
|
| 43 |
+
```json
|
| 44 |
+
{
|
| 45 |
+
"repo": "WordPress/gutenberg",
|
| 46 |
+
"instance_id": "WordPress__gutenberg-77229",
|
| 47 |
+
"base_commit": "763b5253aa8d3487ce10f95dfb983d9ca2ff00d5",
|
| 48 |
+
"problem_statement": "issue text, including reproduction steps and image references",
|
| 49 |
+
"created_at": "2026-04-10T12:35:52Z",
|
| 50 |
+
"version": "v22.6.0-rc.1",
|
| 51 |
+
"environment_setup_commit": "763b5253aa8d3487ce10f95dfb983d9ca2ff00d5",
|
| 52 |
+
"image_assets": "{\"problem_statement\":[\"assets/WordPress__gutenberg-77229/001.png\"],\"patch\":[],\"test_patch\":[]}"
|
| 53 |
+
}
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
`image_assets` is a JSON-encoded string, following the SWE-bench convention.
|
| 57 |
+
Its paths are derived from the actual files under `tasks/<instance_id>/assets/`.
|
| 58 |
+
|
| 59 |
+
`created_at` and `version` are empty for a subset of tasks whose upstream
|
| 60 |
+
metadata did not record them.
|
| 61 |
+
|
| 62 |
+
## Citation
|
| 63 |
+
|
| 64 |
+
To be announced.
|
dataset.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
instance_ids.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"GoogleChrome__lighthouse-5917",
|
| 3 |
+
"PrismJS__prism-2509",
|
| 4 |
+
"apache__echarts-10173",
|
| 5 |
+
"apache__echarts-12850",
|
| 6 |
+
"ariakit__ariakit-4251",
|
| 7 |
+
"ariakit__ariakit-520",
|
| 8 |
+
"bpmn-io__bpmn-js-1442",
|
| 9 |
+
"chakra-ui__chakra-ui-5651",
|
| 10 |
+
"chartjs__Chart.js-10766",
|
| 11 |
+
"chartjs__Chart.js-3192",
|
| 12 |
+
"chartjs__Chart.js-3584",
|
| 13 |
+
"chartjs__Chart.js-4774",
|
| 14 |
+
"ckeditor__ckeditor5-14413",
|
| 15 |
+
"ckeditor__ckeditor5-14706",
|
| 16 |
+
"ckeditor__ckeditor5-8015",
|
| 17 |
+
"cypress-io__cypress-7742",
|
| 18 |
+
"cypress-io__cypress-9254",
|
| 19 |
+
"cypress-io__cypress-9281",
|
| 20 |
+
"directus__directus-20185",
|
| 21 |
+
"directus__directus-26045",
|
| 22 |
+
"directus__directus-26739",
|
| 23 |
+
"eslint__eslint-11799",
|
| 24 |
+
"fabricjs__fabric.js-5382",
|
| 25 |
+
"grafana__grafana-128996",
|
| 26 |
+
"grommet__grommet-4402",
|
| 27 |
+
"grommet__grommet-6490",
|
| 28 |
+
"highlightjs__highlight.js-2219",
|
| 29 |
+
"ionic-team__ionic-framework-27816",
|
| 30 |
+
"ionic-team__ionic-framework-28049",
|
| 31 |
+
"mapbox__mapbox-gl-js-9028",
|
| 32 |
+
"mermaid-js__mermaid-4804",
|
| 33 |
+
"microsoft__fluentui-33529",
|
| 34 |
+
"microsoft__vscode-312585",
|
| 35 |
+
"microsoft__vscode-321227",
|
| 36 |
+
"mrdoob__three.js-33438",
|
| 37 |
+
"mui__material-ui-39071",
|
| 38 |
+
"mui__material-ui-40865",
|
| 39 |
+
"openlayers__openlayers-13013",
|
| 40 |
+
"openlayers__openlayers-15685",
|
| 41 |
+
"outline__outline-12569",
|
| 42 |
+
"plotly__plotly.js-1901",
|
| 43 |
+
"plotly__plotly.js-4977",
|
| 44 |
+
"pnpm__pnpm-4969",
|
| 45 |
+
"processing__p5.js-8712",
|
| 46 |
+
"quarto-dev__quarto-cli-13215",
|
| 47 |
+
"quarto-dev__quarto-cli-5018",
|
| 48 |
+
"react-hook-form__react-hook-form-6774",
|
| 49 |
+
"storybookjs__storybook-22336"
|
| 50 |
+
]
|
tasks/GoogleChrome__lighthouse-5917/Dockerfile
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:14.21.3-bullseye
|
| 2 |
+
|
| 3 |
+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
| 4 |
+
|
| 5 |
+
RUN set -eux; \
|
| 6 |
+
printf '%s\n' \
|
| 7 |
+
'Acquire::Retries "5";' \
|
| 8 |
+
'Acquire::http::Timeout "30";' \
|
| 9 |
+
'Acquire::https::Timeout "30";' \
|
| 10 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 11 |
+
'Acquire::https::Pipeline-Depth "0";' \
|
| 12 |
+
'Acquire::BrokenProxy "true";' \
|
| 13 |
+
> /etc/apt/apt.conf.d/80-retries; \
|
| 14 |
+
sed -i \
|
| 15 |
+
-e 's|http://deb.debian.org|https://deb.debian.org|g' \
|
| 16 |
+
-e 's|http://security.debian.org|https://security.debian.org|g' \
|
| 17 |
+
/etc/apt/sources.list; \
|
| 18 |
+
success=0; \
|
| 19 |
+
for attempt in 1 2 3 4 5; do \
|
| 20 |
+
if apt-get update && apt-get install -y --no-install-recommends \
|
| 21 |
+
bash \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
patch \
|
| 27 |
+
python3 \
|
| 28 |
+
wget; then \
|
| 29 |
+
success=1; \
|
| 30 |
+
break; \
|
| 31 |
+
fi; \
|
| 32 |
+
echo "apt attempt ${attempt} failed; retrying"; \
|
| 33 |
+
sleep "$((attempt * 5))"; \
|
| 34 |
+
done; \
|
| 35 |
+
if [ "$success" -ne 1 ]; then exit 1; fi; \
|
| 36 |
+
apt-get clean; \
|
| 37 |
+
find /var/lib/apt/lists -mindepth 1 -delete
|
| 38 |
+
|
| 39 |
+
RUN if ! command -v yarn >/dev/null 2>&1; then \
|
| 40 |
+
npm install --global yarn@1.22.22; \
|
| 41 |
+
fi; \
|
| 42 |
+
yarn --version
|
| 43 |
+
|
| 44 |
+
RUN git clone https://github.com/GoogleChrome/lighthouse.git /testbed && \
|
| 45 |
+
cd /testbed && \
|
| 46 |
+
git checkout --detach 3ad529d937a4aa5af4e68575c6780676edd23248
|
| 47 |
+
|
| 48 |
+
WORKDIR /testbed
|
| 49 |
+
|
| 50 |
+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
| 51 |
+
ENV PUPPETEER_SKIP_DOWNLOAD=1
|
| 52 |
+
|
| 53 |
+
RUN yarn install --frozen-lockfile --network-timeout 1000000
|
tasks/GoogleChrome__lighthouse-5917/assets/001.png
ADDED
|
Git LFS Details
|
tasks/GoogleChrome__lighthouse-5917/assets/002.png
ADDED
|
Git LFS Details
|
tasks/GoogleChrome__lighthouse-5917/assets/003.png
ADDED
|
Git LFS Details
|
tasks/GoogleChrome__lighthouse-5917/meta.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instance_id": "GoogleChrome__lighthouse-5917",
|
| 3 |
+
"repo": "GoogleChrome/lighthouse",
|
| 4 |
+
"base_commit": "3ad529d937a4aa5af4e68575c6780676edd23248",
|
| 5 |
+
"environment_setup_commit": "3ad529d937a4aa5af4e68575c6780676edd23248",
|
| 6 |
+
"created_at": "2018-08-28T00:26:14Z",
|
| 7 |
+
"version": "v3.0.3",
|
| 8 |
+
"image_count": 3,
|
| 9 |
+
"image_assets": {
|
| 10 |
+
"problem_statement": [
|
| 11 |
+
"assets/GoogleChrome__lighthouse-5917/001.png",
|
| 12 |
+
"assets/GoogleChrome__lighthouse-5917/002.png",
|
| 13 |
+
"assets/GoogleChrome__lighthouse-5917/003.png"
|
| 14 |
+
],
|
| 15 |
+
"patch": [],
|
| 16 |
+
"test_patch": []
|
| 17 |
+
}
|
| 18 |
+
}
|
tasks/GoogleChrome__lighthouse-5917/problem_statement.txt
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
No domContentLoaded event in trace
|
| 2 |
+
I'm using lighthouse for automatic page test, and I've encountered this warning, which makes the performance score very slow, could anyone help to figure out why is this happening?
|
| 3 |
+
|
| 4 |
+
```
|
| 5 |
+
~/dev/node-test/chrome lighthouse https://h5.m.taobao.com/trip/home/index.html
|
| 6 |
+
ChromeLauncher Waiting for browser. +0ms
|
| 7 |
+
ChromeLauncher Waiting for browser... +1ms
|
| 8 |
+
ChromeLauncher Waiting for browser..... +515ms
|
| 9 |
+
ChromeLauncher Waiting for browser.....✓ +4ms
|
| 10 |
+
status Initializing… +770ms
|
| 11 |
+
status Loading page & waiting for onload URL, Viewport, ViewportDimensions, ThemeColor, Manifest, ChromeConsoleMessages, ImageUsage, Accessibility, EventListeners, AnchorsWithNoRelNoopener, AppCacheManifest, DOMStats, JSLibraries, OptimizedImages, PasswordInputsWithPreventedPaste, ResponseCompression, TagsBlockingFirstPaint, WebSQL +346ms
|
| 12 |
+
statusEnd Loading page & waiting for onload +14s
|
| 13 |
+
status Retrieving trace +1ms
|
| 14 |
+
status Retrieving devtoolsLog and network records +2s
|
| 15 |
+
status Retrieving: URL +14ms
|
| 16 |
+
status Retrieving: Viewport +1ms
|
| 17 |
+
status Retrieving: ViewportDimensions +5ms
|
| 18 |
+
status Retrieving: ThemeColor +6ms
|
| 19 |
+
status Retrieving: Manifest +2ms
|
| 20 |
+
status Retrieving: ChromeConsoleMessages +1ms
|
| 21 |
+
status Retrieving: ImageUsage +2ms
|
| 22 |
+
status Retrieving: Accessibility +59ms
|
| 23 |
+
status Retrieving: EventListeners +262ms
|
| 24 |
+
status Retrieving: AnchorsWithNoRelNoopener +230ms
|
| 25 |
+
status Retrieving: AppCacheManifest +2ms
|
| 26 |
+
status Retrieving: DOMStats +3ms
|
| 27 |
+
status Retrieving: JSLibraries +15ms
|
| 28 |
+
status Retrieving: OptimizedImages +9ms
|
| 29 |
+
status Retrieving: PasswordInputsWithPreventedPaste +161ms
|
| 30 |
+
status Retrieving: ResponseCompression +2ms
|
| 31 |
+
status Retrieving: TagsBlockingFirstPaint +6ms
|
| 32 |
+
status Retrieving: WebSQL +4ms
|
| 33 |
+
status Loading page & waiting for onload ServiceWorker, Offline, StartUrl +811ms
|
| 34 |
+
statusEnd Loading page & waiting for onload +230ms
|
| 35 |
+
status Retrieving devtoolsLog and network records +47ms
|
| 36 |
+
status Retrieving: ServiceWorker +7ms
|
| 37 |
+
status Retrieving: Offline +0ms
|
| 38 |
+
status Retrieving: StartUrl +34ms
|
| 39 |
+
status Loading page & waiting for onload HTTPRedirect, HTMLWithoutJavaScript +333ms
|
| 40 |
+
statusEnd Loading page & waiting for onload +179ms
|
| 41 |
+
status Retrieving devtoolsLog and network records +0ms
|
| 42 |
+
status Retrieving: HTTPRedirect +6ms
|
| 43 |
+
status Retrieving: HTMLWithoutJavaScript +7ms
|
| 44 |
+
status Disconnecting from browser... +5ms
|
| 45 |
+
status Analyzing and running audits... +30ms
|
| 46 |
+
status Evaluating: Uses HTTPS +0ms
|
| 47 |
+
status Evaluating: Redirects HTTP traffic to HTTPS +8ms
|
| 48 |
+
status Evaluating: Registers a service worker +1ms
|
| 49 |
+
status Evaluating: Responds with a 200 when offline +0ms
|
| 50 |
+
status Evaluating: Has a `<meta name="viewport">` tag with `width` or `initial-scale` +1ms
|
| 51 |
+
status Evaluating: Contains some content when JavaScript is not available +2ms
|
| 52 |
+
status Evaluating: First meaningful paint +1ms
|
| 53 |
+
status Evaluating: Page load is fast enough on 3G +125ms
|
| 54 |
+
load-fast-enough-for-pwa:warn Caught exception: No domContentLoaded event in trace +34ms
|
| 55 |
+
status Evaluating: Perceptual Speed Index +0ms
|
| 56 |
+
status Evaluating: Screenshot Thumbnails +2s
|
| 57 |
+
status Evaluating: Estimated Input Latency +187ms
|
| 58 |
+
status Evaluating: No browser errors logged to the console +5ms
|
| 59 |
+
status Evaluating: Keep server response times low (TTFB) +1ms
|
| 60 |
+
status Evaluating: First Interactive (beta) +1ms
|
| 61 |
+
first-interactive:warn Caught exception: No domContentLoaded event in trace +0ms
|
| 62 |
+
status Evaluating: Consistently Interactive (beta) +0ms
|
| 63 |
+
consistently-interactive:warn Caught exception: No domContentLoaded found in trace. +0ms
|
| 64 |
+
status Evaluating: User Timing marks and measures +0ms
|
| 65 |
+
status Evaluating: Critical Request Chains +11ms
|
| 66 |
+
status Evaluating: User can be prompted to Install the Web App +3ms
|
| 67 |
+
status Evaluating: Configured for a custom splash screen +1ms
|
| 68 |
+
status Evaluating: Address bar matches brand colors +0ms
|
| 69 |
+
status Evaluating: Manifest's `short_name` won't be truncated when displayed on homescreen +0ms
|
| 70 |
+
status Evaluating: Content is sized correctly for the viewport +1ms
|
| 71 |
+
status Evaluating: Uses Images with appropriate aspect ratio +0ms
|
| 72 |
+
status Evaluating: Avoids deprecated APIs +2ms
|
| 73 |
+
status Evaluating: Site works cross-browser +0ms
|
| 74 |
+
status Evaluating: Page transitions don't feel like they block on the network +0ms
|
| 75 |
+
status Evaluating: Each page has a URL +0ms
|
| 76 |
+
status Evaluating: `[accesskey]` values are unique. +0ms
|
| 77 |
+
status Evaluating: `[aria-*]` attributes match their roles. +1ms
|
| 78 |
+
status Evaluating: `[role]`s have all required `[aria-*]` attributes. +0ms
|
| 79 |
+
status Evaluating: Elements with `[role]` that require specific children `[role]`s, are present. +0ms
|
| 80 |
+
status Evaluating: `[role]`s are contained by their required parent element. +0ms
|
| 81 |
+
status Evaluating: `[role]` values are valid. +0ms
|
| 82 |
+
status Evaluating: `[aria-*]` attributes have valid values. +0ms
|
| 83 |
+
status Evaluating: `[aria-*]` attributes are valid and not misspelled. +0ms
|
| 84 |
+
status Evaluating: `<audio>` elements contain a `<track>` element with `[kind="captions"]`. +0ms
|
| 85 |
+
status Evaluating: Buttons have an accessible name. +0ms
|
| 86 |
+
status Evaluating: The page contains a heading, skip link, or landmark region. +1ms
|
| 87 |
+
status Evaluating: Background and foreground colors have a sufficient contrast ratio. +0ms
|
| 88 |
+
status Evaluating: `<dl>`'s contain only properly-ordered `<dt>` and `<dd>` groups, `<script>` or `<template>` elements. +0ms
|
| 89 |
+
status Evaluating: Definition list items are wrapped in `<dl>` elements. +0ms
|
| 90 |
+
status Evaluating: Document has a `<title>` element. +0ms
|
| 91 |
+
status Evaluating: `[id]` attributes on the page are unique. +0ms
|
| 92 |
+
status Evaluating: `<frame>` or `<iframe>` elements have a title. +0ms
|
| 93 |
+
status Evaluating: `<html>` element has a `[lang]` attribute. +0ms
|
| 94 |
+
status Evaluating: `<html>` element has a valid value for its `[lang]` attribute. +0ms
|
| 95 |
+
status Evaluating: Image elements have `[alt]` attributes. +0ms
|
| 96 |
+
status Evaluating: `<input type="image">` elements have `[alt]` text. +1ms
|
| 97 |
+
status Evaluating: Form elements have associated labels. +0ms
|
| 98 |
+
status Evaluating: Presentational `<table>` elements avoid using `<th>`, `<caption>` or the `[summary]` attribute. +0ms
|
| 99 |
+
status Evaluating: Links have a discernible name. +0ms
|
| 100 |
+
status Evaluating: Lists contain only `<li>` elements and script supporting elements (`<script>` and `<template>`). +0ms
|
| 101 |
+
status Evaluating: List items (`<li>`) are contained within `<ul>` or `<ol>` parent elements. +0ms
|
| 102 |
+
status Evaluating: The document does not use `<meta http-equiv="refresh">`. +0ms
|
| 103 |
+
status Evaluating: `[user-scalable="no"]` is not used in the `<meta name="viewport">` element and the `[maximum-scale]` attribute is not less than 5. +1ms
|
| 104 |
+
status Evaluating: `<object>` elements have `[alt]` text. +0ms
|
| 105 |
+
status Evaluating: No element has a `[tabindex]` value greater than 0. +0ms
|
| 106 |
+
status Evaluating: Cells in a `<table>` element that use the `[headers]` attribute only refer to other cells of that same table. +0ms
|
| 107 |
+
status Evaluating: `<th>` elements and elements with `[role="columnheader"/"rowheader"]` have data cells they describe. +0ms
|
| 108 |
+
status Evaluating: `[lang]` attributes have a valid value. +0ms
|
| 109 |
+
status Evaluating: `<video>` elements contain a `<track>` element with `[kind="captions"]`. +0ms
|
| 110 |
+
status Evaluating: `<video>` elements contain a `<track>` element with `[kind="description"]`. +0ms
|
| 111 |
+
status Evaluating: Avoids enormous network payloads +0ms
|
| 112 |
+
status Evaluating: Offscreen images +7ms
|
| 113 |
+
offscreen-images:warn Caught exception: No domContentLoaded event in trace +24ms
|
| 114 |
+
status Evaluating: Serve images as WebP +0ms
|
| 115 |
+
status Evaluating: Optimize images +1ms
|
| 116 |
+
status Evaluating: Enable text compression +1ms
|
| 117 |
+
status Evaluating: Properly size images +0ms
|
| 118 |
+
status Evaluating: Avoids Application Cache +17ms
|
| 119 |
+
status Evaluating: Avoids an excessive DOM size +0ms
|
| 120 |
+
status Evaluating: Opens external anchors using `rel="noopener"` +2ms
|
| 121 |
+
status Evaluating: Avoids requesting the geolocation permission on page load +0ms
|
| 122 |
+
status Evaluating: Reduce render-blocking stylesheets +1ms
|
| 123 |
+
status Evaluating: Avoids `document.write()` +0ms
|
| 124 |
+
status Evaluating: Avoids Mutation Events in its own scripts +1ms
|
| 125 |
+
status Evaluating: Avoids front-end JavaScript libraries with known security vulnerabilities +71ms
|
| 126 |
+
status Evaluating: Avoids WebSQL DB +0ms
|
| 127 |
+
status Evaluating: Avoids requesting the notification permission on page load +1ms
|
| 128 |
+
status Evaluating: Allows users to paste into password fields +0ms
|
| 129 |
+
status Evaluating: Reduce render-blocking scripts +0ms
|
| 130 |
+
status Evaluating: Uses HTTP/2 for its own resources +0ms
|
| 131 |
+
status Evaluating: Uses passive listeners to improve scrolling performance +2ms
|
| 132 |
+
status Generating results... +1ms
|
| 133 |
+
Printer domhtml output written to /Users/dickeylth/dev/node-test/chrome/h5.m.taobao.com_2017-11-17_17-15-36.report.html +20ms
|
| 134 |
+
CLI Protip: Run lighthouse with `--view` to immediately open the HTML report in your browser +0ms
|
| 135 |
+
ChromeLauncher Killing Chrome instance 93287 +1ms
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
You could see there's
|
| 139 |
+
|
| 140 |
+
```
|
| 141 |
+
load-fast-enough-for-pwa:warn Caught exception: No domContentLoaded event in trace +34ms
|
| 142 |
+
first-interactive:warn Caught exception: No domContentLoaded event in trace +0ms
|
| 143 |
+
consistently-interactive:warn Caught exception: No domContentLoaded found in trace. +0ms
|
| 144 |
+
offscreen-images:warn Caught exception: No domContentLoaded event in trace +24ms
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
and the score is really slow:
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
which could not reflect the real performance in my opinion.
|
| 153 |
+
|
| 154 |
+
Looking forward to any help! Thank you.
|
| 155 |
+
|
| 156 |
+
## Relevant pre-fix discussion
|
| 157 |
+
|
| 158 |
+
### Issue #3838
|
| 159 |
+
|
| 160 |
+
#### Comment at 2018-02-12T02:43:28Z
|
| 161 |
+
|
| 162 |
+
Here is the cause, browser trys to open anther url before all tracing events are completed. after opening, the trace data is polluted
|
| 163 |
+

|
| 164 |
+
|
| 165 |
+
#### Comment at 2018-03-30T12:30:00Z
|
| 166 |
+
|
| 167 |
+
I've got the same issue when original URL shows an authentication screen then redirects to authentication service then redirects back.
|
| 168 |
+
|
| 169 |
+
So, there's 2 redirects and 2 trace recordings:
|
| 170 |
+
1. origin loads authentication screen, then redirects to authentication service
|
| 171 |
+
2. (redirect 1) authentication service validates the request and sends credentials to load the origin
|
| 172 |
+
3. origin starts to load
|
| 173 |
+
|
| 174 |
+
Issue in Lighthouse 2.9.3 is `Something went wrong with recording the trace over your page load. Please run Lighthouse again. (NO_DCL)`
|
| 175 |
+
|
| 176 |
+

|
tasks/PrismJS__prism-2509/Dockerfile
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:14.21.3-bullseye
|
| 2 |
+
|
| 3 |
+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
| 4 |
+
|
| 5 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 6 |
+
ENV PRISM_COMMIT=bf4f323391d546d4b2e1a388f05c512a27491e9c
|
| 7 |
+
|
| 8 |
+
RUN sed -i 's|http://deb.debian.org|https://deb.debian.org|g; s|http://security.debian.org|https://security.debian.org|g' /etc/apt/sources.list \
|
| 9 |
+
&& printf '%s\n' \
|
| 10 |
+
'Acquire::Retries "5";' \
|
| 11 |
+
'Acquire::http::Timeout "30";' \
|
| 12 |
+
'Acquire::https::Timeout "30";' \
|
| 13 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 14 |
+
'Acquire::https::Pipeline-Depth "0";' \
|
| 15 |
+
'Acquire::BrokenProxy "true";' \
|
| 16 |
+
> /etc/apt/apt.conf.d/80-retries \
|
| 17 |
+
&& for attempt in 1 2 3; do \
|
| 18 |
+
if apt-get update \
|
| 19 |
+
&& apt-get install -y --no-install-recommends \
|
| 20 |
+
bash \
|
| 21 |
+
ca-certificates \
|
| 22 |
+
curl \
|
| 23 |
+
git \
|
| 24 |
+
patch \
|
| 25 |
+
wget; then \
|
| 26 |
+
break; \
|
| 27 |
+
fi; \
|
| 28 |
+
if [ "${attempt}" -eq 3 ]; then \
|
| 29 |
+
echo "apt installation failed after ${attempt} attempts" >&2; \
|
| 30 |
+
exit 1; \
|
| 31 |
+
fi; \
|
| 32 |
+
sleep $((attempt * 5)); \
|
| 33 |
+
done
|
| 34 |
+
|
| 35 |
+
RUN git clone https://github.com/PrismJS/prism.git /testbed \
|
| 36 |
+
&& cd /testbed \
|
| 37 |
+
&& git checkout --detach "${PRISM_COMMIT}" \
|
| 38 |
+
&& test "$(git rev-parse HEAD)" = "${PRISM_COMMIT}"
|
| 39 |
+
|
| 40 |
+
WORKDIR /testbed
|
| 41 |
+
|
| 42 |
+
RUN npm config set fetch-retries 5 \
|
| 43 |
+
&& npm config set fetch-retry-mintimeout 10000 \
|
| 44 |
+
&& npm config set fetch-retry-maxtimeout 120000 \
|
| 45 |
+
&& npm ci
|
tasks/PrismJS__prism-2509/assets/001.png
ADDED
|
Git LFS Details
|
tasks/PrismJS__prism-2509/assets/002.png
ADDED
|
Git LFS Details
|
tasks/PrismJS__prism-2509/assets/003.png
ADDED
|
Git LFS Details
|
tasks/PrismJS__prism-2509/assets/004.png
ADDED
|
Git LFS Details
|
tasks/PrismJS__prism-2509/meta.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instance_id": "PrismJS__prism-2509",
|
| 3 |
+
"repo": "PrismJS/prism",
|
| 4 |
+
"base_commit": "bf4f323391d546d4b2e1a388f05c512a27491e9c",
|
| 5 |
+
"environment_setup_commit": "bf4f323391d546d4b2e1a388f05c512a27491e9c",
|
| 6 |
+
"created_at": "2020-08-06T21:20:46Z",
|
| 7 |
+
"version": "v1.20.0",
|
| 8 |
+
"image_count": 4,
|
| 9 |
+
"image_assets": {
|
| 10 |
+
"problem_statement": [
|
| 11 |
+
"assets/PrismJS__prism-2509/001.png",
|
| 12 |
+
"assets/PrismJS__prism-2509/002.png",
|
| 13 |
+
"assets/PrismJS__prism-2509/003.png",
|
| 14 |
+
"assets/PrismJS__prism-2509/004.png"
|
| 15 |
+
],
|
| 16 |
+
"patch": [],
|
| 17 |
+
"test_patch": []
|
| 18 |
+
}
|
| 19 |
+
}
|
tasks/PrismJS__prism-2509/problem_statement.txt
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Fix hello-document support in shell-session language
|
| 2 |
+
**Information:**
|
| 3 |
+
- Prism version: 1.20.0
|
| 4 |
+
- Plugins: none
|
| 5 |
+
- Environment: Browser
|
| 6 |
+
|
| 7 |
+
Does the latest version of Prism from the [download page](https://prismjs.com/download.html) also have this issue?
|
| 8 |
+
|
| 9 |
+
yes
|
| 10 |
+
|
| 11 |
+
**Description**
|
| 12 |
+
|
| 13 |
+
First, thanks so much for Prism.
|
| 14 |
+
|
| 15 |
+
Putting together the regular expressions to pull this off must be painstaking!
|
| 16 |
+
|
| 17 |
+
Consider the following code block using the `shell-session` language.
|
| 18 |
+
|
| 19 |
+
```
|
| 20 |
+
$ cp /etc/ipsec.secrets /etc/ipsec.secrets.backup
|
| 21 |
+
|
| 22 |
+
$ cat << "EOF" > /etc/ipsec.secrets
|
| 23 |
+
: RSA vpn-server-a.key
|
| 24 |
+
EOF
|
| 25 |
+
|
| 26 |
+
$ cat << "EOF" > /etc/ipsec.secrets
|
| 27 |
+
: RSA vpn-server-a.key
|
| 28 |
+
# : RSA vpn-server-b.key
|
| 29 |
+
EOF
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
Issues:
|
| 33 |
+
|
| 34 |
+
- Everything after `cat` is part of the output token. I believe the above code block should render three command tokens with no output.
|
| 35 |
+
|
| 36 |
+
- Lines that start with `#` (or `$`) inside hello-documents become new commands. I believe commands inside of hello-documents should be ignored as they are part of a parent command.
|
| 37 |
+
|
| 38 |
+
See following screenshot.
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+
## Relevant pre-fix discussion
|
| 43 |
+
|
| 44 |
+
### Issue #2503
|
| 45 |
+
|
| 46 |
+
#### Comment at 2020-08-06T17:11:55Z
|
| 47 |
+
|
| 48 |
+
@sunknudsen You mean like this, right?
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
The problem is that our here doc strings assumed that there's nothing after the identifier.
|
| 53 |
+
|
| 54 |
+
Is it correct to assume that every after the identifier (so e.g. `> /etc/ipsec.secrets` but not the lines below) is a command and not part of the string? I'm asking because, as you can see, bash isn't highlighting the strings correctly and I don't know the correct interpretation.
|
| 55 |
+
|
| 56 |
+
#### Comment at 2020-08-06T19:42:33Z
|
| 57 |
+
|
| 58 |
+
@RunDevelopment I am fairly new to here documents, but my gut feeling is only `cat` should be considered a command and everything else after it (including the delimiting identifier) a string.
|
| 59 |
+
|
| 60 |
+
This is how it is illustrated on Wikipedia (see https://en.wikipedia.org/wiki/Here_document) and how Visual Studio Code handles it in markdown codeblocks and shell scripts (coloring the delimiting identifier is a nice addition).
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
|
| 64 |
+

|
tasks/apache__echarts-10173/Dockerfile
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:12.22.12-bullseye-slim
|
| 2 |
+
|
| 3 |
+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
| 4 |
+
|
| 5 |
+
RUN printf '%s\n' \
|
| 6 |
+
'Acquire::Retries "5";' \
|
| 7 |
+
'Acquire::http::Timeout "30";' \
|
| 8 |
+
'Acquire::https::Timeout "30";' \
|
| 9 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 10 |
+
'Acquire::https::Pipeline-Depth "0";' \
|
| 11 |
+
'Acquire::BrokenProxy "true";' \
|
| 12 |
+
> /etc/apt/apt.conf.d/80-retries \
|
| 13 |
+
&& for attempt in 1 2 3; do \
|
| 14 |
+
if apt-get update \
|
| 15 |
+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
| 16 |
+
ca-certificates; then \
|
| 17 |
+
break; \
|
| 18 |
+
fi; \
|
| 19 |
+
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
| 20 |
+
sleep $((attempt * 5)); \
|
| 21 |
+
done \
|
| 22 |
+
&& update-ca-certificates \
|
| 23 |
+
&& sed -i \
|
| 24 |
+
's|http://deb.debian.org|https://deb.debian.org|g; s|http://security.debian.org|https://security.debian.org|g' \
|
| 25 |
+
/etc/apt/sources.list \
|
| 26 |
+
&& for attempt in 1 2 3; do \
|
| 27 |
+
if apt-get update \
|
| 28 |
+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
| 29 |
+
bash \
|
| 30 |
+
git \
|
| 31 |
+
patch \
|
| 32 |
+
curl \
|
| 33 |
+
wget \
|
| 34 |
+
chromium \
|
| 35 |
+
fonts-liberation \
|
| 36 |
+
build-essential \
|
| 37 |
+
python3 \
|
| 38 |
+
python3-pytest \
|
| 39 |
+
pkg-config; then \
|
| 40 |
+
break; \
|
| 41 |
+
fi; \
|
| 42 |
+
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
| 43 |
+
sleep $((attempt * 5)); \
|
| 44 |
+
done \
|
| 45 |
+
&& apt-get clean \
|
| 46 |
+
&& find /var/lib/apt/lists -mindepth 1 -delete \
|
| 47 |
+
&& printf '%s\n' \
|
| 48 |
+
'#!/bin/bash' \
|
| 49 |
+
'exec /usr/bin/chromium --no-sandbox --disable-dev-shm-usage "$@"' \
|
| 50 |
+
> /usr/local/bin/chromium-for-puppeteer \
|
| 51 |
+
&& chmod 0755 /usr/local/bin/chromium-for-puppeteer
|
| 52 |
+
|
| 53 |
+
RUN for attempt in 1 2 3; do \
|
| 54 |
+
if git clone https://github.com/apache/echarts.git /testbed; then \
|
| 55 |
+
break; \
|
| 56 |
+
fi; \
|
| 57 |
+
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
| 58 |
+
sleep $((attempt * 5)); \
|
| 59 |
+
done \
|
| 60 |
+
&& cd /testbed \
|
| 61 |
+
&& git checkout --detach 243b22f4d3c1c2e32b06517d6295067fdd076acf \
|
| 62 |
+
&& test "$(git rev-parse HEAD)" = "243b22f4d3c1c2e32b06517d6295067fdd076acf" \
|
| 63 |
+
&& chown -R node:node /testbed
|
| 64 |
+
|
| 65 |
+
WORKDIR /testbed
|
| 66 |
+
|
| 67 |
+
ENV npm_config_python=/usr/bin/python3 \
|
| 68 |
+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
| 69 |
+
PUPPETEER_EXECUTABLE_PATH=/usr/local/bin/chromium-for-puppeteer
|
| 70 |
+
|
| 71 |
+
USER node
|
| 72 |
+
|
| 73 |
+
RUN npm config set fetch-retries 5 \
|
| 74 |
+
&& npm config set fetch-retry-mintimeout 10000 \
|
| 75 |
+
&& npm config set fetch-retry-maxtimeout 120000 \
|
| 76 |
+
&& npm ci \
|
| 77 |
+
&& npm install --no-save --no-package-lock puppeteer@5.5.0
|
tasks/apache__echarts-10173/assets/001.png
ADDED
|
Git LFS Details
|
tasks/apache__echarts-10173/assets/002.png
ADDED
|
Git LFS Details
|
tasks/apache__echarts-10173/assets/003.gif
ADDED
|
Git LFS Details
|
tasks/apache__echarts-10173/assets/004.gif
ADDED
|
Git LFS Details
|
tasks/apache__echarts-10173/meta.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instance_id": "apache__echarts-10173",
|
| 3 |
+
"repo": "apache/echarts",
|
| 4 |
+
"base_commit": "243b22f4d3c1c2e32b06517d6295067fdd076acf",
|
| 5 |
+
"environment_setup_commit": "243b22f4d3c1c2e32b06517d6295067fdd076acf",
|
| 6 |
+
"created_at": "2019-03-27T16:46:47Z",
|
| 7 |
+
"version": "4.2.0-rc.2",
|
| 8 |
+
"image_count": 4,
|
| 9 |
+
"image_assets": {
|
| 10 |
+
"problem_statement": [
|
| 11 |
+
"assets/apache__echarts-10173/001.png",
|
| 12 |
+
"assets/apache__echarts-10173/002.png",
|
| 13 |
+
"assets/apache__echarts-10173/003.gif",
|
| 14 |
+
"assets/apache__echarts-10173/004.gif"
|
| 15 |
+
],
|
| 16 |
+
"patch": [],
|
| 17 |
+
"test_patch": []
|
| 18 |
+
}
|
| 19 |
+
}
|
tasks/apache__echarts-10173/problem_statement.txt
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bar chart issue: Generates merged bar chart if we reduces width of zoom bar to its certain width.
|
| 2 |
+
Description:
|
| 3 |
+
1. Created bar chart with following given option object:
|
| 4 |
+
2. I reduced width of zoom bar to its certain width, as given in option object: "minSpan": 0.5
|
| 5 |
+
3. Have a look at attached screenshot.
|
| 6 |
+
```js
|
| 7 |
+
option = {
|
| 8 |
+
xAxis: {
|
| 9 |
+
type: 'category',
|
| 10 |
+
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
|
| 11 |
+
},
|
| 12 |
+
yAxis: {
|
| 13 |
+
type: 'value'
|
| 14 |
+
},
|
| 15 |
+
series: [{
|
| 16 |
+
data: [120, 200, 150, 80, 70, 110, 130],
|
| 17 |
+
type: 'bar'
|
| 18 |
+
}],
|
| 19 |
+
"dataZoom": {
|
| 20 |
+
"type": "slider",
|
| 21 |
+
"show": true,
|
| 22 |
+
"minSpan": 0.5,
|
| 23 |
+
"filterMode": "empty",
|
| 24 |
+
"start": 87.65476305836627,
|
| 25 |
+
"end": 94.3056847654145,
|
| 26 |
+
"xAxisIndex": [
|
| 27 |
+
0
|
| 28 |
+
]
|
| 29 |
+
},
|
| 30 |
+
};
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
Result:
|
| 34 |
+

|
| 35 |
+

|
| 36 |
+
|
| 37 |
+
## Relevant pre-fix discussion
|
| 38 |
+
|
| 39 |
+
### Issue #9882
|
| 40 |
+
|
| 41 |
+
#### Comment at 2019-01-31T17:33:44Z
|
| 42 |
+
|
| 43 |
+
Here's a gif that explains the issue better:
|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
#### Comment at 2019-03-26T17:59:54Z
|
| 48 |
+
|
| 49 |
+
This also affects stacked column charts
|
| 50 |
+
|
| 51 |
+

|
tasks/apache__echarts-12850/Dockerfile
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:12.22.12-bullseye-slim
|
| 2 |
+
|
| 3 |
+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
| 4 |
+
|
| 5 |
+
RUN printf '%s\n' \
|
| 6 |
+
'Acquire::Retries "5";' \
|
| 7 |
+
'Acquire::http::Timeout "30";' \
|
| 8 |
+
'Acquire::https::Timeout "30";' \
|
| 9 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 10 |
+
'Acquire::https::Pipeline-Depth "0";' \
|
| 11 |
+
'Acquire::BrokenProxy "true";' \
|
| 12 |
+
> /etc/apt/apt.conf.d/80-retries \
|
| 13 |
+
&& for attempt in 1 2 3; do \
|
| 14 |
+
if apt-get update \
|
| 15 |
+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates; then \
|
| 16 |
+
break; \
|
| 17 |
+
fi; \
|
| 18 |
+
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
| 19 |
+
sleep $((attempt * 5)); \
|
| 20 |
+
done \
|
| 21 |
+
&& sed -i \
|
| 22 |
+
's|http://deb.debian.org|https://deb.debian.org|g; s|http://security.debian.org|https://security.debian.org|g' \
|
| 23 |
+
/etc/apt/sources.list \
|
| 24 |
+
&& for attempt in 1 2 3; do \
|
| 25 |
+
if apt-get update \
|
| 26 |
+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
| 27 |
+
bash \
|
| 28 |
+
git \
|
| 29 |
+
patch \
|
| 30 |
+
curl \
|
| 31 |
+
wget \
|
| 32 |
+
chromium \
|
| 33 |
+
fonts-liberation \
|
| 34 |
+
build-essential \
|
| 35 |
+
python3 \
|
| 36 |
+
pkg-config \
|
| 37 |
+
libcairo2-dev \
|
| 38 |
+
libpango1.0-dev \
|
| 39 |
+
libjpeg62-turbo-dev \
|
| 40 |
+
libgif-dev \
|
| 41 |
+
librsvg2-dev; then \
|
| 42 |
+
break; \
|
| 43 |
+
fi; \
|
| 44 |
+
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
| 45 |
+
sleep $((attempt * 5)); \
|
| 46 |
+
done \
|
| 47 |
+
&& apt-get clean \
|
| 48 |
+
&& find /var/lib/apt/lists -mindepth 1 -delete \
|
| 49 |
+
&& printf '%s\n' \
|
| 50 |
+
'#!/bin/bash' \
|
| 51 |
+
'exec /usr/bin/chromium --no-sandbox --disable-dev-shm-usage "$@"' \
|
| 52 |
+
> /usr/local/bin/chromium-for-puppeteer \
|
| 53 |
+
&& chmod 0755 /usr/local/bin/chromium-for-puppeteer
|
| 54 |
+
|
| 55 |
+
RUN for attempt in 1 2 3; do \
|
| 56 |
+
if git clone https://github.com/apache/echarts.git /testbed; then break; fi; \
|
| 57 |
+
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
| 58 |
+
sleep $((attempt * 5)); \
|
| 59 |
+
done \
|
| 60 |
+
&& cd /testbed \
|
| 61 |
+
&& git checkout --detach 6f78c0d5191378e604fc88eb07b7ffabdb69aa3e \
|
| 62 |
+
&& test "$(git rev-parse HEAD)" = "6f78c0d5191378e604fc88eb07b7ffabdb69aa3e" \
|
| 63 |
+
&& chown -R node:node /testbed
|
| 64 |
+
|
| 65 |
+
WORKDIR /testbed
|
| 66 |
+
|
| 67 |
+
ENV npm_config_python=/usr/bin/python3 \
|
| 68 |
+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
| 69 |
+
PUPPETEER_EXECUTABLE_PATH=/usr/local/bin/chromium-for-puppeteer
|
| 70 |
+
|
| 71 |
+
USER node
|
| 72 |
+
|
| 73 |
+
RUN npm config set fetch-retries 5 \
|
| 74 |
+
&& npm config set fetch-retry-mintimeout 10000 \
|
| 75 |
+
&& npm config set fetch-retry-maxtimeout 120000 \
|
| 76 |
+
&& npm ci \
|
| 77 |
+
&& npm install --no-save --no-package-lock puppeteer@5.5.0
|
tasks/apache__echarts-12850/assets/001.png
ADDED
|
Git LFS Details
|
tasks/apache__echarts-12850/assets/002.png
ADDED
|
Git LFS Details
|
tasks/apache__echarts-12850/assets/003.png
ADDED
|
Git LFS Details
|
tasks/apache__echarts-12850/assets/004.png
ADDED
|
Git LFS Details
|
tasks/apache__echarts-12850/meta.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instance_id": "apache__echarts-12850",
|
| 3 |
+
"repo": "apache/echarts",
|
| 4 |
+
"base_commit": "6f78c0d5191378e604fc88eb07b7ffabdb69aa3e",
|
| 5 |
+
"environment_setup_commit": "6f78c0d5191378e604fc88eb07b7ffabdb69aa3e",
|
| 6 |
+
"created_at": "2020-06-23T03:42:03Z",
|
| 7 |
+
"version": "4.8.0",
|
| 8 |
+
"image_count": 4,
|
| 9 |
+
"image_assets": {
|
| 10 |
+
"problem_statement": [
|
| 11 |
+
"assets/apache__echarts-12850/001.png",
|
| 12 |
+
"assets/apache__echarts-12850/002.png",
|
| 13 |
+
"assets/apache__echarts-12850/003.png",
|
| 14 |
+
"assets/apache__echarts-12850/004.png"
|
| 15 |
+
],
|
| 16 |
+
"patch": [],
|
| 17 |
+
"test_patch": []
|
| 18 |
+
}
|
| 19 |
+
}
|
tasks/apache__echarts-12850/problem_statement.txt
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
myChart.setOption({}) 时 lines.data 丢失
|
| 2 |
+
### Version
|
| 3 |
+
4.8.0
|
| 4 |
+
|
| 5 |
+
### Steps to reproduce
|
| 6 |
+
myChart.setOption({}) 时, lines类型的线数据会丢失, 其他类型的数据(如line)依然存在.
|
| 7 |
+
这个方法的行为是不是应该统一?
|
| 8 |
+
|
| 9 |
+
https://gallery.echartsjs.com/editor.html?c=xeqTwJtMgx&v=1
|
| 10 |
+
|
| 11 |
+
- before:
|
| 12 |
+

|
| 13 |
+
|
| 14 |
+
- after:
|
| 15 |
+

|
| 16 |
+
|
| 17 |
+
### What is expected?
|
| 18 |
+
|
| 19 |
+
myChart.setOption({}) 要么数据全丢, 要么全保留
|
| 20 |
+
|
| 21 |
+
### What is actually happening?
|
| 22 |
+
lines类型的线数据丢失
|
| 23 |
+
|
| 24 |
+
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
|
| 25 |
+
|
| 26 |
+
## Relevant pre-fix discussion
|
| 27 |
+
|
| 28 |
+
### Issue #12836
|
| 29 |
+
|
| 30 |
+
#### Comment at 2020-06-22T14:58:12Z
|
| 31 |
+
|
| 32 |
+
@myshzzx
|
| 33 |
+
代码,在本地运行,如图所示,可以显示lines类型的线数据
|
| 34 |
+

|
| 35 |
+

|
tasks/ariakit__ariakit-4251/Dockerfile
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM mcr.microsoft.com/playwright:v1.48.1-jammy
|
| 2 |
+
|
| 3 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
+
HUSKY=0 \
|
| 5 |
+
npm_config_fetch_retries=5 \
|
| 6 |
+
npm_config_fetch_retry_mintimeout=20000 \
|
| 7 |
+
npm_config_fetch_retry_maxtimeout=120000
|
| 8 |
+
|
| 9 |
+
RUN printf '%s\n' \
|
| 10 |
+
'Acquire::Retries "5";' \
|
| 11 |
+
'Acquire::http::Timeout "30";' \
|
| 12 |
+
'Acquire::https::Timeout "30";' \
|
| 13 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 14 |
+
'Acquire::https::Pipeline-Depth "0";' \
|
| 15 |
+
'Acquire::http::No-Cache "true";' \
|
| 16 |
+
'Acquire::https::No-Cache "true";' \
|
| 17 |
+
'Acquire::BrokenProxy "true";' \
|
| 18 |
+
> /etc/apt/apt.conf.d/80-retries \
|
| 19 |
+
&& sed -i \
|
| 20 |
+
-e 's|http://archive.ubuntu.com|https://archive.ubuntu.com|g' \
|
| 21 |
+
-e 's|http://security.ubuntu.com|https://security.ubuntu.com|g' \
|
| 22 |
+
/etc/apt/sources.list \
|
| 23 |
+
&& for attempt in 1 2 3; do \
|
| 24 |
+
if apt-get update \
|
| 25 |
+
&& apt-get install -y --no-install-recommends \
|
| 26 |
+
bash \
|
| 27 |
+
build-essential \
|
| 28 |
+
ca-certificates \
|
| 29 |
+
curl \
|
| 30 |
+
git \
|
| 31 |
+
patch \
|
| 32 |
+
python3 \
|
| 33 |
+
wget \
|
| 34 |
+
xvfb; then \
|
| 35 |
+
break; \
|
| 36 |
+
fi; \
|
| 37 |
+
if [ "$attempt" -eq 3 ]; then exit 1; fi; \
|
| 38 |
+
sleep 5; \
|
| 39 |
+
done \
|
| 40 |
+
&& apt-get clean \
|
| 41 |
+
&& find /var/lib/apt/lists -mindepth 1 -delete
|
| 42 |
+
|
| 43 |
+
ARG TARGET_COMMIT=e6d5c8e1891c22a03da72922955bcc6dbbd64eea
|
| 44 |
+
|
| 45 |
+
RUN git config --global http.version HTTP/1.1 \
|
| 46 |
+
&& git config --global http.lowSpeedLimit 1000 \
|
| 47 |
+
&& git config --global http.lowSpeedTime 60 \
|
| 48 |
+
&& mkdir /testbed \
|
| 49 |
+
&& cd /testbed \
|
| 50 |
+
&& git init \
|
| 51 |
+
&& git remote add origin https://github.com/ariakit/ariakit.git \
|
| 52 |
+
&& fetch_succeeded=0 \
|
| 53 |
+
&& for attempt in 1 2 3 4 5; do \
|
| 54 |
+
if git fetch --no-tags --depth=1 origin "$TARGET_COMMIT"; then \
|
| 55 |
+
fetch_succeeded=1; \
|
| 56 |
+
break; \
|
| 57 |
+
fi; \
|
| 58 |
+
if [ "$attempt" -lt 5 ]; then sleep 5; fi; \
|
| 59 |
+
done \
|
| 60 |
+
&& test "$fetch_succeeded" -eq 1 \
|
| 61 |
+
&& git checkout --detach FETCH_HEAD \
|
| 62 |
+
&& test "$(git rev-parse HEAD)" = "$TARGET_COMMIT"
|
| 63 |
+
|
| 64 |
+
WORKDIR /testbed
|
| 65 |
+
|
| 66 |
+
RUN npm ci --no-audit --no-fund
|
tasks/ariakit__ariakit-4251/assets/001.png
ADDED
|
Git LFS Details
|
tasks/ariakit__ariakit-4251/assets/002.png
ADDED
|
Git LFS Details
|
tasks/ariakit__ariakit-4251/assets/003.png
ADDED
|
Git LFS Details
|
tasks/ariakit__ariakit-4251/meta.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instance_id": "ariakit__ariakit-4251",
|
| 3 |
+
"repo": "ariakit/ariakit",
|
| 4 |
+
"base_commit": "e6d5c8e1891c22a03da72922955bcc6dbbd64eea",
|
| 5 |
+
"environment_setup_commit": "e6d5c8e1891c22a03da72922955bcc6dbbd64eea",
|
| 6 |
+
"created_at": "2024-11-26T17:43:46Z",
|
| 7 |
+
"version": "@ariakit/core@0.4.13",
|
| 8 |
+
"image_count": 3,
|
| 9 |
+
"image_assets": {
|
| 10 |
+
"problem_statement": [
|
| 11 |
+
"assets/ariakit__ariakit-4251/001.png",
|
| 12 |
+
"assets/ariakit__ariakit-4251/002.png",
|
| 13 |
+
"assets/ariakit__ariakit-4251/003.png"
|
| 14 |
+
],
|
| 15 |
+
"patch": [],
|
| 16 |
+
"test_patch": []
|
| 17 |
+
}
|
| 18 |
+
}
|
tasks/ariakit__ariakit-4251/problem_statement.txt
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Menu Show / Hide Change in Behavior in 0.14.4 vs 0.14.3
|
| 2 |
+
### Current behavior
|
| 3 |
+
|
| 4 |
+
I have a top navigation menu system that is all Ariakit.
|
| 5 |
+
|
| 6 |
+
This works perfectly in 0.14.3, but in .4, I see the menus overlap awkwardly and show multiple at a time. I see that showOnHover is set to true, but they aren't coming down properly in 0.14.4.
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
### Expected behavior
|
| 11 |
+
|
| 12 |
+
Like it did in 0.14.3
|
| 13 |
+
|
| 14 |
+
### Workaround
|
| 15 |
+
|
| 16 |
+
https://github.com/ariakit/ariakit/issues/4247#issuecomment-2506083953
|
| 17 |
+
|
| 18 |
+
### Possible solutions
|
| 19 |
+
|
| 20 |
+
I think this has something to do with the transition animation, which I set on my mui components to "unset" previously to stop this in earlier versions.
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
|
| 24 |
+
## Relevant pre-fix discussion
|
| 25 |
+
|
| 26 |
+
### Issue #4247
|
| 27 |
+
|
| 28 |
+
#### Comment at 2024-11-23T16:31:58Z
|
| 29 |
+
|
| 30 |
+
I tried raking off all of the render props (which were using Mui ListItem and Mui/Buttons) and it still fails. I suspected that a Mui transition is deep in there. There is just something going on with the way they come down in .4. I have a simple case where I loop and call menu.hide() on them and they just come down slowly and overlap.
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
|
| 34 |
+
#### Comment at 2024-11-24T13:44:33Z
|
| 35 |
+
|
| 36 |
+

|
tasks/ariakit__ariakit-520/Dockerfile
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:12-buster
|
| 2 |
+
|
| 3 |
+
ENV CI=true \
|
| 4 |
+
YARN_CACHE_FOLDER=/usr/local/share/.cache/yarn
|
| 5 |
+
|
| 6 |
+
RUN set -eux; \
|
| 7 |
+
printf '%s\n' \
|
| 8 |
+
'deb https://archive.debian.org/debian buster main' \
|
| 9 |
+
'deb https://archive.debian.org/debian buster-updates main' \
|
| 10 |
+
'deb https://archive.debian.org/debian-security buster/updates main' \
|
| 11 |
+
> /etc/apt/sources.list; \
|
| 12 |
+
printf '%s\n' \
|
| 13 |
+
'Acquire::Check-Valid-Until "false";' \
|
| 14 |
+
'Acquire::Retries "3";' \
|
| 15 |
+
'Acquire::http::Timeout "30";' \
|
| 16 |
+
'Acquire::https::Timeout "30";' \
|
| 17 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 18 |
+
> /etc/apt/apt.conf.d/99-retries; \
|
| 19 |
+
installed=0; \
|
| 20 |
+
for attempt in 1 2 3 4 5; do \
|
| 21 |
+
if apt-get update && \
|
| 22 |
+
apt-get install -y --no-install-recommends \
|
| 23 |
+
bash \
|
| 24 |
+
build-essential \
|
| 25 |
+
ca-certificates \
|
| 26 |
+
curl \
|
| 27 |
+
git \
|
| 28 |
+
patch \
|
| 29 |
+
python2; then \
|
| 30 |
+
installed=1; \
|
| 31 |
+
break; \
|
| 32 |
+
fi; \
|
| 33 |
+
sleep 2; \
|
| 34 |
+
done; \
|
| 35 |
+
if [ "$installed" -ne 1 ]; then \
|
| 36 |
+
echo "Unable to install system dependencies after retries" >&2; \
|
| 37 |
+
exit 1; \
|
| 38 |
+
fi; \
|
| 39 |
+
npm config set python /usr/bin/python2; \
|
| 40 |
+
rm -rf /var/lib/apt/lists/*
|
| 41 |
+
|
| 42 |
+
RUN set -eux; \
|
| 43 |
+
cloned=0; \
|
| 44 |
+
for attempt in 1 2 3 4 5; do \
|
| 45 |
+
rm -rf /testbed; \
|
| 46 |
+
if git \
|
| 47 |
+
-c http.version=HTTP/1.1 \
|
| 48 |
+
-c http.lowSpeedLimit=1000 \
|
| 49 |
+
-c http.lowSpeedTime=60 \
|
| 50 |
+
clone --no-tags https://github.com/ariakit/ariakit.git /testbed && \
|
| 51 |
+
git -C /testbed checkout --detach d5e1e8f070c435acdbab92a95a938be23e5803ae; then \
|
| 52 |
+
cloned=1; \
|
| 53 |
+
break; \
|
| 54 |
+
fi; \
|
| 55 |
+
sleep 5; \
|
| 56 |
+
done; \
|
| 57 |
+
if [ "$cloned" -ne 1 ]; then \
|
| 58 |
+
echo "Unable to clone the target repository after retries" >&2; \
|
| 59 |
+
exit 1; \
|
| 60 |
+
fi
|
| 61 |
+
|
| 62 |
+
WORKDIR /testbed
|
| 63 |
+
|
| 64 |
+
RUN yarn install --frozen-lockfile --non-interactive
|
tasks/ariakit__ariakit-520/assets/001.png
ADDED
|
Git LFS Details
|
tasks/ariakit__ariakit-520/assets/002.png
ADDED
|
Git LFS Details
|
tasks/ariakit__ariakit-520/meta.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instance_id": "ariakit__ariakit-520",
|
| 3 |
+
"repo": "ariakit/ariakit",
|
| 4 |
+
"base_commit": "d5e1e8f070c435acdbab92a95a938be23e5803ae",
|
| 5 |
+
"environment_setup_commit": "d5e1e8f070c435acdbab92a95a938be23e5803ae",
|
| 6 |
+
"created_at": "",
|
| 7 |
+
"version": "",
|
| 8 |
+
"image_count": 2,
|
| 9 |
+
"image_assets": {
|
| 10 |
+
"problem_statement": [
|
| 11 |
+
"assets/ariakit__ariakit-520/001.png",
|
| 12 |
+
"assets/ariakit__ariakit-520/002.png"
|
| 13 |
+
],
|
| 14 |
+
"patch": [],
|
| 15 |
+
"test_patch": []
|
| 16 |
+
}
|
| 17 |
+
}
|
tasks/ariakit__ariakit-520/problem_statement.txt
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Some components don't render the passed id prop
|
| 2 |
+
## 🐛 Bug report
|
| 3 |
+
|
| 4 |
+
### Current behavior
|
| 5 |
+
|
| 6 |
+
I used the codesandbox link from https://github.com/reakit/reakit/blob/master/README.md and tested a situation i discovered when using the `id` attribute in combination with components that use the `Hidden` component.
|
| 7 |
+
|
| 8 |
+
The moment i declare an `id`, it failes to render.
|
| 9 |
+
|
| 10 |
+
### Steps to reproduce the bug
|
| 11 |
+
|
| 12 |
+
Provide a repo or sandbox with the bug and describe the steps to reproduce it.
|
| 13 |
+
|
| 14 |
+
1. Open sandbox: https://codesandbox.io/s/crazy-curran-2x3wc (you can use it as a base)
|
| 15 |
+
2. remove/add the `id` attribute for `Hidden` or any other component depending on it.
|
| 16 |
+
3. See console logs
|
| 17 |
+
|
| 18 |
+
### Expected behavior
|
| 19 |
+
|
| 20 |
+
Should render without failure.
|
| 21 |
+
|
| 22 |
+
### Possible solutions
|
| 23 |
+
|
| 24 |
+
I currently do not have an propper understanding of the new `Id` component and how it works to so
|
| 25 |
+
i cannot give a possible solution.
|
| 26 |
+
|
| 27 |
+
### Environment
|
| 28 |
+
|
| 29 |
+
Please, run the command below inside your project directory.
|
| 30 |
+
```sh
|
| 31 |
+
$ npx envinfo --system --binaries --browsers --npmPackages "{react*,reakit*}"
|
| 32 |
+
|
| 33 |
+
System:
|
| 34 |
+
OS: Linux 4.18 Ubuntu 18.10 (Cosmic Cuttlefish)
|
| 35 |
+
CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
|
| 36 |
+
Memory: 796.86 MB / 15.32 GB
|
| 37 |
+
Container: Yes
|
| 38 |
+
Shell: 4.4.19 - /bin/bash
|
| 39 |
+
Binaries:
|
| 40 |
+
Node: 12.10.0 - ~/.asdf/installs/nodejs/12.10.0/bin/node
|
| 41 |
+
Yarn: 1.19.0 - ~/.asdf/installs/nodejs/12.10.0/.npm/bin/yarn
|
| 42 |
+
npm: 6.10.3 - ~/.asdf/installs/nodejs/12.10.0/bin/npm
|
| 43 |
+
Browsers:
|
| 44 |
+
Chrome: 78.0.3904.97
|
| 45 |
+
Firefox: 68.0
|
| 46 |
+
npmPackages:
|
| 47 |
+
react: ^16.8.6 => 16.9.0
|
| 48 |
+
react-benchmark: ^2.1.0 => 2.1.1
|
| 49 |
+
react-docgen: ^4.1.1 => 4.1.1
|
| 50 |
+
react-dom: ^16.8.6 => 16.9.0
|
| 51 |
+
react-is: ^16.8.1 => 16.9.0
|
| 52 |
+
react-known-props: ^2.4.2 => 2.4.4
|
| 53 |
+
react-test-renderer: ^16.11.0 => 16.11.0
|
| 54 |
+
react-window: ^1.8.1 => 1.8.5
|
| 55 |
+
reakit: https://pkg.csb.dev/reakit/reakit/commit/35fb93af/reakit => 1.0.0-beta.13
|
| 56 |
+
reakit-utils: 0.7.2 => 0.7.2
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## Relevant pre-fix discussion
|
| 62 |
+
|
| 63 |
+
### Issue #518
|
| 64 |
+
|
| 65 |
+
#### Comment at 2019-12-17T10:14:31Z
|
| 66 |
+
|
| 67 |
+
Hi @namjul! I can't reproduce it. If I set `id="test"` on `Dialog`, it properly renders the component with the correct id.
|
| 68 |
+

|
| 69 |
+
|
| 70 |
+
#### Comment at 2019-12-17T13:46:32Z
|
| 71 |
+
|
| 72 |
+
Thanks for the reproduction! The problem there is that you're setting an invalid id (`123`). IDs can't start with numbers.
|
| 73 |
+
|
| 74 |
+
The code is throwing on this line:
|
| 75 |
+
https://github.com/reakit/reakit/blob/d5e1e8f070c435acdbab92a95a938be23e5803ae/packages/reakit/src/Hidden/__utils/useWarningIfMultiple.ts#L12
|
| 76 |
+
|
| 77 |
+
This will throw on any website:
|
| 78 |
+

|
| 79 |
+
|
| 80 |
+
We could avoid throwing that by wrapping that part of the code within `try`/`catch`.
|
tasks/bpmn-io__bpmn-js-1442/Dockerfile
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:14-bullseye-slim
|
| 2 |
+
|
| 3 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
+
npm_config_audit=false \
|
| 5 |
+
npm_config_fund=false
|
| 6 |
+
|
| 7 |
+
RUN set -eux; \
|
| 8 |
+
printf '%s\n' \
|
| 9 |
+
'Acquire::Retries "5";' \
|
| 10 |
+
'Acquire::http::Timeout "30";' \
|
| 11 |
+
'Acquire::https::Timeout "30";' \
|
| 12 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 13 |
+
> /etc/apt/apt.conf.d/80-retries; \
|
| 14 |
+
success=0; \
|
| 15 |
+
for attempt in 1 2 3 4 5; do \
|
| 16 |
+
if apt-get update && apt-get install -y --no-install-recommends ca-certificates; then \
|
| 17 |
+
success=1; \
|
| 18 |
+
break; \
|
| 19 |
+
fi; \
|
| 20 |
+
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
|
| 21 |
+
sleep "$((attempt * 2))"; \
|
| 22 |
+
done; \
|
| 23 |
+
[ "$success" -eq 1 ] || exit 1; \
|
| 24 |
+
sed -i 's|http://|https://|g' /etc/apt/sources.list; \
|
| 25 |
+
success=0; \
|
| 26 |
+
for attempt in 1 2 3 4 5; do \
|
| 27 |
+
if apt-get update && apt-get install -y --no-install-recommends \
|
| 28 |
+
bash \
|
| 29 |
+
bzip2 \
|
| 30 |
+
curl \
|
| 31 |
+
git \
|
| 32 |
+
patch \
|
| 33 |
+
wget \
|
| 34 |
+
xauth \
|
| 35 |
+
xvfb \
|
| 36 |
+
fonts-liberation \
|
| 37 |
+
libasound2 \
|
| 38 |
+
libatk-bridge2.0-0 \
|
| 39 |
+
libatk1.0-0 \
|
| 40 |
+
libcups2 \
|
| 41 |
+
libdbus-1-3 \
|
| 42 |
+
libdrm2 \
|
| 43 |
+
libgbm1 \
|
| 44 |
+
libglib2.0-0 \
|
| 45 |
+
libgtk-3-0 \
|
| 46 |
+
libnspr4 \
|
| 47 |
+
libnss3 \
|
| 48 |
+
libpango-1.0-0 \
|
| 49 |
+
libpangocairo-1.0-0 \
|
| 50 |
+
libx11-6 \
|
| 51 |
+
libx11-xcb1 \
|
| 52 |
+
libxcb1 \
|
| 53 |
+
libxcomposite1 \
|
| 54 |
+
libxcursor1 \
|
| 55 |
+
libxdamage1 \
|
| 56 |
+
libxext6 \
|
| 57 |
+
libxfixes3 \
|
| 58 |
+
libxi6 \
|
| 59 |
+
libxrandr2 \
|
| 60 |
+
libxrender1 \
|
| 61 |
+
libxss1 \
|
| 62 |
+
libxtst6; then \
|
| 63 |
+
success=1; \
|
| 64 |
+
break; \
|
| 65 |
+
fi; \
|
| 66 |
+
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
|
| 67 |
+
sleep "$((attempt * 2))"; \
|
| 68 |
+
done; \
|
| 69 |
+
[ "$success" -eq 1 ] || exit 1; \
|
| 70 |
+
apt-get clean; \
|
| 71 |
+
find /var/lib/apt/lists -mindepth 1 -delete
|
| 72 |
+
|
| 73 |
+
RUN set -eux; \
|
| 74 |
+
target_commit=f3394441ad73b84fdc23790556c4aadcdcbd4b82; \
|
| 75 |
+
mkdir -p /testbed; \
|
| 76 |
+
git -C /testbed init; \
|
| 77 |
+
git -C /testbed remote add origin https://github.com/bpmn-io/bpmn-js.git; \
|
| 78 |
+
success=0; \
|
| 79 |
+
for attempt in 1 2 3 4 5; do \
|
| 80 |
+
if git -C /testbed -c http.version=HTTP/1.1 fetch --depth=1 origin "$target_commit"; then \
|
| 81 |
+
success=1; \
|
| 82 |
+
break; \
|
| 83 |
+
fi; \
|
| 84 |
+
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
|
| 85 |
+
sleep "$((attempt * 2))"; \
|
| 86 |
+
done; \
|
| 87 |
+
[ "$success" -eq 1 ] || exit 1; \
|
| 88 |
+
git -C /testbed checkout --detach FETCH_HEAD; \
|
| 89 |
+
test "$(git -C /testbed rev-parse HEAD)" = "$target_commit"; \
|
| 90 |
+
chown -R node:node /testbed
|
| 91 |
+
|
| 92 |
+
WORKDIR /testbed
|
| 93 |
+
|
| 94 |
+
USER node
|
| 95 |
+
|
| 96 |
+
RUN npm ci
|
tasks/bpmn-io__bpmn-js-1442/assets/001.gif
ADDED
|
Git LFS Details
|
tasks/bpmn-io__bpmn-js-1442/assets/002.gif
ADDED
|
Git LFS Details
|
tasks/bpmn-io__bpmn-js-1442/assets/003.gif
ADDED
|
Git LFS Details
|
tasks/bpmn-io__bpmn-js-1442/assets/004.gif
ADDED
|
Git LFS Details
|
tasks/bpmn-io__bpmn-js-1442/meta.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instance_id": "bpmn-io__bpmn-js-1442",
|
| 3 |
+
"repo": "bpmn-io/bpmn-js",
|
| 4 |
+
"base_commit": "f3394441ad73b84fdc23790556c4aadcdcbd4b82",
|
| 5 |
+
"environment_setup_commit": "f3394441ad73b84fdc23790556c4aadcdcbd4b82",
|
| 6 |
+
"created_at": "",
|
| 7 |
+
"version": "",
|
| 8 |
+
"image_count": 4,
|
| 9 |
+
"image_assets": {
|
| 10 |
+
"problem_statement": [
|
| 11 |
+
"assets/bpmn-io__bpmn-js-1442/001.gif",
|
| 12 |
+
"assets/bpmn-io__bpmn-js-1442/002.gif",
|
| 13 |
+
"assets/bpmn-io__bpmn-js-1442/003.gif",
|
| 14 |
+
"assets/bpmn-io__bpmn-js-1442/004.gif"
|
| 15 |
+
],
|
| 16 |
+
"patch": [],
|
| 17 |
+
"test_patch": []
|
| 18 |
+
}
|
| 19 |
+
}
|
tasks/bpmn-io__bpmn-js-1442/problem_statement.txt
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Pasting Multiple Shapes Onto Connection Results In Unexpected Connections
|
| 2 |
+
__Describe the Bug__
|
| 3 |
+
|
| 4 |
+

|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
__Steps to Reproduce__
|
| 9 |
+
|
| 10 |
+
1. Copy two tasks
|
| 11 |
+
2. Paste the tasks onto a sequence flow
|
| 12 |
+
|
| 13 |
+
__Expected Behavior__
|
| 14 |
+
|
| 15 |
+
<!-- A clear and concise description of what you expected to happen. -->
|
| 16 |
+
|
| 17 |
+
The [behavior](https://github.com/bpmn-io/bpmn-js/blob/develop/lib/features/modeling/behavior/DropOnFlowBehavior.js) doesn't kick in for multiple shapes __or__ it connects them in a way that _makes sense_.
|
| 18 |
+
|
| 19 |
+
__Environment__
|
| 20 |
+
|
| 21 |
+
- Library version: 8.3.1
|
| 22 |
+
|
| 23 |
+
## Relevant pre-fix discussion
|
| 24 |
+
|
| 25 |
+
### Issue #1440
|
| 26 |
+
|
| 27 |
+
#### Comment at 2021-04-30T11:08:33Z
|
| 28 |
+
|
| 29 |
+
Root-Cause:
|
| 30 |
+
|
| 31 |
+
The elements are added in order from left to right, but on the same Sequenz flow. Because of that, the second element comes first, see the gif below:
|
| 32 |
+

|
| 33 |
+
|
| 34 |
+
__Solution Ideas__
|
| 35 |
+
I see two options:
|
| 36 |
+
1. Add the Elements back-to-front.
|
| 37 |
+
2. Determine the target-Flow again after each element is created
|
| 38 |
+
|
| 39 |
+
However, both have Problems:
|
| 40 |
+
1. I have made a draft implementation in the linked diagram-js PR. However, reversing the order in which the elements are added in the `CreateElementsHandler` makes assumptions about the structure of the arguments hand feels like a hack.
|
| 41 |
+
__EDIT__: This will actually break the Nested elements, such as Participants/Sub-Processes. We would probably have to change the Tree-destructuring from https://github.com/bpmn-io/diagram-js/blob/master/lib/features/copy-paste/CopyPaste.js#L296
|
| 42 |
+
2. The mouse event targets only one flow, so we do not have references to the next target flow. I'm not 100% sure if this approach can be achieve this without a bigger refactoring.
|
| 43 |
+
|
| 44 |
+
@philippfromme , I'd be interested in your opinion on this. Would changing the order when copying the shapes (opposed to when creating the new ones) make this less hacky?
|
| 45 |
+
|
| 46 |
+
#### Comment at 2021-04-30T12:08:07Z
|
| 47 |
+
|
| 48 |
+
Honestly, I think we should disable this behavior when more than one shape is created. We simply cannot know what connections to create if we are creating multiple shapes at the same time. The behavior can also easily blow up completely:
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
The behavior was created at a time when only single elements could be created.
|
| 53 |
+
|
| 54 |
+
#### Comment at 2021-04-30T12:11:28Z
|
| 55 |
+
|
| 56 |
+
Moving the elements is rejected so pasting should be rejected, too:
|
| 57 |
+
|
| 58 |
+

|
tasks/chakra-ui__chakra-ui-5651/Dockerfile
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:16.20.2-bullseye
|
| 2 |
+
|
| 3 |
+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
| 4 |
+
|
| 5 |
+
RUN set -eux; \
|
| 6 |
+
printf '%s\n' \
|
| 7 |
+
'Acquire::Retries "5";' \
|
| 8 |
+
'Acquire::http::Timeout "30";' \
|
| 9 |
+
'Acquire::https::Timeout "30";' \
|
| 10 |
+
'Acquire::http::Pipeline-Depth "0";' \
|
| 11 |
+
'Acquire::https::Pipeline-Depth "0";' \
|
| 12 |
+
'Acquire::BrokenProxy "true";' \
|
| 13 |
+
> /etc/apt/apt.conf.d/80-retries; \
|
| 14 |
+
sed -i 's|http://deb.debian.org|https://deb.debian.org|g; s|http://security.debian.org|https://security.debian.org|g' /etc/apt/sources.list; \
|
| 15 |
+
for attempt in 1 2 3 4 5; do \
|
| 16 |
+
if apt-get update && apt-get install -y --no-install-recommends \
|
| 17 |
+
bash \
|
| 18 |
+
ca-certificates \
|
| 19 |
+
curl \
|
| 20 |
+
wget \
|
| 21 |
+
git \
|
| 22 |
+
patch \
|
| 23 |
+
build-essential \
|
| 24 |
+
python3 \
|
| 25 |
+
pkg-config; then \
|
| 26 |
+
break; \
|
| 27 |
+
fi; \
|
| 28 |
+
if [ "${attempt}" -eq 5 ]; then \
|
| 29 |
+
echo "apt installation failed after 5 attempts" >&2; \
|
| 30 |
+
exit 1; \
|
| 31 |
+
fi; \
|
| 32 |
+
apt-get clean; \
|
| 33 |
+
sleep "$((attempt * 3))"; \
|
| 34 |
+
done; \
|
| 35 |
+
apt-get clean
|
| 36 |
+
|
| 37 |
+
RUN git clone https://github.com/chakra-ui/chakra-ui.git /testbed && \
|
| 38 |
+
cd /testbed && \
|
| 39 |
+
git checkout --detach d5807a4ef73baf0aa7687a144ca4a4474abe953b && \
|
| 40 |
+
test "$(git rev-parse HEAD)" = "d5807a4ef73baf0aa7687a144ca4a4474abe953b"
|
| 41 |
+
|
| 42 |
+
WORKDIR /testbed
|
| 43 |
+
|
| 44 |
+
ENV CI=true
|
| 45 |
+
ENV HUSKY=0
|
| 46 |
+
|
| 47 |
+
RUN yarn config set network-timeout 600000 && \
|
| 48 |
+
yarn install --frozen-lockfile --ignore-engines
|