Skip to content

Commit

Permalink
debugging CI
Browse files Browse the repository at this point in the history
  • Loading branch information
debonisd committed Mar 21, 2024
1 parent 334cdef commit f514392
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
# The debug job is meant for debugging CI related issues.
debug:
# Comment out the following line to enable.
if: ${{ false }}
# if: ${{ false }}

runs-on: ubuntu-latest

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
# Set run_tests to run only the specific tests you need to fix.
- name: run_tests
run: |
./test/run_tests
./test/run_tests -q -o update
- name: zip_working_dir
if: always()
Expand Down
3 changes: 3 additions & 0 deletions lib/pavilion/wget.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def update(pav_cfg, url, dest):

# If the file doesn't exist, just get it.
if not dest.exists():
print( "does not exist" )
fetch = True
else:
head_data = head(pav_cfg, url)
Expand All @@ -256,6 +257,7 @@ def update(pav_cfg, url, dest):
# matching Content-Length and fetch it if we can't.
if (not info_path.exists() and
(head_data.get('Content-Length') != info['size'])):
print( "no content length match: ", info, head_data )
fetch = True

# If we do have an info file and neither the ETag or content length
Expand All @@ -269,6 +271,7 @@ def update(pav_cfg, url, dest):
head_data.get('Content-Length') == info.get('Content-Length') and
# Or if the content length matches the actual size.
head_data.get('Content-Length') == info['size'])):
print( "content differs: ", info, head_data )
fetch = True

if fetch:
Expand Down

0 comments on commit f514392

Please sign in to comment.