Skip to content

Conversation

@kopardev
Copy link
Contributor

@kopardev kopardev commented May 19, 2025

Changes

Issues

PR Checklist

(Strikethrough any points that are not applicable.)

  • This comment contains a description of changes with justifications, with any relevant issues linked.
  • Write unit tests for any new features, bug fixes, or other code changes.
  • Update docs if there are any API changes.
  • Update CHANGELOG.md with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/

@kopardev kopardev marked this pull request as ready for review May 19, 2025 16:00
@kopardev kopardev requested a review from kelly-sovacool May 19, 2025 16:00
@codecov
Copy link

codecov bot commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (v0.4@1b9308f). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             v0.4      #83   +/-   ##
=======================================
  Coverage        ?   75.18%           
=======================================
  Files           ?       25           
  Lines           ?     1785           
  Branches        ?        0           
=======================================
  Hits            ?     1342           
  Misses          ?      443           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kelly-sovacool kelly-sovacool changed the base branch from v0.4 to main May 19, 2025 16:01
@kelly-sovacool
Copy link
Member

@kopardev I changed your pull request to merge into main, which is the dev branch. The v0.X branches are automatically created and updated to correspond to releases, they should never have unreleased changes.

Comment on lines +124 to +133
set of pathlib.Path: A set of `pathlib.Path` objects representing the matched files
sorted by modification time (newest first)
"""
return {
files = [
pathlib.Path(f)
for pattern in patterns
for f in glob.glob(f"{pipeline_outdir}/**/{pattern}", recursive=True)
if pathlib.Path(f).is_file()
}
]
return sorted(files, key=lambda p: p.stat().st_mtime, reverse=True)
Copy link
Member

@kelly-sovacool kelly-sovacool May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will break existing code that uses glob_files and expects it to be a set

grep -r glob_files src

src/ccbr_tools/spooker.py:from .paths import get_tree, load_tree, get_disk_usage, glob_files
src/ccbr_tools/spooker.py:    log_file = glob_files(
src/ccbr_tools/paths.py:def glob_files(
src/ccbr_tools/jobby.py:from .paths import glob_files
src/ccbr_tools/jobby.py:        out_files = glob_files(workdir, patterns=[f"*{job_id}*.out", ".command.out"])
src/ccbr_tools/jobby.py:        err_files = glob_files(workdir, patterns=[f"*{job_id}*.err", ".command.err"])

Copy link
Member

@kelly-sovacool kelly-sovacool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Code that uses glob_files() will likely need to change, e.g. pop() is a set method that list does not have. See comment
  • Please fill out the PR template, including a brief description of why the change is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants