Skip to content

[Refactor:System] Remove unnecessary setup script commits#12691

Merged
williamjallen merged 1 commit into
mainfrom
vagrant-up-transactions
Mar 31, 2026
Merged

[Refactor:System] Remove unnecessary setup script commits#12691
williamjallen merged 1 commit into
mainfrom
vagrant-up-transactions

Conversation

@williamjallen

Copy link
Copy Markdown
Member

Why is this Change Important & Necessary?

The setup sample courses script currently commits after almost every database statement. The overhead of committing so frequently is nontrivial.

What is the New Behavior?

The setup sample courses script now commits fewer times inside loops. There's more work to be done here, but it'll require a broader overhaul of these scripts.

@williamjallen

Copy link
Copy Markdown
Member Author

@codecov

codecov Bot commented Mar 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.64%. Comparing base (02638f6) to head (26eb5ff).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12691   +/-   ##
=========================================
  Coverage     21.64%   21.64%           
  Complexity     9654     9654           
=========================================
  Files           268      268           
  Lines         36245    36245           
  Branches        487      487           
=========================================
  Hits           7846     7846           
  Misses        27916    27916           
  Partials        483      483           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.66% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)

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.

@Rkoester47 Rkoester47 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These changes look good to me for reducing overhead during setup.

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Mar 31, 2026
@hyeenaa
hyeenaa self-requested a review March 31, 2026 21:00
@automateprojectmangement automateprojectmangement Bot moved this from Awaiting Maintainer Review to In Review in Submitty Development Mar 31, 2026

@hyeenaa hyeenaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

changes are appropriate and properly avoid committing in a for loop, which would be more resource heavy compared to if you do it in one chunk.

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Mar 31, 2026
@williamjallen
williamjallen merged commit a3c2f4f into main Mar 31, 2026
28 of 29 checks passed
@williamjallen
williamjallen deleted the vagrant-up-transactions branch March 31, 2026 22:57
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Mar 31, 2026
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.

3 participants