Skip to content
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

chore: Don't fail prepare-release when build request is missing #1865

Merged
merged 4 commits into from
Jan 14, 2025

Conversation

jbelkins
Copy link
Contributor

Description of changes

  • Allows the prepare-release CLI command to succeed when the input files build-request.json and feature-service-id.json are missing.
  • Improves testing around prepare-release early exit by covering both cases & verifying that an empty release manifest was written.

New/existing dependencies impact assessment, if applicable

No new dependencies were added to this change.

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

@jbelkins jbelkins marked this pull request as ready for review January 14, 2025 21:01
@jbelkins jbelkins requested review from dayaffe and sichanyoo January 14, 2025 21:03

let mapping = "{}"
FileManager.default.createFile(atPath: "../feature-service-id.json", contents: Data(mapping.utf8))
createBuildRequestAndMapping()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Creation of JSON files extracted to a reusable helper below, so it can be used in the "no code changes" test case below

@jbelkins jbelkins merged commit f0074fd into main Jan 14, 2025
25 checks passed
@jbelkins jbelkins deleted the jbe/dry_run_prepare_release_fix branch January 14, 2025 22:16
@jbelkins jbelkins changed the title Don't fail prepare-release when build request is missing chore: Don't fail prepare-release when build request is missing Jan 14, 2025
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.

3 participants