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

Fix tutorial endpoint #326

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Fix tutorial endpoint #326

merged 1 commit into from
Jan 18, 2024

Conversation

forsyth2
Copy link
Collaborator

Fix tutorial endpoint

Resolves the following issue, which I ran into while testing Unified 1.9.2.rc3 on Chrysalis:

globus_sdk.services.transfer.errors.TransferAPIError: [...] 'GCSv4 is no longer supported. Contact your sysadmin.'

@forsyth2 forsyth2 added the Testing Files in `tests` modified label Jan 18, 2024
@forsyth2 forsyth2 self-assigned this Jan 18, 2024
@forsyth2 forsyth2 merged commit 02747dd into main Jan 18, 2024
3 checks passed
@forsyth2 forsyth2 deleted the fix-tutorial-endpoint branch January 18, 2024 21:26
@forsyth2
Copy link
Collaborator Author

forsyth2 commented Jan 18, 2024

Globus test still seems to be hanging.

Trying #304 (comment):

$ source /lcrc/soft/climate/e3sm-unified/test_e3sm_unified_1.9.2rc3_chrysalis.sh
$ mkdir test_unified_1.9.2rc3
$ emacs setup.sh 
mkdir zstash_demo
mkdir zstash_demo/empty_dir
mkdir zstash_demo/dir
echo 'file0 stuff' > zstash_demo/file0.txt
echo '' > zstash_demo/file_empty.txt
echo 'file1 stuff' > zstash_demo/dir/file1.txt

$ chmod 755 setup.sh
$ ./setup.sh
$ zstash create --hpss=globus://6c54cade-bde5-45c1-bdea-f4bd71dba2cc/~/chrysalis_1.9.2rc3v3 zstash_demo
# Give authentication

Now I'm getting:

****************************************
testLsGlobus
****************************************
*** Setup ***
****************************************
Current directory=/gpfs/fs1/home/ac.forsyth2/zstash does not contain zstash and tests directories
****************************************
Current directory=/gpfs/fs1/home/ac.forsyth2/zstash
New current directory=/gpfs/fs1/home/ac.forsyth2/zstash
Removing test files, both locally and at the HPSS repo
Globus delete FAILED
F
======================================================================
FAIL: testLs (tests.test_globus.TestGlobus)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gpfs/fs1/home/ac.forsyth2/zstash/tests/test_globus.py", line 182, in testLs
    self.helperLsGlobus(
  File "/gpfs/fs1/home/ac.forsyth2/zstash/tests/test_globus.py", line 168, in helperLsGlobus
    use_hpss = self.setupDirs(test_name)
  File "/gpfs/fs1/home/ac.forsyth2/zstash/tests/base.py", line 203, in setupDirs
    self.assertWorkspace()
  File "/gpfs/fs1/home/ac.forsyth2/zstash/tests/base.py", line 155, in assertWorkspace
    self.stop(
  File "/gpfs/fs1/home/ac.forsyth2/zstash/tests/base.py", line 143, in stop
    self.fail(error_message)
AssertionError: Current directory=/gpfs/fs1/home/ac.forsyth2/zstash does not contain zstash and tests directories

----------------------------------------------------------------------
Ran 1 test in 6.612s

FAILED (failures=1)

@forsyth2
Copy link
Collaborator Author

It appears I was on the wrong branch or in the wrong directory; the test is now passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Files in `tests` modified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant