Skip to content

use official d8 release for testing - #503

Merged
tannerjfco merged 4 commits into
ddev:masterfrom
tannerjfco:d8-test-update
Oct 16, 2017
Merged

tannerjfco merged 4 commits into
ddev:masterfrom
tannerjfco:d8-test-update

Conversation

@tannerjfco

Copy link
Copy Markdown
Contributor

The Problem/Issue/Bug:

OP #463 - We want to ensure ddev works with the latest drupal 8 release.

How this PR Solves The Problem:

This PR changes the archive to use the official d8 release download instead of our test/demo drupal8 repo archive. Originally, I attempted to integrate the composer-built project from drupal-composer/drupal-project, but handling through composer takes over 4m testing locally, and we don't want to slow down our tests that much. Instead, we'll use the d8 release download, and we'll just have to remember to update the URL on "major" (8.x.0) releases.

Manual Testing Instructions:

Automated Testing Overview:

Related Issue Link(s):

#463

Release/Deployment notes:

@tannerjfco tannerjfco self-assigned this Oct 11, 2017

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looked OK to me, I just had a couple of questions about (possibly?) unrelated changes. Explaining them in the PR should do the job.

if err != nil {
return errors.Errorf("Failed to write site config for site %s, dir %s, err: %v", site.Name, site.Dir, err)
}
// Create a config object. Err is ignored as we may not have

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably just say in the PR the reason for this set up changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These changes were necessary to facilitate using a test site archive that does not contain a .ddev/config.yaml file, which is the case now that we're using the official d8 release. I also simplified a bit in a couple ways, by always setting to a test site name we define, and by removing the extra config.Read() (this is already called inside ddevapp.NewConfig()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm actually pretty happy to not assume the pre-existing .ddev. Never did like that.


}

// TestInvalidTestSite ensures that errors are returned in cases where Prepare() can't download or extract an archive.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I didn't understand the reason for removing TestInvalidTestSite

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed these test cases because they test functionality that is no longer a part of Prepare() itself, instead they are handled by GetCachedArchive. I have updated the PR with a new test which tests the same concerns TestInvalidTestSite tested for, but tests against GetCachedArchive instead.

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