Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Beetmoverscript needs to handle better the MavenVersions #196

Open
MihaiTabara opened this issue Dec 13, 2018 · 9 comments
Open

Beetmoverscript needs to handle better the MavenVersions #196

MihaiTabara opened this issue Dec 13, 2018 · 9 comments

Comments

@MihaiTabara
Copy link
Contributor

Currently we're reading all the payload_version with FirefoxVersion. That includes both classic cases (gecko) but also maven counterparts (mobile products). Since mozilla-version==0.3.1 was rolled-out, there's a more specialized class MavenVersion to handle the latter specific cases. However, there's an interesting caveat here.

In geckoview beetmover jobs, we have payload_version like XX.0bY which we validate and then parse to infer the major, minor, etc. However, MavenVersion no longer supports this format in its regexes. On the other hand, if we keep the old format, FirefoxVersion, we don't have the snapshot support.

Solution:
a) temporarily hack beetmoverscript to handle both for formats for now to unblock snapshots roll-out to production
b) enrich regex in MavenVersion to enable gecko beta / nightly versions? (Not sure we actually want to relax that regex just so that we could parse the values)
c) modify in-tree the way we transmit the payload_version in beetmover jobs.

@MihaiTabara
Copy link
Contributor Author

CC @JohanLorenzo

@JohanLorenzo
Copy link
Contributor

Thank you for filing this bug!

To me solution c) is the way to go. This way, there is less surprise when someone look at the payload, then at the final results.

I'm not sure how feasible solution a) is, but that could be an okay solution.

Solution b) doesn't sound great. I remember checking if I could let MavenVersion inherit from FirefoxVersion (or GeckoVersion) so it would support beta numbers, but I don't think that's what we want. I might not remember it well.

@MihaiTabara
Copy link
Contributor Author

I fully agree with you. Let's address c) once we have snapshots rolled-out.

@lundjordan
Copy link

@MihaiTabara - this seems like post-snapshots work. Do we still want it? Should it be tracked on the pipeline board?

@MihaiTabara
Copy link
Contributor Author

Yes, we should look at this.

@JohanLorenzo
Copy link
Contributor

MavenVersion doesn't support beta numbers yet, but we've improved the situation in #228

@MihaiTabara
Copy link
Contributor Author

@JohanLorenzo While working on https://bugzilla.mozilla.org/show_bug.cgi?id=1567124 I realized we no longer use templates for any of the mobile world, including GeckoView. I think we can trim that logic altogether from the beetmoverscript repo. What say you?

@MihaiTabara
Copy link
Contributor Author

FTR, more cleanup related to this issue is coming in #233.

@JohanLorenzo
Copy link
Contributor

That sounds great! Let's remove it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants