-
Notifications
You must be signed in to change notification settings - Fork 8
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
Correcting update logic #57
Correcting update logic #57
Conversation
I should have stuck with the original logic instead of accepting some proposed changes. I should have explained why the logic was the way I wrote it and also thought thru what was being proposed as an alternative before accepting the proposed change. This will be the way going forward.
I'm not entirely sure if this is the right approach. If Jenkins quickly releases both a regular version and an lts version before our sync action runs again, then we will not notice the new regular release. Isn't there a way to filter and sort to find the latest non-lts release? |
If there is, it's not obvious to me. I can say that this approach does work locally. However, during the last PR, @jnsgruk provided some feedback and I accepted it as part of the PR. I should have stuck with what I'm proposing here; otherwise we end up with Jenkins' latest releases, which are a mix of both LTS, and "latest". What this is doing is ensuring that their release number is higher than what is in the |
This change looks functionally almost equivalent to me? The reason I suggested the change is there is no reason to have the "dead end" branch that just exits, and it seems cleaner to just have the branch where we actually want the change? I'm with Merlijn that we should probably find some way to ensure we're getting the LTS - perhaps by parsing this page? https://www.jenkins.io/changelog-stable/ |
It's not. So, what we committed yesterday built yet another LTS version (2.426.2) but we've been releasing the latest versions for some time now (2.43+). This will ensure that the builds we release to Another point I'd like to make in this is that the LTS versions for Jenkins may work for some, but IMO, the latest provide a better platform. @popey proposed different channels for the snap, but I mentioned the issues we've had at work with their releases in LTS. We stick with the latest and it works. |
Ah it might just be because of the naive I wonder if (Also sorry for my misunderstanding - I thought we were trying to get the LTSs!) |
No it doesn't - not in my testing. It just kept giving me errors. I spent some time trying to get this to "just work" and what I've submitted "just works". For example, this is what we just released earlier to
As you can see, what we've got in Since I run on the latest all the time, every time these jobs are running, I get reverted back and forth from LTS and latest - irritating lol. EDIT: I see what you're asking here @jnsgruk - no, what I've tested successfully is that, as the logic stands in this PR, it will ensure that only the latest version, NOT the LTS, is built each time. No more mix-ups, at least in my "hours" of testing. |
Okay, I'll leave Merlijn to catch up on this one. One final suggestion: we could consider using |
One thing I didn't provide in this PR is that the version info in EDIT: Just pushed another commit to my fork. This is intentional (see 3309a70).
|
This needs to be set to a lower number to ensure the next build triggers as part of this PR.
@kz6fittycent let's discuss this on Matrix, I messaged you. |
It's working locally - let's rock.
3ef169c
to
d61baee
Compare
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.
LGTM!
I should have stuck with the original logic instead of accepting some proposed changes to the last PR. I should have explained why the logic was the way I wrote it and also thought thru what was being proposed as an alternative before accepting the proposed change; so that's on me. This PR will be the way the logic is used going forward.
The script checks to be sure that the released version from Jenkins is of greater value than what is in the
snapcraft.yaml
BEFORE it runs a build. If it is of lower value (Jenkins LTS is lower number than latest), then it'll exit. Otherwise, it will build the newest releases.