-
Notifications
You must be signed in to change notification settings - Fork 338
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 dependent collections to galaxy.yml and requirements.yml #2145
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
trivial: | ||
- Add dependencies to galaxy.yml(https://github.com/ansible-collections/amazon.aws/pull/2145). |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -9,6 +9,14 @@ description: A variety of Ansible content to help automate the management of AWS | |||
license_file: COPYING | ||||
tags: [amazon, aws, cloud] | ||||
repository: https://github.com/ansible-collections/amazon.aws | ||||
dependencies: | ||||
"ansible.windows": "*" | ||||
"ansible.utils": "*" | ||||
"amazon.cloud": "*" | ||||
"ansible.netcommon": "*" | ||||
"community.crypto": "*" | ||||
"community.aws": "*" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
In theory amazon.aws can be used on its own |
||||
"community.general": "*" | ||||
documentation: https://ansible-collections.github.io/amazon.aws/branch/main/collections/amazon/aws/index.html | ||||
homepage: https://github.com/ansible-collections/amazon.aws | ||||
issues: https://github.com/ansible-collections/amazon.aws/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc | ||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,7 @@ | |
# Note: These examples do not set authentication details, see the AWS Guide for details. | ||
|
||
# Basic creation example: | ||
# Testing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this can be removed. |
||
- name: Set up public subnet route table | ||
amazon.aws.ec2_vpc_route_table: | ||
vpc_id: vpc-1245678 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ collections: | |
- ansible.windows | ||
- ansible.utils # ipv6 filter | ||
- amazon.cloud # used by integration tests - rds_cluster_modify | ||
- ansible.netcommon | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to be consistent with the Zuul configuration, the dependency should be defined using:
|
||
- community.crypto | ||
- community.aws | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For testing amazon.aws (and for testing community.aws, amazon.aws) this needs to come directly from git, not from galaxy. Otherwise we can't coordinate breaking changes between the two repos. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @GomathiselviS |
||
- community.general |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These dependencies are only needed for integration tests. Is there a way to add them only in the file tests/integration/requirements.yml and use this file to pull the dependencies on zuul?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not appear here, the collection does not have any dependencies with these collections.
This is needed for test purposes only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my understanding, collections specified in tests/integration/requirements.yml are not installed by Zuul. If we remove these collections from the required-projects list in Zuul, we need to ensure they are added here to ensure the tests pass on Zuul.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have relied on the required-projects list to install the collections used in our tests. Going forward, there's a possibility that the ansible.netcommon project might be removed from Zuul, as its tests no longer utilize Zuul for CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, IMO, before we update the Zuul configs, that's what we should be fixing. There is a need to separate the run time dependencies from the test dependencies. Just because we install something to make our lives easier when building our test cases shouldn't mean we force customers to install them for run-time it's bad practice.