Skip to content

Commit

Permalink
Fix exception message and CI build timing (#4743)
Browse files Browse the repository at this point in the history
  • Loading branch information
LTA-Thinking authored Dec 2, 2024
1 parent c4a33cc commit bd101b1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
21 changes: 17 additions & 4 deletions build/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ stages:
- template: ./jobs/build.yml
parameters:
targetBuildFramework: 'net6.0'

- stage: BuildArtifacts
displayName: 'Build artifacts'
dependsOn:
- UpdateVersion
variables:
assemblySemVer: $[stageDependencies.UpdateVersion.Semver.outputs['SetVariablesFromGitVersion.assemblySemVer']]
assemblySemFileVer: $[stageDependencies.UpdateVersion.Semver.outputs['SetVariablesFromGitVersion.assemblySemFileVer']]
informationalVersion: $[stageDependencies.UpdateVersion.Semver.outputs['SetVariablesFromGitVersion.informationalVersion']]
majorMinorPatch: $[stageDependencies.UpdateVersion.Semver.outputs['SetVariablesFromGitVersion.majorMinorPatch']]
nuGetVersion: $[stageDependencies.UpdateVersion.Semver.outputs['SetVariablesFromGitVersion.nuGetVersion']]
jobs:
- job: Linux_BuildAndPackage
pool:
name: '$(DefaultLinuxPool)'
Expand All @@ -99,6 +111,7 @@ stages:
displayName: 'Run Security Analysis and Validate'
dependsOn:
- BuildUnitTests
- BuildArtifacts
jobs:
- job: Guardian
pool:
Expand Down Expand Up @@ -147,7 +160,7 @@ stages:
- stage: testStu3
displayName: 'Run Stu3 Tests'
dependsOn:
- BuildUnitTests
- BuildArtifacts
- redeployStu3
- redeployStu3Sql
jobs:
Expand Down Expand Up @@ -186,7 +199,7 @@ stages:
- stage: testR4
displayName: 'Run R4 Tests'
dependsOn:
- BuildUnitTests
- BuildArtifacts
- redeployR4
- redeployR4Sql
jobs:
Expand Down Expand Up @@ -225,7 +238,7 @@ stages:
- stage: testR4B
displayName: 'Run R4B Tests'
dependsOn:
- BuildUnitTests
- BuildArtifacts
- redeployR4B
- redeployR4BSql
jobs:
Expand Down Expand Up @@ -264,7 +277,7 @@ stages:
- stage: testR5
displayName: 'Run R5 Tests'
dependsOn:
- BuildUnitTests
- BuildArtifacts
- redeployR5
- redeployR5Sql
jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public async Task AddSearchParameterAsync(ITypedElement searchParam, Cancellatio

if (!supportedResult.Supported)
{
throw new SearchParameterNotSupportedException(searchParameterInfo.Url);
throw new SearchParameterNotSupportedException(string.Format(Core.Resources.NoConverterForSearchParamType, searchParameterInfo.Type, searchParameterInfo.Expression));
}

// check data store specific support for SearchParameter
Expand Down
9 changes: 9 additions & 0 deletions src/Microsoft.Health.Fhir.Core/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/Microsoft.Health.Fhir.Core/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -750,4 +750,8 @@
<data name="OperationFailedWithErrorFile" xml:space="preserve">
<value>{0} operation failed for reason: {1} ErrorFile: {2}</value>
</data>
</root>
<data name="NoConverterForSearchParamType" xml:space="preserve">
<value>The provided search parameter type {0} is not supported for the given expression {1}.</value>
<comment>{0}: The type field in the search parameter. {1}: The expression field in the search parameter.</comment>
</data>
</root>

0 comments on commit bd101b1

Please sign in to comment.