Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300003

Drupal 9 readiness meeting / 9 December 2019

$
0
0

Meeting will happen in #d9readiness on drupal.slack.com.

Hello and welcome to this Drupal 9 readiness meeting!

This meeting:
➤ Is for core and contributed project developers as well as people who have integrations and services related to core. Site developers who want to stay in the know to keep up-to-date for the easiest Drupal 9 upgrade of their sites are also welcome.
➤ Usually happens every other Monday at 19:00 UTC.
➤ Is done over chat.
➤ Happens in threads, which you can follow to be notified of new replies even if you don’t comment in the thread. You may also join the meeting later and participate asynchronously!
➤ Has a public agenda anyone can add to: `https://www.drupal.org/project/drupal/issues/3093746`
➤*Transcript will be exported and posted* to the agenda issue. For anonymous comments, start with a :bust_in_silhouette: emoji. To take a comment or thread off the record, start with a :no_entry_sign: emoji.

:zero: Who is here today? Comment in the thread below to introduce yourself.

mglaman:wave: Matt here,
Alona OneillAlona from SF. Hook42. Taking notes for blog
tedbow:wave:Ted in from NY state
dan2k3k4:wave: Dan, in Zurich :flag-ch: (edited)
mikelutzHi all!
shaal:wave: Ofer Shaal, Florida
mixologicOh, howdy
mixologicIm here
greg.1.anderson@greg.1.anderson multitasking but here
Gábor Hojtsy (he/him):wave:
catchNat, quite late.
vuilDrupal projects / modules contributor.
wimleers (he/him):wave: >48 hours after the fact, catching up :stuck_out_tongue:
vuilI regularly go through all the posts, though later ... :laughing:

:one: Do you have suggested topics you are looking to discuss? Post in this thread and we’ll open threads for them as appropriate.

mglamanPHPStan 0.12, phpstan-drupal compat + drupal-check
dan2k3k4Anything planned for Global Contribution Weekend 2020 on Friday, 24. January 2020 - Sunday, 26. January 2020?Would promoting D9 code sprints in different places help, or perhaps being available as remote mentors for those who want to work on upgrading their modules during the weekend?
Krzysztof Domański#2662898: "Links" field not displaying on custom view modes
Krzysztof Domański"Links" field not displaying on custom view modes. There are many view modes in which we can break design when we fix it. That's because the configuration is "enabled" by default. Is there any BC for this? Is such a change allowed in major Drupal version like 9.0.0 despite effecting multiple sites?
Krzysztof Domański---
Krzysztof DomańskiIs there a plan to introduce <?php declare(strict_types = 1); to increase control over data types in Drupal 9? What impact will it have on BC? (edited)
vuilGood question @Krzysztof Domański!

:two: Drupal 9 alpha1 is one issue away apparently

:three: PHPStan 0.12, phpstan-drupal compatibility + drupal-check

Gábor Hojtsy (he/him)Based on #2608062: [META] Requirements for tagging Drupal 9.0.0-alpha1 it looks like there is one requirement left
Gábor Hojtsy (he/him)#3074993: Use "current" in update URLs instead of CORE_COMPATIBILITY to retrieve all future updates
Gábor Hojtsy (he/him)there are also 2 should haves
Gábor Hojtsy (he/him)#3091418: Update composer dependencies on 9.0.x
Gábor Hojtsy (he/him)and #3075954: Remove duplicate scaffold files
Gábor Hojtsy (he/him)help would be welcome on updating composer dependencies
Gábor Hojtsy (he/him)@greg.1.anderson may have an update on the scaffold files issue :slightly_smiling_face:
Gábor Hojtsy (he/him)it seems to be postponed on the tarball building issue which is already happening AFAIK(?) but not entirely reflected on the issue
tedbowThe first I am working and I think is getting pretty close. Working with drumm to determine what we need the /current XML feed.
greg.1.andersonYeah, it's just tarball creation that's holding up removing the duplicate scaffold files in Drupal 9. That work is in progress right now (cc @mixologic)
mixologicYep. still feeling like I've got 5 rivers converging on my floodplains.
greg.1.andersonlmk if there are any tools / scripts / PRs I could provide to help knock out one of your todos
mixologic@greg.1.anderson one thing that could help is figuring out what I need to do in drupalci to make testing against 8.8.0 work. Basically, git clone drupal;composer require some module;is what is supposed to work, but due to the composer.lock being out of sync with composer.json things break. Im pretty sure it might just be composer update --lock or something simple in between. Ideally something that can run always that would noop in most cases.
greg.1.anderson@mixologic Why is composer.lock out of sync with composer.json? What error is returned, at what stage?
mixologicThis was the issue where the 8.8.0 tag still has 8.8.x-dev in the lockfile for drupal/core (the lockfile in the git repo)
mixologichttps://www.drupal.org/pift-ci-job/1498058 is an example of a contrib test that fails
mixologichttps://dispatcher.drupalci.org/job/drupal_contrib/94054/console
greg.1.andersonAh, so you're doing a git clone of the tag, and then the composer require of the module fails?
mixologicyes. as that how we run contrib module tests.
mixologicBut the tag is angry about the lock file.
mixologic14:20:06 Problem 114:20:06 - Conclusion: don't install drupal/core 8.8.014:20:06 - Can only install one of: drupal/core[8.8.0, 8.8.x-dev].14:20:06 - Can only install one of: drupal/core[8.8.x-dev, 8.8.0].14:20:06 - Can only install one of: drupal/core[8.8.0, 8.8.x-dev].14:20:06 - Installation request for drupal/core 8.8.0 -> satisfiable by drupal/core[8.8.0].14:20:06 - Installation request for drupal/core (locked at 8.8.x-dev, required as self.version) -> satisfiable by drupal/core[8.8.x-dev].
greg.1.andersonYeah, I see that now. Provide a link to the code that's running that step?
mixologicIts low hanging, probably just composer lock update before requiring the contrib project.
mixologicThis is the plugin that does the core_install
mixologichttps://git.drupalcode.org/project/drupalci_testbot/blob/dev/src/DrupalC...
greg.1.andersonTo me it looks like installed.json somehow got Drupal 8.8.0 stable, but composer.lock has 8.8.x-dev. Maybe
mixologicbut Im mostly just hoping to lateral pass the composer commands
mixologicyeah, I think thats exactly the issue.
mixologicBut yeah, dont sweat making a patch for drupalci, mostly just see if you can clone/doesomething/require contrib
greg.1.andersonYeah I can do that; I just need to reproduce the setup steps.
mixologiccheck the console logs: https://dispatcher.drupalci.org/job/drupal_contrib/94054/console
greg.1.andersonCan I browse the contents of packages.drupal.org online if I want to see a composer.json w/out installing the module?
mixologicNot really. But you can do it with composer show -a drupal/projectname:version
mixologicbut that will also download the whole metadata into your cache where you can see the raw json
mixologici.e. for that contrib test I linked to:composer -vvv show -a drupal/minisite
mixologicI seeDownloading https://packages.drupal.org/8/drupal/minisite%24c5d727ec199da9c3573cd920... the output
mixologicoh, actuallyWriting /Users/ryan/.composer/cache/repo/https---packages.drupal.org-8/provider-drupal$minisite.json into cache
greg.1.andersonYeah so it looks like module foo requires drupal/core at some stable version
greg.1.andersonThat's where the conflict is coming in.
greg.1.andersonI am guessing that when we test modules, we always want to do so against a stable drupal
greg.1.andersonand the only problem is that the stable Drupal has a dev drupal/core in its lock file.
greg.1.andersonUltimately, I guess, fix the lock file.
Gábor Hojtsy (he/him)proposed by @mglaman
mglamanphpstan 0.12 came out which changes a lot. phpstan is now a phar by default, which fixes autoloading collisions!
mglamanbut it broke things.
mglamanImmediate goal is to point out phpstan-drupal as 0.11.0 only - https://github.com/mglaman/phpstan-drupal/pull/95This test is failing, but maybe I just need to merge and see?
mglamanIssues for 0.12.0 support:phpstan-drupal https://github.com/mglaman/phpstan-drupal/issues/91drupal-check:https://github.com/mglaman/drupal-check/issues/117
mglamanthe conflict identification is for #3099396: PHPStan job must identify it conflicts with 0.12, so the deprecation reports can keep running
mglaman@Gábor Hojtsy (he/him) @mixologic the conflicts in PR#95 for phpstan-drupal seem to make sense, but are failing in the test. I wonder if its just due to wonky testing of a local sourced path? maybe just merge and test somewhere
Gábor Hojtsy (he/him)@mglaman I will need to update https://git.drupalcode.org/project/upgrade_status/blob/8.x-1.x/composer.... too with similar :slightly_smiling_face:
Gábor Hojtsy (he/him)so that should serve as testing also :slightly_smiling_face:
mglamanwell, really if the conflict is in phpstan-drupal that should inherit the same conflict? or does it not quite work that way
Gábor Hojtsy (he/him)possibly yes
mglamanOne thing I was wondering is if conflicts are treated like require-dev, only on the root of the project :confused:.
Gábor Hojtsy (he/him)I’d love to move to require drupal-check and exec() it eventually, see #3085327: PHP and cURL error 7: Failed to connect, use exec() instead that would clear out a lot of the syncing needs between the tools
mixologicThis feels like its 4 problems.
mixologicdrupal-check needs fixing
mixologic2. upgrade_status needs fixing
mixologic3. drupalci phpstan build step needs fixing
mixologicand 4. static analysis all projects needs fixing.
mglaman(it is 4 problems)
mixologicand Im unsure what it is we need to do
mglamanone quick-fix is identifying the conflict, that solves 3&4
mglamanso deprecations-rules stops trying to pull 0.12
mixologicwhat requires deprecations-rules ?
mglamanthat's what groks @deprecated, but upgrae_status and the build step composer require it
mglamanthe build step runs composer require phpstan/phpstan-deprecation-rules after it requires phpstan-drupal
mixologicwhere did the requirement for^0.12.0 come from?
mglamanthat's the Q, composer just picks it
mglaman@mixologic see https://circleci.com/gh/mglaman/phpstan-drupal/262the composer.json just had ^0.11.0
mglamanfor some reason Composer flips a table
mixologicgotcha so its phpstan-drupal thats getting a higher version of phpstan
mixologicwhich is probably because this doesnt have 3 version places: https://github.com/mglaman/phpstan-drupal/blob/master/composer.json#L14
mixologicIm not entirely sure, but it might work if its ^0.11.0
mglaman@mixologic which I changed in the PR to ~0.11.0
mixologicah. but still breaks?
mglamanhttps://github.com/mglaman/phpstan-drupal/pull/95, see builds
mglamanhttps://circleci.com/gh/mglaman/phpstan-drupal/264
mglamanComposer is still pulling phpstan/phpstan-deprecation-rules 0.12.0 and blowing my mind
mglamanbut it's also pulling the package from a symlink, and I feel like that randomly breaks some metadata shit
mglamanso I'm tempted to just merge as is and tag a release and see
mixologicyeah, I think thats something to do with how composer behaves with regards to dev releases.
mglamanWhen does the phpstan job build?
Gábor Hojtsy (he/him)@mglaman the all contrib one weekly, the contrib individual ones anytime they run
mixologicso for both drupalci and the phpstan job, I can just add phpstan/phpstan:0.11 to the require and force it to be that version
mixologicit runs once a week or whenever I push the button (edited)
mglamancan we try pushing the button after I tag a release? see if the conflict statements worked
mglamanI was hoping this would work so we don't have workarounds in drupalci-land
mixologicDo you want to do that? I was just going to shoehorn in this for now:-composer require mglaman/phpstan-drupal phpstan/phpstan-deprecation-rules --dev+composer require mglaman/phpstan-drupal phpstan/phpstan-deprecation-rules phpstan/phpstan:0.11.19 --dev

:four: Plans for Global Contribution Weekend Friday, 24. January 2020 - Sunday, 26. January 2020

Gábor Hojtsy (he/him)@dan2k3k4 raised this
Gábor Hojtsy (he/him)I also tweeted this on last Thursday :smile: https://twitter.com/gaborhojtsy/status/1202647375090716672
mglamanI plan on trying to do a phpstan-drupal sprint that week for 0.12 compatibility, better static analysis setups
Gábor Hojtsy (he/him)@mglaman what would be amazing is to merge the global constants POC that you did :slightly_smiling_face:
mglamanmerge it as is?
mglamanor improve on it
Gábor Hojtsy (he/him)@mglaman I don’t think we’ll figure out finding dynamically, so hardcoding them is still better to find them :smile:
mglamanmerged
mglamanso we can expand on that manually in the sprint
Gábor Hojtsy (he/him)yay!
Gábor Hojtsy (he/him)I hope to provide a 1-pager getting started summary for people which would like to the right pages :slightly_smiling_face:
Gábor Hojtsy (he/him)maybe a flowchart or some visuals to help get started / pick the tools also
Gábor Hojtsy (he/him)@dan2k3k4 last month, we launched https://dev.acquia.com/drupal9/deprecation_status which should help at contribution events like this :slightly_smiling_face:
dan2k3k4@Gábor Hojtsy (he/him) yep I'll help to "promote" this at the talk I plan on doing the week before (also in Zurich) :slightly_smiling_face:

:five: Is there a plan to introduce <?php declare(strict_types = 1); to increase control over data types in Drupal 9?

Gábor Hojtsy (he/him)topic proposed by @Krzysztof Domański
mglamanI think I saw an issue for it, there is a plan to try and add it in a scoped small fashion
Gábor Hojtsy (he/him)there is at least this from June #3060914: All new Drupal 8/9 code must use strict type hints where possible
Gábor Hojtsy (he/him)despite the title it is not an official mandate(!)
Gábor Hojtsy (he/him)#3050720: [Meta] Implement strict typing in existing code is the core issue

:six: “Links” field not displaying on custom view modes. There are many view modes in which we may break designs when we fix it.

Gábor Hojtsy (he/him)@Krzysztof Domański proposed this topic
Gábor Hojtsy (he/him)issue at #2662898: "Links" field not displaying on custom view modes
Krzysztof DomańskiHow can we fix this with BC? Is this allowed in major Drupal 9.0.0 despite effecting multiple sites (info in release notes)? (edited)
Gábor Hojtsy (he/him)I don’t personally know the answer, let’s see who is on the issue
Gábor Hojtsy (he/him)this would be some combination of @catch and/or @lauriii :)
berdirwe could have an update function that disables it on all view modes where it was previously enabled but wouldn't work?
berdirthen you have to re-enable it if you want to show it?
berdirwouldn't work for default config in modules/install profiles, but we broke things like that before, with config schema changes and so on
catchThis is a good idea https://drupal.slack.com/archives/CDDD98AMN/p1575921589192400?thread_ts=...
Gábor Hojtsy (he/him)@Krzysztof Domański looks like you way to solving it ^^^ :slightly_smiling_face:
catchHaving said that though - what happens if you have other links on nodes like comment count or similar? Don't think we should update configuration just because of the read more link.
catchPosted #2662898: "Links" field not displaying on custom view modes#comment-13384707
berdiryeah, other links are tricky, I think it's just read more with that hardcoded check, so the others would show up. I don't think my idea works then (edited)
catchIf the other links show up properly, I don't think we need to do anything - sites may well already have links showing.
andypostat least in search we still hardcode view modes for links, added related issues #2662898: "Links" field not displaying on custom view modes#comment-13384765 (edited)

:seven: Highfives for removing half of the deprecated APIs from core already! (edited) 

Gábor Hojtsy (he/him)We put up a graph of this at https://dev.acquia.com/drupal9/deprecation_status/graphs— it really is truly impressive to see :slightly_smiling_face:
Gábor Hojtsy (he/him)down to less than half of what it was a month ago :slightly_smiling_face:
Gábor Hojtsy (he/him)Screenshot 2019-12-09 at 20.49.27.png
Gábor Hojtsy (he/him)the other half is still to do :slightly_smiling_face: #2716163: [META] Remove deprecated classes, methods, procedural functions and code paths outside of deprecated modules on the Drupal 9 branch
Gábor Hojtsy (he/him)has a bunch of RTBC child issues and some needs work
berdir#3087644: Remove Drupal 8 updates up to and including 88** is a blocker for a lot of the remaining ones as we can't remove BC layers that are still used by the upgrade path
berdirdoes that need sign-off from someone to get in, e.g. @xjm?
Gábor Hojtsy (he/him)or @catch :slightly_smiling_face:
berdir@catch already RTBC'd the policy/parent issue, so I assumed it needs someone else
Gábor Hojtsy (he/him)@catch would discuss with @xjm as needed, so I don’t think so :)
berdirk. not urgent, but at least entity, path_alias and views BC removal issues are blocked on that one, so once that is in these should be ready soon after too I hope
catchI wanted to talk through it with xjm before committing, but she's off this week so it probably won't be immediate.
catchbut for me I think it's ready to go given we've got the 88+ database dumps now.

:eight: Thanks all for coming, see you in 2020, the year of Drupal 9! While two weeks from now would be Dec 23, I don’t think that would happen, so January 6 it is for the next meeting :slightly_smiling_face: #3099840: Drupal 9 readiness meeting / 6 January 2020 (edited) 

mglaman:musical_note: all I want for Christmas is removal of deprecated code :musical_score:or something like that.
vuil:christmasparrot:

Viewing all articles
Browse latest Browse all 300003

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>