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

[ORCA-284] External Test Testing & [ORCA-287] OmeXmlSchemaTest Bug fix #50

Merged
merged 35 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0049305
adds docker package
BWMac Oct 27, 2023
1b22eca
adds grep fail case
BWMac Oct 27, 2023
6356999
splits test_tests
BWMac Oct 27, 2023
8d16c69
adds small example ome-tiff file
BWMac Oct 30, 2023
d28b94e
removes redundant example file
BWMac Oct 30, 2023
8e6c4a9
adds new fixtures
BWMac Oct 30, 2023
459a903
adds docker-enabled testing example
BWMac Oct 30, 2023
3e0f7f2
remmove macOS for testing
BWMac Oct 30, 2023
cd92ff7
enable docker in macos runner
BWMac Oct 30, 2023
15a86a6
wait for docker daemon
BWMac Oct 30, 2023
e9ac01b
add prints
BWMac Oct 30, 2023
cf9714b
try to run tests in same step as start
BWMac Oct 30, 2023
1510966
test docker install
BWMac Oct 30, 2023
2d1332b
add codesign
BWMac Oct 30, 2023
5492955
adds entitlements
BWMac Oct 30, 2023
2cda95c
switch to ubuntu only for test
BWMac Oct 30, 2023
8b8debc
remove macos for now
BWMac Oct 30, 2023
9aea7bb
updates OmeXmlSchemaTest to fix exit codes
BWMac Oct 31, 2023
deae186
updates external test tests
BWMac Oct 31, 2023
5bb71d8
adds bioformats tests
BWMac Oct 31, 2023
cbb2fee
finish external docker tests
BWMac Oct 31, 2023
fe47855
adds platform to docker build script
BWMac Oct 31, 2023
e3afe0c
test system check
BWMac Oct 31, 2023
15a5a3c
pre-commit fix
BWMac Oct 31, 2023
6e91c26
adds skipping decorator and macos back
BWMac Oct 31, 2023
c82dae4
removes entitlements xml
BWMac Oct 31, 2023
a5cf1cb
adds todo
BWMac Oct 31, 2023
169cfb7
move decorator
BWMac Oct 31, 2023
230a3dd
removes unneeded example file
BWMac Nov 1, 2023
18cdd3b
adds missing docstring
BWMac Nov 1, 2023
a0a57c4
removes platform from build.sh
BWMac Nov 1, 2023
2659bc6
reorder external tests
BWMac Nov 1, 2023
4844bcb
remove test_external_tests
BWMac Nov 1, 2023
640029b
re-add test_external_tests hopefully fix diff
BWMac Nov 1, 2023
52e22bb
changes test variable
BWMac Nov 1, 2023
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
1,552 changes: 841 additions & 711 deletions Pipfile.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ testing =
hypothesis~=4.0
nbmake~=1.3
pytest-xdist[psutil]~=3.1
docker~=6.1.3

# Dependencies for development (used by Pipenv)
dev =
Expand Down
2 changes: 2 additions & 0 deletions src/dcqc/tests/bioformats_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def generate_process(self) -> Process:
"-nopix",
"-novalid",
"-nocore",
"-format",
"OMETiff",
f"'{path.name}'",
]
process = Process(
Expand Down
3 changes: 3 additions & 0 deletions src/dcqc/tests/ome_xml_schema_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def generate_process(self) -> Process:
command_args = [
"/opt/bftools/xmlvalid",
f"'{path.name}'",
"|",
"grep",
"'No validation errors found.'",
]
process = Process(
container="quay.io/sagebionetworks/bftools:latest",
Expand Down
22 changes: 22 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,32 @@ def _get_data(filename: str) -> Path:
@pytest.fixture
def test_files(get_data):
txt_path = get_data("test.txt")
date_path = get_data("test_contains_word_date.txt")
ome_tiff_path = get_data("single-channel.ome.tif")
jsonld_path = get_data("example.jsonld")
tiff_path = get_data("circuit.tif")
fastq1_path = get_data("fastq1.fastq")
fastq2_path = get_data("fastq2.fastq.gz")
syn_path = "syn://syn50555279"
tiff_dirty_datetime_path = get_data("test_image_dirty_datetime.tif")
tiff_date_in_tag_path = get_data("date_tag.tif")
invalid_xml_ome_tiff_path = get_data("invalid_xml.ome.tif")
invalid_xml_metadata = {
"file_type": "tiff",
"md5_checksum": "a2550a887091d51351d547c8beae8f0c",
}
good_metadata = {
"file_type": "txt",
"md5_checksum": "14758f1afd44c09b7992073ccf00b43d",
}
date_txt_metadata = {
"file_type": "txt",
"md5_checksum": "9cee1b0e8c4d051fabea82b62ae69404",
}
ome_tiff_metadata = {
"file_type": "ome-tiff",
"md5_checksum": "293e46687fa6543a2e8189f1698cc5d0",
}
bad_metadata = {
"file_type": "tiff",
"md5_checksum": "definitelynottherightmd5checksum",
Expand All @@ -83,7 +99,13 @@ def test_files(get_data):
"md5_checksum": "28a9ee7d0e994d494068ce8d6cda0268",
}
test_files = {
"date_in_tag_tiff": File(tiff_date_in_tag_path.as_posix(), tiff_metadata),
"good": File(txt_path.as_posix(), good_metadata),
"date_txt": File(date_path.as_posix(), date_txt_metadata),
"ome_tiff": File(ome_tiff_path.as_posix(), ome_tiff_metadata),
"invalid_xml_tiff": File(
invalid_xml_ome_tiff_path.as_posix(), invalid_xml_metadata
),
"bad": File(txt_path.as_posix(), bad_metadata),
"tiff": File(tiff_path.as_posix(), tiff_metadata),
"fastq1": File(fastq1_path.as_posix(), fastq_metadata),
Expand Down
Binary file added tests/data/invalid_xml.ome.tif
Binary file not shown.
Binary file added tests/data/single-channel.ome.tif
Binary file not shown.
Loading