Skip to content

Conversation

@dkliban
Copy link
Member

@dkliban dkliban commented Apr 14, 2019

Solution: build and test bindings continuosly

This patch adds another job to the Travis build matrix. This new build installs pulpcore and pulp_file
and then builds a client library for each. The client libraries are built using pulp-swagger-codegen,
a thin wrapper around swagger-codegen-cli. After building the bindings, this job installs them and runs
a script that performs the following:

  • Create a File Remote
  • Create a Repository
  • Sync a Repository
  • Monitor the sync task
  • Create an artifact from a local file
  • Create a FileContent from the artifact
  • Add the new FileContent to a repository version
  • Monitor the repo version creation task
  • Create a FilePublisher
  • Create a publication from the latest version of the repository
  • Monitor the publish task
  • Create a distribution pointint to the publication

fixes: #4123
https://pulp.plan.io/issues/4123

@codecov
Copy link

codecov bot commented Apr 14, 2019

Codecov Report

Merging #85 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
+ Coverage   65.66%   65.69%   +0.03%     
==========================================
  Files          65       65              
  Lines        3017     3017              
==========================================
+ Hits         1981     1982       +1     
+ Misses       1036     1035       -1
Impacted Files Coverage Δ
pulpcore/app/viewsets/task.py 92.53% <0%> (+1.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84b1fea...dd90a81. Read the comment docs.

@dkliban
Copy link
Member Author

dkliban commented Apr 15, 2019

These bindings only work on Python < 3.7 for now. We are experiencing a known bug[0]. There is already a patch on the master branch of swagger-codegen.

[0] swagger-api/swagger-codegen#8401

Solution: build and test bindings continuosly

This patch adds another job to the Travis build matrix. This new build installs pulpcore and pulp_file
and then builds a client library for each. The client libraries are built using pulp-swagger-codegen,
a thin wrapper around swagger-codegen-cli. After building the bindings, this job installs them and runs
a script that performs the following:

- Create a File Remote
- Create a Repository
- Sync a Repository
- Monitor the sync task
- Create an artifact from a local file
- Create a FileContent from the artifact
- Add the new FileContent to a repository version
- Monitor the repo version creation task
- Create a FilePublisher
- Create a publication from the latest version of the repository
- Monitor the publish task
- Create a distribution pointint to the publication

fixes: pulp#4123
https://pulp.plan.io/issues/4123
@dkliban dkliban merged commit 1a1966c into pulp:master Apr 15, 2019
@dkliban dkliban deleted the bindings-test branch April 15, 2019 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants