Skip to content

carthage_installation_tests: optimize SPM package loading#3129

Merged
NachoSoto merged 1 commit into
mainfrom
installation-tests-carthage-load-spm
Sep 1, 2023
Merged

carthage_installation_tests: optimize SPM package loading#3129
NachoSoto merged 1 commit into
mainfrom
installation-tests-carthage-load-spm

Conversation

@NachoSoto

Copy link
Copy Markdown
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
end

lane :installation_tests do
load_spm_dependencies

Copy link
Copy Markdown
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

codecov Bot commented Aug 31, 2023

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
@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