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

Step cleanup #43

Merged
merged 16 commits into from Mar 3, 2022
Merged

Step cleanup #43

merged 16 commits into from Mar 3, 2022

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Feb 28, 2022

Checklist

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

Version

Requires a PATCH version update

Context

Clean up step and its E2E tests before making other changes

Changes

  • Migrate repo to Go modules
  • Move E2E test workflows to e2e/bitrise.yml
  • Apply YAML lint rules to files
  • Add missing input and output descriptions
  • Update dependencies, go-xcode in particular with this fix: Fix parsing of macOS profile types bitrise-io/go-xcode#159
  • Migrate breaking changes in go-xcode and go-utils
  • Fix broken log parsing regex pattern in findIDEDistrubutionLogsPath()

Investigation details

Decisions

@ofalvai ofalvai marked this pull request as ready for review March 2, 2022 13:54
if cfg.ForceTeamID != "" {
log.Printf("Forcing Development Team: %s", cfg.ForceTeamID)
archiveCmd.SetForceDevelopmentTeam(cfg.ForceTeamID)
customOptions = append(customOptions, fmt.Sprintf("DEVELOPMENT_TEAM=%s", cfg.ForceTeamID))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are no longer supported in go-xcode because we decided to deprecate these input options in the iOS steps, but I'd rather not remove these inputs from this step and cause a breaking change.

@@ -459,7 +461,7 @@ The log file is stored in $BITRISE_DEPLOY_DIR, and its full path is available in
log.Donef("The xcarchive path is now available in the Environment Variable: %s (value: %s)", bitriseXCArchiveDirPthEnvKey, archivePath)

if cfg.IsExportXcarchiveZip == "yes" {
if err := output.ZipAndExportOutput(archivePath, archiveZipPath, bitriseXCArchivePthEnvKey); err != nil {
if err := output.ZipAndExportOutput([]string{archivePath}, archiveZipPath, bitriseXCArchivePthEnvKey); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Breaking change in go-xcode, the function now expects a string slice

@@ -738,7 +740,7 @@ is available in the $BITRISE_IDEDISTRIBUTION_LOGS_PATH environment variable (val
log.Infof("Exporting dSYM files ...")
fmt.Println()

appDSYM, frameworkDSYMs, err := archive.FindDSYMs()
appDSYMs, frameworkDSYMs, err := archive.FindDSYMs()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Breaking change in go-xcode, now returns two string slices

e2e/bitrise.yml Outdated
- is_export_xcarchive_zip: "yes"
- export_method: $EXPORT_METHOD
- verbose_log: "yes"
- script:
Copy link
Contributor

@lpusok lpusok Mar 2, 2022

Choose a reason for hiding this comment

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

before_run:
- _common

test_copy:
Copy link
Contributor

@lpusok lpusok Mar 2, 2022

Choose a reason for hiding this comment

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

Do we need app-store without profile and developer ID tests?

e2e/bitrise.yml Outdated

app:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/macos-sample-app.git
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use TEST_APP_URL for consistency with other Step.

e2e/bitrise.yml Outdated
app:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/macos-sample-app.git
- BITRISE_PROJECT_PATH: macos-sample-app.xcodeproj
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above, use TEST_APP_URL.

@ofalvai ofalvai requested a review from lpusok March 3, 2022 09:32
@ofalvai ofalvai merged commit 8e3e933 into master Mar 3, 2022
@ofalvai ofalvai deleted the STEP-1891-step-cleanup branch March 3, 2022 09:47
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.

None yet

2 participants