Skip to contentSkip to conversation

doc: policy on promotion of experimental APIs

PATCH Superseded Ray Kinsella 5 participants 20 messages Jun 29, 2021 – Aug 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: policy on promotion of experimental APIs

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy ammendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
 doc/guides/contributing/abi_policy.rst | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +17 -3
index 4ad87dbfed..58bc45b8a5 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.
@@ -358,3 +359,16 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.
+
+The promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.
Signature · 1 line
2.26.2
#1 lore raw
Quoted 30 lines · Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy ammendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
 doc/guides/contributing/abi_policy.rst | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +4 -3
index 4ad87dbfed..58bc45b8a5 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 10 lines
doc/guides/contributing/abi_policy.rst +7 -0
@@ -358,3 +359,16 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity. if it is still changing then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

doc/guides/contributing/abi_policy.rst Libraries · line 374

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+
+The promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.

this should extend beyond just symbols. there are other changes that impact the abi where exported symbols don't change. e.g. additions to return values sets.

thanks for working on this.

#2 lore raw
Quoted 45 lines · Tyler Retzlaff
Quoted 30 lines · Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy ammendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
 doc/guides/contributing/abi_policy.rst | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +4 -3
index 4ad87dbfed..58bc45b8a5 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 10 lines
doc/guides/contributing/abi_policy.rst +7 -0
@@ -358,3 +359,16 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

Quoted 10 lines

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity.
if it is still changing
then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

Good idea.

I think it is reasonable to add a clause that indicates that any change to the "API signature" would reset the clock.

However equally any changes to the implementation do not reset the clock.

Would that work?

Quoted 10 lines

doc/guides/contributing/abi_policy.rst Libraries · line 374

Quoted 4 lines
doc/guides/contributing/abi_policy.rst +3 -0
+
+The promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.

this should extend beyond just symbols. there are other changes that impact the abi where exported symbols don't change. e.g. additions to return values sets.>
thanks for working on this.

#3 lore raw
Quoted 23 lines · Ray
Quoted 12 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 8 lines
doc/guides/contributing/abi_policy.rst +6 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

Quoted 10 lines

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity.
if it is still changing
then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

Quoted 4 lines

Good idea.

I think it is reasonable to add a clause that indicates that any change to the "API signature" would reset the clock.

a time based strategy works but i guess the follow-on to that is how is the clock tracked and how does it get updated? i don't think trying to troll through git history will be effective.

one nit, i think "api signature" doesn't cover all cases of what i would regard as change. i would prefer to define it as "no change where api/abi compatibility or semantic change occurred"? which is a lot more strict but in practice is necessary to support binaries when abi/api is stable.

i.e. if a recompile is necessary with or without code change then it's a change.

Quoted 4 lines

However equally any changes to the implementation do not reset the clock.

Would that work?

that works for me.

Quoted 11 lines
Quoted 11 lines

doc/guides/contributing/abi_policy.rst Libraries · line 374

Quoted 5 lines
doc/guides/contributing/abi_policy.rst +3 -0
+
+The promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.

this should extend beyond just symbols. there are other changes that impact the abi where exported symbols don't change. e.g. additions to return values sets.>
thanks for working on this.

#4 lore raw
Quoted 24 lines · Tyler Retzlaff
Quoted 23 lines · Ray
Quoted 22 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 8 lines
doc/guides/contributing/abi_policy.rst +6 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity.
if it is still changing
then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

Quoted 9 lines
Quoted 4 lines

Good idea.

I think it is reasonable to add a clause that indicates that any change to the "API signature" would reset the clock.

a time based strategy works but i guess the follow-on to that is how is the clock tracked and how does it get updated? i don't think trying to troll through git history will be effective.

We are grouping the new experimental APIs in the version file based on the release they are added with a comment, thanks to Dave. Like:

        # added in 19.02
        rte_extmem_attach;
        rte_extmem_detach;
        rte_extmem_register;
        rte_extmem_unregister;
        # added in 19.05
        rte_dev_dma_map;
        rte_dev_dma_unmap;
        ....

Please check 'lib/eal/version.map' as sample.

This enables us easily see the release experimental APIs are added.

Quoted 26 lines

one nit, i think "api signature" doesn't cover all cases of what i would regard as change. i would prefer to define it as "no change where api/abi compatibility or semantic change occurred"? which is a lot more strict but in practice is necessary to support binaries when abi/api is stable.

i.e. if a recompile is necessary with or without code change then it's a change.

Quoted 4 lines

However equally any changes to the implementation do not reset the clock.

Would that work?

that works for me.

Quoted 11 lines
Quoted 11 lines

doc/guides/contributing/abi_policy.rst Libraries · line 374

Quoted 5 lines
doc/guides/contributing/abi_policy.rst +3 -0
+
+The promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.

this should extend beyond just symbols. there are other changes that impact the abi where exported symbols don't change. e.g. additions to return values sets.>
thanks for working on this.

#5 lore raw
Quoted 44 lines · Ferruh Yigit
Quoted 24 lines · Tyler Retzlaff
Quoted 23 lines · Ray
Quoted 22 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 8 lines
doc/guides/contributing/abi_policy.rst +6 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity.
if it is still changing
then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

Quoted 9 lines
Quoted 4 lines

Good idea.

I think it is reasonable to add a clause that indicates that any change to the "API signature" would reset the clock.

a time based strategy works but i guess the follow-on to that is how is the clock tracked and how does it get updated? i don't think trying to troll through git history will be effective.

We are grouping the new experimental APIs in the version file based on the release they are added with a comment, thanks to Dave. Like:

        # added in 19.02
        rte_extmem_attach;
        rte_extmem_detach;
        rte_extmem_register;
        rte_extmem_unregister;
Quoted 8 lines
        # added in 19.05
        rte_dev_dma_map;
        rte_dev_dma_unmap;
        ....

Please check 'lib/eal/version.map' as sample.

This enables us easily see the release experimental APIs are added.

this is fine but the subject being discussed is oriented around how long an api/abi has been unchanged to identify it as a candidate for qualifying it as stable (not experimental). are you suggesting that if api/abi changes then it is moved to the -current version to "restart the clock" as it were?

#6 lore raw
In reply to Tyler Retzlaff
Quoted 33 lines · Tyler Retzlaff
Quoted 23 lines · Ray
Quoted 12 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 8 lines
doc/guides/contributing/abi_policy.rst +6 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

Quoted 10 lines

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity.
if it is still changing
then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

Quoted 4 lines

Good idea.

I think it is reasonable to add a clause that indicates that any change to the "API signature" would reset the clock.

a time based strategy works but i guess the follow-on to that is how is the clock tracked and how does it get updated? i don't think trying to troll through git history will be effective.

Quoted 7 lines

one nit, i think "api signature" doesn't cover all cases of what i would regard as change. i would prefer to define it as "no change where api/abi compatibility or semantic change occurred"? which is a lot more strict but in practice is necessary to support binaries when abi/api is stable.

i.e. if a recompile is necessary with or without code change then it's a change.

Having thought a bit ... this becomes a bit problematic.

Many data-structures in DPDK are nested,
these can have a ripple effect when changed - a change to mbuf is a good example.

What I saying is ...
I don't think changes in ABI due to in-direct reasons should count. If there is a change due to a deliberate change in the ABI signature that is fine, reset the clock.

If there is a change due to some nested data-structure,
3-levels down changing in my book that doesn't count.
As that may or may not have been deliberate, and is almost impossible to police.

Checking anything but a deliberate change to the ABI signature, would be practically impossible IMHO.

Quoted 7 lines
Quoted 5 lines

However equally any changes to the implementation do not reset the clock.

Would that work?

that works for me.

v2 on the way.

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

doc/guides/contributing/abi_policy.rst Libraries · line 374

Quoted 6 lines
doc/guides/contributing/abi_policy.rst +3 -0
+
+The promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.

this should extend beyond just symbols. there are other changes that impact the abi where exported symbols don't change. e.g. additions to return values sets.>
thanks for working on this.

#7 lore raw
Quoted 49 lines · Ray
Quoted 33 lines · Tyler Retzlaff
Quoted 23 lines · Ray
Quoted 12 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 8 lines
doc/guides/contributing/abi_policy.rst +6 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

Quoted 10 lines

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity.
if it is still changing
then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

Quoted 4 lines

Good idea.

I think it is reasonable to add a clause that indicates that any change to the "API signature" would reset the clock.

a time based strategy works but i guess the follow-on to that is how is the clock tracked and how does it get updated? i don't think trying to troll through git history will be effective.

Quoted 7 lines

one nit, i think "api signature" doesn't cover all cases of what i would regard as change. i would prefer to define it as "no change where api/abi compatibility or semantic change occurred"? which is a lot more strict but in practice is necessary to support binaries when abi/api is stable.

i.e. if a recompile is necessary with or without code change then it's a change.

Having thought a bit ... this becomes a bit problematic.

Many data-structures in DPDK are nested,
these can have a ripple effect when changed - a change to mbuf is a good example.

Quoted 8 lines

What I saying is ...
I don't think changes in ABI due to in-direct reasons should count. If there is a change due to a deliberate change in the ABI signature that is fine, reset the clock.

If there is a change due to some nested data-structure, 3-levels down changing in my book that doesn't count.

it has to count otherwise dpdk's abi stability promise for major version releases is meaningless. or are you suggesting it doesn't count for the purpose of determining whether or not an experimental api/abi has changed?

Quoted 4 lines

As that may or may not have been deliberate, and is almost impossible to police.

Checking anything but a deliberate change to the ABI signature, would be practically impossible IMHO.

well, it isn't impossible but it does take knowledge, mechanism and process maintain the abi for a major version.

#8 lore raw
Quoted 56 lines · Tyler Retzlaff
Quoted 55 lines · Ray
Quoted 33 lines · Tyler Retzlaff
Quoted 23 lines · Ray
Quoted 12 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 8 lines
doc/guides/contributing/abi_policy.rst +6 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable API
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

this seems vague and arbitrary. is there a way we can have a more quantitative metric for what "reasonably mature" means.

Quoted 10 lines

doc/guides/contributing/abi_policy.rst Libraries · line 371

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.

i think with the above comment the basis for removal then depends on whatever metric is used to determine maturity.
if it is still changing
then it seems like it is useful and still evolving so perhaps should not be removed but hasn't changed but doesn't meet the metric for being made stable then perhaps it becomes a candidate for removal.

Quoted 4 lines

Good idea.

I think it is reasonable to add a clause that indicates that any change to the "API signature" would reset the clock.

a time based strategy works but i guess the follow-on to that is how is the clock tracked and how does it get updated? i don't think trying to troll through git history will be effective.

Quoted 7 lines

one nit, i think "api signature" doesn't cover all cases of what i would regard as change. i would prefer to define it as "no change where api/abi compatibility or semantic change occurred"? which is a lot more strict but in practice is necessary to support binaries when abi/api is stable.

i.e. if a recompile is necessary with or without code change then it's a change.

Having thought a bit ... this becomes a bit problematic.

Many data-structures in DPDK are nested,
these can have a ripple effect when changed - a change to mbuf is a good example.

What I saying is ...
I don't think changes in ABI due to in-direct reasons should count. If there is a change due to a deliberate change in the ABI signature that is fine, reset the clock.

Quoted 7 lines
Quoted 2 lines

If there is a change due to some nested data-structure, 3-levels down changing in my book that doesn't count.

it has to count otherwise dpdk's abi stability promise for major version releases is meaningless. or are you suggesting it doesn't count for the purpose of determining whether or not an experimental api/abi has changed?

"it doesn't count for the purpose of determining whether or not an experimental api/abi has changed?".

Exactly - that is what I meant - apologies if I was unclear. In this case the change is not a deliberate act,
in that it is not really happening because of any maturing of the ABI.

Quoted 8 lines
Quoted 5 lines

As that may or may not have been deliberate, and is almost impossible to police.

Checking anything but a deliberate change to the ABI signature, would be practically impossible IMHO.

well, it isn't impossible but it does take knowledge, mechanism and process maintain the abi for a major version.

100% agree with this statement.

What do you think of the v3?

#9 lore raw

PATCH v2 1/1 doc: policy on promotion of experimental APIs

In reply to Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy ammendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
v2: addressing comments on abi expiry from Tyler Retzlaff.

 doc/guides/contributing/abi_policy.rst | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +19 -3
index 4ad87dbfed..840c295e5d 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.
@@ -358,3 +359,18 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable ABI
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.
+
+Should an API's Binary Interface change during the two year period, usually due
+to a direct change in the to API's signature. It is reasonable for the expiry
+clock to reset. The promotion or removal of symbols will typically form part of
+a conversation between the maintainer and the original contributor.
Signature · 1 line
2.26.2
#10 lore raw

PATCH v3 1/1 doc: policy on the promotion of experimental APIs

In reply to Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy amendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
v2: addressing comments on abi expiry from Tyler Retzlaff.
v3: addressing typos in the git commit message

 doc/guides/contributing/abi_policy.rst | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +19 -3
index 4ad87dbfed..840c295e5d 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.
@@ -358,3 +359,18 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable ABI
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.
+
+Should an API's Binary Interface change during the two year period, usually due
+to a direct change in the to API's signature. It is reasonable for the expiry
+clock to reset. The promotion or removal of symbols will typically form part of
+a conversation between the maintainer and the original contributor.
Signature · 1 line
2.26.2
Acked-by on v3 1/1
#11 lore raw

Re: [dpdk-dev] [PATCH v3] doc: policy on the promotion of experimental APIs

Quoted 8 lines · Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy amendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---

#12 lore raw

Re: [dpdk-dev] [PATCH v3] doc: policy on the promotion of experimental APIs

In reply to Ray Kinsella
Quoted 34 lines · Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy amendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
v2: addressing comments on abi expiry from Tyler Retzlaff.
v3: addressing typos in the git commit message

 doc/guides/contributing/abi_policy.rst | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +4 -3
index 4ad87dbfed..840c295e5d 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 10 lines
doc/guides/contributing/abi_policy.rst +7 -0
@@ -358,3 +359,18 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable ABI
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

Is this line with git commit message?
Why making an exceptional case? why not make it stable after two years or remove it.
My worry is if we make an exception case, it will be difficult to enumerate the exception case.

Quoted 11 lines
doc/guides/contributing/abi_policy.rst +8 -1
+classified as ``experimental`` after two years and is without any prospect of
+becoming part of the stable API. The API will then become a candidate for
+removal, to avoid the acculumation of abandoned symbols.
+
+Should an API's Binary Interface change during the two year period, usually due
+to a direct change in the to API's signature. It is reasonable for the expiry
+clock to reset. The promotion or removal of symbols will typically form part of
+a conversation between the maintainer and the original contributor.
--

2.26.2

#13 lore raw

Re: [dpdk-dev] [PATCH v3] doc: policy on the promotion of experimental APIs

Quoted 5 lines · Jerin Jacob
Quoted 5 lines
doc/guides/contributing/abi_policy.rst +5 -0
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable ABI
Quoted 8 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 2 lines
doc/guides/contributing/abi_policy.rst +2 -0
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

Is this line with git commit message?
Why making an exceptional case? why not make it stable after two years or remove it.
My worry is if we make an exception case, it will be difficult to enumerate the exception case.

i think the intent here is to indicate that an api/abi doesn't just automatically become stable after a period of time. there also has to be an evaluation by the maintainer / community before making it stable.

so i guess the timer is something that should force that evaluation. as a part of that evaluation one would imagine there is justification for keeping the api as experimental for longer and if so a rationale as to why.

#14 lore raw

Re: [dpdk-dev] [PATCH v3] doc: policy on the promotion of experimental APIs

Quoted 16 lines · Tyler Retzlaff
Quoted 5 lines · Jerin Jacob
Quoted 5 lines
doc/guides/contributing/abi_policy.rst +5 -0
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable ABI
Quoted 8 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 2 lines
doc/guides/contributing/abi_policy.rst +2 -0
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

Is this line with git commit message?
Why making an exceptional case? why not make it stable after two years or remove it.
My worry is if we make an exception case, it will be difficult to enumerate the exception case.

Quoted 8 lines

i think the intent here is to indicate that an api/abi doesn't just automatically become stable after a period of time. there also has to be an evaluation by the maintainer / community before making it stable.

so i guess the timer is something that should force that evaluation. as a part of that evaluation one would imagine there is justification for keeping the api as experimental for longer and if so a rationale as to why.

I think, we need to have a deadline. Probably one year timer for evaluation and two year for max time for decision to make it as stable or remove.

#15 lore raw

Re: [dpdk-dev] [PATCH v3] doc: policy on the promotion of experimental APIs

Quoted 22 lines · Jerin Jacob
Quoted 20 lines · Tyler Retzlaff
Quoted 5 lines · Jerin Jacob
Quoted 5 lines
doc/guides/contributing/abi_policy.rst +5 -0
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+Ordinarily APIs marked as ``experimental`` will be promoted to the stable ABI
Quoted 8 lines

doc/guides/contributing/abi_policy.rst Libraries · line 368

Quoted 2 lines
doc/guides/contributing/abi_policy.rst +2 -0
+once a maintainer and/or the original contributor is satisfied that the API is
+reasonably mature. In exceptional circumstances, should an API still be

Is this line with git commit message?
Why making an exceptional case? why not make it stable after two years or remove it.
My worry is if we make an exception case, it will be difficult to enumerate the exception case.

i think the intent here is to indicate that an api/abi doesn't just automatically become stable after a period of time. there also has to be an evaluation by the maintainer / community before making it stable.

Quoted 8 lines
Quoted 4 lines

so i guess the timer is something that should force that evaluation. as a part of that evaluation one would imagine there is justification for keeping the api as experimental for longer and if so a rationale as to why.

I think, we need to have a deadline. Probably one year timer for evaluation and two year for max time for decision to make it as stable or remove.

Tyler is correct here (sorry for the delay I was out on vacation).
In my usage of the word exception - I was conveying that an API aging or timing out should be an exceptional event. What I am hoping will happen in the 90%-ile of cases is conveyed in the previous line.

"Ordinarily APIs marked as ``experimental`` will be promoted to the stable ABI once a maintainer and/or the original contributor is satisfied that the API is reasonably mature."

i.e. that the symbol has be pro-actively managed with the maintainer and original author deciding when to promote.

I will add a line to indicate that experimental apis should be reviewed after one year.

#16 lore raw

PATCH v4 1/1 doc: policy on the promotion of experimental APIs

In reply to Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy amendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
v2: addressing comments on abi expiry from Tyler Retzlaff.
v3: addressing typos in the git commit message
v4: addressing typos and comments by Jerin Jacob

 doc/guides/contributing/abi_policy.rst | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +22 -3
index 4ad87dbfed..1acd12cbf4 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.
@@ -358,3 +359,21 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+An API's ``experimental`` status should be reviewed annually, by both the
+maintainer and/or the original contributor. Ordinarily APIs marked as
+``experimental`` will be promoted to the stable ABI once a maintainer has become
+satisfied that the API is mature and is unlikely to change.
+
+In exceptional circumstances, should an API still be classified as
+``experimental`` after two years and is without any prospect of becoming part of
+the stable API. The API will then become a candidate for removal, to avoid the
+acculumation of abandoned symbols.
+
+Should an API's Binary Interface change, usually due to a direct change to the
+API's signature, it is reasonable for the review and expiry clocks to reset. The
+promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.
Signature · 1 line
2.26.2
#17 lore raw

PATCH v5 1/1 doc: policy on the promotion of experimental APIs

In reply to Ray Kinsella

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy amendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the maintainer and original contributor.

---
v2: comments on abi expiry from Tyler Retzlaff.
v3: typos in the git commit message
v4: typos and comments by Jerin Jacob
v5: typos caught by the CI

 doc/guides/contributing/abi_policy.rst | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)
doc/guides/contributing/abi_policy.rst +22 -3
index 4ad87dbfed..520763b63a 100644
@@ -26,9 +26,10 @@ General Guidelines
    symbols is managed with :ref:`ABI Versioning <abi_versioning>`.
 #. The removal of symbols is considered an :ref:`ABI breakage <abi_breakages>`,
    once approved these will form part of the next ABI version.
-#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may
-   be changed or removed without prior notice, as they are not considered part
-   of an ABI version.
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.
 #. Updates to the :ref:`minimum hardware requirements <hw_rqmts>`, which drop
    support for hardware which was previously supported, should be treated as an
    ABI change.
@@ -358,3 +359,21 @@ Libraries
 Libraries marked as ``experimental`` are entirely not considered part of an ABI
 version.
 All functions in such libraries may be changed or removed without prior notice.
+
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+An API's ``experimental`` status should be reviewed annually, by both the
+maintainer and/or the original contributor. Ordinarily APIs marked as
+``experimental`` will be promoted to the stable ABI once a maintainer has become
+satisfied that the API is mature and is unlikely to change.
+
+In exceptional circumstances, should an API still be classified as
+``experimental`` after two years and is without any prospect of becoming part of
+the stable API. The API will then become a candidate for removal, to avoid the
+accumulation of abandoned symbols.
+
+Should an API's Binary Interface change, usually due to a direct change to the
+API's signature, it is reasonable for the review and expiry clocks to reset. The
+promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.
Signature · 1 line
2.26.2
Acked-by on v5 1/1
#18 lore raw

Re: [dpdk-dev] [PATCH v5] doc: policy on the promotion of experimental APIs

04/08/2021 11:34, Ray Kinsella:

Quoted 4 lines

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy amendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the

s/conservation/conversation/

Quoted 9 lines

maintainer and original contributor.

---

doc/guides/contributing/abi_policy.rst +4 -0
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.

[...]

Quoted 4 lines
doc/guides/contributing/abi_policy.rst +4 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+An API's ``experimental`` status should be reviewed annually, by both the

doc/guides/contributing/abi_policy.rst Libraries · line 376

Quoted 10 lines
doc/guides/contributing/abi_policy.rst +10 -0
+maintainer and/or the original contributor. Ordinarily APIs marked as
+``experimental`` will be promoted to the stable ABI once a maintainer has become
+satisfied that the API is mature and is unlikely to change.
+
+In exceptional circumstances, should an API still be classified as
+``experimental`` after two years and is without any prospect of becoming part of
+the stable API. The API will then become a candidate for removal, to avoid the
+accumulation of abandoned symbols.
+
+Should an API's Binary Interface change, usually due to a direct change to the

API's Binary Interface?
I assume you mean ABI.

doc/guides/contributing/abi_policy.rst Libraries · line 379

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+API's signature, it is reasonable for the review and expiry clocks to reset. The
+promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.

Applied with above changes, thanks.

#19 lore raw

Re: [dpdk-dev] [PATCH v5] doc: policy on the promotion of experimental APIs

Quoted 36 lines · Thomas Monjalon

04/08/2021 11:34, Ray Kinsella:

Quoted 4 lines

Clarifying the ABI policy on the promotion of experimental APIS to stable. We have a fair number of APIs that have been experimental for more than 2 years. This policy amendment indicates that these APIs should be promoted or removed, or should at least form a conservation between the

s/conservation/conversation/

Quoted 9 lines

maintainer and original contributor.

---

doc/guides/contributing/abi_policy.rst +4 -0
+#. Libraries or APIs marked as :ref:`experimental <experimental_apis>` may be
+   changed or removed without prior notice, as they are not considered part of
+   an ABI version. The :ref:`experimental <experimental_apis>` status of an API
+   is not an indefinite state.

[...]

Quoted 4 lines
doc/guides/contributing/abi_policy.rst +4 -0
+Promotion to stable
+~~~~~~~~~~~~~~~~~~~
+
+An API's ``experimental`` status should be reviewed annually, by both the

doc/guides/contributing/abi_policy.rst Libraries · line 376

Quoted 10 lines
doc/guides/contributing/abi_policy.rst +10 -0
+maintainer and/or the original contributor. Ordinarily APIs marked as
+``experimental`` will be promoted to the stable ABI once a maintainer has become
+satisfied that the API is mature and is unlikely to change.
+
+In exceptional circumstances, should an API still be classified as
+``experimental`` after two years and is without any prospect of becoming part of
+the stable API. The API will then become a candidate for removal, to avoid the
+accumulation of abandoned symbols.
+
+Should an API's Binary Interface change, usually due to a direct change to the

API's Binary Interface?
I assume you mean ABI.

Quoted 8 lines

doc/guides/contributing/abi_policy.rst Libraries · line 379

Quoted 3 lines
doc/guides/contributing/abi_policy.rst +3 -0
+API's signature, it is reasonable for the review and expiry clocks to reset. The
+promotion or removal of symbols will typically form part of a conversation
+between the maintainer and the original contributor.

Applied with above changes, thanks.

Thanks.