- ๐ฆ๐บAustralia matthew.hallsworth.dpc
matthew.hallsworth.dpc โ made their first commit to this issueโs fork.
- Merge request !3Update module for D10 to allow successful install โ (Merged) created by Unnamed author
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
I've put up a MR to bring this module in line with D10.
- D10 upgrade checker runs over this branch and gives it no issues
- Module installs correctly once other required modules are installed
- Can create a functional config in the UIIssues as far as I can tell:
- Module has a namespace / machine name mismatch - the module's Drupal machine name is `section_purger` and all the namespaces are `section_purger`, but the module is on D.O. as `section_purge` and the composer install library name is `section_purge`. This is causing big issues when doing such things as automatic module loading in DrupalPod etc. and using PHPUnit. This probably needs fixing
- The test suites (either because of above, or other reasons) refuse to run even in a proper D10 install, due to 'file not found' issues thanks to namespacing.
- Since this module requires a Section.IO account to test, it's difficult to give it a functional test. I am investigating if it is possible to build some PHPUnit mocks for it to test the internal POST requests of the purge methods currently. If I can figure that out, I will add them to this branch.I would like someone to be able to test this module but it may be difficult. Code review can be done however.
Thanks!
- Status changed to Needs review
over 1 year ago 12:28am 27 February 2023 - Issue was unassigned.
- Status changed to Needs work
over 1 year ago 12:34am 28 February 2023 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Testing moving this out and back into "Needs review" now that the tests have been configured per ๐ Add Drupal.org CI testing for section_purge Fixed .
- Status changed to Needs review
over 1 year ago 12:34am 28 February 2023 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Back to needs review to see if it kicks off tests.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Didn't work afaict... guess I have to actually read the docs :D
- Status changed to RTBC
over 1 year ago 12:53am 28 February 2023 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Chatting with hestenet and cmlara about this in the #drupalorg channel... one suggestion was to try another commit in the MR and another was to try moving to RTBC so I will try the latter right now.
- Status changed to Needs review
over 1 year ago 12:54am 28 February 2023 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
That didn't seem to do anything afaict so changing status back.
- First commit to issue fork.
- Status changed to RTBC
over 1 year ago 3:01am 28 February 2023 - ๐ฎ๐ณIndia rckstr_rohan
Considering the latest MR. the module worked well in d10
- Status changed to Needs work
over 1 year ago 4:42am 28 February 2023 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
We are still trying to get tests to work but please explain in detail how you tested, thanks.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Thanks to @cmlara for the help on this issue!
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Triggering a retest and a test on 10.0.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
@matthew.hallsworth.dpc @malks I noticed that there are TONS of changes in the MR that seem to just to be some formatting change/glitch:
https://git.drupalcode.org/project/section_purge/-/merge_requests/3/diffs
I didn't look in detail but we need to make sure we can diff this properly and only have the actual changes shown.
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
Going to try a patch from the PR since I can't seem to get it working for the life of me.
This patch includes all PHPCS fixes so lets see if we can get past the composer issue this way.
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
Diff was bad, going to try another one to get to the bottom of this.
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
@rckstr_rohan would you be able to give the latest code in the MR another test and leave some dot points in your response as to what you tested and what your outcomes were?
Thanks a lot!
- Status changed to Needs review
over 1 year ago 5:48am 1 March 2023 - ๐บ๐ธUnited States cmlara
I think comment #5 has already pointed out an issue which may explain why MR's are failing.
- Module has a namespace / machine name mismatch - the module's Drupal machine name is `section_purger` and all the namespaces are `section_purger`, but the module is on D.O. as `section_purge` and the composer install library name is `section_purge`. This is causing big issues when doing such things as automatic module loading in DrupalPod etc. and using PHPUnit. This probably needs fixing
Without looking in depth to the buildbot code or running an actual test:
I think that may explain what is going on with merge requests failing to require the module. When the git branch is checked out the composer.json indicates the code is for a module called 'drupal/section_purger', if composer reads that file it may change any association internally from drupal/section_purge into it being drupal/section_purger, which could causerequire drupal/section_purge
to fall back to looking to the D.O. package server for the merge request branch which does not (and should not) exist.Recommendations really are to follow the comments from #5, at a minimal this means:
Change drupal/section_purger to drupal/section_purge in composer.json
Change namespace in all files to section_purge.
Try and re-run the tests.
Contact D.O. infrastructure team and have them remove the package server entry for drupal/section_purger (if they can, it actually might be tagged to a few releases causing an issue) - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Oh dear! This was set up before my time hereโฆ certainly okay with naming changes as I like consistency but am worried about the effect on people already using the module. Iโll check with the infrastructure team.
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
Can a new development branch be created as a breaking change, for D10 only, to rename all the namespaces and module names to match the composer name? This could be 4.x-dev and be D10 only. The branch I have currently can be changed to base off this.
That way, existing installs won't be affected, as part of the upgrade cycle they would have to consider the changes and deal with it accordingly.
As it is, the existing branches don't really work for D9 - we use a branch as the current install on our D9 installs anyway.
Thoughts?
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Nice working getting tests green! :)
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
We need two things:
1. Code review
2. Manual testing including an explanation of how it was tested
Thanks!
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
@rckstr_rohan are you able to re-test the current MR and provide testing steps that you performed?
Thanks!
- ๐ฎ๐ณIndia rckstr_rohan
starting to work on it, will perform the test to the latest MR today
- ๐ฎ๐ณIndia rckstr_rohan
Hi, i have some eye dryness infesction due to laptop, mobile rays, so keeping myself away for 10 days as instructed by doctor, will surly work on it after a week, thanks.
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
@rckstr_rohan sorry to hear about your health. Have you had a chance to catch up on this testing?
- ๐ฎ๐ณIndia rckstr_rohan
will proceed now, have done some in past will complete and update, thanks.
- ๐ฎ๐ณIndia rckstr_rohan
Install and configured the module with instance, looks good,but the section getting config failure, even I have configured the section.io through the docs. so may be the problem from section.io as tried multiple times.
- ๐ฆ๐บAustralia matthew.hallsworth.dpc
@rckstr_rohan
Thanks for the testing. That looks like it might be from section themselves, I can't see that error in the codebase.
I wonder if the API has changed?
- Open on Drupal.org โCore: 10.1.x + Environment: PHP 8.1 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - Open on Drupal.org โCore: 10.1.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - ๐ฆ๐บAustralia Nadim Hossain
We have done some testing with the new changes with the changed module name and related settings from @matthew.hallsworth.dpc and it looks good, working properly. Here are couple of screenshot from the testing branch with section.
- Status changed to RTBC
12 months ago 2:10am 5 December 2023 - ๐ฆ๐บAustralia matthew.hallsworth.dpc
@Kristen Pol I'm making this RTBC and I'd like to work with you on a release for this with an eye to helping maintain the module moving forward.
Thanks!
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Thanks, everyone, for moving this forward.
@matthew.hallsworth Would love to have the help. Please create a new issue (in this issue queue, not the projectownership queue) offering to co-maintain the module similar to this:
https://www.drupal.org/project/projectownership/issues/3344209 โ
Feel free to ping me in Slack to move this forward. Thanks :)
- Open on Drupal.org โCore: 10.1.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Open on Drupal.org โCore: 10.1.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass