Skip to content

Commit

Permalink
Merge branch 'main' into dj/disableBracketedPaste
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjlee authored Jul 18, 2023
2 parents b8b1a4f + 80b3829 commit 71940e9
Show file tree
Hide file tree
Showing 78 changed files with 2,280 additions and 382 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/all_green_ckeck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: all_green

concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true

on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- reopened
- labeled
- unlabeled
- synchronize
branches:
- main
- 'stable-*'
tags:
- '*'

jobs:
changelog-and-linters:
uses: ./.github/workflows/changelog_and_linters.yml # use the callable changelog_and_linters job to run tests
sanity:
uses: ./.github/workflows/sanity.yml # use the callable sanity job to run tests
units:
uses: ./.github/workflows/units.yml # use the callable units job to run tests
all_green:
if: ${{ always() }}
needs:
- changelog-and-linters
- sanity
- units
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.changelog-and-linters.result }}',
'${{ needs.sanity.result }}',
'${{ needs.units.result }}'
]) == {'success'}"
10 changes: 10 additions & 0 deletions .github/workflows/changelog_and_linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: changelog

on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
changelog:
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
linters:
uses: ansible-network/github_actions/.github/workflows/tox-linters.yml@main
50 changes: 0 additions & 50 deletions .github/workflows/darker-pr.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/galaxy-importer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Galaxy Importer
on:
push:
branches:
- main
- stable-*
pull_request:
schedule:
- cron: '0 13 * * *'
jobs:
importer:
uses: ansible-network/github_actions/.github/workflows/galaxy_importer.yml@main
69 changes: 69 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
name: sanity tests

on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
sanity:
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
with:
matrix_include: "[]"
matrix_exclude: >-
[
{
"ansible-version": "stable-2.9"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.11"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.11"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.8"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.8"
},
{
"ansible-version": "milestone",
"python-version": "3.7"
},
{
"ansible-version": "milestone",
"python-version": "3.8"
},
{
"ansible-version": "devel",
"python-version": "3.7"
},
{
"ansible-version": "devel",
"python-version": "3.8"
},
{
"ansible-version": "devel",
"python-version": "3.9"
}
]
collection_pre_install: '-r source/tests/sanity/requirements.yml'
68 changes: 68 additions & 0 deletions .github/workflows/units.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
name: unit tests

on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
unit-source:
uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
with:
matrix_exclude: >-
[
{
"python-version": "3.11"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.8"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.8"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.8"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.8"
},
{
"ansible-version": "milestone",
"python-version": "3.7"
},
{
"ansible-version": "milestone",
"python-version": "3.8"
},
{
"ansible-version": "devel",
"python-version": "3.7"
},
{
"ansible-version": "devel",
"python-version": "3.8"
},
{
"ansible-version": "devel",
"python-version": "3.9"
}
]
collection_pre_install: '-r source/tests/unit/requirements.yml'
2 changes: 1 addition & 1 deletion .github/workflows/update-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ on:

jobs:
update-variables:
uses: abikouo/github_actions/.github/workflows/update_aws_variables.yml@automate_aws_user_agent_variable
uses: ansible-network/github_actions/.github/workflows/update_aws_variables.yml@main
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- cloudfront_distribution - The origins recognises the s3 domains with region part now (https://github.com/ansible-collections/community.aws/issues/1819).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- dynamodb_table - secondary indexes are now created (https://github.com/ansible-collections/community.aws/issues/1825).
11 changes: 11 additions & 0 deletions changelogs/fragments/1846-arn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bugfixes:
- iam_role - fixed incorrect rejection of Gov Cloud ARNs in ``boundary`` parameter (https://github.com/ansible-collections/community.aws/issues/1846).
- batch_compute_environment - fixed incorrect handling of Gov Cloud ARNs in ``compute_environment_name`` parameter (https://github.com/ansible-collections/community.aws/issues/1846).
- ec2_launch_template - fixed incorrect handling of Gov Cloud ARNs in ``compute_environment_name`` parameter (https://github.com/ansible-collections/community.aws/issues/1846).
- elasticache_info - remove hard coded use of ``aws`` partition (https://github.com/ansible-collections/community.aws/issues/1846).
- msk_cluster - remove hard coded use of ``aws`` partition (https://github.com/ansible-collections/community.aws/issues/1846).
- redshift - fixed hard coded use of ``aws`` partition (https://github.com/ansible-collections/community.aws/issues/1846).
minor_changes:
- sns_topic - refactored ARN validation handling (https://github.com/ansible-collections/community.aws/pull/1848).
- iam_role - refactored ARN validation handling (https://github.com/ansible-collections/community.aws/pull/1848).
- iam_group - refactored ARN validation handling (https://github.com/ansible-collections/community.aws/pull/1848).
3 changes: 3 additions & 0 deletions changelogs/fragments/20230613-black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trivial:
- "Format using black."
- "Remove Python < 3.6 compatibility code for unit tests."
2 changes: 2 additions & 0 deletions changelogs/fragments/20230623-black-cloudfront.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- cloudfront_distribution - apply black formatting
2 changes: 2 additions & 0 deletions changelogs/fragments/20230627-ci-fixup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- CI fixup - ``include:`` should be ``include_tasks:``.
2 changes: 2 additions & 0 deletions changelogs/fragments/20230701-ci-fixup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- CI test fixups
3 changes: 3 additions & 0 deletions changelogs/fragments/20230702-dynamodb_waiter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- dynamodb_table - added waiter when updating indexes to avoid concurrency issues (https://github.com/ansible-collections/community.aws/pull/1866).
- dynamodb_table - increased default timeout based on time to update indexes in CI (https://github.com/ansible-collections/community.aws/pull/1866).
2 changes: 2 additions & 0 deletions changelogs/fragments/20230702-isort.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- added isort configs to pyproject.toml
2 changes: 2 additions & 0 deletions changelogs/fragments/galaxy_importer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- "Add Galaxy importer GitHub action."
2 changes: 2 additions & 0 deletions changelogs/fragments/tests-requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- Add amazon.aws GitHub versions as requirements for tests.
3 changes: 3 additions & 0 deletions changelogs/fragments/transit_gateway_to_vpn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- ec2_vpc_vpn - add support for connecting VPNs to a transit gateway. (https://github.com/ansible-collections/community.aws/pull/1877).
2 changes: 2 additions & 0 deletions changelogs/fragments/workflow-requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- Update test workflows to use relevant requirements files.
Loading

0 comments on commit 71940e9

Please sign in to comment.