-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AcademySoftwareFoundation:master' into cuesubmit-jobs-f…
…rom-config-file
- Loading branch information
Showing
17 changed files
with
342 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
# Script for running OpenCue unit tests with PySide6. | ||
# | ||
# This script is written to be run within the OpenCue GitHub Actions environment. | ||
# See `.github/workflows/testing-pipeline.yml`. | ||
|
||
set -e | ||
|
||
python_version=$(python -V 2>&1) | ||
echo "Will run tests using ${python_version}" | ||
|
||
# NOTE: To run this in an almalinux environment, install these packages: | ||
# yum -y install \ | ||
# dbus-libs \ | ||
# fontconfig \ | ||
# gcc \ | ||
# libxkbcommon-x11 \ | ||
# mesa-libEGL-devel \ | ||
# python-devel \ | ||
# which \ | ||
# xcb-util-keysyms \ | ||
# xcb-util-image \ | ||
# xcb-util-renderutil \ | ||
# xcb-util-wm \ | ||
# Xvfb | ||
|
||
# Install Python requirements. | ||
python3 -m pip install --user -r requirements.txt -r requirements_gui.txt | ||
# Replace PySide2 with PySide6. | ||
python3 -m pip uninstall -y PySide2 | ||
python3 -m pip install --user PySide6==6.3.2 | ||
|
||
# Protos need to have their Python code generated in order for tests to pass. | ||
python -m grpc_tools.protoc -I=proto/ --python_out=pycue/opencue/compiled_proto --grpc_python_out=pycue/opencue/compiled_proto proto/*.proto | ||
python -m grpc_tools.protoc -I=proto/ --python_out=rqd/rqd/compiled_proto --grpc_python_out=rqd/rqd/compiled_proto proto/*.proto | ||
|
||
# Fix compiled proto code for Python 3. | ||
2to3 -wn -f import pycue/opencue/compiled_proto/*_pb2*.py | ||
2to3 -wn -f import rqd/rqd/compiled_proto/*_pb2*.py | ||
|
||
python pycue/setup.py test | ||
PYTHONPATH=pycue python pyoutline/setup.py test | ||
PYTHONPATH=pycue python cueadmin/setup.py test | ||
PYTHONPATH=pycue:pyoutline python cuesubmit/setup.py test | ||
python rqd/setup.py test | ||
|
||
ci/run_gui_test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
cuebot/src/main/resources/conf/ddl/postgres/migrations/V16__AddShowStats.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
CREATE TABLE show_stats ( | ||
pk_show VARCHAR(36) NOT NULL, | ||
int_frame_insert_count BIGINT DEFAULT 0 NOT NULL, | ||
int_job_insert_count BIGINT DEFAULT 0 NOT NULL, | ||
int_frame_success_count BIGINT DEFAULT 0 NOT NULL, | ||
int_frame_fail_count BIGINT DEFAULT 0 NOT NULL | ||
); | ||
|
||
INSERT INTO show_stats ( | ||
pk_show, | ||
int_frame_insert_count, | ||
int_job_insert_count, | ||
int_frame_success_count, | ||
int_frame_fail_count | ||
) SELECT | ||
pk_show, | ||
int_frame_insert_count, | ||
int_job_insert_count, | ||
int_frame_success_count, | ||
int_frame_fail_count | ||
FROM show; | ||
|
||
CREATE UNIQUE INDEX c_show_stats_pk ON show_stats (pk_show); | ||
ALTER TABLE show_stats ADD CONSTRAINT c_show_stats_pk PRIMARY KEY | ||
USING INDEX c_show_stats_pk; | ||
|
||
|
||
-- Destructive changes. Please test changes above prior to executing this. | ||
ALTER TABLE show | ||
DROP COLUMN int_frame_insert_count, | ||
DROP COLUMN int_job_insert_count, | ||
DROP COLUMN int_frame_success_count, | ||
DROP COLUMN int_frame_fail_count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.