Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci failures #2006

Merged
merged 29 commits into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3912c81
Add more Chrome browser arguments.
T4rk1n Apr 5, 2022
0af38c4
Kill all new threads.
T4rk1n Apr 6, 2022
64b1a60
Wait between clicks cbpu002
T4rk1n Apr 6, 2022
cf26a00
Fix test rdrh003
T4rk1n Apr 6, 2022
070d718
Skip test grva004 on werkzeug 2.1.0
T4rk1n Apr 6, 2022
8c6e927
Add pytest-rerunsfailures
T4rk1n Apr 7, 2022
fcd6a6d
Skip grva005 if werkzeug 2.1.0-1
T4rk1n Apr 7, 2022
04e81ba
Use xfail for flaky tests.
T4rk1n Apr 7, 2022
dc97ec6
Reruns dcc tests.
T4rk1n Apr 7, 2022
58fd024
Migrate to percy-selenium.
T4rk1n Apr 7, 2022
d0a0d47
Add delay argument to dash_duo.multiple_click
T4rk1n Apr 8, 2022
8d2b1d3
Remove percynofinalize.
T4rk1n Apr 8, 2022
1befd3c
Skip lcbc005_long_callback_caching.
T4rk1n Apr 8, 2022
12fc60a
Add `--parallel` to percy exec calls & new finalize.
T4rk1n Apr 8, 2022
63a684d
Prevent initial call in html tests.
T4rk1n Apr 8, 2022
8ec0e2e
fix html test typo and test
alexcjohnson Apr 9, 2022
5dfa6b0
:hocho: deprecated find_element(s)_by_css_selector
alexcjohnson Apr 9, 2022
4e40f20
modernize basic callback test
alexcjohnson Apr 10, 2022
c23be81
fix new percy_finalize
alexcjohnson Apr 11, 2022
3884843
cbsc001 flag percy snapshot before increase call count.
T4rk1n Apr 11, 2022
77984d1
Use dynamic port range if no port specified.
T4rk1n Apr 11, 2022
57c0ea4
Fix tests with dynamic port.
T4rk1n Apr 11, 2022
357d959
Retry table cell assertions on StaleElementReferenceException
T4rk1n Apr 11, 2022
9934ae3
extra wait in devtool error visual tests
alexcjohnson Apr 11, 2022
8e3e6c3
Revert "fix new percy_finalize"
T4rk1n Apr 12, 2022
0b5c15c
Revert "Add `--parallel` to percy exec calls & new finalize."
T4rk1n Apr 12, 2022
d2bd5aa
Revert "Remove percynofinalize."
T4rk1n Apr 12, 2022
b604777
Revert "Migrate to percy-selenium."
T4rk1n Apr 12, 2022
aea397b
noise
alexcjohnson Apr 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ jobs:
. venv/bin/activate && rm -rf components/dash-core-components/dash_core_components
cd components/dash-core-components
TESTFILES=$(circleci tests glob "tests/integration/**/test_*.py" | circleci tests split --split-by=timings)
pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml --junitprefix="components.dash-core-components" ${TESTFILES}
pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml --junitprefix="components.dash-core-components" ${TESTFILES} --reruns 3
- store_artifacts:
path: ~/dash/components/dash-core-components/test-reports
- store_test_results:
Expand Down
2 changes: 1 addition & 1 deletion components/dash-core-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"private::lint.prettier": "prettier --config .prettierrc src/**/*.js --list-different",
"prepublishOnly": "rm -rf lib && babel src --out-dir lib --copy-files && rm -rf lib/jl/ lib/*.jl",
"test": "run-s -c lint test:intg test:pyimport",
"test:intg": "pytest --nopercyfinalize --headless tests/integration",
"test:intg": "pytest --nopercyfinalize --headless tests/integration --reruns 3",
"test:pyimport": "python -m unittest tests/test_dash_import.py",
"prebuild:js": "cp node_modules/plotly.js-dist-min/plotly.min.js dash_core_components_base/plotly.min.js && cp node_modules/mathjax/es5/tex-svg.js dash_core_components_base/mathjax.js",
"build:js": "webpack --mode production",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from datetime import datetime, timedelta

import pytest
import werkzeug

from dash import Dash, Input, Output, html, dcc, no_update


Expand Down Expand Up @@ -71,6 +73,11 @@ def test_dtps010_local_and_session_persistence(dash_dcc):
assert dash_dcc.get_logs() == []


@pytest.mark.xfail(
condition=werkzeug.__version__ in ("2.1.0", "2.1.1"),
reason="Bug with 204 and Transfer-Encoding",
strict=False,
)
def test_dtps011_memory_persistence(dash_dcc):
app = Dash(__name__)
app.layout = html.Div(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import pytest
import time
import json

import werkzeug

from dash import Dash, Input, Output, State, dcc, html
from dash.exceptions import PreventUpdate
from selenium.webdriver.common.by import By
Expand Down Expand Up @@ -185,6 +188,10 @@ def render_content(click, prev_graph):
assert dash_dcc.get_logs() == []


@pytest.mark.skipif(
werkzeug.__version__ in ("2.1.0", "2.1.1"),
reason="Bug with no_update 204 responses get Transfer-Encoding header.",
)
@pytest.mark.parametrize("is_eager", [True, False])
def test_grva004_graph_prepend_trace(dash_dcc, is_eager):
app = Dash(__name__, eager_loading=is_eager)
Expand Down Expand Up @@ -357,6 +364,10 @@ def display_data(trigger, fig):
assert dash_dcc.get_logs() == []


@pytest.mark.skipif(
werkzeug.__version__ in ("2.1.0", "2.1.1"),
reason="Bug with no_update 204 responses get Transfer-Encoding header.",
)
@pytest.mark.parametrize("is_eager", [True, False])
def test_grva005_graph_extend_trace(dash_dcc, is_eager):
app = Dash(__name__, eager_loading=is_eager)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import pytest
import werkzeug

import dash.testing.wait as wait


@pytest.mark.xfail(
condition=werkzeug.__version__ in ("2.1.0", "2.1.1"),
reason="Bug with 204 and Transfer-Encoding",
strict=False,
)
def test_stdl001_data_lifecycle_with_different_condition(store_app, dash_dcc):
dash_dcc.start_server(store_app)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import werkzeug

from dash import Dash, Input, Output, dcc, html
from dash.exceptions import PreventUpdate
import json
Expand Down Expand Up @@ -119,6 +121,11 @@ def render_content(tab):
assert dash_dcc.get_logs() == []


@pytest.mark.xfail(
condition=werkzeug.__version__ in ("2.1.0", "2.1.1"),
reason="Bug with 204 and Transfer-Encoding",
strict=False,
)
@pytest.mark.parametrize("is_eager", [True, False])
def test_tabs_render_without_selected(dash_dcc, is_eager):
app = Dash(__name__, eager_loading=is_eager)
Expand Down
Loading