Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-376

Fix version dependency on our addons

    Details

    • Tags:
    • Team:
      AI

      Description

      nuxeo-ai-aws 2.4.1 is getting on production (NCP) nuxeo-ai-core 2.4.2-SNAPSHOT.

      We need to make sure all dependecies here are fixed on the same version.

        Attachments

          Issue Links

            Activity

            Hide
            jcarsique Julien Carsique added a comment - - edited

            nuxeo-ai-aws-2.4.1 depends on nuxeo-ai-core:2.4.1 as expected (the dependency is fixed on the same version for both).

            But:

            $ ./bin/nuxeoctl mp-install nuxeo-ai-aws-2.4.1 -q
            Dependency resolution:
              Installation order (3):        nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.2-SNAPSHOT/nuxeo-ai-aws-2.4.1
              Packages to download (3):      nuxeo-web-ui:2.4.0, nuxeo-ai-aws:2.4.1, 
            nuxeo-ai-core:2.4.2-SNAPSHOT
            

            $ ./bin/nuxeoctl mp-install nuxeo-ai-core -q
            Dependency resolution:
              Installation order (2):        nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.1
              Packages to download (2):      nuxeo-web-ui:2.4.0, nuxeo-ai-core:2.4.1
            
            $ ./bin/nuxeoctl mp-install nuxeo-ai-aws nuxeo-ai-core -q
            Dependency resolution:
              Installation order (3):        nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.1/nuxeo-ai-aws-2.4.1
              Packages to download (3):      nuxeo-web-ui:2.4.0, nuxeo-ai-aws:2.4.1, nuxeo-ai-core:2.4.1
            
            $ ./bin/nuxeoctl mp-show nuxeo-ai-aws-2.4.1 -q
            ****************************************
            Package: nuxeo-ai-aws-2.4.1
            State: remote
            Version: 2.4.1
            Name: nuxeo-ai-aws
            Type: addon
            Visibility: UNKNOWN
            Target platforms: {server-10.10,server-10.10-HF*}
            Depends: {nuxeo-ai-core:2.4.1}
            ****************************************
            
            

            When nuxeo-ai-core is requested, the correct release version is resolved.

            When nuxeo-ai-core is a dependency, the snapshot version is resolved instead, despite nuxeo-ai-aws dependency on an explicit version.

             

            Show
            jcarsique Julien Carsique added a comment - - edited nuxeo-ai-aws-2.4.1 depends on nuxeo-ai-core:2.4.1 as expected (the dependency is fixed on the same version for both). But: $ ./bin/nuxeoctl mp-install nuxeo-ai-aws-2.4.1 -q Dependency resolution: Installation order (3): nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.2-SNAPSHOT/nuxeo-ai-aws-2.4.1 Packages to download (3): nuxeo-web-ui:2.4.0, nuxeo-ai-aws:2.4.1, nuxeo-ai-core:2.4.2-SNAPSHOT $ ./bin/nuxeoctl mp-install nuxeo-ai-core -q Dependency resolution: Installation order (2): nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.1 Packages to download (2): nuxeo-web-ui:2.4.0, nuxeo-ai-core:2.4.1 $ ./bin/nuxeoctl mp-install nuxeo-ai-aws nuxeo-ai-core -q Dependency resolution: Installation order (3): nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.1/nuxeo-ai-aws-2.4.1 Packages to download (3): nuxeo-web-ui:2.4.0, nuxeo-ai-aws:2.4.1, nuxeo-ai-core:2.4.1 $ ./bin/nuxeoctl mp-show nuxeo-ai-aws-2.4.1 -q **************************************** Package: nuxeo-ai-aws-2.4.1 State: remote Version: 2.4.1 Name: nuxeo-ai-aws Type: addon Visibility: UNKNOWN Target platforms: {server-10.10,server-10.10-HF*} Depends: {nuxeo-ai-core:2.4.1} **************************************** When nuxeo-ai-core is requested, the correct release version is resolved. When nuxeo-ai-core is a dependency, the snapshot version is resolved instead, despite nuxeo-ai-aws dependency on an explicit version.  
            Hide
            jcarsique Julien Carsique added a comment - - edited

            Interesting behavior to debug:

            1. Edit nuxeo-ai-aws to enforce its dependency on nuxeo-ai-core 2.4.1
            $ ./bin/nuxeoctl mp-show nuxeo-ai-aws-2.4.1 -q
            Package: nuxeo-ai-aws-2.4.1
            Depends: {nuxeo-ai-core:2.4.1:2.4.1} 
            1. Install without specific version
            $ ./bin/nuxeoctl mp-install nuxeo-ai-aws  -q
              Installation order (3):        nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.2-SNAPSHOT/nuxeo-ai-aws-2.1.0
              Packages to download (2):      nuxeo-web-ui:2.4.0, nuxeo-ai-aws:2.1.0
              Local packages to install (1): nuxeo-ai-core:2.4.2-SNAPSHOT 
            1. Install with specific version
            $ ./bin/nuxeoctl mp-install nuxeo-ai-aws-2.4.1  -q
              Installation order (3):        nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.1/nuxeo-ai-aws-2.4.1
              Packages to download (1):      nuxeo-web-ui:2.4.0
              Local packages to install (2): nuxeo-ai-aws:2.4.1, nuxeo-ai-core:2.4.1 

            It behaves in case 2) as if nuxeo-ai-core was resolved from nuxeo-ai-aws 2.4.2-SNAPSHOT instead of 2.4.1 that will be installed.

            Show
            jcarsique Julien Carsique added a comment - - edited Interesting behavior to debug: Edit nuxeo-ai-aws to enforce its dependency on nuxeo-ai-core 2.4.1 $ ./bin/nuxeoctl mp-show nuxeo-ai-aws-2.4.1 -q Package: nuxeo-ai-aws-2.4.1 Depends: {nuxeo-ai-core:2.4.1:2.4.1} Install without specific version $ ./bin/nuxeoctl mp-install nuxeo-ai-aws -q Installation order (3): nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.2-SNAPSHOT/nuxeo-ai-aws-2.1.0 Packages to download (2): nuxeo-web-ui:2.4.0, nuxeo-ai-aws:2.1.0 Local packages to install (1): nuxeo-ai-core:2.4.2-SNAPSHOT Install with specific version $ ./bin/nuxeoctl mp-install nuxeo-ai-aws-2.4.1 -q Installation order (3): nuxeo-web-ui-2.4.0/nuxeo-ai-core-2.4.1/nuxeo-ai-aws-2.4.1 Packages to download (1): nuxeo-web-ui:2.4.0 Local packages to install (2): nuxeo-ai-aws:2.4.1, nuxeo-ai-core:2.4.1 It behaves in case 2) as if nuxeo-ai-core was resolved from nuxeo-ai-aws 2.4.2-SNAPSHOT instead of 2.4.1 that will be installed.
            Hide
            jcarsique Julien Carsique added a comment -

            The version strict enforcement will help but not resolve all cases. There's nothing more to do on AI side, next step is NXP-29794

            Show
            jcarsique Julien Carsique added a comment - The version strict enforcement will help but not resolve all cases. There's nothing more to do on AI side, next step is NXP-29794
            Hide
            jcarsique Julien Carsique added a comment -
            Show
            jcarsique Julien Carsique added a comment - Forward port to 3.0.0: https://github.com/nuxeo/nuxeo-ai/pull/279
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo » nuxeo-ai » master #45
            fix: AICORE-376 enforce pkg deps version (jcarsique: 3de3dbbb8c79fd60d8b1ca4e035bbc88e7b48ff5)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo » nuxeo-ai » master #45 fix: AICORE-376 enforce pkg deps version (jcarsique: 3de3dbbb8c79fd60d8b1ca4e035bbc88e7b48ff5 )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo » nuxeo-ai » master-10.10 #40
            AICORE-376: enforce fixed version (jcarsique: b736eca2cb65e3325fac812dae5381bc1114e21a)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo » nuxeo-ai » master-10.10 #40 AICORE-376 : enforce fixed version (jcarsique: b736eca2cb65e3325fac812dae5381bc1114e21a )

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: