Commit Graph

25 Commits

Author SHA1 Message Date
Lorenz Junglas
91f8fcf183 Speed up / parallelize tests (#3587)
- Added Sandbox.Test.Unit project (contains independent tests that can run in parallel) 
- Modify some slow/stress tests (e.g. instead of doing a million iterations settle for 10k).

Tests run almost twice as fast now.
2025-12-10 14:23:00 +01:00
Lorenz Junglas
6808d8768e Shutdown fixes (#3553)
* Stop generating solutions via -test flag add -generatesolution

* Add TestAppSystem remove Application.InitUnitTest

Avoids some hacks and also makes sure our tests are as close to a real AppSystem as possible.

* Add shutdown unit test

shuts down an re-inits the engine

* Properly dispose native resources hold by managed during shutdown

Should fix a bunch of crashes

* Fix filesystem and networking tests

* StandaloneTest does proper Game Close

* Make sure package tests clean up properly

* Make sure menu scene and resources are released on shutdown

* Report leaked scenes on shutdown

* Ensure DestroyImmediate is not used on scenes

* Fix unmounting in unit tests not clearing native refs

* Force destroy native resource on ResourceLib Clear
2025-12-08 15:55:11 +01:00
Matt Stevens
a4d13731cc Increase SentryRelease timeout 30s -> 120s 2025-12-03 09:24:30 +00:00
Matt Stevens
eb563ad0d9 SyncPublicRepo: Upload Linux binaries 2025-12-02 17:41:54 +00:00
Matt Stevens
4d2b668de1 Everything seems to be in order.. remove dry-run 2025-12-02 16:54:19 +00:00
Matt Stevens
6f7ae597f4 gha: build staging on multiple platforms, upload artifacts, sync in it's own runner
* ci triggers win64 and linuxamd64 workflows
* workflows upload their artifacts to gha
* sync workflow is on it's own runner and downloads the artifacts,
  it then builds the filtered repo and uploads a full manifest to r2
* remove sync step from Deploy pipeline
* disable force push, the history should always match
2025-12-02 14:53:34 +00:00
Lorenz Junglas
84bc10a6c4 Fix sync not handling deleted lfs files correctly 2025-12-02 11:44:21 +00:00
Matt Stevens
359dd1cb21 gha: do formatting step in seperate cloud runner in parallel (#3521) 2025-12-01 12:22:31 +00:00
Lorenz Junglas
1408529189 PR triage requires checks to pass (#3503)
* Add formatting workflow to git filter-repo path rename

* Verify checks pass before triaging
2025-12-01 11:43:11 +01:00
Lorenz Junglas
1a29f98237 Public sync upload build content artifacts (#3518)
* Sync build content to r2
* Additional safe guards for uploading
2025-12-01 08:45:58 +00:00
Lorenz Junglas
28e8e8609f Artifact Download: Walk back commits until a valid manifest is found (#3485) 2025-11-28 10:37:20 +00:00
Lorenz Junglas
64fc154f39 Fix private PR formatting check (#3473)
* Make sure our private PR action run also check BuildTool formatting

* Format BuildTools
2025-11-27 10:17:39 +00:00
Lorenz Junglas
0581185500 Fix Unreachable Code warning in Writer.Import.cs (#3472)
Fixes Warning: D:\a\sbox-public\sbox-public\engine\Tools\InteropGen\Writer\ManagerWriter.Imports.cs(133,7): warning CS0162: Unreachable code detected [D:\a\sbox-public\sbox-public\engine\Tools\InteropGen\InteropGen.csproj]
2025-11-27 10:17:24 +00:00
Lorenz Junglas
5addf6f59b Public PR Github Action Checksuite (#3470)
Checks formatting
Runs tests
2025-11-27 10:08:41 +01:00
Lorenz Junglas
8b1d58d524 Fix native interop gen being skipped in in private build (#3462) 2025-11-26 19:43:30 +00:00
Lorenz Junglas
09d20a4482 Fix git filtering causing inconsistent commit hashes when files are deleted
Move filter implementation to python so we have more flexibility when implementing filters.
Make sure deleted files are properly filtered by evaluating globs in the filter itself not before.
Make sure deleted LFS files are accounted for by scanning the history of the shallow clone for delete/changed lfs files.
Whitelist some additional shaders.
2025-11-26 13:25:18 +00:00
Lorenz Junglas
c2c74e1719 Public bootstrap robust download (#3450)
* More robust downloading of artifacts

Don't download to a temp file first
Try to retry download up to 3 times, if it fails
Fail Bootstrap if any download fails

* Fix contentbuilder and shadercompiler not forwarding to stdout
2025-11-26 08:27:14 +00:00
Matt Stevens
89e669c155 Public PR triage workflow 2025-11-26 01:01:35 +00:00
Lorenz Junglas
8dbcd83bbe Refactor the public repo sync (#3444)
* Refactor sync script

Use single filter repo call
Use globs instead of python madness
Ensure shallow clone is clean before working on it

* Add dry run option to sync script
* Add public gitattributes
2025-11-25 14:40:57 +01:00
Matt Stevens
49b28d213c Use a tagged commit for the public baseline, using a date jumped between different commits 2025-11-25 09:54:19 +00:00
Lorenz Junglas
e8a0d480c1 Free native engine dlls before shutdown (#3307) 2025-11-24 17:05:27 +01:00
Matt Stevens
71f3ce2d42 Do sync step sooner, avoid any extra junk made during tests/upload 2025-11-24 12:12:29 +00:00
Matt Stevens
0675def24c Add missing shader includes 2025-11-24 12:10:29 +00:00
Matt Stevens
7792af8dce .gitignore for public repo 2025-11-24 12:00:11 +00:00
s&box team
71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00