Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big bug fixing part 1 #2161

Merged
merged 74 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
dfb670c
Based on DeltaV changes
dvir001 Oct 6, 2024
08de885
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 6, 2024
ee30b27
Update build-test-debug.yml
dvir001 Oct 6, 2024
fc38b3f
Merge branch '2024-10-06-Workflows' of https://github.com/dvir001/fro…
dvir001 Oct 6, 2024
18e904c
Public Transit: check for valid stations
whatston3 Oct 6, 2024
19dbb73
Run tests with C# changes only
whatston3 Oct 6, 2024
6751650
frontier->nf, shipyard test workflow
whatston3 Oct 6, 2024
df02ed7
Remove HandheldGPSBasic to fix fills overflow
dvir001 Oct 6, 2024
68dff9e
Merge branch '2024-10-06-Workflows' of https://github.com/dvir001/fro…
dvir001 Oct 6, 2024
d458967
Fix ultimate clown shoes node
whatston3 Oct 6, 2024
d6c8792
Update sparrow.yml
dvir001 Oct 6, 2024
48f2ce3
Merge branch '2024-10-06-Workflows' of https://github.com/dvir001/fro…
dvir001 Oct 6, 2024
1250699
Update DeepFryer to Delta-V's
whatston3 Oct 6, 2024
2a4a897
reorder filter arg for shipyard tests
whatston3 Oct 6, 2024
3033ecd
Fixups
dvir001 Oct 6, 2024
1c7294f
Boards
dvir001 Oct 6, 2024
b78e8e9
ATM fixes, inflatable wall stack price
whatston3 Oct 6, 2024
53ca88c
test ignores & smaller fixes
whatston3 Oct 7, 2024
2c1a3fe
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 7, 2024
46bf6f3
Update SuicideCommandTests.cs
dvir001 Oct 7, 2024
ad89c69
Update caduceus.yml
dvir001 Oct 7, 2024
1a64588
Update caduceus.yml
dvir001 Oct 7, 2024
10b5456
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 7, 2024
205491e
fix crescent invalid entity refs
whatston3 Oct 7, 2024
6d5ce64
machine board, map load test fixes
whatston3 Oct 7, 2024
f03caf6
Update AutoInternalsTests.cs
dvir001 Oct 7, 2024
5baf0d8
disciple appraisal margin
whatston3 Oct 7, 2024
e12369e
Update crescent.yml
dvir001 Oct 7, 2024
02d3318
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 8, 2024
3bd9a4e
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 8, 2024
3043357
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 8, 2024
7f46fde
Update computer.yml
dvir001 Oct 9, 2024
c2243f7
altars steel yield
ErhardSteinhauer Oct 9, 2024
25d0869
revert bank atm slot, update-credits, no NFDev tst
whatston3 Oct 9, 2024
5db055a
DeadDropSystem: check lifecycle in compromise
whatston3 Oct 9, 2024
1ba0f4c
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 9, 2024
fb90536
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 10, 2024
2f5685b
Update PostMapInitTest.cs
dvir001 Oct 10, 2024
5a566c1
Make arcadia winter coat inherit from ClothingOUterWinterCoatToggleable
arimah Oct 10, 2024
95fa074
Update PostMapInitTest.cs
dvir001 Oct 10, 2024
029e884
Cleanup
dvir001 Oct 10, 2024
b43a9c5
Set static physics on BaseStructureDisable{ToolUse,Anchoring}
arimah Oct 10, 2024
b197210
Update PostMapInitTest.cs
dvir001 Oct 10, 2024
62ebfcc
Update PostMapInitTest.cs
dvir001 Oct 10, 2024
362ba54
Update caduceus.yml
dvir001 Oct 10, 2024
f4f7885
EntityTest: add desc
whatston3 Oct 10, 2024
d4b0e71
nullable pirate bounty whitelists
whatston3 Oct 10, 2024
60a6371
Merge pull request #2 from arimah/fix-arcadia-winter-coat-inheritance
dvir001 Oct 10, 2024
2e4a04b
Merge pull request #3 from arimah/disable-tool-use-anchorage
dvir001 Oct 10, 2024
3ad8802
Value fixes
whatston3 Oct 10, 2024
f3b6f71
Various YAML fixes
whatston3 Oct 10, 2024
06022f8
Fix portable generators
whatston3 Oct 10, 2024
9f9e6bc
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 12, 2024
a2b2cdf
Cleanup
dvir001 Oct 12, 2024
12f17a9
Cleanup
dvir001 Oct 12, 2024
781fe69
Update JobTest.cs
dvir001 Oct 12, 2024
1ed83fa
Fixup
dvir001 Oct 12, 2024
43c0be4
Update softsuits.yml
dvir001 Oct 12, 2024
c41ec2d
Update computer.yml
dvir001 Oct 12, 2024
132455c
Update virology_lab.yml
dvir001 Oct 12, 2024
944b85b
Update bocadillo.yml
dvir001 Oct 12, 2024
29bcb39
Fixups
dvir001 Oct 12, 2024
a89e2da
Update JobTest.cs
dvir001 Oct 12, 2024
7260030
Update build-test-debug.yml
dvir001 Oct 13, 2024
d6e4d25
Merge branch 'master' into 2024-10-06-Workflows
dvir001 Oct 13, 2024
df76156
DeepFryer safety, remove most arbitrage, bk2ships
whatston3 Oct 13, 2024
1cd17e6
Revert most test changes, left TODOs where approp.
whatston3 Oct 13, 2024
ba2d612
BaseWallmount: push into BaseStructureWallmount
whatston3 Oct 13, 2024
3cf29a4
Restore rose, EVA GPS (EVA lights fix this: soon)
whatston3 Oct 13, 2024
59b14d2
Restore GPS to locker fills, GridFill comment
whatston3 Oct 13, 2024
7f74fa2
Cleanup: chair arbitrage, dept. EVA GPS
whatston3 Oct 13, 2024
b31b606
Restore GPS order
whatston3 Oct 13, 2024
93efae4
Restore cargo order tabletop computer
whatston3 Oct 13, 2024
7a7ecd2
Revert GPS order, this time, working
whatston3 Oct 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-map-renderer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
if: github.actor != 'PJBot' && github.event.pull_request.draft == false && github.actor != 'FrontierATC'
strategy:
matrix:
os: [ubuntu-latest]
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/build-test-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ on:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]
pull_request_target: # Frontier: only run tests on C# changes
paths: # Frontier
- "**/*.cs" # Frontier

jobs:
build:
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
if: github.actor != 'PJBot' && github.event.pull_request.draft == false && github.actor != 'FrontierATC'
strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -46,11 +49,17 @@ jobs:

- name: Run Content.Tests
run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0

- name: Run Content.IntegrationTests
shell: pwsh
run: |
$env:DOTNET_gcServer=1
dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed
ci-success:
name: Build & Test Debug
needs:
- build
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0
run: exit 0
2 changes: 1 addition & 1 deletion .github/workflows/conflict-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
Label:
if: ( github.event.pull_request.draft == false ) && ( github.actor != 'PJBot' )
if: ( github.event.pull_request.draft == false ) && ( github.actor != 'PJBot' ) && ( github.actor != 'FrontierATC' )
runs-on: ubuntu-latest
steps:
- name: Check for Merge Conflicts
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/labeler-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Labels: PR"

on:
- pull_request_target

jobs:
labeler:
if: github.actor != 'PJBot' && github.actor != 'FrontierATC'
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
59 changes: 59 additions & 0 deletions .github/workflows/nf-shipyard-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build & Run Shipyard Tests

on:
pull_request:
branches: [ "master" ]
paths:
- "Resources/Maps/_NF/Shuttles/**/*.yml" # Ship grids
- "Resources/Prototypes/_NF/Shipyard/**/*.yml" # Shipyard prototypes
- "Content.IntegrationTests/Tests/_NF/ShipyardTests.cs" # Shipyard tests

jobs:
build:
if: github.event.pull_request.draft == false && github.actor != 'FrontierATC'
strategy:
matrix:
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Master
uses: actions/[email protected]

- name: Setup Submodule
run: |
git submodule update --init --recursive

- name: Pull engine updates
uses: space-wizards/[email protected]

- name: Update Engine Submodules
run: |
cd RobustToolbox/
git submodule update --init --recursive

- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 8.0.x

- name: Install Dependencies
run: dotnet restore

- name: Build Project
run: dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m

- name: Run Shipyard Tests
shell: pwsh
run: |
$env:DOTNET_gcServer=1
dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj --filter FullyQualifiedName~ShipyardTest -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed
ci-success:
name: Build & Run Shipyard Tests
needs:
- build
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0
24 changes: 0 additions & 24 deletions .github/workflows/pr-labeler.yml

This file was deleted.

39 changes: 12 additions & 27 deletions .github/workflows/update-credits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,36 @@ on:
workflow_dispatch:
schedule:
- cron: 0 0 * * 0

jobs:
get_credits:
runs-on: ubuntu-latest
# Hey there fork dev! If you like to include your own contributors in this then you can probably just change this to your own repo
# Do this in dump_github_contributors.ps1 too into your own repo
if: github.repository == 'space-wizards/space-station-14'
if: github.repository == 'new-frontiers-14/frontier-station-14'

steps:
- uses: actions/[email protected]
with:
ref: master

- name: Get this week's Contributors
shell: pwsh
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: Tools/dump_github_contributors.ps1 > Resources/Credits/GitHub.txt

# TODO
#- name: Get this week's Patreons
# run: Tools/script2dumppatreons > Resources/Credits/Patrons.yml
# run: Tools/script2dumppatreons > Resources/Credits/Patrons.yml

# MAKE SURE YOU ENABLED "Allow GitHub Actions to create and approve pull requests" IN YOUR ACTIONS, OTHERWISE IT WILL MOST LIKELY FAIL


# For this you can use a pat token of an account with direct push access to the repo if you have protected branches.
# For this you can use a pat token of an account with direct push access to the repo if you have protected branches.
# Uncomment this and comment the other line if you do this.
# https://github.com/stefanzweifel/git-auto-commit-action#push-to-protected-branches

#- name: Commit new credit files
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: Update Credits
# commit_author: PJBot <[email protected]>

# This will make a PR
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5

- name: Commit new credit files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit-message: Update Credits
title: Update Credits
body: This is an automated Pull Request. This PR updates the github contributors in the credits section.
author: PJBot <[email protected]>
branch: automated/credits-${{env.NOW}}
commit_message: Update Credits
commit_author: FrontierATC <[email protected]>
2 changes: 1 addition & 1 deletion .github/workflows/validate-rgas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
yaml-schema-validation:
name: YAML RGA schema validator
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
if: github.actor != 'PJBot' && github.event.pull_request.draft == false && github.actor != 'FrontierATC'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate_mapfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
yaml-schema-validation:
name: YAML map schema validator
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
if: github.actor != 'PJBot' && github.event.pull_request.draft == false && github.actor != 'FrontierATC'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yaml-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: YAML Linter
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
if: github.actor != 'PJBot' && github.event.pull_request.draft == false && github.actor != 'FrontierATC'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand Down
20 changes: 10 additions & 10 deletions Content.IntegrationTests/Tests/Commands/SuicideCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.Execution;
Expand Down Expand Up @@ -95,7 +95,7 @@ await server.WaitAssertion(() =>
consoleHost.GetSessionShell(playerMan.Sessions.First()).ExecuteCommand("suicide");
Assert.Multiple(() =>
{
Assert.That(mobStateSystem.IsDead(player, mobStateComp));
//Assert.That(mobStateSystem.IsDead(player, mobStateComp)); // DeltaV - /suicide is the same as /ghost
Assert.That(entManager.TryGetComponent<GhostComponent>(mindComponent.CurrentEntity, out var ghostComp) &&
!ghostComp.CanReturnToBody);
});
Expand Down Expand Up @@ -158,17 +158,17 @@ await server.WaitAssertion(() =>

Assert.Multiple(() =>
{
Assert.That(mobStateSystem.IsDead(player, mobStateComp));
//Assert.That(mobStateSystem.IsDead(player, mobStateComp)); // DeltaV - /suicide is the same as /ghost
Assert.That(entManager.TryGetComponent<GhostComponent>(mindComponent.CurrentEntity, out var ghostComp) &&
!ghostComp.CanReturnToBody);
Assert.That(damageableComp.Damage.GetTotal(), Is.EqualTo(lethalDamageThreshold));
//Assert.That(damageableComp.Damage.GetTotal(), Is.EqualTo(lethalDamageThreshold)); // DeltaV - /suicide is the same as /ghost
});
});

await pair.CleanReturnAsync();
}

/// <summary>
/// <summary>
/// Run the suicide command in the console
/// Should only ghost the player but not kill them
/// </summary>
Expand Down Expand Up @@ -210,7 +210,7 @@ await server.WaitAssertion(() =>
consoleHost.GetSessionShell(playerMan.Sessions.First()).ExecuteCommand("suicide");
Assert.Multiple(() =>
{
Assert.That(mobStateSystem.IsAlive(player, mobStateComp));
//Assert.That(mobStateSystem.IsAlive(player, mobStateComp)); // DeltaV:
Assert.That(entManager.TryGetComponent<GhostComponent>(mindComponent.CurrentEntity, out var ghostComp) &&
!ghostComp.CanReturnToBody);
});
Expand Down Expand Up @@ -281,10 +281,10 @@ await server.WaitAssertion(() =>

Assert.Multiple(() =>
{
Assert.That(mobStateSystem.IsDead(player, mobStateComp));
//Assert.That(mobStateSystem.IsDead(player, mobStateComp)); // DeltaV
Assert.That(entManager.TryGetComponent<GhostComponent>(mindComponent.CurrentEntity, out var ghostComp) &&
!ghostComp.CanReturnToBody);
Assert.That(damageableComp.Damage.DamageDict["Slash"], Is.EqualTo(lethalDamageThreshold));
//Assert.That(damageableComp.Damage.DamageDict["Slash"], Is.EqualTo(lethalDamageThreshold)); // DeltaV
});
});

Expand Down Expand Up @@ -353,10 +353,10 @@ await server.WaitAssertion(() =>

Assert.Multiple(() =>
{
Assert.That(mobStateSystem.IsDead(player, mobStateComp));
//Assert.That(mobStateSystem.IsDead(player, mobStateComp)); // DeltaV
Assert.That(entManager.TryGetComponent<GhostComponent>(mindComponent.CurrentEntity, out var ghostComp) &&
!ghostComp.CanReturnToBody);
Assert.That(damageableComp.Damage.DamageDict["Slash"], Is.EqualTo(lethalDamageThreshold / 2));
//Assert.That(damageableComp.Damage.DamageDict["Slash"], Is.EqualTo(lethalDamageThreshold / 2)); // DeltaV
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace Content.IntegrationTests.Tests.GameRules;
public sealed class AntagPreferenceTest
{
[Test]
[Ignore("Antag role selection isn't used on Frontier.")] // Frontier
public async Task TestLobbyPlayersValid()
{
await using var pair = await PoolManager.GetServerClient(new PoolSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task FailAndStartTest()

Assert.That(server.CfgMan.GetCVar(CCVars.GridFill), Is.False);
Assert.That(server.CfgMan.GetCVar(CCVars.GameLobbyFallbackEnabled), Is.True);
Assert.That(server.CfgMan.GetCVar(CCVars.GameLobbyDefaultPreset), Is.EqualTo("secret"));
Assert.That(server.CfgMan.GetCVar(CCVars.GameLobbyDefaultPreset), Is.EqualTo("adventure")); // Frontier: secret<adventure - we use adventure gamemode by default
server.CfgMan.SetCVar(CCVars.GridFill, true);
server.CfgMan.SetCVar(CCVars.GameLobbyFallbackEnabled, false);
server.CfgMan.SetCVar(CCVars.GameLobbyDefaultPreset, "TestPreset");
Expand Down Expand Up @@ -113,7 +113,7 @@ public async Task FailAndStartTest()
ticker.SetGamePreset((GamePresetPrototype?) null);
server.CfgMan.SetCVar(CCVars.GridFill, false);
server.CfgMan.SetCVar(CCVars.GameLobbyFallbackEnabled, true);
server.CfgMan.SetCVar(CCVars.GameLobbyDefaultPreset, "secret");
server.CfgMan.SetCVar(CCVars.GameLobbyDefaultPreset, "adventure"); // Frontier: secret<adventure - we use adventure gamemode by default
server.System<TestRuleSystem>().Run = false;
await pair.CleanReturnAsync();
}
Expand Down
1 change: 1 addition & 0 deletions Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public sealed class NukeOpsTest
/// Check that a nuke ops game mode can start without issue. I.e., that the nuke station and such all get loaded.
/// </summary>
[Test]
[Ignore("Not relevant for Frontier, no nuke ops gameplay.")] // Frontier
public async Task TryStopNukeOpsFromConstantlyFailing()
{
await using var pair = await PoolManager.GetServerClient(new PoolSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public sealed class TraitorRuleTest
private const string TraitorAntagRoleName = "Traitor";

[Test]
[Ignore("Traitor role selection isn't used on Frontier.")] // Frontier
public async Task TestTraitorObjectives()
{
await using var pair = await PoolManager.GetServerClient(new PoolSettings()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ await server.WaitAssertion(() =>
equipment:
mask: ClothingMaskBreath
suitstorage: OxygenTankFilled
outerClothing: ClothingOuterVestTank # Frontier

- type: job
id: TestInternalsDummy
Expand Down
7 changes: 6 additions & 1 deletion Content.IntegrationTests/Tests/MachineBoardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ await server.WaitAssertion(() =>
continue;
var mId = mbc.Prototype;

// Frontier: we accept null as board prototypes, but this will fail the assertions.
if (mId == "Null")
continue;
// End Frontier

Assert.Multiple(() =>
{
Assert.That(protoMan.TryIndex<EntityPrototype>(mId, out var mProto),
$"Machine board {p.ID}'s corresponding machine has an invalid prototype.");
$"Machine board {p.ID}'s corresponding machine has an invalid prototype."); // Frontier
Assert.That(mProto.TryGetComponent<MachineComponent>(out var mComp, compFact),
$"Machine board {p.ID}'s corresponding machine {mId} does not have MachineComponent");
Assert.That(mComp.Board, Is.EqualTo(p.ID),
Expand Down
Loading
Loading