Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented May 28, 2025

Fixes #541

This PR ensures that the notices cache file exists before attempting to write to it.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team May 28, 2025 12:41
@mrgrain mrgrain force-pushed the mrgrain/fix/toolkit-lib/create-notices-cache-dir branch from e2487bf to 82fcd4e Compare May 28, 2025 12:56
@mrgrain mrgrain temporarily deployed to integ-approval May 28, 2025 12:56 — with GitHub Actions Inactive

private async save(cached: CachedNotices): Promise<void> {
try {
await fs.ensureFile(this.fileName);
Copy link
Contributor

Choose a reason for hiding this comment

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

No test?

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.09%. Comparing base (de608f6) to head (82fcd4e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #545   +/-   ##
=======================================
  Coverage   79.09%   79.09%           
=======================================
  Files          47       47           
  Lines        7074     7074           
  Branches      790      791    +1     
=======================================
  Hits         5595     5595           
  Misses       1460     1460           
  Partials       19       19           
Flag Coverage Δ
suite.unit 79.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue May 28, 2025
Merged via the queue into main with commit 4bd0289 May 28, 2025
26 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/fix/toolkit-lib/create-notices-cache-dir branch May 28, 2025 13:28
github-merge-queue bot pushed a commit that referenced this pull request May 28, 2025
Test cases for #545

---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cache directory is not created

5 participants