Skip to content

SF-3826 Do not upload a base project to Serval if it is incomplete#3934

Merged
RaymondLuong3 merged 1 commit into
masterfrom
fix/SF-3826
Jun 11, 2026
Merged

SF-3826 Do not upload a base project to Serval if it is incomplete#3934
RaymondLuong3 merged 1 commit into
masterfrom
fix/SF-3826

Conversation

@pmachapman

@pmachapman pmachapman commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes a bug on QA where a base project missing the writing system and the directory on disk causes the build to fail.

Due to the odd nature of the bug, it should be tested on QA, so I have marked as testing not required as it should be merged then tested on QA.


This change is Reviewable

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.86%. Comparing base (c0b63e6) to head (3cc24bd).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3934   +/-   ##
=======================================
  Coverage   80.86%   80.86%           
=======================================
  Files         634      634           
  Lines       40997    41004    +7     
  Branches     6674     6675    +1     
=======================================
+ Hits        33151    33158    +7     
  Misses       6795     6795           
  Partials     1051     1051           

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

@Nateowami Nateowami left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Nateowami made 1 comment.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on pmachapman).


src/SIL.XForge.Scripture/Services/MachineProjectService.cs line 1730 at r1 (raw file):

                    cancellationToken
                );
            if (baseProject is not null)

The old source has a null check. The new logic assumes baseProject can never be null. Is there a good reason to not be concerned it might be null ?

@pmachapman pmachapman left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@pmachapman made 1 comment and resolved 1 discussion.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on Nateowami).


src/SIL.XForge.Scripture/Services/MachineProjectService.cs line 1730 at r1 (raw file):

Previously, Nateowami wrote…

The old source has a null check. The new logic assumes baseProject can never be null. Is there a good reason to not be concerned it might be null ?

Done. I don't know where that went - thank you!

@pmachapman pmachapman temporarily deployed to screenshot_diff June 9, 2026 23:59 — with GitHub Actions Inactive
@RaymondLuong3 RaymondLuong3 self-assigned this Jun 11, 2026

@RaymondLuong3 RaymondLuong3 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@RaymondLuong3 reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on pmachapman).

@RaymondLuong3 RaymondLuong3 merged commit fb658d1 into master Jun 11, 2026
26 checks passed
@RaymondLuong3 RaymondLuong3 deleted the fix/SF-3826 branch June 11, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants