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

carthage_installation_tests: optimize SPM package loading #3129

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

NachoSoto
Copy link
Contributor

Follow up to #3119. This job also needed the workaround to make sure Carthage doesn't time out.

Also moved the implementation to Fastlane.

@NachoSoto NachoSoto added the ci label Aug 31, 2023
@NachoSoto NachoSoto requested a review from a team August 31, 2023 18:16
@@ -7,3 +7,15 @@ desc "Update carthage commit"
backup_extension = '.bck'
sh("sed", '-i', backup_extension, sed_regex, '../Cartfile')
end

lane :installation_tests do
load_spm_dependencies
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the core change, adding this which was introduced in #3119.

@NachoSoto NachoSoto changed the title [WIP] carthage_installation_tests: optimize SPM package loading carthage_installation_tests: optimize SPM package loading Aug 31, 2023
@NachoSoto NachoSoto marked this pull request as ready for review August 31, 2023 18:53
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (69fd1e6) 86.60% compared to head (ea1da72) 86.62%.

❗ Current head ea1da72 differs from pull request most recent head d9dedb6. Consider uploading reports for the commit d9dedb6 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3129      +/-   ##
==========================================
+ Coverage   86.60%   86.62%   +0.01%     
==========================================
  Files         219      219              
  Lines       15713    15713              
==========================================
+ Hits        13609    13611       +2     
+ Misses       2104     2102       -2     

see 2 files with indirect coverage changes

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

@NachoSoto NachoSoto force-pushed the installation-tests-carthage-load-spm branch from ea1da72 to d9dedb6 Compare August 31, 2023 23:17
lane :installation_tests do
load_spm_dependencies

Dir.chdir("..") do
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this also use "#{File.dirname(__FILE__)}/../? I guess the circleci job already has the working_directory set, so it would probably work without this, but thinking in case we want to run this locally for any reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you run it locally you'd have to run it from Tests/InstallationTests/CarthageInstallation and then doing fastlane installation_tests. So I think it's fine to leave this as an implicitly relative path.

@NachoSoto NachoSoto merged commit 102cbe7 into main Sep 1, 2023
2 checks passed
@NachoSoto NachoSoto deleted the installation-tests-carthage-load-spm branch September 1, 2023 16:28
NachoSoto pushed a commit that referenced this pull request Sep 5, 2023
**This is an automatic release.**

### Bugfixes
* `DebugViewModel`: fixed runtime crash on iOS < 16 (#3139) via
NachoSoto (@NachoSoto)
### Performance Improvements
* `PurchasesOrchestrator`: return early if receipt has no transactions
when checking for promo offers (#3123) via Mark Villacampa
(@MarkVillacampa)
* `Purchases`: don't clear intro eligibility / purchased products cache
on first launch (#3067) via NachoSoto (@NachoSoto)
### Dependency Updates
* `SPM`: update `Package.resolved` (#3130) via NachoSoto (@NachoSoto)
### Other Changes
* `ReceiptParser`: fixed SPM build (#3144) via NachoSoto (@NachoSoto)
* `carthage_installation_tests`: optimize SPM package loading (#3129)
via NachoSoto (@NachoSoto)
* `CI`: add workaround for `Carthage` timing out (#3119) via NachoSoto
(@NachoSoto)
* `Integration Tests`: workaround to not lose debug logs (#3108) via
NachoSoto (@NachoSoto)
MarkVillacampa pushed a commit that referenced this pull request Sep 6, 2023
Follow up to #3119. This job also needed the workaround to make sure
`Carthage` doesn't time out.

Also moved the implementation to Fastlane.
MarkVillacampa pushed a commit that referenced this pull request Sep 6, 2023
**This is an automatic release.**

### Bugfixes
* `DebugViewModel`: fixed runtime crash on iOS < 16 (#3139) via
NachoSoto (@NachoSoto)
### Performance Improvements
* `PurchasesOrchestrator`: return early if receipt has no transactions
when checking for promo offers (#3123) via Mark Villacampa
(@MarkVillacampa)
* `Purchases`: don't clear intro eligibility / purchased products cache
on first launch (#3067) via NachoSoto (@NachoSoto)
### Dependency Updates
* `SPM`: update `Package.resolved` (#3130) via NachoSoto (@NachoSoto)
### Other Changes
* `ReceiptParser`: fixed SPM build (#3144) via NachoSoto (@NachoSoto)
* `carthage_installation_tests`: optimize SPM package loading (#3129)
via NachoSoto (@NachoSoto)
* `CI`: add workaround for `Carthage` timing out (#3119) via NachoSoto
(@NachoSoto)
* `Integration Tests`: workaround to not lose debug logs (#3108) via
NachoSoto (@NachoSoto)
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