You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/06/12 08:49:31 UTC
[airflow-ci-infra] branch main updated: Refresh AMIs
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git
The following commit(s) were added to refs/heads/main by this push:
new b7ac072 Refresh AMIs
b7ac072 is described below
commit b7ac0725cbc74af9f9906ac087b20311ffea35f8
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Jun 12 10:49:14 2022 +0200
Refresh AMIs
---
github-runner-ami/packer/vars/variables.pkrvars.hcl | 2 +-
scripts/list_committers | 10 +++++++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/github-runner-ami/packer/vars/variables.pkrvars.hcl b/github-runner-ami/packer/vars/variables.pkrvars.hcl
index 39dd4c7..2b351c5 100644
--- a/github-runner-ami/packer/vars/variables.pkrvars.hcl
+++ b/github-runner-ami/packer/vars/variables.pkrvars.hcl
@@ -19,5 +19,5 @@ vpc_id = "vpc-d73487bd"
ami_name = "airflow-runner-ami"
aws_regions = ["eu-central-1", "us-east-2"]
packer_role_arn = "arn:aws:iam::827901512104:role/packer-role"
-runner_version = "2.292.0-airflow1"
+runner_version = "2.293.0-airflow1"
session_manager_instance_profile_name = "packer_ssm_instance_profile"
diff --git a/scripts/list_committers b/scripts/list_committers
index 70ab370..b4d5f9c 100755
--- a/scripts/list_committers
+++ b/scripts/list_committers
@@ -17,12 +17,16 @@
# specific language governing permissions and limitations
# under the License.
-import click
+import rich_click as click
from github import Github
+from rich.console import Console
+console = Console(color_system="standard", width=200)
@click.command(short_help='List committer logins - used to sync list of committers in CI configuration')
-@click.argument('github-token', envvar='GITHUB_TOKEN')
+@click.option('--github-token', envvar='GITHUB_TOKEN',
+ help="You can generate the token with readOrg permissions: "
+ "https://github.com/settings/tokens/new?description=Read%20Org&scopes=read:org")
def main(github_token):
gh = Github(github_token)
org = gh.get_organization('apache')
@@ -33,7 +37,7 @@ def main(github_token):
click.echo(" - update the `/runners/apache/airflow/configOverlay` parameter in AWS SSM ParameterStore")
click.echo(" - restart the self-hosted runners")
click.echo(
- " - finally, replace the list of commiters in the `build-info` job in apache/airflow's `.github/workflows/ci.yml`\n"
+ " - finally, replace the list of committers in the `build-info` job in apache/airflow's `.github/workflows/ci.yml`\n"
)
click.echo(',\n'.join(committer_usernames))