| submitted by /u/cmkn [link] [comments] |
Reading view
AI-generated Drupal code that passes every test is what worries me most
https://menetray.com/en/blog/green-tests-arent-enough-thats-why-my-ai-goes-through-audit
Models often fall back on D7/D8-era patterns: \Drupal::service() instead of dependency injection, |raw in Twig, render arrays without cache metadata. Most of it works, and tests don't catch it.
So my agents now run the Audit module's Drush commands on whatever they touch (complexity, duplication, Twig, security, PHPStan, PHPCS), fix what comes up and run them again. Then I do the final review. Full disclosure, I maintain the Audit module.
What are you checking beyond tests in your AI workflow?
[link] [comments]
AI-generated Drupal code that passes every test is what worries me most
https://menetray.com/en/blog/green-tests-arent-enough-thats-why-my-ai-goes-through-audit
Models often fall back on D7/D8-era patterns: \Drupal::service() instead of dependency injection, |raw in Twig, render arrays without cache metadata. Most of it works, and tests don't catch it.
So my agents now run the Audit module's Drush commands on whatever they touch (complexity, duplication, Twig, security, PHPStan, PHPCS), fix what comes up and run them again. Then I do the final review. Full disclosure, I maintain the Audit module.
What are you checking beyond tests in your AI workflow?
[link] [comments]
Talked with Dries about whether we still need a CMS when AI agents build websites, and lots of other topics
| I had a long conversation with Dries Buytaert. The parts I think Drupal folks will find most useful:
Full video (71 min, chapters in the youtube video description): https://youtu.be/NiN5ufDJXuo [link] [comments] |
Talked with Dries about whether we still need a CMS when AI agents build websites, and lots of other topics
| I had a long conversation with Dries Buytaert. The parts I think Drupal folks will find most useful:
Full video (71 min, chapters in the youtube video description): https://youtu.be/NiN5ufDJXuo [link] [comments] |