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

Backport backup/restore CI tests to 2.8 #12160

Merged
merged 5 commits into from
Oct 20, 2020
Merged

Conversation

benhoyt
Copy link
Contributor

@benhoyt benhoyt commented Oct 20, 2020

I landed the backup and juju-restore tests to develop, but Jenkins is trying to run them on 2.8 as well (where they don't exist). They should work on 2.8 so there's no reason not to add them. This PR cherry-picks them to 2.8 -- commits from two PRs #12137 and #12153.

Remove "set -e", presuming that this fix will be merged:
juju#12140
juju-qa-jenkins/jobs/ci-run/scripts/lxd-runner.sh creates the container
name as follows:

CONTAINER_NAME="ci-build-${{SHORT_GIT_COMMIT}}-${{JOB_NAME}}"

And because the job name is created directly from the juju/tests/suites
subdirectory, the job name is "backup_restore".

lxc doesn't like underscores in container names, so the run fails.

Just getting rid of the underscore in the directory name seems like the
simplest way to fix.

This commit adds "-e" to the "echo" commands to fix the tests/main.sh
output for -h and -H (list of suites). Now that we're using bash instead
of sh we need "echo -e" to interpret the backslashes.
Copy link
Member

@wallyworld wallyworld left a comment

Choose a reason for hiding this comment

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

Just a new line

run "run_basic_backup_create"
run "run_basic_backup_restore"
)
}
Copy link
Member

Choose a reason for hiding this comment

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

newline

@benhoyt
Copy link
Contributor Author

benhoyt commented Oct 20, 2020

$$merge$$

@jujubot jujubot merged commit f120f4c into juju:2.8 Oct 20, 2020
@benhoyt benhoyt mentioned this pull request Oct 20, 2020
jujubot added a commit that referenced this pull request Oct 20, 2020
#12162

To pick up these PRs:

* #12144 Add extra logging to uniter operations
* #12145 Merge pull request #12144 from wallyworld/extra-leadership-logging
* #12094 Fix bug #1887549: Check args.AgentVersion in bootstrapCAAS
* #12155 Fix deprecation warning with GHA
* #12160 Backport backup/restore CI tests to 2.8
@benhoyt benhoyt deleted the tests-backup-28 branch November 16, 2020 03:41
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