Skip to content

Conversation

@zsolt-marta-bitrise
Copy link
Collaborator

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a MAJOR/MINOR/PATCH version update

Context

Changes

Investigation details

Decisions

@bitrise-ip-bot
Copy link

bitrise-ip-bot commented Aug 28, 2025

Summary

This PR adds the Activate Bitrise Build Cache for Xcode step, including the main step script, configuration files, and end-to-end testing setup. The implementation downloads and configures the Bitrise Build Cache CLI with fallback mechanisms.

Walkthrough

File Summary
step.sh Main step script that downloads and activates Bitrise Build Cache CLI for Xcode builds
step.yml, bitrise.yml Step configuration and workflow definition files
e2e/bitrise.yml End-to-end testing workflow for validating the step functionality
README.md Updated documentation for the new step
.gitignore, renovate.json Added project configuration files

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 4

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

e2e/bitrise.yml Outdated
inputs:
- repository_url: $TEST_APP_URL
- clone_into_dir: ./_tmp
- main: $BRANCH

Choose a reason for hiding this comment

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

🐛 Bug

Invalid parameter name 'main' for bitrise-step-simple-git-clone step. The correct parameter name should be 'branch'.

🔄 Suggestion:

Suggested change
- main: $BRANCH
- branch: $BRANCH

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

e2e/bitrise.yml Outdated
inputs:
- repository_url: $TEST_APP_URL
- clone_into_dir: ./_tmp
- main: $BRANCH

Choose a reason for hiding this comment

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

🐛 Bug

Invalid parameter name 'main' for bitrise-step-simple-git-clone step. The correct parameter name should be 'branch'.

🔄 Suggestion:

Suggested change
- main: $BRANCH
- branch: $BRANCH

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

step.sh Outdated
# run the Bitrise Build Cache CLI
/tmp/bin/bitrise-build-cache activate xcode --debug="$verbose"

source "~/.bashrc"

Choose a reason for hiding this comment

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

🐛 Bug

The literal tilde path won't expand properly in this context. The script will fail to source the bashrc file because the tilde is not expanded to the user's home directory.

🔄 Suggestion:

Suggested change
source "~/.bashrc"
source "$HOME/.bashrc"

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

step.sh Outdated
# run the Bitrise Build Cache CLI
/tmp/bin/bitrise-build-cache activate xcode --debug="$verbose"

alias xcodebuild='~/.bitrise-xcelerate/bin/bitrise-build-cache-cli xcelerate xcodebuild'

Choose a reason for hiding this comment

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

🐛 Bug

Alias path mismatch will cause xcodebuild alias to fail in production. The alias points to ~/.bitrise-xcelerate/bin/bitrise-build-cache-cli but the CLI is downloaded to /tmp/bin/bitrise-build-cache.

🔄 Suggestion:

Suggested change
alias xcodebuild='~/.bitrise-xcelerate/bin/bitrise-build-cache-cli xcelerate xcodebuild'
alias xcodebuild='/tmp/bin/bitrise-build-cache xcelerate xcodebuild'

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

@zsolt-marta-bitrise zsolt-marta-bitrise marked this pull request as ready for review August 29, 2025 14:31
Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 3

duplabe
duplabe previously approved these changes Aug 29, 2025
@zsolt-marta-bitrise zsolt-marta-bitrise enabled auto-merge (squash) August 29, 2025 14:38
@zsolt-marta-bitrise zsolt-marta-bitrise merged commit 759e9a0 into main Aug 29, 2025
1 check passed
@zsolt-marta-bitrise zsolt-marta-bitrise deleted the initial branch August 29, 2025 14:40
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.

4 participants