Skip to content

fix runner labels generation #68

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

Merged
merged 2 commits into from
Mar 25, 2021

Conversation

skarzi
Copy link
Contributor

@skarzi skarzi commented Mar 25, 2021

Pull Request Template

Description

This PR fixes issue with wrong label - [] - added for a self-hosted GitHub Actions Runner when using github_actions_runner ansible role with default runner_labels value ([]).

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

I have tried to test it locally with molecule, however, it's quite complicated, so please consider it untested locally, and let's rely on CI

@@ -30,6 +30,7 @@
- name: Check Runner
assert:
that:
- registered_runners.json.runners|json_query('labels[*].name')|flatten|sort == ['Linux', 'self-hosted', 'x86']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to test if only default labels are used by default (no value for runner_labels provided), but I don't know how run this test :(

@skarzi skarzi marked this pull request as ready for review March 25, 2021 17:10
@skarzi
Copy link
Contributor Author

skarzi commented Mar 25, 2021

GitHub UI with useless [] label added

2021-03-25-181057_196x27_scrot

@MonolithProjects
Copy link
Owner

Thx for your PR! 🙂 I will look on it bit later.

@MonolithProjects MonolithProjects merged commit 686539e into MonolithProjects:develop Mar 25, 2021
@skarzi skarzi deleted the patch-1 branch March 25, 2021 20:45
@skarzi
Copy link
Contributor Author

skarzi commented Mar 25, 2021

And thank you for developing a really useful ansible role!

@MonolithProjects
Copy link
Owner

@skarzi your fix can be found in release 1.8.1 and it is available in Ansible Galaxy. Thanks for your help.

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.

2 participants