Skip to content

[Bugfix:System] use shutil.move#13008

Merged
bmcutler merged 1 commit into
mainfrom
fix_move_migration
Jul 7, 2026
Merged

[Bugfix:System] use shutil.move#13008
bmcutler merged 1 commit into
mainfrom
fix_move_migration

Conversation

@bmcutler

@bmcutler bmcutler commented Jul 7, 2026

Copy link
Copy Markdown
Member

Why is this Change Important & Necessary?

PR #12952 used Python path.rename, which unfortunately does not work when the source and destination files are in different partitions.

What is the New Behavior?

We switch to using Pythons shutil package instead.

What steps should a reviewer take to reproduce or test the bug or new feature?

This change is only significant if the /usr and /var directories are located on different partitions.

Automated Testing & Documentation

Not included in automated testing.
We could update our vagrant & CI system setups to have more complicated (& realistic) partition setups.
But this is not high priority to do at this time.

Other information

none.

@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.32%. Comparing base (5d3fbd0) to head (1450bba).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #13008   +/-   ##
=========================================
  Coverage     21.32%   21.32%           
  Complexity    10055    10055           
=========================================
  Files           278      278           
  Lines         37646    37646           
  Branches        516      516           
=========================================
  Hits           8028     8028           
  Misses        29115    29115           
  Partials        503      503           
Flag Coverage Δ
autograder 21.16% <ø> (ø)
js 1.98% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.24% <ø> (ø)
python_submitty_utils 79.83% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)
vue 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bmcutler

bmcutler commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Since this PR updates a migration from a prior PR, it is failing the migration timestamp date CI check, but that's as expected.

@bmcutler
bmcutler merged commit 5cddcd8 into main Jul 7, 2026
27 of 30 checks passed
@bmcutler
bmcutler deleted the fix_move_migration branch July 7, 2026 16:09
@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Done in Submitty Development Jul 7, 2026
parthrajsinghbhati pushed a commit to parthrajsinghbhati/Submitty that referenced this pull request Jul 10, 2026
### Why is this Change Important & Necessary?
PR Submitty#12952 used Python path.rename, which unfortunately does not work
when the source and destination files are in different partitions.

### What is the New Behavior?
We switch to using Pythons shutil package instead.

### What steps should a reviewer take to reproduce or test the bug or
new feature?
This change is only significant if the /usr and /var directories are
located on different partitions.

### Automated Testing & Documentation
Not included in automated testing.
We could update our vagrant & CI system setups to have more complicated
(& realistic) partition setups.
But this is not high priority to do at this time.

### Other information
none.

Co-authored-by: Barb Cutler <Barb Cutler>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant