-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Consolidate docker_compose into docker directory #13834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: robaiken <[email protected]>
…tion Co-authored-by: robaiken <[email protected]>
Co-authored-by: robaiken <[email protected]>
Co-authored-by: robaiken <[email protected]>
|
@copilot move docker_compose into lib/dependabot |
Co-authored-by: robaiken <[email protected]>
Done! Moved docker_compose lib files into The lib files are now co-located with docker lib files at the same level: The gemspec, spec, and Dockerfile remain in |
Co-authored-by: Mark Allen <[email protected]>
The build script expects directory names (e.g., go_modules, python) but was incorrectly receiving suite names (e.g., go_module, python_slow). This caused failures for go_modules and python_slow tests because: - go_modules: was building 'go_module' instead of 'go_modules' - python_slow: was building 'python_slow' instead of 'python' The fix uses matrix.suite.path as the fallback instead of matrix.suite.name, while still allowing explicit build: overrides for special cases like docker_compose.
| - name: Build ecosystem image | ||
| if: steps.changes.outputs[matrix.suite.path] == 'true' | ||
| run: script/build ${{ matrix.suite.path }} | ||
| run: script/build ${{ matrix.suite.build || matrix.suite.path }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robaiken , are this similar things? Is there a reason now we are before trying to capture the build path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid breaking the other filters, adding a new parameter was the simplest approach. While not ideal, refactoring the entire CI matrix would be beyond the scope of this work, especially given that this PR is already quite large.
| docker_compose: | ||
| - *shared | ||
| - 'docker_compose/**' | ||
| - 'docker/lib/dependabot/docker_compose/**' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robaiken , I think we can add filter like following
- docker/lib/dependabot/docker_compose/**
- docker/lib/dependabot/share/**
kbukum1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only left a few comments. It is ready after you confirm comments and let me know if you finalized.
Added additional file patterns for Docker labeler.
kbukum1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
kbukum1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
thavaahariharangit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What are you trying to accomplish?
Moved
docker_composeecosystem intodocker/directory to eliminate duplicate Dockerfiles and shared code while maintaining both as independent ecosystems. The lib files are now co-located with docker lib files underdocker/lib/dependabot/.Benefits:
docker/lib/dependabot/shared/now clearly co-located with both ecosystemsdocker/lib/dependabot/Structure:
Key changes:
docker/docker_compose/lib/todocker/lib/dependabot/docker_compose/to co-locate with docker lib filesget_dockerfile_path()inscript/_commonto locate docker_compose's Dockerfile; updated volume mounts inbin/docker-dev-shell(removed separate lib mount) and directory validation inbin/testGemfile/Gemfile.lock; adjusted gemspec to reference../libfor require_path and files; updated rubocop config pathsNo breaking changes:
/home/dependabot/docker_compose/bin/docker-dev-shell docker_compose,bin/test docker_composeAnything you want to highlight for special attention from reviewers?
The docker_compose lib files are now co-located with docker lib files at
docker/lib/dependabot/docker_compose/rather than being in a separatedocker/docker_compose/lib/directory. The gemspec, spec, Dockerfile, and other config files remain indocker/docker_compose/. This simplifies the build system as docker_compose lib files are now included in the docker/lib mount automatically.How will you know you've accomplished your goal?
docker/lib/dependabot/Checklist
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.