igor icon indicating copy to clipboard operation
igor copied to clipboard

fix(pipelineTriggers): change buildNumber type from int to string

Open jaredstehler opened this issue 3 years ago • 5 comments

in order to support build numbers which are not strict integers (i.e. "123.1")

https://github.com/spinnaker/spinnaker/issues/6743

jaredstehler avatar Oct 20 '22 17:10 jaredstehler

new Build(number: '2', timestamp: stamp1, building: false, result: 'SUCCESS'), new Build(number: '11', timestamp: stamp1, building: false, result: 'SUCCESS'), new Build(number: '22', timestamp: stamp2, building: false, result: 'SUCCESS'),

that we know that the build 11 and 22 are considered AFTER build 2... since it's now string vs. int...

jasonmcintosh avatar Nov 17 '22 16:11 jasonmcintosh

Note, the build number ordering MAY not matter, but at one point, the igor polling system did a comparison to look for any build numbers after a given pointer. I don't think it kept ALL history, but maybe i'm wrong and it keeps all previously triggered builds?

jasonmcintosh avatar Nov 18 '22 15:11 jasonmcintosh

new Build(number: '2', timestamp: stamp1, building: false, result: 'SUCCESS'), new Build(number: '11', timestamp: stamp1, building: false, result: 'SUCCESS'), new Build(number: '22', timestamp: stamp2, building: false, result: 'SUCCESS'),

that we know that the build 11 and 22 are considered AFTER build 2... since it's now string vs. int...

should we switch to order by timestamp? or convert to int in this specific case where we know the underlying system is numeric?

jaredstehler avatar Dec 14 '22 19:12 jaredstehler

I'd absolutely order by timestamps as a rule vs. build numbers! As long as we can get relative timestamps. There's a LOT in this PR, so apologies i've not dug NEAR enough to make sure not missed anything, and whether my concerns are TRULY relevant.

jasonmcintosh avatar Dec 17 '22 07:12 jasonmcintosh

what's left to get this over the finish line with this one?

jaredstehler avatar Feb 09 '23 16:02 jaredstehler