Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
9e4f68ac
Commit
9e4f68ac
authored
Nov 14, 2022
by
Vladimir Repin
Committed by
GitHub
Nov 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop exporting cl args and upload stdout and stderr as artifacts
parent
5808241d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
18 deletions
+27
-18
.github/workflows/run_tests.yaml
.github/workflows/run_tests.yaml
+9
-2
launch.py
launch.py
+2
-0
test/advanced_features/extras_test.py
test/advanced_features/extras_test.py
+1
-1
test/advanced_features/txt2img_test.py
test/advanced_features/txt2img_test.py
+1
-1
test/basic_features/img2img_test.py
test/basic_features/img2img_test.py
+1
-1
test/basic_features/txt2img_test.py
test/basic_features/txt2img_test.py
+1
-1
test/basic_features/utils_test.py
test/basic_features/utils_test.py
+11
-11
test/server_poll.py
test/server_poll.py
+1
-1
No files found.
.github/workflows/run_tests.yaml
View file @
9e4f68ac
...
...
@@ -22,5 +22,12 @@ jobs:
${{ runner.os }}-pip-
-
name
:
Run tests
run
:
|
export COMMANDLINE_ARGS="--tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test --port 80"
python launch.py
python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
-
name
:
Upload main app stdout-stderr
uses
:
actions/upload-artifact@v3
if
:
always()
with
:
name
:
stdout-stderr
path
:
|
./test/stdout.txt
./test/stderr.txt
launch.py
View file @
9e4f68ac
...
...
@@ -244,6 +244,8 @@ def tests(test_dir):
if
"--ckpt"
not
in
sys
.
argv
:
sys
.
argv
.
append
(
"--ckpt"
)
sys
.
argv
.
append
(
"./test/test_files/empty.pt"
)
if
"--skip-torch-cuda-test"
not
in
sys
.
argv
:
sys
.
argv
.
append
(
"--skip-torch-cuda-test"
)
print
(
f
"Launching Web UI in another process for testing with arguments: {' '.join(sys.argv[1:])}"
)
...
...
test/advanced_features/extras_test.py
View file @
9e4f68ac
...
...
@@ -3,7 +3,7 @@ import unittest
class
TestExtrasWorking
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
url_img2img
=
"http://localhost:
8
0/sdapi/v1/extra-single-image"
self
.
url_img2img
=
"http://localhost:
786
0/sdapi/v1/extra-single-image"
self
.
simple_extras
=
{
"resize_mode"
:
0
,
"show_extras_results"
:
True
,
...
...
test/advanced_features/txt2img_test.py
View file @
9e4f68ac
...
...
@@ -4,7 +4,7 @@ import requests
class
TestTxt2ImgWorking
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
url_txt2img
=
"http://localhost:
8
0/sdapi/v1/txt2img"
self
.
url_txt2img
=
"http://localhost:
786
0/sdapi/v1/txt2img"
self
.
simple_txt2img
=
{
"enable_hr"
:
False
,
"denoising_strength"
:
0
,
...
...
test/basic_features/img2img_test.py
View file @
9e4f68ac
...
...
@@ -6,7 +6,7 @@ from PIL import Image
class
TestImg2ImgWorking
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
url_img2img
=
"http://localhost:
8
0/sdapi/v1/img2img"
self
.
url_img2img
=
"http://localhost:
786
0/sdapi/v1/img2img"
self
.
simple_img2img
=
{
"init_images"
:
[
encode_pil_to_base64
(
Image
.
open
(
r"test/test_files/img2img_basic.png"
))],
"resize_mode"
:
0
,
...
...
test/basic_features/txt2img_test.py
View file @
9e4f68ac
...
...
@@ -4,7 +4,7 @@ import requests
class
TestTxt2ImgWorking
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
url_txt2img
=
"http://localhost:
8
0/sdapi/v1/txt2img"
self
.
url_txt2img
=
"http://localhost:
786
0/sdapi/v1/txt2img"
self
.
simple_txt2img
=
{
"enable_hr"
:
False
,
"denoising_strength"
:
0
,
...
...
test/basic_features/utils_test.py
View file @
9e4f68ac
...
...
@@ -3,17 +3,17 @@ import requests
class
UtilsTests
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
url_options
=
"http://localhost:
8
0/sdapi/v1/options"
self
.
url_cmd_flags
=
"http://localhost:
8
0/sdapi/v1/cmd-flags"
self
.
url_samplers
=
"http://localhost:
8
0/sdapi/v1/samplers"
self
.
url_upscalers
=
"http://localhost:
8
0/sdapi/v1/upscalers"
self
.
url_sd_models
=
"http://localhost:
8
0/sdapi/v1/sd-models"
self
.
url_hypernetworks
=
"http://localhost:
8
0/sdapi/v1/hypernetworks"
self
.
url_face_restorers
=
"http://localhost:
8
0/sdapi/v1/face-restorers"
self
.
url_realesrgan_models
=
"http://localhost:
8
0/sdapi/v1/realesrgan-models"
self
.
url_prompt_styles
=
"http://localhost:
8
0/sdapi/v1/prompt-styles"
self
.
url_artist_categories
=
"http://localhost:
8
0/sdapi/v1/artist-categories"
self
.
url_artists
=
"http://localhost:
8
0/sdapi/v1/artists"
self
.
url_options
=
"http://localhost:
786
0/sdapi/v1/options"
self
.
url_cmd_flags
=
"http://localhost:
786
0/sdapi/v1/cmd-flags"
self
.
url_samplers
=
"http://localhost:
786
0/sdapi/v1/samplers"
self
.
url_upscalers
=
"http://localhost:
786
0/sdapi/v1/upscalers"
self
.
url_sd_models
=
"http://localhost:
786
0/sdapi/v1/sd-models"
self
.
url_hypernetworks
=
"http://localhost:
786
0/sdapi/v1/hypernetworks"
self
.
url_face_restorers
=
"http://localhost:
786
0/sdapi/v1/face-restorers"
self
.
url_realesrgan_models
=
"http://localhost:
786
0/sdapi/v1/realesrgan-models"
self
.
url_prompt_styles
=
"http://localhost:
786
0/sdapi/v1/prompt-styles"
self
.
url_artist_categories
=
"http://localhost:
786
0/sdapi/v1/artist-categories"
self
.
url_artists
=
"http://localhost:
786
0/sdapi/v1/artists"
def
test_options_get
(
self
):
self
.
assertEqual
(
requests
.
get
(
self
.
url_options
)
.
status_code
,
200
)
...
...
test/server_poll.py
View file @
9e4f68ac
...
...
@@ -8,7 +8,7 @@ def run_tests(proc, test_dir):
start_time
=
time
.
time
()
while
time
.
time
()
-
start_time
<
timeout_threshold
:
try
:
requests
.
head
(
"http://localhost:
8
0/"
)
requests
.
head
(
"http://localhost:
786
0/"
)
break
except
requests
.
exceptions
.
ConnectionError
:
if
proc
.
poll
()
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment