Skip to content
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

setup: Reorganize BUILD files #627

Merged
merged 30 commits into from Aug 9, 2022
Merged

setup: Reorganize BUILD files #627

merged 30 commits into from Aug 9, 2022

Conversation

achimnol
Copy link
Member

@achimnol achimnol commented Aug 4, 2022

In Pants, using per-directory BUILD files works better than globbing a filename pattern under a directory rescursively when specifying fine-grained targets.
Let's remove the glob patterns and use per-directory BUILD files.

Also, let's unify the target naming: :lib, :service -> :src.

@achimnol achimnol added this to the 22.03 milestone Aug 4, 2022
@achimnol achimnol added area:infrastructure Infrastructure-related issues type:refactor Refactoring current implementation. labels Aug 4, 2022
@achimnol achimnol self-assigned this Aug 4, 2022
@achimnol achimnol marked this pull request as ready for review August 4, 2022 05:28
@achimnol achimnol merged commit df703dd into main Aug 9, 2022
@achimnol achimnol deleted the setup/reorg-build-files branch August 9, 2022 07:07
achimnol added a commit that referenced this pull request Aug 9, 2022
* setup: Revamp BUILD files of the entire codebase
  - Let Pants auto-infer when possible
  - Move test dependencies to `pytest_test_utils()` target
  - Manually specify internal dependencies that are not auto-inferred
    due to indirect imports by pkg/module names or entrypoint scans
* setup: Disable tailoring pex_binary targets
  - This will be the default in Pants 2.14
* refactor: Migrate `ai.backend.common.test_utils` to `ai.backend.testutils.mock`
* setup: Drop `asynctest` from our dependnecies as it is only required for
  Python 3.7 or lower versions
* fix: Random failure of `wait_health_check()` due to docker API responses
* fix: Improve error detection of bootstrap container spawning

Backported-From: main
Backported-To: 22.03
@Yaminyam Yaminyam added the size:XL 500~ LoC label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:infrastructure Infrastructure-related issues size:XL 500~ LoC type:refactor Refactoring current implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants