Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[release/9.0] Disable Cosmos tests on CI#35933

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AndriySvyryd merged 1 commit intorelease/9.0fromFixJsonCosmosTests
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
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
Disable Cosmos tests on CI
  • Loading branch information
@AndriySvyryd
AndriySvyryd committedApr 9, 2025
commit8b65904bf59e0129c98f8ce1272a39d1f84fcea4
25 changes: 0 additions & 25 deletionsazure-pipelines.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -170,36 +170,11 @@ extends:
- _runCounter: $[counter(variables['Build.Reason'], 0)]
# Rely on task Arcade injects, not auto-injected build step.
- skipComponentGovernanceDetection: true
- ${{ if notin(variables['Build.Reason'], 'PullRequest', 'Schedule') }}:
- _CosmosConnectionUrl: 'true'
steps:
- bash: |
echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-nightly-test.documents.azure.com:443/"
displayName: Prepare to run Cosmos tests on ef-nightly-test
condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '0'), endsWith(variables['_runCounter'], '2'), endsWith(variables['_runCounter'], '4'), endsWith(variables['_runCounter'], '6'), endsWith(variables['_runCounter'], '8')))
- bash: |
echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"
displayName: Prepare to run Cosmos tests on ef-pr-test
condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '1'), endsWith(variables['_runCounter'], '3'), endsWith(variables['_runCounter'], '5'), endsWith(variables['_runCounter'], '7'), endsWith(variables['_runCounter'], '9')))
- template: /eng/common/templates-official/steps/enable-internal-sources.yml
- template: /eng/common/templates-official/steps/enable-internal-runtimes.yml
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
displayName: Build
- task: AzureCLI@2
displayName: Run Cosmos tests
condition: notin(variables['Build.Reason'], 'PullRequest', 'Schedule')
inputs:
azureSubscription: EFCosmosTesting
scriptType: bash
scriptLocation: 'inlineScript'
inlineScript: |
./test.sh --ci --configuration $(_BuildConfig) --projects $(Build.SourcesDirectory)/test/EFCore.Cosmos.FunctionalTests/EFCore.Cosmos.FunctionalTests.csproj
env:
Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)
Test__Cosmos__UseTokenCredential: true
Test__Cosmos__SubscriptionId: d709b837-4a74-4aec-addc-b6e4b9b23e7e
Test__Cosmos__ResourceGroup: efcosmosci
name: Build
templateContext:
outputs:
- output: pipelineArtifact
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -159,7 +159,7 @@ protected override async Task Seed21006(Context21006 context)

var wrapper = (CosmosClientWrapper)context.GetService<ICosmosClientWrapper>();
var singletonWrapper = context.GetService<ISingletonCosmosClientWrapper>();
var entitiesContainer = singletonWrapper.Client.GetContainer(StoreName, containerId: "Entities");
var entitiesContainer = singletonWrapper.Client.GetContainer(TestStore.Name, containerId: "Entities");

var missingTopLevel =
$$"""
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,7 +45,7 @@ protected async Task Seed21006(JsonContext21006 context)
{
var wrapper = (CosmosClientWrapper)context.GetService<ICosmosClientWrapper>();
var singletonWrapper = context.GetService<ISingletonCosmosClientWrapper>();
var entitiesContainer = singletonWrapper.Client.GetContainer(StoreName, containerId: "Entities");
var entitiesContainer = singletonWrapper.Client.GetContainer(TestStore.Name, containerId: "Entities");

var missingTopLevel =
$$"""
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp