Problem/Motivation

  • Update composer.json for Drupal 9.1.x

Issue fork cloud-3186209

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yas created an issue. See original summary.

yas’s picture

Status: Active » Needs review
StatusFileSize
new1.16 KB

Let me try.

yas’s picture

StatusFileSize
new1.2 KB
yas’s picture

StatusFileSize
new1.79 KB
yas’s picture

StatusFileSize
new1.79 KB
yas’s picture

StatusFileSize
new1.42 KB
yas’s picture

StatusFileSize
new1.72 KB
yas’s picture

StatusFileSize
new2.09 KB
yas’s picture

StatusFileSize
new2.09 KB
yas’s picture

StatusFileSize
new2.09 KB
yas’s picture

StatusFileSize
new1.72 KB
yas’s picture

StatusFileSize
new1.92 KB
yas’s picture

StatusFileSize
new1.42 KB
yas’s picture

StatusFileSize
new1.47 KB
yas’s picture

StatusFileSize
new1.5 KB
yas’s picture

StatusFileSize
new1.78 KB
yas’s picture

StatusFileSize
new1.91 KB
yas’s picture

StatusFileSize
new1.95 KB
yas’s picture

StatusFileSize
new1.93 KB
yas’s picture

StatusFileSize
new1.91 KB

Status: Needs review » Needs work

The last submitted patch, 20: 3186209-20.patch, failed testing. View results

yas’s picture

StatusFileSize
new2.27 KB
yas’s picture

Status: Needs work » Needs review
StatusFileSize
new4.39 KB

Status: Needs review » Needs work

The last submitted patch, 23: 3186209-22.patch, failed testing. View results

yas’s picture

Status: Needs work » Needs review
StatusFileSize
new4.39 KB

Status: Needs review » Needs work

The last submitted patch, 25: 3186209-23.patch, failed testing. View results

yas’s picture

Status: Needs work » Needs review
StatusFileSize
new18.29 KB

Status: Needs review » Needs work

The last submitted patch, 27: 3186209-27.patch, failed testing. View results

yas’s picture

StatusFileSize
new18.32 KB

Fixing the coding standard violations.

yas’s picture

Status: Needs work » Needs review
xiaohua guan’s picture

@yas

The patch looks good to me.

baldwinlouie’s picture

@yas, I have a question about the patch.

+++ b/cloud.info.yml
@@ -2,7 +2,7 @@ name: 'Cloud'
+core_version_requirement: ^9

Does this mean cloud module will only support Drupal 9+?

yas’s picture

StatusFileSize
new35.14 KB

@xiaohua-guan @baldwinlouie

Thank you for your review.

Does this mean cloud module will only support Drupal 9+?

Yes, that's a very good point. When we want to upgrade "maclof/kubernetes-client": "~0.17", (0.17 or higher), it is not compatible with Drupal 8.9.x. Here is the error:

  Problem 1
    - maclof/kubernetes-client[0.17.0, ..., 0.21.0] require symfony/yaml ~4.0|~5.0 -> found symfony/yaml[v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.x-dev] but the package is fixed to v3.4.41 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires maclof/kubernetes-client ~0.17 -> satisfiable by maclof/kubernetes-client[0.17.0, ..., 0.21.0].

D9+ looks compatible with those symfony libraries. Therefore if we upgrade maclof/kubernetes-client, we need to drop Drupal 8.x

At this point, this composer.json is our golden combination to support Drupal 9.1.x or higher.

However... on my second thoughts, we should apply this patch to 4.x to be created when we release 3.0.0. What do you think?

PS I refactored the patch.

Status: Needs review » Needs work

The last submitted patch, 33: 3186209-33.patch, failed testing. View results

yas’s picture

Status: Needs work » Needs review
yas’s picture

StatusFileSize
new35.14 KB

Status: Needs review » Needs work

The last submitted patch, 36: 3186209-36.patch, failed testing. View results

yas’s picture

@baldwinlouie @xiaohua-guan

Suddenly the tests started to fail; looks due to the problem in Drupal Core: PHPUnit 9.5 Call to undefined method ::getAnnotations()

baldwinlouie’s picture

@yas, thank you for the explanation. I was thinking how best to support Drupal 8 and Drupal 9. When I read this: https://www.drupal.org/docs/understanding-drupal/drupal-9-release-date-a..., it states Drupal 8 will be supported until November 2, 2021. But importantly, it states only patches and security releases will make it into Drupal 8. No new features.

For our module, I like your idea of dropping Drupal 8 support in the 4.x branch. I think it is a bit sudden to drop Drupal 8 support right before a stable 3.x release.

That way, it is a clean break when we start working on 4.x

yas’s picture

Status: Needs work » Reviewed & tested by the community

@baldwinlouie

Thank you for your comment and the link. Let's keep supporting Drupal 8 and drop it in the 4.x branch.

They fixed the issue quickly, so this patch should be ready. Let's keep RTBC status w/o merging this patch until we start to develop 4.x branch.

yas’s picture

StatusFileSize
new34.54 KB

Updated the patch for the recent merges.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 41: 3186209-41.patch, failed testing. View results

yas’s picture

Status: Needs work » Reviewed & tested by the community
yas’s picture

StatusFileSize
new34.59 KB

Updated the patch.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 44: 3186209-44.patch, failed testing. View results

yas’s picture

Status: Needs work » Reviewed & tested by the community
yas’s picture

Related issues: +#3190294: Fix CloudServerTemplatePlugins for Drupal 9.2.x
StatusFileSize
new2.01 KB

Removing AwsCloudServerTemplatePlugin and K8sCloudServerTemplatePlugin fixes since those fixes are included in the patch at #3190294

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 47: 3186209-47.patch, failed testing. View results

yas’s picture

Status: Needs work » Reviewed & tested by the community
yas’s picture

ilgnerfagundes’s picture

StatusFileSize
new30.01 KB

I applied patch # 47 it applies correctly. For me everything is correct, rtbc +1

yas’s picture

@ilgnerfagundes

Thank you for your help. As I mentioned in #3195065, we have our upgrade plan. We will include this patch into our drupal/cloud:4.x branch when we create it soon.

yas’s picture

StatusFileSize
new1.93 KB

@all

Updated the patch due to the merge at #3218796: Update composer.json to release 3.0.0

yas’s picture

.

yas’s picture

yas’s picture

StatusFileSize
new2.63 KB

Updating the patch file. Thanks to @xiaohua-guan, we are fixing the issue on Drupal 9.2.x.

yas’s picture

Title: Update composer.json for Drupal 9.1.x » Update composer.json for Drupal 9.2.x
Version: 3.x-dev » 4.x-dev
StatusFileSize
new2.63 KB

Adding a patch for the 4.x branch

yas’s picture

@xiaohua-guan @baldwinlouie

The tests have been passed successfully on Drupal 9.2.x, so I'll merge the patch at #3186209-58: Update composer.json for Drupal 9.2.x to 4.x and close this issue as Fixed.

  • yas committed 590a200 on 4.x
    Issue #3186209 by yas, Xiaohua Guan, baldwinlouie, ilgnerfagundes:...

yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

yas’s picture

Status: Closed (fixed) » Needs work

Re-opening this issue since we need to apply the patch.

yas’s picture

Status: Needs work » Needs review
StatusFileSize
new1009 bytes
yas’s picture

StatusFileSize
new5.99 KB
yas’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: +#3228688: Release 3.0.2

@all

The tests have been passed successfully, so I'll merge the patch to 3.x, and close this issue as Fixed.

yas’s picture

StatusFileSize
new5.99 KB

  • yas committed 34e5bbe on 3.x
    Issue #3186209 by yas, ilgnerfagundes, baldwinlouie, Xiaohua Guan:...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.