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

lib/sysroot: Add OSTREE_EX_STAGE_DEPLOYMENTS environment variable #1583

Closed
wants to merge 3 commits into from

Conversation

cgwalters
Copy link
Member

I feel like I'm drowning in a pile of experimental-but-almost-stable
features...

Anyways, since we made the feature opt-in in rpm-ostree in
coreos/rpm-ostree#1352
let's mirror that a bit here with an environment variable so people
can play with it more easily.

The tests needed some tweaks; specifically we need to reload the
status fact after making changes. I'm still a bit uncertain
about the Ansible-as-tests.

But we add an upgrade test that uses the new environment variable.

@cgwalters
Copy link
Member Author

bot, retest this please

@cgwalters
Copy link
Member Author

@rh-atomic-bot try

@rh-atomic-bot
Copy link

⌛ Trying commit 99f0e21 with merge 723070b...

rh-atomic-bot pushed a commit that referenced this pull request May 9, 2018
For the same reason we do in the rpm-ostree tests.  This also
made sure the test run worked when I was offline on a plane.

Closes: #1583
Approved by: <try>
rh-atomic-bot pushed a commit that referenced this pull request May 9, 2018
I feel like I'm drowning in a pile of experimental-but-almost-stable
features...

Anyways, since we made the feature opt-in in rpm-ostree in
coreos/rpm-ostree#1352
let's mirror that a bit here with an environment variable so people
can play with it more easily.

The tests needed some tweaks; specifically we need to reload the
status fact after making changes.  I'm still a bit uncertain
about the Ansible-as-tests.

But we add an upgrade test that uses the new environment variable.

Closes: #1583
Approved by: <try>
@rh-atomic-bot
Copy link

💔 Test failed - status-atomicjenkins

For the same reason we do in the rpm-ostree tests.  This also
made sure the test run worked when I was offline on a plane.
I feel like I'm drowning in a pile of experimental-but-almost-stable
features...

Anyways, since we made the feature opt-in in rpm-ostree in
coreos/rpm-ostree#1352
let's mirror that a bit here with an environment variable so people
can play with it more easily.

The tests needed some tweaks; specifically we need to reload the
status fact after making changes.  I'm still a bit uncertain
about the Ansible-as-tests.

But we add an upgrade test that uses the new environment variable.
@cgwalters
Copy link
Member Author

OK, this one should be ready for review. My thought is to land this and then do a release. Then the next one can be stabilizing the current experimental APIs.

@jlebon jlebon self-assigned this May 10, 2018
rpm-ostree cleanup -rp
- import_tasks: ../tasks/query-host.yml

# Ensure we can unstage
Copy link
Member

Choose a reason for hiding this comment

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

In the following test, we can just skip the --stage one before trying to unstage now, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

We do a rpm-ostree cleanup -rp above, so there won't be a staged deployment, right? The idea is to keep things relatively clean between tests. Am I understanding you correctly?

@jlebon
Copy link
Member

jlebon commented May 11, 2018

Ahh yep, I misread the diff.
@rh-atomic-bot r+ 75cea3e

@rh-atomic-bot
Copy link

⚡ Test exempted: pull fully rebased and already tested.

rh-atomic-bot pushed a commit that referenced this pull request May 11, 2018
I feel like I'm drowning in a pile of experimental-but-almost-stable
features...

Anyways, since we made the feature opt-in in rpm-ostree in
coreos/rpm-ostree#1352
let's mirror that a bit here with an environment variable so people
can play with it more easily.

The tests needed some tweaks; specifically we need to reload the
status fact after making changes.  I'm still a bit uncertain
about the Ansible-as-tests.

But we add an upgrade test that uses the new environment variable.

Closes: #1583
Approved by: jlebon
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