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

Explicit channel #24

Merged
merged 7 commits into from Jun 30, 2019
Merged

Explicit channel #24

merged 7 commits into from Jun 30, 2019

Conversation

tomprince
Copy link
Contributor

No description provided.

@tomprince tomprince marked this pull request as ready for review June 27, 2019 15:31
Copy link
Contributor

@JohanLorenzo JohanLorenzo left a comment

Choose a reason for hiding this comment

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

Awesome, I like this approach! Let's add a couple of esr/candidates cases before merging 🙂

@pytest.mark.parametrize('channel, push_to_store, expected', (
('beta', True, True),
('candidate', True, True),
('esr/stable', True, True),
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Let's add a case for esr/candidate

@pytest.mark.parametrize('raises, scopes, channel', (
(False, ['project:releng:snapcraft:firefox:candidate'], 'candidate'),
(False, ['project:releng:snapcraft:firefox:beta'], 'beta'),
(False, ['project:releng:snapcraft:firefox:esr'], 'esr/stable'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Let's add a case for esr/candidate


channel = scope[len(SNAP_SCOPES_PREFIX):]
def get_snap_channel(config, task):
if 'channel' in task['payload']:
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for preserving backwards compatibility \o/

@JohanLorenzo
Copy link
Contributor

Depends on #25

@tomprince tomprince force-pushed the explicit-channel branch 3 times, most recently from bf846d9 to 31eeabf Compare June 30, 2019 20:40
@tomprince tomprince merged commit 6cf6a69 into mozilla-releng:master Jun 30, 2019
@tomprince tomprince deleted the explicit-channel branch June 30, 2019 20:48
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.

None yet

2 participants