Skip to content

Commit 9f598f5

Browse files
committed
sdk: skipping cache for build acceptance runs
1 parent 2490801 commit 9f598f5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

sdk/makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ test-all:
9292

9393
check-acceptance:
9494
echo -e "\n\t\033[34mRunning acceptance checks using current environment \033[33m(NOT BUILT ARTIFACT)\033[0m\n"
95-
uv run -p $(PYTHON_VERSION) tests/e2e_examples/check_build_acceptance.py
95+
uv run --no-cache -p $(PYTHON_VERSION) tests/e2e_examples/check_build_acceptance.py
9696

9797
serve-coverage:
9898
python -m http.server 1313 -d tests/htmlcov
@@ -112,9 +112,9 @@ update:
112112
uv run pre-commit autoupdate
113113

114114
build:
115-
uv build
115+
uv build --no-cache
116116
echo -e "\n\t\033[32mRunning smoke tests on the built package\033[0m\n"
117-
uv run --isolated --no-project -p $(PYTHON_VERSION) --with dist/*.tar.gz tests/e2e_examples/check_build_acceptance.py
117+
uv run --no-cache --isolated --no-project -p $(PYTHON_VERSION) --with dist/*.tar.gz tests/e2e_examples/check_build_acceptance.py
118118
# clean-up generated files
119119
rm my_spectrum_files/rf_run_*.csv && rmdir my_spectrum_files
120120
echo -e "\n\t\033[32mBuilt package:\033[0m\n"

sdk/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def _inner_loop(self) -> Generator[File, None, list[File]]:
160160
file_obj.local_path.touch()
161161
self.fake_files.append(file_obj)
162162
yield file_obj
163-
log.error(f"AAAAA: {self.fake_files}")
164163
self.value = self.fake_files
165164
return self.value
166165

sdk/tests/e2e_examples/check_build_acceptance.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626

2727
from spectrumx import Client
2828
from spectrumx import enable_logging
29+
import spectrumx
2930

3031
NOT_IMPLEMENTED = "This example is not yet implemented."
31-
SDS_HOST = "sds.crc.nd.edu" # shouldn't matter for dry-runs
32+
SDS_HOST = "sds-dev.crc.nd.edu" # shouldn't matter for dry-runs
3233

3334
if TYPE_CHECKING:
3435
from spectrumx.models.files import File
@@ -47,6 +48,8 @@ def teardown_module() -> None:
4748
def check_basic_usage() -> None:
4849
"""Runs a basic usage run. Update this code to reflect readme changes."""
4950

51+
print(f"Running basic usage check for v{spectrumx.__version__}...")
52+
5053
# Example of files upload, listing, and download from SDS.
5154

5255
# NOTE: the SDS client-server interaction is stateless, so it is

0 commit comments

Comments
 (0)