Skip to content

Commit

Permalink
Update to .NET SDK 7 Preview 6 (#28431)
Browse files Browse the repository at this point in the history
* Increase timeout for the Cosmos Emulator in CI
* Revert "Workaround for Sqlite/InMemory test failures on OSX (#28328)"
  (50300fb).
  • Loading branch information
roji authored Jul 25, 2022
1 parent 08a1b45 commit c54353c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/TestCosmos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Start Cosmos Emulator
run: |
Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
Start-CosmosDbEmulator
Start-CosmosDbEmulator -Timeout 360
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -26,5 +26,10 @@ jobs:
run: restore.cmd
shell: cmd

- name: Build
run: build.cmd /p:Projects=${{ github.workspace }}\test\EFCore.Cosmos.FunctionalTests\EFCore.Cosmos.FunctionalTests.csproj
shell: cmd

- name: Test on Cosmos
run: .dotnet\dotnet test test\EFCore.Cosmos.FunctionalTests
run: test.cmd /p:Projects=${{ github.workspace }}\test\EFCore.Cosmos.FunctionalTests\EFCore.Cosmos.FunctionalTests.csproj
shell: cmd
2 changes: 0 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ stages:
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
env:
Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)
COMPlus_EnableWriteXorExecute: 0 # Work-around for https://github.com/dotnet/runtime/issues/70758
name: Build
- task: PublishBuildArtifacts@1
displayName: Upload TestResults
Expand Down Expand Up @@ -239,7 +238,6 @@ stages:
HelixAccessToken: $(_HelixAccessToken)
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
MSSQL_SA_PASSWORD: "Password12!"
COMPlus_EnableWriteXorExecute: 0 # Work-around for https://github.com/dotnet/runtime/issues/70758

- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: eng\common\templates\post-build\post-build.yml
Expand Down
7 changes: 0 additions & 7 deletions eng/helix.proj
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
</XUnitProject>
</ItemGroup>

<!-- Work-around for https://github.com/dotnet/runtime/issues/70758 -->
<ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`OSX`))'">
<XUnitProject Update="$(RepoRoot)/test/EFCore.InMemory.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.Sqlite.FunctionalTests/*.csproj">
<PreCommands>$(PreCommands); export COMPlus_EnableWriteXorExecute=0</PreCommands>
</XUnitProject>
</ItemGroup>

<!-- Start SqlServer instance for test projects which uses SqlServer on docker. Also remove other projects as they will be run outside of docker. -->
<ItemGroup Condition = "'$(HelixTargetQueue.Contains(`ubuntu-18.04-helix-sqlserver-amd64`))'">
<XUnitProject Remove="$(RepoRoot)/test/**/*.csproj"/>
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"tools": {
"dotnet": "7.0.100-preview.5.22307.18"
"dotnet": "7.0.100-preview.6.22352.1"
},
"sdk": {
"version": "7.0.100-preview.5.22307.18",
"version": "7.0.100-preview.6.22352.1",
"allowPrerelease": true,
"rollForward": "latestMajor"
},
Expand Down

0 comments on commit c54353c

Please sign in to comment.