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 charmhub-lp-tool-osci-sync #261

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

freyes
Copy link
Member

@freyes freyes commented Feb 8, 2023

charmhub-lp-tool-osci-sync job takes care of installing charmhub-lp-tools (via pip) and
running charmhub-lp-tool osci-sync which reads osci.yaml to get the desired
charmcraft version to be used when building the charm and update the
Launchpad charm build recipe.

Introduces a new secret named "launchpad_token" which contains a token
associated to a uosci-testing-bot[0]

Related-PR: openstack-charmers/charmhub-lp-tools#28

[0] https://launchpad.net/~uosci-testing-bot

@freyes freyes force-pushed the charm-lp-recipe-sync branch from 558b13b to 633c1ce Compare February 20, 2023 20:07
@freyes freyes changed the title Add charm-lp-recipe-sync. Add charmhub-lp-tool-osci-sync Mar 16, 2023
@freyes freyes force-pushed the charm-lp-recipe-sync branch from 633c1ce to 0fd5aa9 Compare March 16, 2023 14:28
freyes added 2 commits March 16, 2023 11:28
charmhub-lp-tool-osci-sync job takes care of installing charmhub-lp-tools (via pip) and
running `charmhub-lp-tool osci-sync` which reads osci.yaml to get the desired
charmcraft version to be used when building the charm and update the
Launchpad charm build recipe.

Introduces a new secret named "launchpad_token" which contains a token
associated to a uosci-testing-bot[0]

[0] https://launchpad.net/~uosci-testing-bot
This change fixes a warning thrown when running ansible-lint:

  Warning: : Skipping plugin (/home/runner/work/zosci-config/zosci-
  config/.tox/linters/lib/python3.8/site-
  packages/ansible/plugins/filter/mathstuff.py) as it seems to be invalid: cannot
  import name 'environmentfilter' from 'jinja2.filters' (/home/runner/work/zosci-
  config/zosci-config/.tox/linters/lib/python3.8/site-packages/jinja2/filters.py)
@freyes freyes force-pushed the charm-lp-recipe-sync branch from 0fd5aa9 to 4d3b364 Compare March 16, 2023 14:41
@freyes freyes marked this pull request as ready for review March 16, 2023 14:42
@@ -330,6 +330,9 @@
# NOTE(icey) BUT REALLY, DO NOT ENABLE THE FOLLOWING UNTIL YOU KNOW WE CAN
# RUN A 3.10 JOB ON ZOSCI.
#- tox-py310
promote:
jobs:
- charmhub-osci-sync
Copy link
Member Author

Choose a reason for hiding this comment

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

something I'm not sure if this is the right place to trigger the job, I don't know if there should be a new check job that each charm needs/should opt-in.

Copy link
Contributor

Choose a reason for hiding this comment

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

@ChrisMacNaughton what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Promote feels like the place to sync between the code and LP/charmhub; I wouldn't want it in check as that happens in every code submission

Copy link
Contributor

@ajkavanagh ajkavanagh left a comment

Choose a reason for hiding this comment

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

I'm generally +1 on this, but I admit to not being absolutely sure that it will work as we intend. At present, 'zed' unit jobs on zosci would do the sync when the associated review is merged; at least I think that is what it will do.

@freyes
Copy link
Member Author

freyes commented Mar 27, 2023 via email

@ajkavanagh
Copy link
Contributor

maybe run this job only on changes to the osci.yaml file?, we can expand the list of file if osci- sync reacts to changes in other paths.

Hmm; then it wouldn't auto-overwrite changes that someone had mistakenly done manually to launchpad. I'd much rather that the successful build and test on zOSCI then reflects the charmcraft version on launchpad automatically.

@ajkavanagh
Copy link
Contributor

@freyes is there anything else we need to check before landing this. It would be really good to move to this model of a single source of truth being in the repo of the charm. Then we can rip it out of charmed-openstack-info to lower potential confusion.

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