Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 20 additions & 2 deletions .github/workflows/process-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,31 @@ jobs:
run: |
git checkout PR-HEAD -- ./cypress

- name: Check file existence
id: check_files
run: |
if test "py/visdom/server.py"; then
echo '::set-output name=file_exists::true'
else
echo '::set-output name=file_exists::false'
fi

- name: Cypress test:init
if: steps.check_files.outputs.file_exists == 'true'
uses: cypress-io/github-action@v2
with:
install: false
start: python3 py/visdom/server.py -port 8098 -env_path /tmp
wait-on: 'http://localhost:8098'
spec: cypress/integration/*.init.js
- name: Cypress test:init
uses: cypress-io/github-action@v2
if: steps.check_files.outputs.file_exists != 'true'
with:
install: false
start: python3 py/visdom/server -port 8098 -env_path /tmp
wait-on: 'http://localhost:8098'
spec: cypress/integration/*.init.js

- uses: actions/upload-artifact@v2
with:
Expand All @@ -96,7 +114,7 @@ jobs:
uses: cypress-io/github-action@v2
with:
install: false
start: python3 py/visdom/server.py -port 8098 -env_path /tmp
start: python3 py/visdom/server -port 8098 -env_path /tmp
wait-on: 'http://localhost:8098'
spec: cypress/integration/screenshots.js

Expand All @@ -118,7 +136,7 @@ jobs:
uses: cypress-io/github-action@v2
with:
install: false
start: python3 py/visdom/server.py -port 8098 -env_path /tmp
start: python3 py/visdom/server -port 8098 -env_path /tmp
wait-on: 'http://localhost:8098'
config: ignoreTestFiles=screenshots.*

Expand Down
2 changes: 1 addition & 1 deletion py/visdom/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.2.2
2 changes: 2 additions & 0 deletions py/visdom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# This source code is licensed under the license found in the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As an aside, it's not the best that the entirety of visdom lives in the __init__.py file too. For a future refactor 😉

Copy link
Contributor Author

@da-h da-h Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's true; the python-client code grew out of control. ^^

Considering some of the issues, there are quite some bugs to fix there as well, but tons of tiny things to keep track of at the same time. Any Idea how to improve the code efficiently?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For things like this, I'd argue that visdom has reached a scale that we need to hit on more DevX and codebase quality. Before jumping into the small changes, reorganizing would come first. Then I'd probably want to start using typing, though that can happen in parallel with small changes (every time you take a pass through to fix a bug, doing code quality improvements in the same pass). Typing and testing make sure that as you're making changes, the code is to some degree keeping track of things by itself so you don't have to.

# LICENSE file in the root directory of this source tree.

from visdom.utils.shared_utils import get_new_window_id
from visdom import server
import os.path
import requests
import traceback
Expand Down
Loading