Problem/Motivation

While working on #3518869: Allow configs to be enforced by default I didn't find any clear/easy way to run the Behat tests, and I want to add additional test coverage for that feature.

Proposed resolution

Bring over a .local-dev setup similar to that found in workflow_eca, perhaps with some differences.

Remaining tasks

TBD

User interface changes

n/a

API changes

n/a

Data model changes

n/a

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

star-szr created an issue. See original summary.

star-szr’s picture

Noting a TODO: "make tests" is taking a snapshot, maybe we can use DDEV snapshots for this instead, unless there is a compelling reason not to.

star-szr’s picture

Noting another TODO/thing to explore: The /opt/project mount might not be needed with this setup, since our contrib project is available at /var/www/html and we could presumably use that as our composer symlink.

Edit: Nevermind, the separate mount is really helpful.

spiderman’s picture

@star-szr: I would suggest dropping the "make snapshot" from the "make tests" target in this context- I believe that is cruft from the example I referred you to, which was a project where the tests themselves would restore this snapshot to reset the state. In this case I think that's overkill, and only slows the tests process down.

star-szr changed the visibility of the branch 3520841-ddev-overrides to hidden.

star-szr changed the visibility of the branch 3520841-nginx-override to hidden.

star-szr changed the visibility of the branch nginx-override to hidden.

  • star-szr committed 5e036e44 on 2.0.x
    [#3520841] chore: Update local dev environment to Drupal 11
    

  • star-szr committed ab6196ec on 2.0.x
    Issue #3520841: Update composer config to not use lock file
    

  • star-szr committed f733d70a on 2.0.x
    Revert "Issue #3520841: Track local-dev composer.lock for now"
    
    This...

  • star-szr committed 1ab49da4 on 2.0.x
    Issue #3520841: Be more specific about gitignore paths
    

  • star-szr committed 242b032d on 2.0.x
    Issue #3520841: Remove bin-dir override
    
    It doesn't actually work, I...

  • star-szr committed 4959a6ec on 2.0.x
    Issue #3520841: Track local-dev composer.lock for now
    

  • star-szr committed ece3ee40 on 2.0.x
    Issue #3520841: `make dev` now works from the guest or host
    

  • star-szr committed 70cc503f on 2.0.x
    Issue #3520841: Add back bin-dir override
    

  • star-szr committed 36f5a423 on 2.0.x
    Issue #3520841: Remove explicit drupal/coder dependency
    
    Already pulled...

  • star-szr committed de2c2191 on 2.0.x
    Issue #3520841: Be more specific about composer adding the symlink
    

  • star-szr committed 6a13e6bc on 2.0.x
    Issue #3520841: Alternative setup that avoids extra 'web' scaffolded in...

  • star-szr committed 32cd06fa on 2.0.x
    Issue #3520841: Move config_enforce symlink to top level
    

  • star-szr committed e7159695 on 2.0.x
    Issue #3520841: Better docker mounting, thanks to @ergonlogic!
    

  • star-szr committed f57f1608 on 2.0.x
    Issue #3520841: Now with less infinitely recursing symlinks!
    

  • star-szr committed cdbd91c9 on 2.0.x
    Issue #3520841: Basic update for clean-build target
    

  • star-szr committed d277c404 on 2.0.x
    Issue #3520841: Remove currently unused autoload composer config
    

  • star-szr committed 19cf2309 on 2.0.x
    Issue #3520841: Use exec --dir for drush also
    

  • star-szr committed 2f181fec on 2.0.x
    Issue #3520841: Updates affecting 'tests' make target
    

  • star-szr committed 5bab07c8 on 2.0.x
    Issue #3520841: Comment out background in enforce-site-settings for now
    

  • star-szr committed eb777809 on 2.0.x
    Issue #3520841: Add symlink to config_enforce for easier access
    

  • star-szr committed a1fa213d on 2.0.x
    Issue #3520841: Use clone of config_enforce so it can be easily worked...

  • star-szr committed 4a40eb2d on 2.0.x
    Issue #3520841: Bring in install profile, add Make targets
    
    Several...

  • star-szr committed 69d6ea31 on 2.0.x
    Issue #3520841: Add initial .gitattributes file
    

  • star-szr committed 40013b95 on 2.0.x
    Issue #3520841: Remove composer bin-dir override
    

  • star-szr committed 8e2cbcd5 on 2.0.x
    Issue #3520841: WIP local dev environment
    
star-szr’s picture

Version: 1.0.x-dev » 2.0.x-dev
Status: Active » Fixed

Merged into 2.0.x.

I am also going to add credit for @spiderman and @ergonlogic for their support and review on this issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • star-szr committed 1dbd190e on 2.0.x
    [#3520841] chore: Don't include config_enforce symlink when packaging
    

Status: Fixed » Closed (fixed)

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