Skip to content

Commit

Permalink
Jrm/ci fix (#3670)
Browse files Browse the repository at this point in the history
* Ensure CI runs on net8

* remove net 7

* bump csharpier for net8 support

* ensure net8 sdk is available on connector builds

* relax rollforward rules instead
  • Loading branch information
JR-Morgan authored Jan 7, 2025
1 parent 62009cb commit 17b2486
Show file tree
Hide file tree
Showing 299 changed files with 2,727 additions and 2,395 deletions.
12 changes: 4 additions & 8 deletions .circleci/scripts/config-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ jobs: # Each project will have individual jobs for each specific task it has to
- run:
name: Install dotnet
command: |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel sts
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 7.0.410
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 8.0.206
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 8.0.404
$HOME/.dotnet/dotnet --version
- run:
name: Enforce formatting
Expand Down Expand Up @@ -125,8 +123,7 @@ jobs: # Each project will have individual jobs for each specific task it has to
- run:
name: Install dotnet
command: |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel sts
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 8.0.206
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 8.0.404
$HOME/.dotnet/dotnet --version
- run:
name: Startup the Speckle Server
Expand Down Expand Up @@ -257,7 +254,7 @@ jobs: # Each project will have individual jobs for each specific task it has to

deploy-connector-new:
docker:
- image: mcr.microsoft.com/dotnet/sdk:6.0
- image: mcr.microsoft.com/dotnet/sdk:8.0
parameters:
slug:
type: string
Expand Down Expand Up @@ -324,8 +321,7 @@ jobs: # Each project will have individual jobs for each specific task it has to
- run:
name: Install dotnet
command: |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel sts
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 8.0.206
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 8.0.404
$HOME/.dotnet/dotnet --version
$HOME/.dotnet/dotnet --list-runtimes
Expand Down
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]
},
"csharpier": {
"version": "0.23.0",
"version": "0.28.2",
"commands": [
"dotnet-csharpier"
]
Expand Down
4 changes: 2 additions & 2 deletions Automate/Speckle.Automate.Sdk/AutomationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ public async Task StoreFileResult(string filePath)
FileStream fileStream = new(filePath, FileMode.Open, FileAccess.Read);
using StreamContent streamContent = new(fileStream);
formData.Add(streamContent, "files", Path.GetFileName(filePath));
HttpResponseMessage? request = await SpeckleClient.GQLClient.HttpClient
.PostAsync(
HttpResponseMessage? request = await SpeckleClient
.GQLClient.HttpClient.PostAsync(
new Uri($"{AutomationRunData.SpeckleServerUrl}api/stream/{AutomationRunData.ProjectId}/blob"),
formData
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Speckle.Core.Logging;
using System.Text.Json;
using Speckle.Core.Logging;

namespace Speckle.Automate.Sdk.Test;

Expand Down
28 changes: 14 additions & 14 deletions Automate/Speckle.Automate.Sdk/Test/TestAutomateUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ public static async Task<AutomationRunData> CreateTestRun(Client speckleClient)
GraphQLRequest query =
new(
query: """
mutation Mutation($projectId: ID!, $automationId: ID!) {
projectMutations {
automationMutations(projectId: $projectId) {
createTestAutomationRun(automationId: $automationId) {
automationRunId
functionRunId
triggers {
payload {
modelId
versionId
}
triggerType
}
mutation Mutation($projectId: ID!, $automationId: ID!) {
projectMutations {
automationMutations(projectId: $projectId) {
createTestAutomationRun(automationId: $automationId) {
automationRunId
functionRunId
triggers {
payload {
modelId
versionId
}
triggerType
}
}
}
""",
}
}
""",
variables: new
{
automationId = TestAutomateEnvironment.GetSpeckleAutomationId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ public async Task TestCreateVersionInProject()

await automationContext.CreateNewVersionInProject(Utils.TestObject(), BRANCH_NAME, COMMIT_MSG);

Branch branch = await automationContext.SpeckleClient
.BranchGet(automationRunData.ProjectId, BRANCH_NAME, 1)
Branch branch = await automationContext
.SpeckleClient.BranchGet(automationRunData.ProjectId, BRANCH_NAME, 1)
.ConfigureAwait(false);

Assert.NotNull(branch);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ string automationRevisionId
GraphQLRequest query =
new(
query: """
mutation CreateAutomation(
$projectId: String!
$modelId: String!
$automationName: String!
$automationId: String!
$automationRevisionId: String!
) {
automationMutations {
create(
input: {
projectId: $projectId
modelId: $modelId
automationName: $automationName
automationId: $automationId
automationRevisionId: $automationRevisionId
}
)
}
}
""",
mutation CreateAutomation(
$projectId: String!
$modelId: String!
$automationName: String!
$automationId: String!
$automationRevisionId: String!
) {
automationMutations {
create(
input: {
projectId: $projectId
modelId: $modelId
automationName: $automationName
automationId: $automationId
automationRevisionId: $automationRevisionId
}
)
}
}
""",
variables: new
{
projectId,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateBeam : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateBeam : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateColumn : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateColumn : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateDirectShape : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateDirectShape : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateDoor : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateDoor : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateFloor : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateFloor : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Archicad.Communication.Commands;

sealed internal class CreateGridElement : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateGridElement : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Archicad.Model;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Archicad.Model;

namespace Archicad.Communication.Commands;

sealed internal class CreateObject : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateObject : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateOpening : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateOpening : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Newtonsoft.Json;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;

namespace Archicad.Communication.Commands;

sealed internal class CreateRoof : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateRoof : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Archicad.Communication.Commands;

sealed internal class CreateRoom : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateRoom : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Newtonsoft.Json;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;

namespace Archicad.Communication.Commands;

sealed internal class CreateShell : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateShell : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Archicad.Communication.Commands;

sealed internal class CreateSkylight : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateSkylight : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateWall : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateWall : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Objects.BuiltElements.Archicad;
using Speckle.Core.Models;
using Speckle.Newtonsoft.Json;
using Objects.BuiltElements.Archicad;

namespace Archicad.Communication.Commands;

sealed internal class CreateWindow : ICommand<IEnumerable<ApplicationObject>>
internal sealed class CreateWindow : ICommand<IEnumerable<ApplicationObject>>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Archicad.Communication.Commands;

sealed internal class FinishReceiveTransaction : ICommand<object>
internal sealed class FinishReceiveTransaction : ICommand<object>
{
[JsonObject(MemberSerialization.OptIn)]
public sealed class Parameters { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Archicad.Communication.Commands;

sealed internal class GetBeamData : GetDataBase, ICommand<Speckle.Newtonsoft.Json.Linq.JArray>
internal sealed class GetBeamData : GetDataBase, ICommand<Speckle.Newtonsoft.Json.Linq.JArray>
{
public GetBeamData(IEnumerable<string> applicationIds, bool sendProperties, bool sendListingParameters)
: base(applicationIds, sendProperties, sendListingParameters) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Archicad.Communication.Commands;

sealed internal class GetColumnData : GetDataBase, ICommand<Speckle.Newtonsoft.Json.Linq.JArray>
internal sealed class GetColumnData : GetDataBase, ICommand<Speckle.Newtonsoft.Json.Linq.JArray>
{
public GetColumnData(IEnumerable<string> applicationIds, bool sendProperties, bool sendListingParameters)
: base(applicationIds, sendProperties, sendListingParameters) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Archicad.Communication.Commands;

sealed internal class GetDoorData : GetDataBase, ICommand<Speckle.Newtonsoft.Json.Linq.JArray>
internal sealed class GetDoorData : GetDataBase, ICommand<Speckle.Newtonsoft.Json.Linq.JArray>
{
public GetDoorData(IEnumerable<string> applicationIds, bool sendProperties, bool sendListingParameters)
: base(applicationIds, sendProperties, sendListingParameters) { }
Expand Down
Loading

0 comments on commit 17b2486

Please sign in to comment.