-
Notifications
You must be signed in to change notification settings - Fork 2
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
Enable https reduction (off NGINX server only) and auto-detect storage_type
#245
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
42c5cd4
start implementing https functionality
valeriupredoi 3c3325f
add dedicated https test module
valeriupredoi b0c9684
working test with local reduction
valeriupredoi 61bf171
first working https prototype
valeriupredoi 3f9d619
openhttps file
valeriupredoi 2fd00f0
test for actual https file
valeriupredoi c1d7336
add checker s3 func for uri
valeriupredoi 00c47e0
auto-detect storage type
valeriupredoi 33dae93
add two auto-storage type tests
valeriupredoi 16fdb0a
account for s3 gubbins
valeriupredoi fde60eb
correct test
valeriupredoi 332b599
add test case for https and reductionist
valeriupredoi 4116abc
add test case for https and reductionist
valeriupredoi 70dc84e
shorten line
valeriupredoi c5f4d62
add extra kwarg to request_data
valeriupredoi bd8b617
correct test in light of this
valeriupredoi 2acfd47
run GHA with -n 2
valeriupredoi 3d2d1fe
add to real s3 test case
valeriupredoi 6c251a1
add note docstring
valeriupredoi 2b4eef1
skip a couple longer tests and add test
valeriupredoi 05baa1b
add corner case
valeriupredoi e259ace
test corner case
valeriupredoi 9ef3e4d
add yet another corner case
valeriupredoi 45cf1a7
tests for that
valeriupredoi 6a450c7
Merge branch 'pyfive' into enable_http_reduction
valeriupredoi 280f70d
fix missing kwarg
valeriupredoi fe057f7
Merge branch 'main' into enable_http_reduction
valeriupredoi aaf5e9e
cleanup wkfls and add pyfive installation for conda lock install flow
valeriupredoi f43a430
unrun GHA
valeriupredoi b0285b4
Merge branch 'main' into enable_http_reduction
valeriupredoi 7cd1567
GHA run all pythons for s3 only at merge
valeriupredoi 7891742
GHA s3 test one Python only
valeriupredoi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# adapted GA workflow from https://github.com/stackhpc/reductionist-rs | ||
--- | ||
name: S3/Minio Test Latest Python | ||
|
||
on: | ||
push: | ||
|
||
# Required shell entrypoint to have properly configured bash shell | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
linux-test: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.13"] | ||
fail-fast: false | ||
name: Linux Python ${{ matrix.python-version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
miniforge-version: "latest" | ||
use-mamba: true | ||
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392 | ||
- name: Get conda and Python versions | ||
run: | | ||
conda --version | ||
python -V | ||
- name: Export proxy | ||
run: | | ||
echo 'USE_S3 = True' >> activestorage/config.py | ||
- name: Start minio object storage | ||
run: tests/s3_exploratory/minio_scripts/minio-start | ||
- name: Wait for minio object storage to start | ||
run: | | ||
until curl -if http://localhost:9001; do | ||
sleep 1; | ||
done | ||
- name: Run Reductionist container | ||
run: docker run -it --detach --rm --net=host --name reductionist ghcr.io/stackhpc/reductionist-rs:latest | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
activate-environment: activestorage-minio | ||
environment-file: environment.yml | ||
python-version: ${{ matrix.python-version }} | ||
miniforge-version: "latest" | ||
use-mamba: true | ||
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392 | ||
- name: Install development version of NCAS-CMS/Pyfive:wacasoft | ||
run: | | ||
cd .. | ||
git clone https://github.com/NCAS-CMS/pyfive.git | ||
cd pyfive | ||
git checkout wacasoft | ||
pip install -e . | ||
- name: Install PyActiveStorage | ||
run: | | ||
conda --version | ||
python -V | ||
which python | ||
pip install -e . | ||
- name: Run tests | ||
run: | | ||
pytest -n 2 | ||
- name: Run S3 exploratory tests | ||
run: | | ||
pytest tests/s3_exploratory/test_s3_reduction.py --html=test-reports/s3-exploratory-report.html | ||
if: always() | ||
- name: Install pytest-monitor | ||
run: pip install pytest-monitor | ||
- name: Run S3 performance tests | ||
run: | | ||
pytest tests/s3_exploratory/test_s3_arrange_files.py | ||
pytest tests/s3_exploratory/test_s3_performance.py --db ../.pymon | ||
- name: Analyze S3 and local test performance | ||
run: python tests/s3_exploratory/parse_pymon.py | ||
- name: Stop minio object storage | ||
run: tests/s3_exploratory/minio_scripts/minio-stop | ||
if: always() |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bnlawrence this is the bit I was on about on the call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great. I think we'd need to put the response to that in the json going to reductionist, rather than in the URI itself.