- Issue created by @quietone
- 🇳🇿New Zealand quietone
Moved some tests and removed tour from the test module. Let's see what fails.
The last submitted patch, 2: 3336050-2.patch, failed testing. View results →
- Status changed to Postponed
almost 2 years ago 9:18pm 24 January 2023 - 🇺🇸United States xjm
Postponing as the policy does not have consensus yet.
- Status changed to Active
over 1 year ago 10:11am 21 July 2023 - 🇺🇸United States smustgrave
Traded out tour with taxonomy because it had 2 actions. 1 to be install and other to be optional.
37:29 35:04 Running- 🇺🇸United States smustgrave
The failing test actually passes locally but maybe it needs to be removed from standard?
- last update
over 1 year ago 29,824 pass, 64 fail - 🇳🇿New Zealand quietone
@smustgrave, thanks for working on this! Removing an extension from a profile is better handled in a separate issue, a child issue of the parent. That is what was done for RDF, Color, Bartik and Seven. The parent meta tries to point that out in Step 2.
- Status changed to Needs review
over 1 year ago 1:11pm 22 July 2023 52:15 51:04 Running- 🇳🇿New Zealand quietone
I was curious about the test failure in #7. It was a namespace error. So, I rolled a patch without any profile related changes.
- Status changed to RTBC
over 1 year ago 6:56pm 22 July 2023 - last update
over 1 year ago 29,831 pass, 63 fail - 🇺🇸United States smustgrave
Woo all green. That test was confusing me glad you figured it out.
Going to mark this but only area I was iffy about that I did.
- // language tour has a dependency on this tour so it has to exist. - $this->assertInstanceOf(Tour::class, Tour::load('testing_config_overrides_module')); - - // Ensure that optional configuration from a profile is created if - // dependencies are met. - $this->assertEquals('Config override test', Tour::load('testing_config_overrides')->label()); + // taxonomy action has a dependency on this setting so verify it exists. + $this->assertNotNull($this->config('testing_config_overrides_module.settings'));
The last submitted patch, 8: interdiff-7-8.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 5:41pm 23 July 2023 - 🇫🇮Finland lauriii Finland
We will still have to figure out what to do with
\Drupal\Tests\config\Functional\ConfigInstallProfileOverrideTest
because it has some Tour related tests. - Status changed to Needs review
over 1 year ago 6:02pm 23 July 2023 - last update
over 1 year ago 29,877 pass, 1 fail The last submitted patch, 14: 3336050-14.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 6:58pm 23 July 2023 - last update
over 1 year ago 29,877 pass, 1 fail - Status changed to Needs review
over 1 year ago 7:53pm 23 July 2023 - last update
over 1 year ago 29,877 pass, 1 fail The last submitted patch, 17: 3336050-17.patch, failed testing. View results →
- last update
over 1 year ago 29,878 pass - last update
over 1 year ago 29,884 pass - 🇳🇿New Zealand quietone
For my review, I read the code. I did not run any tests.
-
+++ b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php @@ -87,18 +86,16 @@ public function testInstallProfileConfigOverwrite() { // Ensure that optional configuration can be overridden. ... + // Should not be overridden because it's optional and setting exists in + // taxonomy module already.
I am not following this block. It is supposed to be test that optional config can be overridden.
-
+++ b/core/modules/tour/tests/src/Functional/ViewsUi/ViewsUITourTest.php --- /dev/null +++ b/core/profiles/testing_config_overrides/config/install/system.action.taxonomy_term_publish_action.yml +++ b/core/profiles/testing_config_overrides/config/optional/config_test.dynamic.override.yml --- /dev/null +++ b/core/profiles/testing_config_overrides/config/optional/system.action.taxonomy_term_unpublish_action.yml
I see that, these files have a very different order than the others in the same directory. And they have an extra property as well. I think these should follow the same structure as the others fore maintainability.
We should also change the id and text so that it is obvious that these are testing values. When I first saw that related code I went looking at the taxonomy module instead of the testing module.
Looking at the history here I think this moved to RTBC to soon. We all need to remember that a patch needs to be reviewed before RTBC, not self-RTBC ed, and to explain why you think an issue qualifies for that status in your comment. The passing of tests is rarely sufficient. I made the initial patch and I did not review the work done after that. Yes, in #10 I made a change but I did not review. In fact, the first review of the patch was done in #11 by a core committer. Core committers tend to focus on the RTBC queue, wanting issues to be ready for commit.
But yea, we all make mistakes. :-)
-
- 🇺🇸United States smustgrave
The test is checking configuration import. Taxonomy is the closest thing I could find to replace tour config
- 🇺🇸United States smustgrave
@quietone just following up on what should be changed if anything?
- Status changed to Needs work
over 1 year ago 9:52pm 13 September 2023 - 🇺🇸United States xjm
@smustgrave asked for my feedback on this issue.
In this situation we're up against a test that was not well-designed in the first place. In general, tests should not be coupled to specific core features; instead, independent test module fixtures with the needed structure should be added and used in the tests. So, unfortunately, I think we need to go down the route of adding possibly two new test modules that have the needed configuration structure for this. (We can also check for existing test modules that would fit.)
Rewriting the test could be moved to a separate issue, so that all this issue has to do is move the non-problematic tests.
- Status changed to Needs review
over 1 year ago 10:19pm 13 September 2023 - last update
over 1 year ago 30,150 pass - 🇺🇸United States smustgrave
Opened https://www.drupal.org/project/drupal/issues/3387163 📌 Decouple tour from ConfigInstallProfileOverrideTest Needs review
This patch just includes moving the tests.
- Status changed to RTBC
about 1 year ago 9:58pm 18 September 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Nice small set of changes now, great stuff!
- last update
about 1 year ago 30,168 pass - Status changed to Fixed
about 1 year ago 1:26pm 19 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.