Skip to content

Use GoogleAppMeasurement main branch instead of release tag for CI #8426

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

Merged
merged 4 commits into from
Jul 23, 2021

Conversation

paulb777
Copy link
Member

@paulb777 paulb777 commented Jul 22, 2021

Use GoogleAppMeasurement main branch instead of release tag for CI. This enables us to use CI for release tagging without tagging the GoogleAppMeasurement repository until release and avoid needing to make last minute commits to the firebase repo to update to the new tag. b/194422721

@google-cla google-cla bot added the cla: yes label Jul 22, 2021
@paulb777 paulb777 marked this pull request as draft July 22, 2021 21:25
@paulb777 paulb777 changed the title Verify SPM can depend on GoogleAppMeasurement main branch Use GoogleAppMeasurement main branch instead of release tag for CI Jul 23, 2021
@paulb777 paulb777 marked this pull request as ready for review July 23, 2021 14:36
@paulb777 paulb777 requested a review from maksymmalyhin July 23, 2021 14:36
Copy link
Contributor

@maksymmalyhin maksymmalyhin left a comment

Choose a reason for hiding this comment

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

LGTM.

The only question is if we should use main unconditionally or there are cases when we should keep using a specific version? If we don't know exact conditions we may want to have a way to specify either a branch or a tag or not change package manifest for a manual workflow trigger.

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@paulb777
Copy link
Member Author

I'm proposing that we use main unconditionally. It should always work in CI. The biggest issue will be local SPM development after the new version is updated and before it is published will need to run the script locally.

I'll add a step to go/firi to verify that the Package.swift successfully loads after publishing the GoogleAppMeasurement tag.

@maksymmalyhin
Copy link
Contributor

I'm proposing that we use main unconditionally. It should always work in CI. The biggest issue will be local SPM development after the new version is updated and before it is published will need to run the script locally.

I'll add a step to go/firi to verify that the Package.swift successfully loads after publishing the GoogleAppMeasurement tag.

SGTM, though I would still prefer to reduce space for an error with some automatic validation. I'm thinking, maybe we can set up a pre-push hook in our local git repos to validate pushed tags, e.g. when a SPM tag push is detected in Firebase repo then SPM build is run locally before pushing. It's perhaps outside of scope of this PR, but something to consider for future.

@paulb777
Copy link
Member Author

Agreed, there is more room to tighten up the process - especially on the development side.

@paulb777 paulb777 merged commit d550a72 into master Jul 23, 2021
@paulb777 paulb777 deleted the pb-try-spm-main branch July 23, 2021 15:34
@firebase firebase locked and limited conversation to collaborators Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants