Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add opendev.org https and git fetcher #553

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

ryan-beisner
Copy link
Contributor

@ryan-beisner ryan-beisner changed the title Add opendev.org https and git fetcher [WIP] Add opendev.org https and git fetcher Oct 4, 2019
@ryan-beisner ryan-beisner force-pushed the opendev-fetcher branch 2 times, most recently from 60d8387 to 50af1ca Compare October 4, 2019 16:01
@ryan-beisner ryan-beisner changed the title [WIP] Add opendev.org https and git fetcher Add opendev.org https and git fetcher Oct 4, 2019
@ryan-beisner
Copy link
Contributor Author

Ready for review.

Just to confirm, I did a rebuild of the previously offending charm, and the build succeeds with this branch of charmtools.

charmtools.build.tactics: Copying Interface hacluster: /home/beisner/git/release-tools.round6/barbican/build/builds/barbican/hooks/relations/hacluster
charmtools.build.tactics: Copying Interface openstack-ha: /home/beisner/git/release-tools.round6/barbican/build/builds/barbican/hooks/relations/openstack-ha
charmtools.build.tactics: Copying Interface barbican-hsm: /home/beisner/git/release-tools.round6/barbican/build/builds/barbican/hooks/relations/barbican-hsm
charmtools.build.tactics: Copying Interface barbican-secrets: /home/beisner/git/release-tools.round6/barbican/build/builds/barbican/hooks/relations/barbican-secrets
charmtools.build.tactics: Trying to determine version with: git
utils: b'1b6e560-dirty\n'
utils: process: git describe --dirty --always (0)
charmtools.build.tactics: Got version: 1b6e560-dirty
build: Cleaning up /home/beisner/.cache/charm/7721
proof: I: `display-name` not provided, add for custom naming in the UI
proof: I: No icon.svg file.
proof: I: all charms should provide at least one thing
proof: I: config.yaml: option ssl_cert has no default value
proof: I: config.yaml: option ssl_key has no default value
proof: I: config.yaml: option ssl_ca has no default value
proof: I: config.yaml: option os-admin-network has no default value
proof: I: config.yaml: option os-internal-network has no default value
proof: I: config.yaml: option os-public-network has no default value
proof: I: config.yaml: option os-public-hostname has no default value
proof: I: config.yaml: option os-internal-hostname has no default value
proof: I: config.yaml: option os-admin-hostname has no default value
proof: I: config.yaml: option worker-multiplier has no default value
proof: I: config.yaml: option haproxy-server-timeout has no default value
proof: I: config.yaml: option haproxy-client-timeout has no default value
proof: I: config.yaml: option haproxy-queue-timeout has no default value
proof: I: config.yaml: option haproxy-connect-timeout has no default value
proof: I: config.yaml: option vip has no default value
________________________________________________________________________________________ summary _________________________________________________________________________________________
  build: commands succeeded
  congratulations :)
beisner@rby:~/git/release-tools/barbican$ 

Copy link

@thedac thedac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good.

Out of scope of this change, the classes look like they are calling out for some refactoring and inheritance to avoid boilerplate duplicate code.

Copy link
Contributor

@johnsca johnsca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of duplicated implementation between GitFetcher, GitHubFetcher, LaunchpadGitFetcher, and OpendevFetcher. I think it would be good to refactor this so that they all subclass from GitFetcher and extend as needed to reduce duplicated code. (For example, the GitFetcher is currently missing the revision handling that was added to the others.)

Copy link
Contributor

@johnsca johnsca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My previous comment was not intended as a nack, just to call out that this section of code could really use some cleaning up at some point. PR is fine as-is for the immediate fix.

@johnsca johnsca merged commit 9742fc7 into juju:master Oct 8, 2019
@johnsca
Copy link
Contributor

johnsca commented Oct 8, 2019

2.7.2 has been released to PyPI with (only) this change.

@ryan-beisner ryan-beisner deleted the opendev-fetcher branch October 8, 2019 20:28
@ryan-beisner
Copy link
Contributor Author

@johnsca 😸 Thanks!

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.

3 participants