Skip to content

[Bugfix:System] vagrant workers up setup fix#12465

Merged
bmcutler merged 2 commits intomainfrom
worker-machine-configuration-problems-fix
Feb 26, 2026
Merged

[Bugfix:System] vagrant workers up setup fix#12465
bmcutler merged 2 commits intomainfrom
worker-machine-configuration-problems-fix

Conversation

@hyeenaa
Copy link
Contributor

@hyeenaa hyeenaa commented Feb 22, 2026

Why is this Change Important & Necessary?

Fixes #12409

when creating a worker machine from vagrant (vagrant workers up), it fails in multiple steps during the setup process. First, it gets tripped on a NodeJS gpg keygen failure, then a MOTD permissions issue, and then the submitty user doesn't actually get created because of a malformed if statement in a setup worker bash script.

What is the New Behavior?

The worker machine will now successfully generate without errors.

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

on main, run vagrant workers generate, then vagrant workers up, and observe the failure. Do the same thing in my branch and observe that it properly generates.

Automated Testing & Documentation

Other information

There should be no critically breaking changes on any production machines, given that running vagrant workers is not a production variant of running workers.

@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.70%. Comparing base (5e09374) to head (b7faa8a).
⚠️ Report is 37 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12465      +/-   ##
============================================
+ Coverage     21.67%   21.70%   +0.03%     
- Complexity     9620     9626       +6     
============================================
  Files           268      268              
  Lines         36164    36188      +24     
  Branches        486      486              
============================================
+ Hits           7837     7856      +19     
- Misses        27845    27850       +5     
  Partials        482      482              
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.74% <ø> (+0.04%) ⬆️
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

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.

@hyeenaa hyeenaa changed the title vagrant workers up setup fix [Bugfix:System] vagrant workers up setup fix Feb 24, 2026
@bmcutler bmcutler requested a review from skara9 February 24, 2026 02:00
@automateprojectmangement automateprojectmangement bot moved this from Seeking Reviewer to In Review in Submitty Development Feb 24, 2026
Copy link

@Farhanxikram Farhanxikram left a comment

Choose a reason for hiding this comment

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

Functionality review:
I ran vagrant workers up on the main branch and it erroed and failed to make the worker correctly,
I then ran vagrant workers up on this branch and everything worked perfectl,y :)

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Feb 24, 2026
@bmcutler bmcutler merged commit 4fd9346 into main Feb 26, 2026
28 of 29 checks passed
@bmcutler bmcutler deleted the worker-machine-configuration-problems-fix branch February 26, 2026 02:42
@github-project-automation github-project-automation bot moved this from Awaiting Maintainer Review to Done in Submitty Development Feb 26, 2026
GarvitKhandelwal31 pushed a commit to GarvitKhandelwal31/Submitty that referenced this pull request Mar 5, 2026
### Why is this Change Important & Necessary?

Fixes Submitty#12409 

when creating a worker machine from vagrant (`vagrant workers up`), it
fails in multiple steps during the setup process. First, it gets tripped
on a NodeJS gpg keygen failure, then a MOTD permissions issue, and then
the submitty user doesn't actually get created because of a malformed if
statement in a setup worker bash script.



### What is the New Behavior?
The worker machine will now successfully generate without errors.

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

on main, run vagrant workers generate, then vagrant workers up, and
observe the failure. Do the same thing in my branch and observe that it
properly generates.

### Automated Testing & Documentation


### Other information

There should be no critically breaking changes on any production
machines, given that running vagrant workers is not a production variant
of running workers.
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.

[Bugfix:System] Submitty worker test machines do not generate properly with vagrant

3 participants