- Issue created by @sidharth_soman
- Status changed to Needs work
over 1 year ago 5:34am 11 May 2023 - š®š³India sidharth_soman Bangalore
I am working on fixing the above issue.
- š®š¹Italy apaderno Brescia, š®š¹
Since there are not patches nor MRs, the status is still Active.
- Status changed to Active
over 1 year ago 3:37pm 11 May 2023 - Assigned to Neha-Verma
- Status changed to Needs work
12 months ago 6:34am 13 December 2023 - š®š¹Italy apaderno Brescia, š®š¹
A summary must describe what needs to be changed, and eventually why. A screenshot is not sufficient, even in the case a patch/MR is provided.
In the case of bug reports, the steps to reproduce the bug should be provided too. In the case of coding standards issues found using an automatic tool, the report given by that tool must be quoted too; in the case the report was given by a command, the used command must be shown too (including its parameters). - Issue was unassigned.
- Status changed to Needs review
12 months ago 7:14am 13 December 2023 - š®š³India Neha-Verma
I have fixed the issues reported by phpcs. Please review! Thanks.
- Status changed to Needs work
12 months ago 7:40am 13 December 2023 - š®š¹Italy apaderno Brescia, š®š¹
The status is for the issue summary, which still does not report the parameters passed to PHP_CodeSniffer.
- Status changed to Needs review
11 months ago 9:15am 14 December 2023 - Status changed to Needs work
3 months ago 12:44pm 13 August 2024 - šµšPhilippines cleavinjosh
Hi @Neha-Verma,
I applied MR!3, however, I encountered an error.
ā pantheon_advanced_page_cache git:(2.1.2) curl https://git.drupalcode.org/project/pantheon_advanced_page_cache/-/merge_requests/3.diff | git apply -v % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 73918 0 73918 0 0 142k 0 --:--:-- --:--:-- --:--:-- 142k <stdin>:174: trailing whitespace. data (in ways that will interact with both the Global CDN and internal Drupal <stdin>:188: trailing whitespace. A direct way of inspecting headers is with `curl -I`. This command will make <stdin>:189: trailing whitespace. a request and show just the response headers. Adding `-H "Pantheon-Debug:1"` Checking patch .circleci/config.yml... error: while searching for: version: 2 # https://circleci.com/docs/configuration#machine jobs: build: docker: - image: quay.io/pantheon-public/build-tools-ci:7.x environment: TERMINUS_SITE: d9-papc3 steps: - run: name: login-pantheon error: patch failed: .circleci/config.yml:1 error: .circleci/config.yml: patch does not apply Checking patch .circleci/scripts/setup-drupal-repo.sh... error: while searching for: set -e export TERMINUS_ENV=$CIRCLE_BUILD_NUM # Bring the code down to Circle so that modules can be added via composer. git clone $(terminus connection:info ${TERMINUS_SITE}.dev --field=git_url) --branch $TERMINUS_ENV drupal-site cd drupal-site # requiring other modules below was throwing an error if this dependency was not updated first. # I think because the composer.lock file for the site has dev-master as the version for this # dependency. But the CI process calling this file runs against a different branch name thanks to the error: patch failed: .circleci/scripts/setup-drupal-repo.sh:2 error: .circleci/scripts/setup-drupal-repo.sh: patch does not apply Checking patch .github/workflows/ci.yml... error: .github/workflows/ci.yml: already exists in working directory Checking patch README.md... Checking patch composer.lock... error: while searching for: }, { "name": "guzzlehttp/guzzle", "version": "6.5.3", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", "reference": "aab4ebd862aa7d04f01a4b51849d657db56d882e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/guzzle/zipball/aab4ebd862aa7d04f01a4b51849d657db56d882e", "reference": "aab4ebd862aa7d04f01a4b51849d657db56d882e", "shasum": "" }, "require": { "ext-json": "*", "guzzlehttp/promises": "^1.0", "guzzlehttp/psr7": "^1.6.1", "php": ">=5.5", "symfony/polyfill-intl-idn": "^1.11" }, "require-dev": { "ext-curl": "*", error: patch failed: composer.lock:866 error: composer.lock: patch does not apply Checking patch config/install/pantheon_advanced_page_cache.settings.yml... error: while searching for: override_list_tags: false error: patch failed: config/install/pantheon_advanced_page_cache.settings.yml:1 error: config/install/pantheon_advanced_page_cache.settings.yml: patch does not apply Checking patch pantheon_advanced_page_cache.info.yml... error: while searching for: description: 'Advanced page cache capabilities for Pantheon.' package: Performance and scalability type: module core_version_requirement: ^8 || ^9 error: patch failed: pantheon_advanced_page_cache.info.yml:2 error: pantheon_advanced_page_cache.info.yml: patch does not apply Checking patch pantheon_advanced_page_cache.install... error: while searching for: */ /** * Set override_list_tags to TRUE for backwards compatibility. We recommend manually changing to FALSE for more consistent clearing. See README */ function pantheon_advanced_page_cache_update_8001() { \Drupal::configFactory()->getEditable('pantheon_advanced_page_cache.settings')->set('override_list_tags', TRUE)->save(); } error: patch failed: pantheon_advanced_page_cache.install:6 error: pantheon_advanced_page_cache.install: patch does not apply Checking patch pantheon_advanced_page_cache.services.yml... error: while searching for: arguments: ['pantheon_advanced_page_cache'] pantheon_advanced_page_cache.cache_tags.invalidator: class: Drupal\pantheon_advanced_page_cache\CacheTagsInvalidator tags: - { name: cache_tags_invalidator } pantheon_advanced_page_cache.cacheable_response_subscriber: error: patch failed: pantheon_advanced_page_cache.services.yml:4 error: pantheon_advanced_page_cache.services.yml: patch does not apply Checking patch src/CacheTagsInvalidator.php... error: while searching for: namespace Drupal\pantheon_advanced_page_cache; use Drupal\Core\Cache\CacheTagsInvalidatorInterface; /** * Cache tags invalidator implementation that invalidates the Pantheon edge. */ class CacheTagsInvalidator implements CacheTagsInvalidatorInterface { /** * {@inheritdoc} */ public function invalidateTags(array $tags) { if (function_exists('pantheon_clear_edge_keys')) { pantheon_clear_edge_keys($tags); } error: patch failed: src/CacheTagsInvalidator.php:3 error: src/CacheTagsInvalidator.php: patch does not apply Checking patch src/EventSubscriber/CacheableResponseSubscriber.php... error: while searching for: namespace Drupal\pantheon_advanced_page_cache\EventSubscriber; use Drupal\Core\Cache\CacheableResponseInterface; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Psr\Log\LoggerInterface; use Drupal\Core\Logger\RfcLogLevel; use Drupal\Core\Config\ConfigFactoryInterface; /** * Adds Surrogate-Key header to cacheable master responses. error: patch failed: src/EventSubscriber/CacheableResponseSubscriber.php:3 error: src/EventSubscriber/CacheableResponseSubscriber.php: patch does not apply Checking patch tests/behat/helper_classes/AgeTracker.php... Checking patch tests/behat/helper_classes/Contexts/FeatureContext.php... Checking patch tests/behat/helper_classes/tests/AgeTrackerTest.php... Checking patch tests/modules/pantheon_advanced_page_cache_test/pantheon_advanced_page_cache_test.info.yml... error: while searching for: description: 'Used during automated test of Pantheon Advanced Page Cache' package: Testing type: module core_version_requirement: ^8 || ^9 error: patch failed: tests/modules/pantheon_advanced_page_cache_test/pantheon_advanced_page_cache_test.info.yml:2 error: tests/modules/pantheon_advanced_page_cache_test/pantheon_advanced_page_cache_test.info.yml: patch does not apply Checking patch tests/modules/pantheon_advanced_page_cache_test/src/EventSubscriber/CacheableResponseSubscriber.php... error: while searching for: namespace Drupal\pantheon_advanced_page_cache_test\EventSubscriber; use Drupal\Core\Cache\CacheableResponseInterface; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Adds Surrogate-Key header to cacheable master responses. error: patch failed: tests/modules/pantheon_advanced_page_cache_test/src/EventSubscriber/CacheableResponseSubscriber.php:3 error: tests/modules/pantheon_advanced_page_cache_test/src/EventSubscriber/CacheableResponseSubscriber.php: patch does not apply ā pantheon_advanced_page_cache git:(2.1.2)
ā pantheon_advanced_page_cache git:(2.1.2) curl https://git.drupalcode.org/project/pantheon_advanced_page_cache/-/merge_requests/3.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 73918 0 73918 0 0 154k 0 --:--:-- --:--:-- --:--:-- 154k patching file .circleci/config.yml Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 4 out of 4 hunks ignored -- saving rejects to file .circleci/config.yml.rej patching file .circleci/scripts/setup-drupal-repo.sh Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file .circleci/scripts/setup-drupal-repo.sh.rej The next patch would create the file .github/workflows/ci.yml, which already exists! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file .github/workflows/ci.yml.rej patching file README.md patching file composer.lock Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 15 out of 15 hunks ignored -- saving rejects to file composer.lock.rej patching file config/install/pantheon_advanced_page_cache.settings.yml Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file config/install/pantheon_advanced_page_cache.settings.yml.rej patching file pantheon_advanced_page_cache.info.yml Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file pantheon_advanced_page_cache.info.yml.rej patching file pantheon_advanced_page_cache.install Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file pantheon_advanced_page_cache.install.rej patching file pantheon_advanced_page_cache.services.yml Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file pantheon_advanced_page_cache.services.yml.rej patching file src/CacheTagsInvalidator.php Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file src/CacheTagsInvalidator.php.rej patching file src/EventSubscriber/CacheableResponseSubscriber.php Hunk #1 FAILED at 3. Hunk #2 FAILED at 37. Hunk #3 FAILED at 61. 3 out of 3 hunks FAILED -- saving rejects to file src/EventSubscriber/CacheableResponseSubscriber.php.rej patching file tests/behat/helper_classes/AgeTracker.php patching file tests/behat/helper_classes/Contexts/FeatureContext.php patching file tests/behat/helper_classes/tests/AgeTrackerTest.php patching file tests/modules/pantheon_advanced_page_cache_test/pantheon_advanced_page_cache_test.info.yml Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file tests/modules/pantheon_advanced_page_cache_test/pantheon_advanced_page_cache_test.info.yml.rej patching file tests/modules/pantheon_advanced_page_cache_test/src/EventSubscriber/CacheableResponseSubscriber.php Hunk #1 FAILED at 3. Hunk #2 FAILED at 15. 2 out of 2 hunks FAILED -- saving rejects to file tests/modules/pantheon_advanced_page_cache_test/src/EventSubscriber/CacheableResponseSubscriber.php.rej ā pantheon_advanced_page_cache git:(2.1.2)
Please check and advise.
Thank you. - First commit to issue fork.
- Merge request !7Issue #3359544: Fix the errors/warnings reported by PHP_CodeSniffer ā (Open) created by joegraduate
- Status changed to Needs review
3 months ago 8:28pm 21 August 2024 - šŗšøUnited States joegraduate Arizona, USA
Did not have access to change the target branch of existing MR to 2.x so I forked it and created another one targeting the 2.x branch and added some composer changes to hopefully make the GitLabCI checks happy.
- š®š¹Italy apaderno Brescia, š®š¹
- š®š¹Italy apaderno Brescia, š®š¹
avpaderno ā changed the visibility of the branch 3359544-phpcs to hidden.
- Merge request !8Created a new merge request to get the list of all the PHP_CodeSniffer errors/warnings to fix ā (Open) created by apaderno
- Status changed to RTBC
3 months ago 8:19am 22 August 2024 - š®š¹Italy apaderno Brescia, š®š¹
avpaderno ā changed the visibility of the branch 3359544-gitlab-ci-reports to hidden.