Skip to content

Conversation

@ivanovac
Copy link
Contributor

@ivanovac ivanovac commented Dec 8, 2025

What is this change?

This PR upgrades the nodejs-buildpack to use switchblade v0.9.2, which adds proper support for CF API v3 staging log capture.

Why was this change made?

When migrating to CF API v3, staging failure logs are no longer automatically captured in the logs buffer during test execution. Switchblade v0.9.2 addresses this by automatically fetching logs using cf logs --recent when staging fails, which is essential for tests that verify buildpack error messages (like the override buildpack test).

Changes included

Dependencies

  • switchblade: v0.9.1 → v0.9.2

Tooling

  • tools.sh: Check for existing CF CLI before attempting installation
    • Allows use of system/Docker image CF v8 CLI
    • Removes forced CF v6 installation that's incompatible with modern CF deployments

Testing

Integration tests pass locally using fly execute with BBL environment:

  • All tests: ✅ Pass with CF API v3

Related Work

This change follows the same pattern used in r-buildpack PR for CF API v3 migration.

@ivanovac ivanovac merged commit 19276c6 into master Dec 11, 2025
7 checks passed
@ivanovac ivanovac deleted the fix-int-tests branch December 11, 2025 07:30
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