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

fix(ci): development version built in release pipeline #560

Merged
merged 7 commits into from
Dec 9, 2023

Conversation

marfavi
Copy link
Member

@marfavi marfavi commented Dec 8, 2023

This PR fixes the release pipeline bug that caused building a development version for release (in the first commit), and increases code robustness to prevent the same bug from appearing again (in the second commit).

The error was caused by a bug in actions code, which passed an ill-defined input variable (whether to build a dev/prod app) to another action. The input variable expected by the second action was optional, defaulting to build a dev version if no input variable is present.


Build configurations across Android and iOS build pipelines were updated to enforce the specification of 'development' or 'production' as mandatory build types. Introduced a shared 'verify_build_type' action that validates this input. This change ensures that artifacts are built against the correct backend environments and clarifies the pipeline behavior by removing ambiguity in build type selection. Additionally, updated steps to reflect the new build type validation and adjusted environment setup actions to accommodate the enforcement of build types.

Finally, this PR fixes the following yml syntax/schema errors:

  • inputs.<id>.options in an action
  • env on the root level of an action

Build configurations across Android and iOS build pipelines were updated to enforce the specification of 'development' or 'production' as mandatory build types. Introduced a shared 'verify_build_type' action that validates this input. This change ensures that artifacts are built against the correct backend environments and clarifies the pipeline behavior by removing ambiguity in build type selection. Additionally, updated steps to reflect the new build type validation and adjusted environment setup actions to accommodate the enforcement of build types.

Finally, this commit fixes the following yml syntax/schema errors:
- inputs.<id>.options for actions
- env on the root level of an action
@marfavi marfavi enabled auto-merge (squash) December 8, 2023 17:41
@marfavi marfavi changed the title Fix-android-release-pipeline fix(ci): development version built in release pipeline Dec 8, 2023
@marfavi marfavi requested a review from fremartini December 8, 2023 17:42
@ghost
Copy link

ghost commented Dec 8, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@marfavi marfavi added the P0 High priority - Need to have label Dec 8, 2023
@marfavi marfavi disabled auto-merge December 8, 2023 17:44
@marfavi marfavi enabled auto-merge (squash) December 8, 2023 17:44
@marfavi marfavi disabled auto-merge December 8, 2023 17:46
@marfavi marfavi marked this pull request as draft December 8, 2023 17:48

This comment was marked as off-topic.

@marfavi marfavi marked this pull request as ready for review December 8, 2023 18:22
@marfavi marfavi merged commit c3a9b21 into main Dec 9, 2023
10 checks passed
@marfavi marfavi deleted the fix-android-release-pipeline branch December 9, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 High priority - Need to have
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants