Skip to content

[Bugfix:Testing] Stabilize late submission warning spec#12904

Merged
bmcutler merged 3 commits into
mainfrom
fix-late-submission
Jun 15, 2026
Merged

[Bugfix:Testing] Stabilize late submission warning spec#12904
bmcutler merged 3 commits into
mainfrom
fix-late-submission

Conversation

@dagemcn

@dagemcn dagemcn commented Jun 11, 2026

Copy link
Copy Markdown
Member

Why is this Change Important & Necessary?

It is important to have all cypress tests working and stable so we can know when things have broken.

What is the New Behavior?

Before, if you ran the test after noon, you would experience an off by one error for the team gradeable tests due to how the server rounds late days. I have updated the getDueDateString function to return the due date expressed in terms of the server timezone based on the gradeables due date instead of noon.

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

Run the updated spec locally and in github actions to verify it is passing. Also test around noon/midnight to verify off by one errors are no longer occurring.

Automated Testing & Documentation

N/A

Other information

Not a breaking change.
No migrations included.
No known security concerns.

@github-project-automation github-project-automation Bot moved this to Seeking Reviewer in Submitty Development Jun 11, 2026
@automateprojectmangement automateprojectmangement Bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Jun 11, 2026
@dagemcn dagemcn changed the title [Bugfix:Testing] Stabilized late submission warning spec [Bugfix:Testing] Stabilize late submission warning spec Jun 11, 2026
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.48%. Comparing base (d0682c2) to head (b449c10).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12904   +/-   ##
=========================================
  Coverage     21.48%   21.48%           
  Complexity     9842     9842           
=========================================
  Files           268      268           
  Lines         36851    36851           
  Branches        495      495           
=========================================
  Hits           7919     7919           
  Misses        28441    28441           
  Partials        491      491           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.01% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.52% <ø> (ø)
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.

@dagemcn
dagemcn marked this pull request as ready for review June 11, 2026 19:11
@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to Seeking Reviewer in Submitty Development Jun 11, 2026
@roye2
roye2 self-requested a review June 12, 2026 18:27
@automateprojectmangement automateprojectmangement Bot moved this from Seeking Reviewer to In Review in Submitty Development Jun 12, 2026

@GarvitKhandelwal31 GarvitKhandelwal31 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.

I think the PR correctly identifies the root cause of the failure. The previous logic of hardcoding the due date to 12:00:00 was the real reason of flakiness as also mentioned in the description. The current code change looks good to me and directly fix the root cause.

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Jun 15, 2026
@bmcutler
bmcutler merged commit 8fa4355 into main Jun 15, 2026
66 of 74 checks passed
@bmcutler
bmcutler deleted the fix-late-submission branch June 15, 2026 19:22
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