Skip to content

Commit bcf65dd

Browse files
authored
Merge branch 'Facepunch:master' into master
2 parents d448bc8 + 22dc5b1 commit bcf65dd

File tree

35 files changed

+415
-371
lines changed

35 files changed

+415
-371
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
github-token: ${{ secrets.GITHUB_TOKEN }}
1515
script: |
16-
const requiredChecks = ['Tests', 'Formatting'];
16+
const requiredChecks = ['format', 'tests'];
1717
1818
const pr = context.payload.pull_request;
1919
if (!pr) {
@@ -33,16 +33,8 @@ jobs:
3333
3434
if (!match || match.conclusion !== 'success') {
3535
const status = match ? (match.conclusion ?? match.status ?? 'unknown') : 'missing';
36-
core.warning(`Required check '${requiredCheck}' did not pass (${status}). Removing triaged label.`);
37-
38-
await github.rest.issues.removeLabel({
39-
owner: context.repo.owner,
40-
repo: context.repo.repo,
41-
issue_number: pr.number,
42-
name: 'triaged'
43-
});
44-
45-
throw new Error('Cannot triage until required checks succeed.');
36+
core.warning(`Required check '${requiredCheck}' did not pass (${status}).`);
37+
throw new Error('Cannot triage until required checks succeed. Remove and re-add the triaged label to retry.');
4638
}
4739
}
4840

.github/workflows/pull_request_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
contents: read
99

1010
jobs:
11-
format:
11+
tests:
1212
runs-on: [ windows-latest ]
1313
steps:
1414
- name: Full Checkout

engine/Sandbox.Tools/Scene/Session/SceneEditorSession.cs

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ void CreateSceneDock()
7575
SceneDock = EditorTypeLibrary.Create<Widget>( "SceneDock", new object[] { this } );
7676
SceneDock.Name = $"SceneDock:{(Scene.Source?.ResourcePath ?? "untitled")}";
7777

78-
SetDockProperties();
79-
8078
SceneDock.Parent = EditorWindow;
8179
SceneDock.Visible = true;
8280

81+
UpdateEditorTitle();
82+
8383
Dock();
8484
}
8585

@@ -204,25 +204,6 @@ public void Tick()
204204
}
205205
}
206206

207-
[EditorEvent.Frame]
208-
private void SetDockProperties()
209-
{
210-
if ( !SceneDock.IsValid() )
211-
return;
212-
213-
var title = Scene.Name.Trim();
214-
215-
if ( IsPrefabSession )
216-
{
217-
SceneDock.SetWindowIcon( "home_repair_service" );
218-
SceneDock.WindowTitle = $"Prefab: {title}";
219-
}
220-
else
221-
{
222-
SceneDock.SetWindowIcon( "grid_4x4" );
223-
}
224-
}
225-
226207
internal void UpdateEditorTitle()
227208
{
228209
if ( !SceneDock.IsValid() )
@@ -235,8 +216,18 @@ internal void UpdateEditorTitle()
235216

236217
if ( SceneDock is not null )
237218
{
238-
SceneDock.WindowTitle = name;
239219
SceneDock.Name = $"SceneDock:{(Scene.Source?.ResourcePath ?? "untitled")}";
220+
221+
if ( IsPrefabSession )
222+
{
223+
SceneDock.SetWindowIcon( "home_repair_service" );
224+
SceneDock.WindowTitle = $"Prefab: {name}";
225+
}
226+
else
227+
{
228+
SceneDock.SetWindowIcon( "grid_4x4" );
229+
SceneDock.WindowTitle = name;
230+
}
240231
}
241232
}
242233

engine/Tools/SboxBuild/Pipelines/Deploy.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ public static Pipeline Create( BuildTarget target, bool clean = false )
2323
builder.AddStep( new BuildShaders( "Build Shaders" ) );
2424
builder.AddStep( new BuildContent( "Build Content" ) );
2525

26-
if ( target == BuildTarget.Staging )
27-
{
28-
// Sync to public repository
29-
builder.AddStep( new SyncPublicRepo( "Sync to Public Repository" ) );
30-
}
31-
3226
// Testing
3327
builder.AddStep( new Test( "Tests" ) );
3428

engine/Tools/SboxBuild/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private static void AddSyncPublicRepo( RootCommand rootCommand )
201201
var option = new Option<bool>(
202202
"--dry-run",
203203
description: "Whether to perform a dry run",
204-
getDefaultValue: () => true );
204+
getDefaultValue: () => false );
205205

206206
syncCommand.AddOption( option );
207207

engine/Tools/SboxBuild/Steps/SyncPublicRepo.cs

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,14 @@ private bool SyncToPublicRepository()
152152
var uploadedArtifacts = new HashSet<ArtifactFileInfo>();
153153
var uploadedArtifactHashes = new HashSet<string>( StringComparer.OrdinalIgnoreCase );
154154

155-
// Upload build artifacts from original repository
156-
if ( !TryUploadBuildArtifacts( repositoryRoot, remoteBase, dryRun, ref uploadedArtifacts, uploadedArtifactHashes ) )
155+
// Upload windows binaries
156+
if ( !TryUploadBuildArtifacts( repositoryRoot, remoteBase, "win64", dryRun, ref uploadedArtifacts, uploadedArtifactHashes ) )
157+
{
158+
return false;
159+
}
160+
161+
// Upload linux binaries
162+
if ( !TryUploadBuildArtifacts( repositoryRoot, remoteBase, "linuxsteamrt64", dryRun, ref uploadedArtifacts, uploadedArtifactHashes ) )
157163
{
158164
return false;
159165
}
@@ -263,9 +269,9 @@ private static bool CleanIgnoredFiles( string relativeRepoPath )
263269
return false;
264270
}
265271

266-
private static bool TryUploadBuildArtifacts( string repositoryRoot, string remoteBase, bool skipUpload, ref HashSet<ArtifactFileInfo> artifacts, HashSet<string> uploadedHashes )
272+
private static bool TryUploadBuildArtifacts( string repositoryRoot, string remoteBase, string platform, bool skipUpload, ref HashSet<ArtifactFileInfo> artifacts, HashSet<string> uploadedHashes )
267273
{
268-
var buildArtifactsRoot = Path.Combine( repositoryRoot, "game", "bin", "win64" );
274+
var buildArtifactsRoot = Path.Combine( repositoryRoot, "game", "bin", platform );
269275
if ( !Directory.Exists( buildArtifactsRoot ) )
270276
{
271277
Log.Info( $"Build artifacts directory not found, skipping upload: {buildArtifactsRoot}" );
@@ -436,7 +442,7 @@ private string PushToPublicRepository( string relativeRepoPath )
436442
}
437443
}
438444

439-
if ( !Utility.RunProcess( "git", $"push public {PUBLIC_BRANCH} --force", relativeRepoPath ) )
445+
if ( !Utility.RunProcess( "git", $"push public {PUBLIC_BRANCH}", relativeRepoPath ) )
440446
{
441447
Log.Error( "Failed to push to public repository" );
442448
return null;
@@ -486,32 +492,19 @@ private static HashSet<string> GetCurrentLfsFiles( string relativeRepoPath )
486492

487493
private static HashSet<string> GetAllPublicLfsFiles( string relativeRepoPath )
488494
{
489-
// Get base set
490495
var trackedFiles = GetCurrentLfsFiles( relativeRepoPath );
491496

492-
// Extend with all lfs files from first commit to HEAD
493-
var firstCommitHash = string.Empty;
494-
if ( !Utility.RunProcess( "git", "rev-list --max-parents=0 HEAD", relativeRepoPath, onDataReceived: ( _, e ) =>
497+
if ( !Utility.RunProcess( "git", "lfs ls-files --all --deleted --name-only", relativeRepoPath, onDataReceived: ( _, e ) =>
495498
{
496-
if ( !string.IsNullOrWhiteSpace( e.Data ) )
499+
if ( string.IsNullOrWhiteSpace( e.Data ) )
497500
{
498-
firstCommitHash = e.Data.Trim();
501+
return;
499502
}
500-
} ) )
501-
{
502-
Log.Error( "Failed find first commit" );
503-
return null;
504-
}
505503

506-
if ( !Utility.RunProcess( "git", $"lfs ls-files --name-only {firstCommitHash} HEAD", relativeRepoPath, onDataReceived: ( _, e ) =>
507-
{
508-
if ( !string.IsNullOrWhiteSpace( e.Data ) )
509-
{
510-
trackedFiles.Add( ToForwardSlash( e.Data.Trim() ) );
511-
}
504+
trackedFiles.Add( ToForwardSlash( e.Data.Trim() ) );
512505
} ) )
513506
{
514-
Log.Error( "Failed to list LFS tracked files" );
507+
Log.Error( "Failed to list historical LFS tracked files" );
515508
return null;
516509
}
517510

game/addons/menu/Assets/scenes/avatar.scene

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6894,12 +6894,12 @@
68946894
"__references": [
68956895
"facepunch.beech_bush_large#108296",
68966896
"facepunch.beech_hedge_40x128_corner#108300",
6897-
"facepunch.beech_hedge_40x128#29090",
6897+
"facepunch.beech_hedge_40x128#108298",
68986898
"facepunch.binbag_a2#17182",
68996899
"facepunch.binbag_pile_a2#17187",
69006900
"facepunch.floor_grass_a#18648",
6901-
"facepunch.grass_clump_a#47110",
6902-
"facepunch.grass_clump_b#29063",
6901+
"facepunch.grass_clump_a#126338",
6902+
"facepunch.grass_clump_b#126339",
69036903
"facepunch.leaf_a1#56169",
69046904
"facepunch.leaf_a2#56170",
69056905
"facepunch.leaf_a3#56171",
@@ -6909,9 +6909,9 @@
69096909
"facepunch.old_bench#108398",
69106910
"facepunch.pine_bush_regular_a#108316",
69116911
"facepunch.pine_bush_regular_c#108318",
6912-
"facepunch.rock_scatter_01#47198",
6913-
"facepunch.rock_scatter_pile_02#47202",
6914-
"facepunch.rock_scatter_pile_05#47205",
6912+
"facepunch.rock_scatter_01#116941",
6913+
"facepunch.rock_scatter_pile_02#116945",
6914+
"facepunch.rock_scatter_pile_05#116942",
69156915
"facepunch.street_bin_rubbish#33657",
69166916
"facepunch.studio_light_projector#29115",
69176917
"facepunch.summer_flowers_01#47032",
@@ -6921,7 +6921,7 @@
69216921
"facepunch.trash_pile_c_04#37374",
69226922
"facepunch.trash_pile_c_05#37530",
69236923
"facepunch.trash_pile_c_cigs_01#37375",
6924-
"facepunch.tree_oak_big_a#38050"
6924+
"facepunch.tree_oak_big_a#117390"
69256925
],
69266926
"__version": 3
69276927
}

game/addons/menu/Assets/scenes/menu-main.scene

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7769,7 +7769,7 @@
77697769
"facepunch.binbag_pile_a2#17187",
77707770
"facepunch.floor_asphalt_b#85368",
77717771
"facepunch.floor_grass_a#18648",
7772-
"facepunch.metal_wheely_bin#33619",
7772+
"facepunch.metal_wheely_bin#108386",
77737773
"facepunch.pizza_box_gib#29074"
77747774
],
77757775
"__version": 3

game/addons/tools/Code/Editor/AssetBrowser/AssetBrowser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public virtual void UpdateAssetList()
397397
bool recursive = ShowRecursiveFiles || !Search.IsEmpty;
398398
AssetList.FullPathMode = recursive;
399399

400-
Path.UpdateSegments();
400+
Path.Rebuild();
401401
RefreshTask = UpdateAssetListAsync( recursive, refreshToken.Token );
402402
}
403403

game/addons/tools/Code/Editor/AssetBrowser/ChipsWidget.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void AddOption( AssetTagSystem.TagDefinition option )
6565
if ( Chips.Any( x => x.Value.Equals( option ) ) )
6666
return;
6767

68-
Scroller.FixedHeight = 24;
68+
Scroller.FixedHeight = Theme.RowHeight;
6969

7070
Scroller.Canvas.Layout.Add( new Chip( option, this )
7171
{
@@ -80,7 +80,7 @@ public void AddOption( Package.TagEntry tag )
8080
if ( Chips.Any( x => x.Value.Equals( tag ) ) )
8181
return;
8282

83-
Scroller.FixedHeight = 24;
83+
Scroller.FixedHeight = Theme.RowHeight;
8484

8585
Scroller.Canvas.Layout.Add( new Chip( tag, this )
8686
{
@@ -132,7 +132,7 @@ protected override Vector2 SizeHint()
132132
var totalWidth = textSize.x + iconSize.x;
133133
if ( IsActive ) totalWidth += 8;
134134

135-
var totalSize = new Vector2( totalWidth, 22 ) + padding;
135+
var totalSize = new Vector2( totalWidth, Theme.RowHeight ) + padding;
136136
return totalSize;
137137
}
138138

0 commit comments

Comments
 (0)