Skip to content

EES-5908 enhance healthchecks #5676

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

Merged
merged 9 commits into from
Mar 12, 2025
Merged

EES-5908 enhance healthchecks #5676

merged 9 commits into from
Mar 12, 2025

Conversation

leeoades
Copy link
Collaborator

New Search Function App

  • Added healthchecks for Content API and Azure Blob Storage
  • Added logging to Azure Blob Storage Client to log issues when uploading - in particular, metadata problems.

@leeoades leeoades force-pushed the EES-5908-Enhance-healthchecks branch from 6f578a1 to ae42fab Compare March 10, 2025 16:08
@leeoades leeoades requested a review from benoutram March 10, 2025 16:08
@leeoades leeoades force-pushed the EES-5908-Enhance-healthchecks branch from ae42fab to b63f6d9 Compare March 10, 2025 16:26
Add Heathchecks for Content API and Azure Storage

.

Renamed Healthy to IsHealthy. Add sln just for Search function app

Azure Healthcheck needs to catch exceptions too

Add logging to Azure Blob Storage Client - mainly to catch the annoying metadata issues
@leeoades leeoades force-pushed the EES-5908-Enhance-healthchecks branch from b63f6d9 to 87ae394 Compare March 11, 2025 08:58
@@ -2445,7 +2446,7 @@ public async Task ListLatestReleaseVersions_SingleRelease()
Assert.Equal(releaseVersion.Release.TimePeriodCoverage, summaryViewModel.TimePeriodCoverage);
Assert.Equal(releaseVersion.Published, summaryViewModel.Published);
Assert.Equal(releaseVersion.Live, summaryViewModel.Live);
Assert.Equal(releaseVersion.PublishScheduled, summaryViewModel.PublishScheduled);
Assert.Equal(releaseVersion.PublishScheduled?.ConvertUtcToUkTimeZone(), summaryViewModel.PublishScheduled);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to make a similar change in GovUk.Education.ExploreEducationStatistics.Admin.Tests.Services.ManageContent.ManageContentPageServiceTests.GetManageContentPageViewModel because that test is also failing.

I was surprised that we don't also have the same issue in GovUk.Education.ExploreEducationStatistics.Admin.Tests.Services.ReleaseVersionServiceTests.GetReleaseTests.Success because we do exactly the same thing in the mapping to build the ReleaseVersionViewModel view model as we do here for the ReleaseVersionSummaryViewModel.

I investigated this and found that the difference is in how the data is being set up for the Published release version. In this test which isn't failing, the release version has no value of PublishScheduled. We could still make the same change though, with the null-forgiving operator like you've done here.

I also looked into why this started failing yesterday and noticed that today the date generated is 2024-04-01 and yesterday it was 2024-03-31. In 2024 BST began on 2024-03-31.

@benoutram benoutram force-pushed the EES-5908-Enhance-healthchecks branch from 1c5a249 to 7e8ba6d Compare March 12, 2025 17:32
…ted data to UK timezone with ConvertUtcToUkTimeZone to match how PublishScheduled is set up in the view model by MappingProfile which uses ConvertUtcToUkTimeZone
@benoutram benoutram force-pushed the EES-5908-Enhance-healthchecks branch 2 times, most recently from 9e61221 to efa18b5 Compare March 12, 2025 17:46
@benoutram benoutram self-requested a review March 12, 2025 17:52
@benoutram benoutram merged commit ab75b35 into dev Mar 12, 2025
11 checks passed
@benoutram benoutram deleted the EES-5908-Enhance-healthchecks branch March 12, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants