# Supported version strategy, take 3

**URL:** <https://forum.xwiki.org/t/supported-version-strategy-take-3/7490>\
**Category:** Development\
**Tags:** proposal\
**Created:** [September 21, 2020, 3:35pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490 "2020-09-21T15:35:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 21, 2020, 3:35pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/1 "2020-09-21T15:35:23Z")

</div>

Hi devs,

In [New Database and Servlet Container support strategy](https://forum.xwiki.org/t/new-database-and-servlet-container-support-strategy/6934) we agreed to support 2 versions (latest and LTS), with an exception for debian “stable”, see [https://dev.xwiki.org/xwiki/bin/view/Community/SupportStrategy/LatestLTSDefinition/](https://dev.xwiki.org/xwiki/bin/view/Community/SupportStrategy/LatestLTSDefinition/)

There we say:

> In addition and since we provide a Debian packaging, we also support the “stable” version of the product, as defined by Debian, when it doesn’t match the “latest” and “LTS” versions above.

I’d like to propose a change to this rule since I feel that the likelihood to find problems vs the cost of implementing it is too low (basically it costs too much for the results). It leads to too many configs tested and slows down our builds.

So I’d like to propose and idea that @tmortagne proposed on the chat:

New rule: Always test a maximum of 2 versions and when the debian “stable” version is different, take the highest and lowest versions.

For example, instead of having:

```auto
'mariadb' : ['latest' : '10.5', 'lts' : '10.4', 'debian' : '10.3'],
'postgresql' : ['latest' : '12', 'lts' : '11', 'debian' : '11.7'],

```

We would have:

```auto
'mariadb' : ['latest' : '10.5', 'lts' : '10.3'],
'postgresql' : ['latest' : '12', 'lts' : '11.7'],

```

(note that lts is 11.7 in this example because the latest of the 11 docker tag is currently 11.9 which is \> 11.7)

WDYT?

Thanks

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [September 21, 2020, 3:40pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/2 "2020-09-21T15:40:21Z")

</div>

Hi,

globally +1 on the idea, but just to be sure does it mean we wouldn’t accept anymore specific version to test if it leads to having more than 2 version to test?  
I can see for example that we currently have:

```auto
'tomcat' : ['latest' : '9-jdk11', 'lts' : '8.5-jdk8', 'special' : '9-jdk8'],

```

I guess that if we introduced this “special” version, it’s because we specifically wanted to test it no?  
Or does the rule “a maximum of 2 versions” only stands regarding Stable / LTS / Debian?

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [September 21, 2020, 3:40pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/3 "2020-09-21T15:40:32Z")

</div>

> [@vmassol](#):
>
> Always test a maximum of 2 versions and when the debian “stable” version is different, take the highest and lowest versions.

+1 but I’m wondering if we should not compare cycles (granularity to be defined product by product since it’s probably not the same for mariadb and postgresql here for example) instead of exact versions which would mean

```auto
'mariadb' : ['latest' : '10.5', 'lts' : '10.3'],
'postgresql' : ['latest' : '12', 'lts' : '11'],

```

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 21, 2020, 3:42pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/4 "2020-09-21T15:42:43Z")

</div>

> [@surli](#):
>
> Or does the rule “a maximum of 2 versions” only stands regarding Stable / LTS / Debian?

Yep that’s the idea. We’ll always have special cases when we want to test something extra but that’s a case by case basis.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 21, 2020, 3:43pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/5 "2020-09-21T15:43:24Z")

</div>

> [@tmortagne](#):
>
> `'postgresql' : ['latest' : '12', 'lts' : '11'],`

Thomas, if you do this then you drop the idea of always supporting “stable” for Debian. Is that what you’re proposing?

EDIT: `11` means `11.9` today for ex while debian is on `11.7` for stable.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [September 21, 2020, 3:44pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/6 "2020-09-21T15:44:20Z")

</div>

> [@surli](#):
>
> I guess that if we introduced this “special” version, it’s because we specifically wanted to test it no?

I’m not sure it’s really different actually, in the example you pasted there is only two different versions of Tomcat and two different version of Java so it’s not really about versions here but more about how many configurations we test.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 21, 2020, 3:45pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/7 "2020-09-21T15:45:44Z")

</div>

> [@tmortagne](#):
>
> I’m not sure it’s really different actually, in the example you pasted there is only two different versions of Tomcat and two different version of Java so it’s not really about versions here but more about how many configurations we test.

In this case the reason for the special version is to verify we support the latest Tomcat on Java8 (ie even more recent than `latest`. The reason is that since we wanted to verify we support `utf8` we might as well do some advance testing on the most recent tomcat:

```auto
        // Special case: verify we still support utf8 for MySQL and at the same time test with latest Tomcat on Java8
        // to potentially discover problem in advance (to add more value since we're doing another config test).

```

Anyway the point is that we’ll always have special versions and that’s outside the scope of this proposal.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [September 21, 2020, 3:49pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/8 "2020-09-21T15:49:55Z")

</div>

> [@vmassol](#):
>
> EDIT: `11` means `11.9` today for ex while debian is on `11.7` for stable.

Yes I understood that, my point here is that we should define the granularity of a cycle and it seems to me that in the case of Postgres the cycle is the major version which would make the version provided by Debian the “same” (cycle 11).

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 21, 2020, 4:19pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/9 "2020-09-21T16:19:47Z")

</div>

> [@tmortagne](#):
>
> in the case of Postgres the cycle is the major version which would make the version provided by Debian the “same” (cycle 11).

Could you explain what you mean by `the same`? Because for me `11.9` is not the same as `11.7` and if we use `11` then we don’t test `11.7` but `11.9`.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [September 22, 2020, 8:50am UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/10 "2020-09-22T08:50:17Z")

</div>

> [@vmassol](#):
>
> Could you explain what you mean by `the same` ?

I tough I did. What I’m wondering is if we can define a cycle as a group of versions which should not really be different from XWiki point of view. When looking at Postgres website and Debian package naming it feels like 11 is such a cycle (i.e. there is no enough differences between 11.9 and 11.7 to put an explicit version and we could keep the docker “11” tag).

For example I really doubt anybody wants to consider that Tomcat 8.5.39 (Debian stable) and 8.5.58 (docker 8.5-jdk8 label) are different enough to worth testing a more explicit 8.5.39 instead.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 22, 2020, 8:57am UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/11 "2020-09-22T08:57:44Z")

</div>

So if I try to summarize it (still not sure I get it), the rules would be:

1. Always test a maximum of 2 versions and when the debian “stable” version is different, take the highest and lowest versions.
2. Exception to the first rule: when the lowest version is part of the same “cycle” (we need to define that more precisely since it doesn’t mean much) then don’t use the lowest version but the latest one.

Have I understood your point?

If so then I think it’s way too complex and I don’t see what it gets us. It also means defining what is a “cycle” for each product which is a major pain. I’ve probably misunderstood somehting.

Thanks

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [September 22, 2020, 9:03am UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/12 "2020-09-22T09:03:56Z")

</div>

> [@vmassol](#):
>
> It also means defining what is a “cycle” for each product which is a major pain

Well I feel we already do that when we decide what is “latest” and what is “lts” cycles.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [October 5, 2020, 2:04pm UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/13 "2020-10-05T14:04:43Z")

</div>

I now read again this thread and trying to take into account Thomas’s proposal, and at the same time trying to make something easy to do, I’m proposing this:

- Always test a maximum of 2 versions
- Always test the latest version of the current cycle (i.e. latest of `latest`)
- Always test the latest version of the previous cycle (i.e. latest of `lts`)

Taking the original examples of:

```auto
'mariadb' : ['latest' : '10.5', 'lts' : '10.4', 'debian' : '10.3'],
'postgresql' : ['latest' : '12', 'lts' : '11', 'debian' : '11.7'],

```

This would mean:

```auto
'mariadb' : ['latest' : '10.5', 'lts' : '10.4'],
'postgresql' : ['latest' : '12', 'lts' : '11'],

```

In practice this means that we wouldn’t test `10.3` for mariadb which was the debian version, but so be it. And we test the latest of `10.4` instead. In other words, we stop caring too much about debian and hope that it’ll follow the previous cycle quite quickly.

I feel that if we need to make concessions, it makes sense to test the latest of the current + previous cycles.

WDYT?

Thanks

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [October 12, 2020, 8:24am UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/14 "2020-10-12T08:24:16Z")

</div>

It’s a good starting point and we should probably apply that.

I do think we should only test two versions no matter what. Now of which versions exactly I just feel that we should not completely refuse the possibility that we might have different selection rules in the future depending on the tools since they all have a very different lifecycle and specific problems.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [October 30, 2020, 10:02am UTC](https://forum.xwiki.org/t/supported-version-strategy-take-3/7490/15 "2020-10-30T10:02:09Z")

</div>

I have now updated:

- [https://dev.xwiki.org/xwiki/bin/view/Community/SupportStrategy/LatestLTSDefinition/](https://dev.xwiki.org/xwiki/bin/view/Community/SupportStrategy/LatestLTSDefinition/)
- [[Misc] Always new support strategy · xwiki/xwiki-jenkins-pipeline@2d391a9 · GitHub](https://github.com/xwiki/xwiki-jenkins-pipeline/commit/2d391a96c5f5e32d046ceccc83016e9611e20782)
