-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[scan] Add automatic detection of derived data path #5563
Conversation
This is used to put it into the lane context from the fastlane action. The path is useful when following actions need to access the output of the tests This is first used in https://github.com/KrauseFx/trainer
Tests are failing, will take a look as it seems like it behaves differently on Circle |
Ready for review |
# => /Users/.../Library/Developer/Xcode/DerivedData/app-bqrfaojicpsqnoglloisfftjhksc/Build/Products/Release-iphoneos | ||
# We need to go one folder up, since tests don't run inside 'Release-iphoneos' | ||
# but in 'Debug-iphonesimulator' | ||
default_path = File.join(File.expand_path("..", default_path), "Debug-iphonesimulator") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use File.dirname(default_path)
to go up one folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know some people in the past have tried to make changes to allow scan
to run on real devices. Does this Debug-iphonesimulator
path assume too much?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, updated to File.dirname
, thanks for letting me know. Great catch regarding running scan
on real devices, I'll investigate this now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what's the status on #5159 in general, and if we want to go finish things up and merge?
It seems like the best approach here is to check if the current run is for the simulator or for the device and then use Debug-iphonesimulator
or Debug-iphoneos
(or similar)
However the derived data path is set to this, so even for the real device it will just work, it just stores the data in a separate directory.
I wonder if instead it would make sense to just use a fastlane derived data path. I'll give it some more thought tomorrow.
I added a couple of comments/questions. |
LGTM, if you decide you want to move forward with it. |
@mfurtak I added one more commit, could you do another review on this? 👍 |
👍 |
* [scan] Add automatic detection of derived data path (#5563) * [fastlane] Summary table show failed action in red (#5672) * Make download_dsyms work for appletvos (#5642) * Add easier access to lane context from actions (#5572) * [Carthage] Add option to pass in specific toolchain * Updated Actions README to clarify last_git_commit (#5627) * Fix require for gem jira-ruby (#5605) * [fastlane] Update spaceship dependency (#5659) * [fastlane] Fix printing verbose information for PluginFetcher (#5670) * [fastlane] Update available plugins (#5671) * [fastlane] Fix plugin search (#5568) * Update Actions file (#5450) * Update versions of tools (#5566) * Improve English in docs output (#5562) * Update carthage action documentation for the dependancies and toolchain options (#5552) * [fastlane] Update dependencies (#5553) * hipchat: escape channel name if it is not escaped yet (#5547) * Fix typo (#5532) * Update import_from_git :branch parameter documentation (#5533) * Update junit_generator to use Helper.gem_path (#5462)
* [scan] Add automatic detection of derived data path (#5563) * [fastlane] Summary table show failed action in red (#5672) * Make download_dsyms work for appletvos (#5642) * Add easier access to lane context from actions (#5572) * [Carthage] Add option to pass in specific toolchain * Updated Actions README to clarify last_git_commit (#5627) * Fix require for gem jira-ruby (#5605) * [fastlane] Update spaceship dependency (#5659) * [fastlane] Fix printing verbose information for PluginFetcher (#5670) * [fastlane] Update available plugins (#5671) * [fastlane] Fix plugin search (#5568) * Update Actions file (#5450) * Update versions of tools (#5566) * Improve English in docs output (#5562) * Update carthage action documentation for the dependancies and toolchain options (#5552) * [fastlane] Update dependencies (#5553) * hipchat: escape channel name if it is not escaped yet (#5547) * Fix typo (#5532) * Update import_from_git :branch parameter documentation (#5533) * Update junit_generator to use Helper.gem_path (#5462)
* upstream/master: (42 commits) [fastlane] Version bump (fastlane#5693) [fastlane] Update scan dependency (fastlane#5691) [scan] Version bump (fastlane#5690) [fastlane] Update internal dependencies (fastlane#5692) [fastlane] Update produce dependency (fastlane#5695) [produce] Version bump (fastlane#5687) [produce] Add waiting for new app to appear (fastlane#5688) [fastlane] Add new team_id option to latest_testflight_build_number (fastlane#5668) [produce] Update spaceship dependency (fastlane#5689) Updated Actions README to clarify last_git_commit (fastlane#5627) [scan] Add automatic detection of derived data path (fastlane#5563) Fix require for gem jira-ruby (fastlane#5605) [match] Add information about the force (fastlane#5658) [fastlane] Update spaceship dependency (fastlane#5659) [deliver] Update spaceship dependency (fastlane#5664) [spaceship] Add test for auto-setting of scaling attribute for screenshots (fastlane#5666) [fastlane] Fix printing verbose information for PluginFetcher (fastlane#5670) [fastlane] Update available plugins (fastlane#5671) Fix a typo in the two factor implementation (fastlane#5682) [fastlane] Summary table show failed action in red (fastlane#5672) ...
@KrauseFx After updating to
My slather.yml:
|
Side note: using |
@cbalea thanks for the report. Could you please share the complete output when running |
@cbalea I think I found the issue, I'll have a fix prepared in a minute |
This is used to put it into the lane context from the fastlane action. The path is useful when following actions need to access the output of the tests
This is first used in https://github.com/KrauseFx/trainer