Repository navigation
Open source the internal Fabric AutoML fork - #1545
Open
Li Jiang (thinkall) wants to merge 81 commits into
Open
Li Jiang (thinkall) wants to merge 81 commits into
Li Jiang (thinkall) wants to merge 81 commits into
Conversation
Squash-merge the internal FLAML-Internal main branch into the open-source ms/main branch so the public repository contains the full Fabric AutoML feature set developed internally. Internal commit history is collapsed into a single commit; per-PR provenance is preserved in the internal Azure DevOps repo. What this brings from the internal branch: - flaml/fabric/ — autofe, lowcode, mlflow, telemetry, visualization, and the Optuna-backed fANOVA evaluator (replacing the previous Cython implementation, internal PR 2045210) - flaml/visualization/ — visualization helpers - flaml/automl/ — coverage-driven improvements (utils.py and friends, internal PR 1970441) - conda-build/ — Fabric conda packaging metadata - .pipelines/, azurepipelines-coverage.yml — Azure DevOps build config (informational; OSS CI continues to be GitHub Actions) - benchmark/pmlb/ — PMLB benchmarking notebooks/results - lowcode/handlebars/ — low-code notebook generation templates and mocks - notebook/trident/ — Fabric demo and test notebooks - test/automl/test_*_coverage.py, test/fabric/, test/test_misc_coverage.py, test/tune/test_tune_coverage.py — expanded coverage suites - HowToMergeGithub.md, HowToTestFLAML4Fabric.md — internal-process docs retained for historical reference What is preserved from ms/main: - pyproject.toml PEP 621 migration (#1531, #1538) — setup.py is now a minimal stub - Python 3.13 classifier and editable-install fix - pandas 3.0 / sklearn 1.7 / catboost compatibility fixes - OpenML test fallbacks using make_classification (#1534/#1537) - Recent website dependency bumps (#1521-#1543) Conflict resolutions: - flaml/version.py: keep ms/main 2.6.0 plus internal conda-version comment - setup.py: keep ms/main minimal stub (pyproject.toml is now authoritative); port the additional 'autofe', 'fabric_python', and full 'synapse' extras from the internal setup.py into pyproject.toml - test/automl/test_constraints.py, test_score.py, test_split.py, test_xgboost2d.py: keep ms/main make_classification fallbacks (more robust and consistent) - website/yarn.lock: keep ms/main version (deleted on internal) Files intentionally NOT brought over (internal-only operational artifacts that are broken or meaningless on GitHub): - website/.npmrc — pinned to internal Azure DevOps NPM feed; would break public website builds - .azuredevops/policies/approvercountpolicy.yml — Azure DevOps PR policy for the internal repo - es-metadata.yml — internal Engineering System routing metadata - owners.txt — internal Azure DevOps owners file A .pre-commit-config.yaml exclusion was added for notebook/trident/featurization.ipynb (3.7 MB demo notebook with embedded outputs) so the existing check-added-large-files hook still guards future contributions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
These pipeline YAML files target the internal OneBranch images, pools, and feeds and have no use in the public repository, where CI is run through GitHub Actions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- conda-build/ — Fabric conda packaging metadata; the conda recipes reference internal blob storage and are part of the internal release pipeline, not generally useful in the public repo. - lowcode/handlebars/ — internal low-code notebook generation templates and mock data used by the Fabric low-code AutoML UI; not consumed by the OSS flaml package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This Azure ML pipeline tuning example existed on ms/main but was absent from the internal branch, so the squash merge unintentionally deleted it. Restore it verbatim from ms/main since it's a public example users may rely on. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove three more internal-only files that have no place in the public repository: - azurepipelines-coverage.yml — Azure Pipelines coverage configuration - HowToMergeGithub.md — internal-to-OSS sync runbook (no longer needed once the fork is fully open-sourced) - HowToTestFLAML4Fabric.md — Fabric-specific manual test instructions for the internal CI / Fabric runtime Also revert all website/docs/ additions and modifications brought in by the internal merge so the public docs site is unchanged by this PR. A separate, focused docs PR can introduce any of the internal docs content that is still relevant. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The fanova/ adapter has been migrated to wrap Optuna's pure-Python FanovaImportanceEvaluator (see flaml/fabric/fanova/evaluator.py and the README in the same folder, which explicitly states 'No local Cython extension or build_ext step is required.'). The legacy fanova.pyx file is no longer compiled or imported by any code path, so drop it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The newly merged test/spark/test_internal_mlflow.py does an unconditional 'import pyspark' at module level and depends on the internal MLflow tracking server, so it cannot be collected on the GitHub Actions matrix entries that do not install pyspark (all Python 3.10 jobs and all Windows jobs) and would not work even where pyspark is present. The internal .pipelines/build.yml already adds the same --ignore for this file in both its 'spark' and 'notspark' test variants. Fixes the 'collected 838 items / 1 error' failure on PR #1545. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mirror the structure of the internal Azure DevOps pipeline
(.pipelines/build.yml in the internal fork) in the public GitHub
Actions workflow:
* New matrix axis 'test-type' with two values, 'notspark' and 'spark',
each with its own --ignore list and pytest -m filter:
- notspark: --ignore=test/autogen --ignore=test/spark -m 'not spark'
- spark: --ignore=test/autogen
--ignore=test/spark/test_internal_mlflow.py
-m 'spark'
This keeps test/spark/test_internal_mlflow.py (which depends on the
internal MLflow tracking server and unconditionally imports pyspark
at module level) from breaking collection in either variant.
* The 'spark' variant only runs where pyspark is installed by the
workflow today: ubuntu-latest with Python 3.11 / 3.12 / 3.13. It is
excluded for windows-latest and for Python 3.10.
* All Linux test jobs now run under 'coverage run' (not just the 3.11
job). Each Linux job combines its parallel-mode coverage shards into
one .coverage file and uploads it as a uniquely named artifact. A new
'coverage' aggregator job downloads every per-job artifact, runs
'coverage combine' across them, generates a single coverage.xml and
uploads that one combined report to Codecov. This replaces the
previous per-3.11-job Codecov upload.
* The 'Save dependencies' step is now gated to a single matrix entry
(ubuntu / 3.11 / notspark) on push to main so that parallel jobs do
not race on the unit-tests-installed-dependencies branch.
Coverage is intentionally not collected on Windows runners to avoid
Linux/Windows path mismatches when combining .coverage data files.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Three test modules each rebuilt the same SynapseML/MLflow-Spark Spark
session from scratch with identical configuration:
test/spark/test_0sparkml.py
test/spark/test_internal_mlflow.py (in _init_spark_for_main)
test/automl/test_extra_models.py
Move the SparkSession.builder configuration, log_model_allowlist
override, and disable/restore_spark_ansi_mode + atexit cleanup into
a single test-only helper at test/spark/_init_spark.py exposing:
init_spark_session(app_name, master) - build/fetch the session
setup_spark_for_tests(app_name, master) - returns (spark, skip_spark)
with platform/import gating
and ANSI mode handling
Each test module now calls the helper instead of duplicating the
Maven-coordinates / config block. No behavioural change.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The first OSS CI run on this PR uncovered 4 real test failures:
test/automl/test_ts_coverage.py::test_prettify_no_test_ndarray_raises
test/automl/test_ts_coverage.py::test_prettify_no_test_series_raises
OSS PR #1536 ("Generate timestamps for time series predictions
without test data") changed prettify_prediction to auto-generate
timestamps via create_forward_frame instead of raising
ValueError / NotImplementedError when test_data is None.
Update the two internal tests to assert the new graceful behaviour
(a DataFrame with the time column populated) instead of expecting
an exception that no longer fires.
test/nlp/test_hf_utils_coverage.py::test_summarization_with_y_true
test/nlp/test_hf_utils_coverage.py::test_summarization_without_y_true
Both fail with 'Resource punkt_tab not found' because nltk data
is not pre-downloaded on the public GitHub Actions runners.
The internal Azure DevOps pipeline (.pipelines/build.yml) explicitly
ignores test/nlp for the same reason -- mirror that behaviour by
adding --ignore=test/nlp to both notspark and spark CI invocations.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
scikit-learn 1.8 (pulled in by default on Python 3.11+ in the GitHub Actions runner image) tightened check_is_fitted via the new estimator tags system. FLAML's autofe Pipeline (DataTransformer + Featurization) trips this validation and three tests in test/fabric/test_autofe.py fail with NotFittedError on py3.11 / py3.13 (py3.10 still resolves to sklearn 1.7.2 and passes): test_numpy_autofe test_autofe test_autofe_force The internal Azure DevOps pipeline (.pipelines/build.yml) pins scikit-learn=1.5.2 via conda for the same reason. Mirror that intent by capping below 1.8 in the GitHub Actions workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Windows notspark jobs were failing because the pandas<3 and scikit-learn<1.8
pins were gated to ubuntu-latest only. Windows ended up with pandas 3.0.2 and
scikit-learn 1.8.0, which produced 8 distinct failures:
* test/fabric/test_autofe.py (3 tests)
sklearn.exceptions.NotFittedError on autofe Pipeline -- sklearn 1.8
tightened check_is_fitted via the new estimator-tags system.
* test/automl/test_data_coverage.py TestAddTimeIdxCol (2 tests)
AttributeError: 'Series' object has no attribute 'view' -- pandas 3.0
removed the deprecated Series.view API.
* test/automl/test_ts_coverage.py TestDataTransformerTS (2 tests)
TypeError: Invalid value for dtype 'str' -- pandas 3.0 stricter dtype
validation.
* test/automl/test_ts_coverage.py TestSimpleForecaster (1 test)
KeyError: 0 in test_seasonal_naive_fit_predict_int -- pandas 3.0 index
semantics change.
The internal Azure DevOps pipeline pins both packages via conda for every
environment (scikit-learn=1.5.2; pandas via the conda env yml). Mirror that
intent here by removing the matrix.os filter, so Windows gets the same
constraints. The py3.10 carve-out for pandas remains because its older
transitive deps already pull in pandas<3.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The previous CI cycle pinned pandas<3 and scikit-learn<1.8 to mask test
failures on the new releases. Pinning is the wrong fix in non-spark envs
(FLAML supports modern pandas/sklearn there); pyspark is the only reason
to keep pandas<3. This commit fixes the underlying FLAML bugs so tests
pass on pandas 3.0.2 + scikit-learn 1.8.0, and narrows the workflow pins.
Code fixes
----------
* flaml/automl/data.py
- add_time_idx_col: replace Series.view('int64') (removed in pandas 3)
with .astype('int64') for the datetime->int64-nanoseconds cast.
- Use .iloc[0] when extracting a scalar from .mode() to avoid the
pandas FutureWarning that becomes an error in pandas 3.
- DataTransformer: add __sklearn_is_fitted__ so the transformer
satisfies sklearn 1.8's stricter check_is_fitted when wrapped in
a Pipeline (e.g. AutoML.feature_transformer).
* flaml/automl/time_series/ts_data.py
- DataTransformerTS.transform: building y in-place via
'y.iloc[:] = y_tr' raises 'Invalid value for dtype str' on pandas 3
when y has string dtype but the encoder produces ints. Build a new
Series/DataFrame of the appropriate dtype instead.
* flaml/automl/time_series/ts_model.py
- SeasonalNaive.predict: 'forecast(...)[0]' performs label-based
lookup on Series with non-integer indexes in pandas 3 and raises
KeyError(0). Use .iloc[0] for positional access.
* flaml/fabric/autofe.py
- Featurization: set self._is_fitted = True at the start of fit() so
even no-op fits register as fitted, and add __sklearn_is_fitted__
so sklearn 1.8's check_is_fitted accepts the Pipeline wrapping
[DataTransformer, Featurization] returned by automl.feature_transformer.
Workflow
--------
* .github/workflows/python-package.yml
- Drop the scikit-learn<1.8 pin entirely (FLAML now supports 1.8).
- Restore the pandas<3 pin to ubuntu-latest only (pyspark, which is
only installed on Ubuntu in this matrix, doesn't yet support
pandas 3.0). Windows runs against pandas 3 directly.
Verification
------------
Reproduced both failure modes locally with a fresh venv (pandas 3.0.2,
scikit-learn 1.8.0) and confirmed the previously-failing tests now pass:
test/automl/test_data_coverage.py::TestAddTimeIdxCol (3 tests)
test/automl/test_ts_coverage.py::TestDataTransformerTS::test_transform_with_label_transformer
test/automl/test_ts_coverage.py::TestDataTransformerTS::test_transform_y_dataframe_with_label_transformer
test/automl/test_ts_coverage.py::TestSimpleForecaster::test_seasonal_naive_fit_predict_int
test/fabric/test_autofe.py::test_numpy_autofe
test/fabric/test_autofe.py::test_autofe
Also re-ran the same suite against the older pandas 2.3 / sklearn 1.5
combo to confirm no regressions.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…load
The Codecov dashboard wasn't showing data for branch
'lijiang/open-source-internal-merge' because the coverage upload was
silently failing. The 'Combine coverage and upload to Codecov' job log
showed:
[info] -> No token specified or token is empty
[error] There was an error running the uploader: Error: There was
an error fetching the storage URL during POST: 429
[info] Codecov will exit with status code 0. ...
i.e. the v3 uploader was hitting Codecov's tokenless rate limit and then
exiting 0 (so the job appeared green even though no data was uploaded).
Switch to codecov/codecov-action@v5 (and pass CODECOV_TOKEN if it's set
as a repo secret). v5 uses GitHub OIDC for authenticated tokenless
uploads on public repos, which has much higher quota and avoids the
429s. Also enable verbose logging so future upload failures are obvious.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The previous codecov-action@v5 attempt still failed with HTTP 400:
{"message":"Token required because branch is protected"}
The action defaults to anonymous tokenless uploads, which Codecov is
phasing out -- in particular, anonymous POSTs are rejected for
upstream-source branches in repos with protected branches (which
microsoft/FLAML has on main). Set 'use_oidc: true' to make the action
exchange a GitHub OIDC token for an authenticated Codecov upload, and
add 'id-token: write' to the workflow permissions so the OIDC token can
actually be minted.
CODECOV_TOKEN is still honored when present; OIDC is the fallback that
removes the need for a repo admin to provision a secret.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PR coverage uploads now succeed (since 7813ef0 + fcb411a), but Codecov still wasn't posting per-PR comments because: 1. The repo had no codecov.yml, so Codecov fell back to its old defaults (no explicit comment layout, no flags config). 2. The Codecov GitHub App has to be installed on microsoft/FLAML before any comments can be posted -- this is an org-admin action that must be done via https://github.com/apps/codecov (the workflow can't bootstrap it). This commit covers (1). Once a maintainer installs the Codecov GitHub App per (2), every PR will get a comment matching the standard layout (coverage delta table + flags + impacted files + footer link to Codecov). The config also defines: * coverage.status.project (target=auto, threshold=1%) -- a soft project-coverage status check * coverage.status.patch (target=70%, informational=true) -- patch coverage tracked but non-blocking until the team gets used to it * coverage.range '60...95' -- color thresholds for the comment * flag 'unittests' -> paths: flaml/ -- matches the flag the workflow uploads (see .github/workflows/python-package.yml) * ignore patterns for test/, notebook/, website/, setup.py, flaml/version.py, and flaml/autogen/ (the latter is legacy code that has moved to microsoft/autogen) * codecov.notify.after_n_builds: 1 + wait_for_ci: true so the comment appears as soon as the single combined upload finishes (the Build workflow already aggregates per-job coverage shards into one report) Validated against https://codecov.io/validate (200 / 'Valid!'). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov was processing uploads (status 200) and computing the PR comparison correctly (base 65.76% -> head 84.38%, +17.4%), but codecov-commenter was never posting a PR comment. Simplifying the config to a minimal layout (no codecov.notify overrides, drop flag-paths mapping and carryforward toggles) so we match what microsoft/SynapseML uses (no codecov.yml at all), which reliably gets a codecov-commenter comment on every PR. Removed: - codecov.notify (after_n_builds, wait_for_ci, require_ci_to_pass) -- defaults are equivalent and known to work - comment.behavior, require_base, require_head, show_carryforward_flags -- any of these may have been suppressing the comment in combination - flags.unittests block -- inferred automatically from the upload Kept: - coverage.status.project / patch defaults - comment.layout + require_changes:false - ignore patterns for tests/notebooks/website/etc. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mirror the exact codecov-action invocation that microsoft/physical-ai- toolchain uses (codecov-action@v6 + a 'name' parameter), which reliably produces a codecov-commenter PR comment on every PR. Our v5 invocation uploads + computes the comparison successfully (verified in Codecov API), but no codecov-commenter comment is being posted on PR #1545 even after CI passes. The 'name' field is what shows up in the Codecov 'sessions' table on the PR page and is documented as required for the notification engine to route the comment correctly when a single repo has multiple upload sources (we have 11 build matrix entries that all funnel into one combined coverage.xml). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CODECOV_TOKEN secret was just added to the repo. Trigger a full CI cycle so the codecov-action can pick it up and authenticate the upload explicitly (instead of falling back to OIDC). With an explicit token, codecov-commenter should reliably post a PR comment on completion -- this is how SynapseML/physical-ai-toolchain reliably get comments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The codecov-action@v6 logic prefers OIDC when both `use_oidc: true` and an explicit token are set: 'Token set from env' (CC_OIDC_TOKEN) wins over 'Token set from input' (CODECOV_TOKEN). The upload log on the prior run confirmed this -- Token length: 2048 (an OIDC JWT), not the ~10-char repo upload token from Codecov's settings page. OIDC uploads succeed (status 200, comparison computed, ci_passed=true) but for this repo they don't trigger the codecov-commenter PR comment. Forcing the explicit repo-scoped upload token makes Codecov treat the upload as 'owner-authenticated', which is what reliably unlocks the notification path on PRs (matches what microsoft/SynapseML does). Also dropped the now-unused 'id-token: write' workflow permission. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov upload to the dashboard works fine (CODECOV_TOKEN auth, status 200, coverage 84.39% recorded), but codecov-commenter has been silent on this repo since Feb 2024 even with all four config variants tried (custom yml, default yml, OIDC, explicit token). Rather than wait on Codecov support to refresh their internal repo state, post the coverage comment directly via GITHUB_TOKEN using MishaKav/pytest-coverage-comment. Codecov upload remains intact -- the dashboard at app.codecov.io continues to receive uploads for trend tracking and PR comparison, codecov.yml still defines status checks. Only the in-PR comment is now produced by the new action. Changes: - pull-requests: write workflow permission (required so GITHUB_TOKEN can comment on PRs). - coverage report -m output is now tee'd into pytest-coverage.txt -- this is the text format MishaKav/pytest-coverage-comment expects. - New 'Post coverage comment to PR' step pinned to @main; runs only on pull_request events when the coverage file exists. unique-id-for- comment ensures the action updates its existing comment in place rather than spamming on every CI run. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The notspark CI jobs were taking ~75-100 min wall time, dominating the entire CI cycle. Parallelize them across 2 worker procs using pytest-xdist to roughly halve wall time without CPU oversubscription. Why -n 2 (not -n auto / -n 4): - GitHub-hosted runners have 4 vCPU. - lightgbm / xgboost / sklearn / openblas all use internal threading. - 2 pytest workers x ~2 internal threads each fits 4 vCPU well; 4 workers would oversubscribe and likely hurt wall time. Why --dist=loadfile: - Tests in the same file often share heavy module-level imports (transformers, torch, prophet, etc). Keeping them in the same worker avoids re-importing those per test. Why spark stays serial: - SynapseML's SparkSession is a single global JVM instance and the Spark workers themselves already parallelize work. Pytest-level parallelism would contend on the same JVM, hurting rather than helping. Spark jobs already run in ~20 min. Coverage in xdist worker subprocesses: - Coverage.py needs explicit subprocess instrumentation -- when pytest-xdist spawns workers, they don't inherit coverage from the parent. Add a coverage_subprocess.pth file in site-packages that invokes coverage.process_startup(), gated by the COVERAGE_PROCESS_START env var (set per test step). - .coveragerc already sets parallel=true, so each worker writes its own .coverage.<host>.<pid>.<rand> shard which we already combine. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Two distinct failures showed up after enabling pytest-xdist on
notspark:
1) MLflowIntegration PicklingError in test_forecast.py / test_score.py
/ test_notebook_example.py:
_pickle.PicklingError: Can't pickle <class 'flaml.fabric.mlflow.MLflowIntegration'>:
it's not the same object as flaml.fabric.mlflow.MLflowIntegration
Root cause: test/fabric/test_mlflow_coverage.py was calling
importlib.reload(flaml.fabric.mlflow) in-process to test the
pyspark-missing import fallback. After reload, the class object
bound at flaml.fabric.mlflow.MLflowIntegration is brand new --
different identity from the one already imported into
flaml.automl.automl via 'from flaml.fabric.mlflow import
MLflowIntegration'. Any pre-existing AutoML instances pickle-fail
because pickle's class lookup-by-qualname returns the post-reload
class, mismatching obj.__class__.
With serial pytest, automl/* runs before fabric/* (lexical order)
so the reload happens after all AutoML pickling. Under
--dist=loadfile, files distribute non-deterministically across
workers and the order can interleave.
Fix: rewrite the test to spawn a fresh subprocess instead of
reloading the module in-process. The subprocess can mutate
sys.modules freely without polluting the parent worker.
2) JAVA_GATEWAY_EXITED on test/automl/test_extra_models.py:
The file has pytestmark = pytest.mark.spark so all tests would
be deselected by -m 'not spark', but pytest still IMPORTS the
module during collection -- and the module's top-level code
calls setup_spark_for_tests('MyApp'), starting a SparkSession.
Two pytest-xdist workers each starting their own SparkSession
collide on the JVM gateway port.
Fix: add --ignore=test/automl/test_extra_models.py to the
notspark pytest invocation. The spark variant still picks it up
(spark step doesn't ignore test/automl).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Previous attempt (tee'd 'coverage report -m' into pytest-coverage.txt) was rejected by MishaKav with 'Coverage file ... has bad format or wrong data' because the action's text-mode parser also requires the pytest test-session summary line (e.g. "=== N passed in T s ===") which plain 'coverage report' doesn't emit. MishaKav supports an alternative input pytest-xml-coverage-path that takes a Cobertura XML coverage file directly -- the same one we already generate for the Codecov upload. Switch to that and drop the pytest-coverage.txt artifact. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The previous commit accidentally duplicated 'unique-id-for-comment' in the action's 'with:' mapping, which the check-yaml pre-commit hook caught: found duplicate key 'unique-id-for-comment' with value 'pytest-coverage-comment' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Warning Your comment is too long (maximum is 65536 characters), so the coverage report was not added. See the job log for how to reduce it. |
## Summary Preinstall XGBoost 3.2 with an explicit ARM64 CMake generator platform in the Windows ARM64/Python 3.11 matrix entry. Verify a native import and fit/predict before the general dependency installation, and retain a workflow regression assertion. ## Prompting Intent Finish validating PR #1545, fixing hosted CI failures while preserving the existing Windows ARM64 coverage and public installation defaults. ## Linked Sources - PR: #1545 - Failed native import: https://github.com/microsoft/FLAML/actions/runs/39075717540/job/117522704250 - Successful newer ARM64 wheel path: https://github.com/microsoft/FLAML/actions/runs/39075717540/job/117522704262 - XGBoost source build logic: https://github.com/dmlc/xgboost/blob/v3.2.0/python-package/packager/nativelib.py - CMake platform environment contract: https://cmake.org/cmake/help/latest/envvar/CMAKE_GENERATOR_PLATFORM.html - Review and CI evidence: reviews/pr-1545/task-1545-attempt-1-stage-attempt-1-review-1-gpt-6.1-sol.md ## Rationale The compatible Python 3.11 source release invokes a Visual Studio generator without selecting its target architecture, producing an x64 DLL under an ARM64 wheel name. Native binary wheels now require Python 3.12. Building for ARM64 preserves the matrix entry rather than hiding it with an exclusion or switching to an emulated Python architecture. CMake applies its platform environment default only when its generator environment is also set, so both variables are provided. Step-scoped settings avoid affecting LightGBM and other unrelated builds; no-cache installation avoids reusing the incorrectly targeted wheel. The smoke check and native hosted job remain the authoritative architecture validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Replace the insufficient environment-only source-build override with explicit CMake ARM64 configuration of the public XGBoost 3.2 source. Validate built and installed PE machine headers, then run the native fit/predict smoke before the full test dependency installation. ## Prompting Intent Complete the CI correction for PR #1545 without dropping Windows ARM64 Python 3.11 coverage or accepting an incorrectly targeted native library. ## Linked Sources - PR: #1545 - Failed environment-only attempt: https://github.com/microsoft/FLAML/actions/runs/39081234773/job/117538403938 - Public native-build configuration: https://github.com/dmlc/xgboost/blob/v3.2.0/CMakeLists.txt - Python packaging library lookup: https://github.com/dmlc/xgboost/blob/v3.2.0/python-package/packager/nativelib.py - Retained validation evidence: reviews/pr-1545/task-1545-attempt-1-stage-attempt-1-review-1-gpt-6.1-sol.md ## Rationale The previous source install completed but produced a library that still failed native loading. Explicit -A ARM64 and PE machine checks remove ambiguity about the configured and packaged target. Building CPU-only without OpenMP avoids an additional architecture-specific runtime dependency in this compatibility job. The scoped job consumes the built library through XGBoost's supported local-library packaging path; other platforms and package requirements are unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Select Visual Studio 18 2026 for the explicit native ARM64 XGBoost build, matching the actual hosted Windows ARM64 image. Keep architecture and installed-binary checks unchanged. ## Prompting Intent Finish the native ARM64 Python 3.11 CI correction for PR #1545 without dropping platform coverage or weakening the native validation gate. ## Linked Sources - PR: #1545 - Generator failure: https://github.com/microsoft/FLAML/actions/runs/39083147989/job/117544325335 - Exact image manifest: https://github.com/actions/runner-images/blob/win11-vs2026-arm64/20261013.183/images/windows/Windows11-VS2026-Arm64-Readme.md - Image migration notice: actions/runner-images#14602 - Review evidence: reviews/pr-1545/task-1545-attempt-1-stage-attempt-1-review-1-gpt-6.1-sol.md ## Rationale The rolling windows-11-arm label now provides Visual Studio Enterprise 2026, not the 2022 instance selected by the older package build logic. The image manifest confirms both the installed generator and ARM64 compiler components. Using that verified generator is preferable to installing another toolchain or relying on fallback compilers that produced an incompatible DLL. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Use DMatrix/train/predict for the early native ARM64 smoke rather than XGBClassifier, and test the same operation with sklearn unavailable. ## Prompting Intent Finish CI validation of PR #1545 while keeping the native ARM64 architecture and fit/predict checks ahead of the general test dependency installation. ## Linked Sources - PR: #1545 - Native build/import evidence and smoke failure: https://github.com/microsoft/FLAML/actions/runs/39084096347/job/117547238970 - Retained evidence: reviews/pr-1545/task-1545-attempt-1-stage-attempt-1-review-1-gpt-6.1-sol.md ## Rationale The explicit Visual Studio 2026 ARM64 build now produces and imports the correctly targeted DLL. Its early smoke ran before sklearn was installed, so invoking the optional sklearn wrapper failed for an unrelated dependency. The core API exercises the same native training and prediction boundary without changing installation order or weakening architecture verification. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Merge public main through 386ff40 into the existing consolidation branch. Resolve five conflicts while preserving upstream seasonal forecasts, training-log append behavior, datetime preprocessing, portfolio isolation, search-space fixes, and the public dependency policy. Address introduced and tightly coupled review findings: use the fitted calendar for integer forecasts, reject malformed prediction grids before backend calls, measure forecast validation transforms without charging training history, retain nullable and wide time indexes with bounded-memory gcd calculation, revalidate Spark casts on the full column, and keep public SearchState AutoFE disabled by default. Strengthen append/non-resume, missing-class, lag-bound, exported-input, and conversion regression coverage. ## Prompting Intent The engineer asked to use review-code on PR #1545, make needed changes, push the existing upstream branch, and make the code ready for merging. Preserve ordinary public installs/defaults, enable Fabric behavior explicitly or through local runtime detection, and do not merge or bypass human review approval. ## Linked Sources - Current PR and discussion: #1545 - Public main: 386ff40 - Seasonal forecast definitions: #1611 - Safe training-log append: #1615 - Panel time-index steps: #1636 - Missing datetime preprocessing: #1650 - Pandas preprocessing compatibility: #1648 - Fresh review decision and dispositions: reviews/pr-1545/task-1545-attempt-2-stage-attempt-1-review-1-grok-4.7.md - All six fresh lenses and two focused verifications: reviews/pr-1545/task-1545-attempt-2-*.md - Runtime/API contracts: flaml/fabric/README.md ## Rationale The PR head was unchanged and previously CI-green, but current main introduced 16 focused commits and new conflicts. A fresh Medium follow-up used the current catalog's complementary grok-4.7 reviewer at xhigh reasoning for six concurrent lenses, then independent correctness and coverage verification. Share partition transformation logic so forecast timing reflects held-out work without changing transformed output or training-only operations. Preserve public calendar and lag semantics rather than retaining obsolete PR-only expectations. Keep threshold-based coercion explicit, but prevent a biased Spark sample from choosing a cast unsupported by the full column. All eight skill-owned reports ship with the changes and retain their original findings and verdicts. Current-base AST comparisons and dependency probes distinguish inherited concerns and unsubstantiated claims from merge regressions; no clean reviewer sign-off or unrelated lifecycle/sampling redesign is claimed. This is maintenance of an existing GitHub PR with no supplied ADO TaskId; its existing infrastructure labels and GitHub sources provide the work linkage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Merge public main through 46bce0c into PR #1545 and resolve the version conflict using the exact OSS 2.8.0 version file, not the internal post-release version. Preserve the upstream R2 target-order correction and inline Spark backend isolation. Audit the newer internal main and port its missing nullable/DST and delayed seasonal-forecast regressions. Refine the panel test gate to skip only the demonstrated legacy dependency combination, retaining stronger public prediction assertions and isolated artifact paths. ## Prompting Intent The engineer asked to update PR #1545 because FLAML Internal has new commits. They explicitly required test/automl/test_rouge_metric.py to keep the OSS version: the internal test was simplified only because some internal environments do not have rouge installed. ## Linked Sources - Consolidation PR: #1545 - Public synchronization target: 46bce0c - Public release update: #1658 - Spark backend correction: #1657 - Time-series R2 correction: #1654 - Complete OSS ROUGE test: https://github.com/microsoft/FLAML/blob/46bce0ce989aae0271e68e5daac5b8a9b0522b87/test/automl/test_rouge_metric.py - Internal main audited through 7d7ab67afb8bb453a7783898e6a4f42a99b616ff ## Rationale Most new internal library changes are public-main synchronization or are already implemented more completely in this branch. Merge public history and selectively carry the missing regressions rather than merging unrelated internal Git history or overwriting public runtime contracts. Keep the real rouge_score Score/AggregateScore coverage unchanged instead of copying the internal SimpleNamespace workaround. Preserve public step-index semantics, estimated smoothing initialization, optional integration defaults, and existing quality checks. Exclude internal release tooling, delivery pipelines, Conda/certificate changes, timeout-only policy, and the .post1 suffix. This is maintenance of the existing GitHub PR with no supplied ADO TaskId. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Move the three existing Linux Spark test profiles into a Docker Compose standalone cluster with a separate driver, master, and two workers. Keep the existing Python/Spark version pairs and check names, and leave the non-Spark and public-install matrices unchanged. Use one image for every node, preserve test/forecast dependencies with CPU PyTorch, share model/MLflow artifacts, and reserve executor capacity for notebook-created applications. Fail before test collection unless Spark tasks reach two distinct worker containers with matching runtimes and joblib work also executes on those workers. Collect logs, JUnit results, and mapped coverage, and always tear down only the current job's Compose project. Make test-only session helpers honor an explicitly configured cluster while preserving their local defaults. Add regressions for master precedence and rejection of local, driver-only, and incomplete cluster execution. ## Prompting Intent The engineer asked to update FLAML's GitHub pipeline so PySpark tests run on a real container-based Spark cluster, inspect the referenced thinkall/joblib-spark-fabric workflow, and open a correction PR there only if that reference is incorrect. ## Linked Sources - FLAML consolidation PR: #1545 - Reference workflow: https://github.com/thinkall/joblib-spark-fabric/blob/80a3d6bd759d681b1eb88136e799c2d6928abf9a/.github/workflows/main.yml - Reference topology: https://github.com/thinkall/joblib-spark-fabric/blob/80a3d6bd759d681b1eb88136e799c2d6928abf9a/test/containers/compose.yml - Reference distributed assertions: https://github.com/thinkall/joblib-spark-fabric/blob/80a3d6bd759d681b1eb88136e799c2d6928abf9a/test/test_container_cluster.py - Reference passing execution evidence: https://github.com/thinkall/joblib-spark-fabric/actions/runs/43582770713/job/132410841235 ## Rationale The reference correctly proves distributed Spark and joblib execution on three distinct worker containers, so no correction PR is needed there. Reuse its shared-image and network-alias approach rather than containerizing local mode. FLAML additionally needs shared native-model artifacts, notebook application headroom, and coverage path translation. Java 17 supports the retained Spark 3.5 and 4.x profiles; avoiding CUDA packages reduces unused image size. Keep runtime library defaults, public installation behavior, and the complete OSS ROUGE tests unchanged. This is CI maintenance of an existing GitHub PR; no ADO TaskId was supplied. Actual container execution requires hosted CI because this shared workstation has no running Linux Docker daemon. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Fix the generated custom learner and metric module distribution exposed by the new container matrix. The existing implementation wrote code in a single scheduled task, leaving the second executor without the module required by standard pickle when loading broadcast AutoML state. Publish content-addressed code ZIPs with SparkContext.addPyFile instead. Spark owns and distributes the archives to existing and future executors. The custom-code package discovers newly added archives dynamically so reused Python workers retain the established flaml.tune.spark module names. Preserve the driver-side source file, return path, optional-Spark behavior, and reload semantics; different code versions use distinct archives. Add isolated-worker pickle and update regressions, and strengthen the live Spark test to load a unique generated learner through broadcast pickle on both containers. Correct a sampling test that assumed sampleBy must return exactly half of four rows: check row conservation, disjointness, and per-label fractions on a larger balanced sample instead. ## Prompting Intent The engineer asked for FLAML's PySpark tests to run on a real container-based Spark cluster. Address actual failures revealed by isolated executors without skipping custom learner coverage, sharing the driver's library installation, or weakening distributed execution checks. ## Linked Sources - FLAML consolidation PR: #1545 - Container implementation: d7be038 - Spark 4.1 failure and two-worker execution proof: https://github.com/microsoft/FLAML/actions/runs/45166915179/job/137666113851 - Spark 3.5 custom-module and notebook failures: https://github.com/microsoft/FLAML/actions/runs/45166915179/job/137666113485 - Spark 4.0 custom-module and sampling failures: https://github.com/microsoft/FLAML/actions/runs/45166915179/job/137666113890 - Original distribution implementation: https://github.com/microsoft/FLAML/blob/d7be038a7a110b4afb4d76ec215e0e478b72a2ea/flaml/tune/spark/utils.py ## Rationale Increasing partition counts cannot guarantee every present or future executor receives a file and can deadlock under barrier scheduling when capacity changes. Use Spark's file-distribution mechanism instead, while retaining the qualified module names that standard broadcast pickle requires. Content addressing avoids Spark's restriction on overwriting an already-registered file path. The namespace extension is limited to explicitly generated FLAML code archives; ordinary package paths still take precedence. Public defaults and the complete OSS ROUGE test remain unchanged. This is a tightly coupled correctness fix for the existing CI-maintenance PR, with no supplied ADO TaskId. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Select Python 3.13 explicitly in the pre-commit workflow instead of inheriting the hosted runner's default interpreter. Keep all existing hook versions, formatting rules, and cache separation unchanged. ## Prompting Intent The engineer asked to update the GitHub pipeline for container-based Spark testing. Complete that update with working required checks, rather than leaving the new PR head blocked by an unrelated runner-image change. ## Linked Sources - FLAML consolidation PR: #1545 - Formatter failure: https://github.com/microsoft/FLAML/actions/runs/45173124106/job/137687429775 - Existing hook configuration: https://github.com/microsoft/FLAML/blob/0d18e993144583b4e92b2eb703f465a06c60f9ed/.pre-commit-config.yaml ## Rationale The hosted default moved to Python 3.14, where the pinned pyupgrade version fails while importing the removed ast.Str alias. Python 3.13 is already in FLAML's supported matrix and runs the current hooks successfully. Pin the runtime instead of expanding this CI task into a repository-wide formatter upgrade or suppressing a required check. No ADO TaskId was supplied for this maintenance change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Update the existing workflow metadata tests to count the unchanged fourteen test profiles across the non-Spark and container jobs instead of assuming one combined matrix. Continue checking the three ARM64 profiles, exact Spark version pairs, pinned action references, and both coverage dependencies. Trace Spark-only dependency pins through the shared Compose image and Dockerfile rather than looking for removed host-side pip steps. Extend the existing executable missing-coverage guard tests to the new Spark job. ## Prompting Intent The engineer requested a real container-based Spark pipeline. Keep its directly dependent validation contracts accurate without dropping the original platform, dependency-isolation, or coverage invariants. ## Linked Sources - FLAML consolidation PR: #1545 - Stale metadata assertion failures: https://github.com/microsoft/FLAML/actions/runs/45173681451/job/137689724898 - Passing Spark 3.5 container suite: https://github.com/microsoft/FLAML/actions/runs/45173681451/job/137689724607 - Passing Spark 4.0 container suite: https://github.com/microsoft/FLAML/actions/runs/45173681451/job/137689724637 - Passing Spark 4.1 container suite: https://github.com/microsoft/FLAML/actions/runs/45173681451/job/137689724396 ## Rationale All three container Spark suites passed, but legacy metadata tests still expected fourteen entries inside the old build job and four host pip steps. Update those structural assumptions to the new layout while retaining and strengthening their intended guarantees. This commit changes tests only; no runtime, dependency, or pipeline execution behavior is weakened. No ADO TaskId was supplied for this maintenance change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Give the train/test split regression one coalesced, materialized input snapshot instead of reevaluating a shuffle independently for its lazy output branches. Remove the redundant pandas-on-Spark reshuffle and release the fixture cache in a finally block. Retain all assertions for output types, exact row conservation, disjointness, complete row coverage, and per-label sampling fractions. ## Prompting Intent The engineer requested reliable tests on a real container Spark cluster. Stabilize the integration fixture exposed by executor scheduling differences without skipping the test or weakening the split contract. ## Linked Sources - FLAML consolidation PR: #1545 - Re-evaluated sampling failure: https://github.com/microsoft/FLAML/actions/runs/45178756760/job/137707153134 - Existing strengthened sampling regression: https://github.com/microsoft/FLAML/blob/e6552c88b73cf6bc0d31819a79a342eac09a2a8a/test/spark/test_utils.py ## Rationale A fixed seed does not stabilize row order produced by independently reevaluated shuffles. Both lazy split branches must observe the same fixture snapshot before disjointness can be tested reliably across containers. Materialize only the bounded test input rather than changing public sampling semantics or discarding the new assertions. No ADO TaskId was supplied. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Merge public main through f2427d8, retaining upstream Java 17 and formatter Python 3.12. Address verified consolidation review findings across optional installs, forecast partitions and pipeline refits, numeric conversion, MLflow ownership and asynchronous artifacts, runtime-gated diagnostics, and immutable Spark code revisions. Restore public ensemble coverage, exercise public/Fabric Spark-MLflow modes and offline NLP profiles, and make benchmarks and notebook outputs reproducible. ## Prompting Intent The engineer requested a complete internal-feature parity audit and full review-code review of PR 1545, fixes sufficient for merge readiness, and a fresh synchronization with GitHub main. Preserve public installs/defaults, explicit or locally detected Fabric activation, public version 2.8.0, estimated smoothing, and the unchanged OSS ROUGE test. Do not commit the new review outputs or merge unrelated internal Git history. This is a maintenance follow-up to the existing PR; no separate issue or ADO TaskId was supplied. ## Linked Sources - Consolidation request and PR: #1545 - Upstream runtime pins: #1672 - Public main: f2427d8 - Container reference: https://github.com/thinkall/joblib-spark-fabric/blob/80a3d6bd759d681b1eb88136e799c2d6928abf9a/.github/workflows/main.yml - Public runtime/API contracts: https://github.com/microsoft/FLAML/blob/lijiang/open-source-internal-merge/flaml/fabric/README.md - Fresh review-code findings are retained in session-owned evidence, not this commit. ## Rationale Keep the library's OSS contracts while making Fabric-specific behavior explicit and reversible. Training-only preprocessing and model-owned state avoid validation leakage and stale exports. Independent run ownership and captured trial models prevent cross-run artifact writes; dependent work is drained before fit completes. Revision-specific Spark classes preserve old pickles while reused workers receive new implementations. Least-privilege CI and bounded fixtures retain strong coverage without private delivery infrastructure or generated review reports. Local validation passed 493 affected tests, 56 offline NLP tests, and 40 packaging/OSS ROUGE tests with 20 subtests. All-file pre-commit, actionlint, 2.8.0 wheel/sdist inventory, and four isolated installation profiles passed. Fresh hosted CI and the bounded targeted review follow-up remain pending; this commit does not claim that PR 1545 is already merge-ready. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Keep structural time columns out of feature imputation so panel time_idx retains its integer dtype through search, final refitting, and prediction. Add four real AutoML boundary regressions covering explicit validation, AutoFE exclusion, and both panel task spellings. Select Matplotlib's Agg backend in CI and the isolated autolog test subprocess to avoid Windows Tk destruction on logging threads. ## Prompting Intent Continue PR 1545 until its migrated behavior, full review, and hosted checks are ready for human approval. Fix CI errors without weakening tests, changing public runtime defaults, simplifying OSS ROUGE, or committing new review reports. This maintenance follow-up has no separate supplied issue or ADO TaskId. ## Linked Sources - Consolidation PR: #1545 - Parent merge: 1fc558b - Panel failure: https://github.com/microsoft/FLAML/actions/runs/45602525450/job/139164819245 - Windows Tk failure: https://github.com/microsoft/FLAML/actions/runs/45602525450/job/139164819374 - Passing expanded Spark 3.5.1 suite: https://github.com/microsoft/FLAML/actions/runs/45602525450/job/139164819359 - Passing expanded Spark 4.0.1 suite: https://github.com/microsoft/FLAML/actions/runs/45602525450/job/139164818898 - Passing expanded Spark 4.1.0 suite: https://github.com/microsoft/FLAML/actions/runs/45602525450/job/139164819293 ## Rationale Casting only the generated holdout partition repaired search but left the eligible full-training snapshot with a float index. Protect the structural field at preprocessing rather than changing final-refit data eligibility or weakening PyTorch Forecasting's integer-index requirement. Headless plotting is a test-process setting, not a change to library users' backends. The four regression cases reproduced the dtype failure before the fix. Afterward, 100 nearby contracts passed; the actual TFT panel forecasting test passed using the existing Windows Python 3.10 environment, as did all eight real global/flavor autolog restoration cases. Package metadata, actionlint, all-file pre-commit, and a fresh 2.8.0 build passed. Fresh hosted checks and the remaining targeted High review are still required. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
…indings ## Summary Resolve the actionable targeted review findings in the existing FLAML consolidation PR. Correct final and per-trial MLflow model publication, forecast preprocessing/replay, exact numeric conversion, custom Spark code distribution, optional-dependency contracts, and configuration reporting. Strengthen real artifact, installed-package, worker-coverage, NLP execution, and deterministic replay checks without changing the public default profile. This is maintenance of existing PR #1545; no new feature work item is created. ## Prompting Intent The engineer asked for a full review-code review of PR #1545, fixes for verified issues, and continued work toward human merge approval. Preserve public installs/defaults, explicitly enable Fabric-only behavior, keep the OSS ROUGE test unchanged, and do not commit new review outputs. Retain the latest public main merge and the complete internal-feature migration audit. ## Linked Sources - Consolidation PR and existing review context: #1545 - Public main merge source: f2427d8 - Parent-head CI: https://github.com/microsoft/FLAML/actions/runs/45613261008 - Container reference workflow: https://github.com/thinkall/joblib-spark-fabric/blob/80a3d6bd759d681b1eb88136e799c2d6928abf9a/.github/workflows/main.yml - Driving instructions and session-only High-review evidence: Copilot session b0e4942d-f489-4b42-8a90-097ede4e88f7 ## Rationale Keep fluent MLflow model writes on the run-owning thread while retaining client-addressed asynchronous metadata updates. Join distributed trials by stable identity instead of start order, and restore the actual worker's autolog state. Preserve the final serving model and retained model history. Treat forecast timestamps, absolute panel indexes, and target names as structural data. Keep target-free feature fitting and log replay independent of validation rows. Preserve inherited feature-off label-vocabulary behavior, estimated smoothing, AutoFE-off defaults, and the unchanged OSS ROUGE test. Check original numeric representations before narrowing. Put generated Spark modules in a private archive prefix and publish aliases only after successful distribution. Require reused interpreter identity and measured worker coverage rather than accepting driver-only files or host-name proxies. The final affected suite passed 791 tests and 20 subtests with 12 skips. Offline NLP passed 56 tests; all four isolated wheel profiles, artifact inventory, actionlint, and all-file pre-commit passed. New Linux container checks remain pending publication. The parent CI's Ubuntu 3.13 timeout is not claimed fixed: add verbose and faulthandler diagnostics without raising the 180-minute limit. The bounded High review is not claimed clean for post-review source changes; retain its original findings outside the commit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Keep MLflow's best-effort handling of unavailable optional integrations when restoring worker configuration. Preserve disabled flavor state without importing an unavailable backend. Correct three mocked Tune wrappers to consume trial identity metadata, and compare Spark label/count associations without requiring an undefined ordering between equal-frequency labels. ## Prompting Intent The engineer asked to continue reviewing and correcting PR #1545 until it is ready for human approval, preserving OSS defaults and the original ROUGE test. Fix failures exposed by the fresh platform/container matrix without weakening meaningful assertions or committing new review outputs. This is maintenance of the existing PR, not a new feature work item. ## Linked Sources - Consolidation PR: #1545 - Current CI: https://github.com/microsoft/FLAML/actions/runs/45654950980 - ARM optional-backend failure: https://github.com/microsoft/FLAML/actions/runs/45654950980/job/139348999812 - Spark frequency-tie failure: https://github.com/microsoft/FLAML/actions/runs/45654950980/job/139348998883 - Successful Spark 4.0.1 profile: https://github.com/microsoft/FLAML/actions/runs/45654950980/job/139348999472 - Driving instructions and retained review evidence: Copilot session b0e4942d-f489-4b42-8a90-097ede4e88f7 ## Rationale MLflow global autolog can swallow an optional framework setup error but leave an enabled-looking configuration without its globally-configured marker. Replaying that identical state as an explicit flavor request turns the best-effort failure into a hard failure. Avoid that duplicate call after global configuration; still apply genuinely different explicit settings and preserve original objective/restoration error handling. The actual Transformers-without-PyTorch failure was reproduced locally and then passed with the fix. A framework-independent regression uses MLflow's real registration machinery to create the same partial state. Disabled backend tests also fit a healthy estimator to verify global logging behavior. The Tune fakes now require and consume the same private trial-ID argument as the real wrapper; raw user objectives still receive only their configuration. Spark value_counts guarantees frequency ordering, not a deterministic order for tied labels. Preserve exact counts, cardinality, and label/count pairing rather than changing library ordering or relaxing the check to mere shape. Validation passed: 265 affected MLflow/Tune tests; 7 real optional-backend and partial-state cases; 1 real Spark label/count test; all-file pre-commit; and a rebuilt 2.8.0 wheel/sdist. Hosted checks on the next head remain required. The earlier Ubuntu 3.13 timeout did not recur in this run, but its underlying cause is not claimed resolved. No new independent review pass was performed after the already exhausted High follow-up allowance. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Replace the 100-million-value logistic-regression smoke fixture with a small deterministic real fit and a prediction assertion. Exercise timeout and memory-error fallback explicitly on tiny data, preserving the original budget-path coverage without requiring native optimization to be interrupted. No library behavior, dependency, workflow timeout, or public default changes. ## Prompting Intent The engineer asked to keep correcting PR #1545 until it is ready for human review and merge, while preserving public behavior and keeping new review outputs out of commits. Diagnose the last recurring CI timeout rather than raising the 180-minute limit or skipping the affected estimator. This is maintenance of the existing PR, not a new feature work item. ## Linked Sources - Consolidation PR: #1545 - Current matrix: https://github.com/microsoft/FLAML/actions/runs/45665181111 - Diagnostic timeout log: https://github.com/microsoft/FLAML/actions/runs/45665181111/job/139385702464 - Driving instructions and retained evidence: Copilot session b0e4942d-f489-4b42-8a90-097ede4e88f7 ## Rationale The new faulthandler output locates the recurring Ubuntu/Python 3.13 stall inside test_lrl2's sklearn/SciPy L-BFGS dense matrix calculation. Its 100000-by-1000 float fixture needs 800 MB before generation, training copies, and concurrent-worker overhead. A 1e-5 budget does not provide portable hard preemption of that native work. Retain actual logistic-regression training on a seeded 200-by-8 fixture. Separately inject MemoryError and TimeoutError through the normal resource context and assert budget forwarding, a fitted DummyClassifier, and its majority-class predictions. This tests the intended fallback contract more directly without changing production resource enforcement. The four focused cases, including the last queued Tune stop case, passed on both existing Python 3.13 and Python 3.10 stacks. All-file pre-commit passed. The previous head passed every other matrix job; a new hosted run remains required to confirm removal of the timeout. This commit changes one test file only, so existing library artifact evidence remains applicable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
…publication ## Summary Address all 35 grouped findings from the explicitly authorized additional targeted review of PR #1545, together with the independently reproduced CI diagnostic crash. Preserve public defaults and the unchanged OSS ROUGE test. This maintains the existing consolidation PR; no new feature task is created. The PR retains its python and github_actions labels. ## Prompting Intent The engineer requested another review-code review, fixes for verified issues, and continued work toward human merge approval. The engineer explicitly authorized one additional targeted cycle, increasing the same High run's follow-up limit from one to two. Preserve earlier evidence, keep new review reports out of commits, retain optional Fabric behavior and public installs, and do not claim a clean review when required evidence is missing. ## Linked Sources - Consolidation requirements and review context: #1545 - Reviewed public head: 630f30c - Reviewed public base: f2427d8 - Previous hosted validation: https://github.com/microsoft/FLAML/actions/runs/45697958897 - Original Windows diagnostic crash: https://github.com/microsoft/FLAML/actions/runs/45697958897/job/139500224772 - Upstream traceback-dumper race: python/cpython#140815 - Upstream frame-validation fix: python/cpython#140921 - Driving instructions and session-only review evidence: Copilot session b0e4942d-f489-4b42-8a90-097ede4e88f7 ## Rationale Associate Tune results and MLflow runs by trial identity instead of timestamps or compacted positions. Preserve explicit driver lineage above unrelated worker runs, handle returned and report-style results, finalize adoption once, and preserve original errors. Register each model version from its own nested run. Refused final publication stays a visible failure, and completed model futures are observed and released once. Store forecast training boundaries in new log records and avoid unused CV splits during full-data replay. Preserve panel group keys and custom integer index names, normalize validation and serving timestamps, propagate detached feature-refit metadata, and learn replacement target decoders. TFT itself is excluded from generic AutoFE; its predictor validates future coordinates and uses backend keys to restore caller order rather than relabeling horizons. Revisit the previously retained near-integer heuristic after reproducing actual measurement loss. Require exact source integrality and decimal round trips, including tiny and ordinary-magnitude fractions. Widen sampled integer candidates safely, retaining malformed-value and signed-range behavior. Distributed label counts remain distributed without importing Spark locally. Use ordered v4 publication archives and revision-aware cached module aliases. Code reverts and unordered late-worker archive lists now select the correct implementation while old pickles retain immutable revision identities. Cache writes publish atomically, tests use owned cache paths, and genuine network unavailability is skipped explicitly instead of hiding corruption. The notebook smoke is bounded and still performs real fitting and reload. Standalone controls on the CI Python/pandas/Arrow versions reproduced native access violations only when the timed traceback dumper was enabled, without importing FLAML. Disable that watchdog only for Windows Python 3.11; retain fatal-error reporting, every test, and the existing 180-minute CI limit. The frozen candidate passed 895 affected tests and 20 subtests with 12 skips, 56 offline NLP tests, all four isolated installed profiles, 33 real Spark dtype cases, distributed-label checks, real TFT training/prediction, and real Ray returned/report-style trials in manual/autolog modes. Wheel and sdist contain the exact 99 library Python files and no review outputs. All-file pre-commit and actionlint passed. Fresh hosted container/platform checks are still required; the additional review retained four issues_found responses and one failed empty-response lens, not a clean independent sign-off. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Use scikit-learn's LIAC-ARFF parser when available to load numeric nominal labels without the pandas parser's string-quote-stripping failure. Preserve the requested dataframe or array format and compatibility with older fetch_openml APIs. Explicitly skip the SDK-only task example when the optional OpenML package is absent, without skipping the dataset fallback or other MLflow coverage. ## Prompting Intent Continue vetting PR #1545, correct CI failures uncovered by the review fixes, preserve public installation behavior and the OSS ROUGE test, and keep new review outputs out of commits. ## Linked Sources - Consolidation and review request: #1545 - Failing hosted validation: https://github.com/microsoft/FLAML/actions/runs/45812820464 - Windows ARM 3.11 diagnostics: https://github.com/microsoft/FLAML/actions/runs/45812820464/job/139884780903 - Windows ARM 3.12 diagnostics: https://github.com/microsoft/FLAML/actions/runs/45812820464/job/139884780680 - Windows ARM 3.13 diagnostics: https://github.com/microsoft/FLAML/actions/runs/45812820464/job/139884780858 ## Rationale Selecting the existing parser at the fallback boundary avoids a global pandas/scikit-learn pin or a broad exception handler that would hide invalid data and cache corruption. Signature detection preserves older supported scikit-learn APIs. Offline regressions exercise the real ARFF parser, both return formats and the pre-parser API; the notebook smoke still fits and reloads a model. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Correct forecast replay boundaries, panel refit metadata, sampled AutoFE class coverage, empty validation, and TFT short-horizon decoding. Harden MLflow trial metrics, remote tracking-store routing, failure cleanup, and Ray reporting compatibility. Complete fallible Spark alias preparation before distribution and add focused regressions for real runtime behavior and network failures. ## Prompting Intent The engineer asked to retry the failed review and continue fixing and verifying PR #1545 until the final change is vetted. Preserve public defaults, the exact OSS ROUGE test, all earlier review evidence, and source-only commits; do not commit new review outputs or hide incomplete review coverage behind green CI. ## Linked Sources - Consolidation, renewed review and correction request: #1545 - Reviewed public candidate: cf58130 - Current candidate's prior hosted baseline: https://github.com/microsoft/FLAML/actions/runs/45818727995 - Independent skill-owned current-source review: five valid reports, 36 overlapping finding rows, preserved outside commits under the engineer's instruction - Runtime compatibility sources: Ray 2.4.0 and 2.49.2 installed APIs, MLflow 2.22.1 tracking behavior, and PyTorch Forecasting 1.5.0 TimeSeriesDataSet implementation ## Rationale Reproduce observable failures before changing contracts. Retain fitted TFT maximum lengths and lag-feature order while bounding each requested decoder origin, rather than silently shifting history or relabeling outputs. Preserve legacy forecast behavior except where recorded boundaries or explicit holdouts remove ambiguity. Keep remote logging in the driver's store without replacing the worker's prior settings or the objective's primary exception. Filter framework metadata instead of narrowing user metrics to one objective. Preserve failed and diagnostic MLflow runs rather than assuming empty metrics mean empty content. Check the actual sampled class vocabulary to prevent mislabelled probability columns. Keep source publication rollback explicit and replace oversized network-dependent grouped-CV smoke data with a bounded real five-fold fit. Real Ray and TFT regressions complement, rather than substitute for, fresh hosted Spark and platform validation and independent fix review. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Preserve exact numeric, label, group and replay identity across AutoFE, exported forecast pipelines and TFT. Make successful-trial selection consistent across local and native Ray analysis, transport final Spark reports explicitly, and coordinate driver alias resolution with successful code publication. Isolate reused workers' MLflow state and finalize only trial-created run-stack entries. Preserve inherited tracking settings, failure status, caller runs, dataset lineage and user-edited metadata. Add behavioral regression assertions and bounded Linux CI for the declared Ray 1.13 and 2.4 compatibility range. ## Prompting Intent The engineer asked to continue reviewing and fixing PR #1545 until the change is vetted for human sign-off. Preserve public defaults and installs, all intended internal library functionality, and the exact OSS ROUGE test. Keep new review outputs outside commits and distinguish pending verification from merge readiness. ## Linked Sources - Consolidation and renewed review request: #1545 - Reviewed candidate: 593a234 - Prior candidate's hosted validation: https://github.com/microsoft/FLAML/actions/runs/45930475009 - Independent skill-owned cycle-four review: 29 overlapping finding rows mapped to 22 correction groups, retained outside commits - Runtime evidence: actual Spark worker reports, Ray 2.4.0 and 2.49.2 trial APIs, MLflow 2.22.1 file stores, and PyTorch Forecasting 1.5.0 decoder contracts ## Rationale Check identity at the final data/learner boundary instead of trusting sampled inference, pre-resampling labels or loss-prone common dtypes. Record panel sort provenance rather than imposing an ordering the original explicit-validation fit did not use. Partition TFT cohorts once without changing fitted lag order. Treat failed trials as ineligible even when they have better intermediate scores. Keep Spark's final-report capture separate from driver scheduler state and nested tuning contexts. Publish driver aliases only after successful distribution. Restore raw nullable tracking state, not just its resolved URI. Keep diagnostic and user-annotated runs unless emptiness is proven. Stop cleanup at existing caller stack entries and preserve objective errors when termination also fails. Exercise declared Ray 1.13 on Linux because no compatible Windows/Python 3.10 wheel exists; do not substitute a version-based skip for compatibility evidence. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
…visions ## Summary Resolve the next review's tracking, publication, data-boundary and regression findings. Carry accepted worker-attempt run IDs through Spark and native Ray, preserve failed and nested diagnostic history, and use current run state for cleanup. Keep ordinal winner summaries and worker fluent state consistent. Persist custom-code commitment across driver restarts, coordinate writers across processes, and release publication locks before importing trusted modules. Preserve worker archive precedence and explicit failure-recovery semantics. Keep panel keys and legacy replay ordering exact, validate AutoFE classes before supervised extraction, reserve normalized feature names when assigning targets, reject overflowing numeric spellings, and exclude failed scores from incumbent plots. Repair declared-Ray test startup and strengthen real behavioral assertions. ## Prompting Intent The engineer asked to keep reviewing and fixing PR #1545 until it is vetted for human sign-off, preserving public defaults, intended internal library features, the exact OSS ROUGE test, and source-only commits. Keep all original findings and failed review evidence, but do not commit new review reports or claim readiness before current-source review coverage and exact-head hosted checks are complete. ## Linked Sources - Consolidation and continuing review request: #1545 - Reviewed candidate: 1c0a78c - Prior-head CI exposing Ray 1.13 fixture startup incompatibility: https://github.com/microsoft/FLAML/actions/runs/45943375368 - Independent review evidence: four valid reports with 31 overlapping rows, plus one retained empty correctness response; all kept outside the commit - Runtime evidence: real MLflow stores, separate Python interpreters, native Ray workers, and Spark worker/dtype regressions ## Rationale Logical trial IDs are insufficient when a worker attempt is replayed. Use the accepted physical run ID rather than completion order, and retain ambiguous or nonwinning attempts instead of overwriting diagnostics. Resolve class vocabulary and structural identities before lossy operations, not after transformation. An in-process registry cannot establish publication state for other interpreters. Persist the committed revision and coordinate writers without holding that lock while executing imports. Keep delivered artifacts after an uncertain state-write acknowledgement; document that file distribution is not a cluster-wide transaction. Treat scheduler stop signals as per-trial control and finish searcher bookkeeping. Honor empty-result failure semantics in native Ray without depending on MLflow. Retain public single-fit shortcuts rather than forcing unused CV validation; the CV regressions exercise actual folds and verify supervised extraction boundaries. Use supported local Ray startup with inherited addresses isolated to the test process. Propagate malformed urllib requests instead of turning them into outage skips. Tests and package checks support these corrections, but do not replace the still-required independent current-source verification and hosted CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
…ecks ## Summary Exclude Ray 1.13's generated warmup_time from objective metrics while retaining an explicitly selected objective of that name. Exercise returned and empty-result objectives through a return-preserving binding on Ray 1.x, whose upstream with_parameters helper discards callback returns. Keep that actual helper in report-style cases and document the upstream limitation. ## Prompting Intent The engineer asked to continue fixing and vetting PR #1545, preserving public installs/defaults and all intended migrated functionality. Resolve real hosted compatibility failures without version-based test skips, relaxed metric checking, third-party closure rewriting, or committed review outputs. ## Linked Sources - Consolidation and continuing review request: #1545 - Exact-head compatibility failure: https://github.com/microsoft/FLAML/actions/runs/45961719854 - Ray 1.13 wrapper implementation: https://github.com/ray-project/ray/blob/ray-1.13.0/python/ray/tune/utils/trainable.py#L399-L425 ## Rationale The hosted job now runs the legacy workers and exposed two distinct boundaries: framework warmup bookkeeping polluted MLflow metrics, and the upstream binding helper discarded returns before FLAML could receive them. Fix the filter and make the tests match the supported upstream API rather than weaken assertions or pretend FLAML can recover a value another callable discarded. Keep all fifteen runtime cases and require fresh Linux Ray 1.13 hosted success. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Resolve the sixth verification cycle's 26 overlapping findings in 20 correction groups. Make adoption non-destructive, preserve native generator/report provenance, honor failed and scheduler-stopped trial outcomes, recover ordered Spark publication after lost acknowledgements, and keep forecast labels, feature names and group dtypes aligned. Correct the Windows ARM zero-duration timing assertion. ## Prompting Intent Continue consolidating the internal FLAML implementation into GitHub PR #1545, preserving public installation/default behavior and the OSS ROUGE tests. Review and fix the change until only human sign-off remains, without committing new review outputs. Apply the engineer's explicit choices: retain all adoption-time runs, document/test fail-closed native-only reporting rather than adding a private backend adapter, and reject training_iteration as a primary objective. ## Linked Sources - Consolidation PR and requirements: #1545 - Current-head Windows ARM failure: https://github.com/microsoft/FLAML/actions/runs/45964684446 - Ray 1.13 initializer: https://github.com/ray-project/ray/blob/ray-1.13.0/python/ray/worker.py - Ray 1.13 return-binding limitation: https://github.com/ray-project/ray/blob/ray-1.13.0/python/ray/tune/utils/trainable.py#L399-L425 - Driving engineer's task-scoped runtime-contract decisions and the independently retained cycle-six review evidence; review artifacts are intentionally uncommitted. ## Rationale MLflow cannot atomically delete a run only if no annotation arrived after the last read, so retention removes that race instead of adding another best-effort check. Accepted-attempt transport uses supported returned/reported values; native-only ambiguity preserves results and diagnostics without guessing artifact ownership. Search algorithms must not learn successful observations from failed trials. Lossless group reconciliation avoids both float rounding and blanket object boxing that breaks ordinary learners and ordered categories. Persistent archive sequence evidence lets successful reverts supersede possibly delivered failures. Keep real backend regressions and explicit platform limitations rather than weakening assertions or claiming historical CI validates this new source. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Remove the 32 tracked Markdown review outputs under reviews/pr-1545 from the PR source tree. Keep the review outputs locally outside the branch instead of including them with the open-source changes. ## Prompting Intent The engineer requested: "Don't commit review outputs to the PR", then identified "reviews/pr-1545 is already committed and pushed, remove it". Remove only that folder's tracked review outputs and publish the cleanup without changing unrelated work. ## Linked Sources - Pull request: #1545 - Published source parent: 6aab2d1 - Validation: pre-commit run --all-files passed; the staged change contains only the requested 32 file deletions. ## Rationale Use a forward deletion commit rather than amending or rewriting published history. Prepare the cleanup in an isolated worktree to preserve unrelated documentation edits, retain local-only backups, and exclude all backups and validation records from the PR. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e76f5adf-2c84-40e1-82ca-6c568f034a8d
## Summary Correct complete MLflow attempt association, exception and backend provenance, native-Ray tracking safety, public metric snapshots and provisional optimizer rollback. Align empty forecast schemas, separate target names and caller time keys. Reject forecast resampling consistently and isolate Spark publication tests. ## Prompting Intent Continue consolidating the internal FLAML implementation into GitHub PR #1545, preserving public installation/default behavior and the exact OSS ROUGE tests. Review and fix the change until only human sign-off remains, without committing review outputs. Apply the engineer's explicit choices: reject forecast/panel resampling, preserve provisional incumbent updates with concurrency-safe rollback, and require transactional tracking for native-Ray worker logging. ## Linked Sources - Consolidation PR and requirements: #1545 - Ray 2.4 worker cleanup: https://github.com/ray-project/ray/blob/ray-2.4.0/python/ray/tune/trainable/function_trainable.py - SQLite URI connections: https://docs.sqlalchemy.org/en/20/dialects/sqlite.html#uri-connections - Driving engineer's task-scoped runtime decisions and independently retained cycle-seven review evidence; review artifacts remain uncommitted. ## Rationale Native Ray can stop a worker during FileStore's non-atomic metadata rewrite, so read retries cannot repair the resulting persistent corruption. Use transactional tracking, reconcile explicitly owned unfinished attempts on the driver, and retain observed terminal states. Complete lookup prevents truncated searches from inventing unique ownership. Failed provisional observations must not poison the optimizer or discard concurrent successes. Forecast transforms must preserve training-owned schemas and exact caller identities; generic resamplers lack that structural contract. Temporary publication namespaces prevent tests from contaminating builds. Keep the separate review-output cleanup and require fresh independent coverage rather than counting a feedback-exposed review as sign-off. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Resolve the eighth independent review's 22 correction groups and retain runtime counterevidence for one incorrect SQLite assertion. Anchor SQLite worker paths, complete owned native runs, preserve nested metrics and worker timing, release cached estimator payloads, and restore robust optimizer and forecast boundaries. Repair the test dependency profile and publication/example cleanup contracts. ## Prompting Intent Continue consolidating the internal FLAML fork into GitHub PR #1545 while preserving public defaults, core installation behavior and the OSS ROUGE tests. Review and correct the change until only human sign-off remains. Keep all review outputs out of commits, retain earlier evidence, and preserve the engineer's explicit tracking, resampling and provisional-incumbent decisions. ## Linked Sources - Consolidation PR and requirements: #1545 - Exact prior-head CI failures: https://github.com/microsoft/FLAML/actions/runs/46022453507 - SQLite URI semantics: https://docs.sqlalchemy.org/en/20/dialects/sqlite.html#uri-connections - Driving engineer's runtime-contract choices and retained independent cycle-eight review/validation evidence; review artifacts remain uncommitted. ## Rationale Workers can change directories, so a relative tracking URI must retain the driver's database identity. Unique native fallback association needs the same terminal reconciliation as explicit accepted IDs. Failed objectives must release optimizer state without masking the original error. Container snapshots isolate mutable metrics while leaving opaque payloads intact, and completed AutoML callbacks must not retain estimators or SparkContext. Compact scalar history preserves early updates without quadratic rollback. Forecast transforms must preserve both the advertised label vocabulary and caller-facing keys. Preserve actual SQLite parsing semantics rather than accepting an unsupported review normalization suggestion. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Address the independently reviewed trial-ownership, optimizer-state, cleanup, prediction, and regression-isolation gaps in the FLAML consolidation. Preserve absolute SQLite file URIs, reject private memory stores, validate fresh ownership before adoption writes, and reconcile uniquely owned failed native trials even before their first report. Bind AutoML Ray workers to the driver tracking context without duplicating automatic model logging. Preserve scalar tie order, reject invalid objectives consistently, release failed configuration reservations and limiter slots, and resolve retained searcher objectives through nested wrappers. Restore tuning runtime state on every exit, close owned log handlers, and finalize abandoned Spark trials without replacing the original error or discarding completed siblings. Preserve standard mapping payload interfaces and empty/passthrough TFT keys. Strengthen real notebook model round-trip assertions and isolate tracking and publication fixtures. Correct the inherited-experiment subprocess failure found by hosted CI and make adoption test doubles represent actual owned-run metadata. ## Prompting Intent Continue reviewing GitHub PR 1545 with the full review-code contract, fix findings, and publish the corrections toward a human-sign-off-ready consolidation. Preserve public installs/defaults, intended internal-library functionality, exact OSS ROUGE tests, and real container-based Spark CI. Keep all review outputs uncommitted and preserve the separate cleanup of previously committed review reports. ## Linked Sources - Consolidation requirements and PR: #1545 - Reviewed candidate: c72b523 - Hosted failure and runtime evidence: https://github.com/microsoft/FLAML/actions/runs/46053423437 - Cycle-nine review evidence: five independent Execute reviews retained in this Copilot session, including all 28 findings, original verdicts, and dispositions. ## Rationale Fail closed when ownership or accepted-attempt identity is uncertain, while never deleting user runs. Reuse existing worker isolation rather than adding a private native reporter adapter. Retain successful optimizer evidence and public payload semantics while making terminal cleanup independent of secondary callback errors. Use real backend regressions and faithful metadata fixtures instead of weakening the runtime guards. Version 2.8.0, core dependency defaults, and OSS ROUGE remain unchanged. This is maintenance of the consolidation, not a new feature rollout. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Correct optimizer recovery and checkpoint compatibility, native Ray terminal tracking, AutoML failed-trial eligibility and Spark worker isolation. Preserve actual driver SQLite stores, stable MLflow adoption pairing and winner names. Harden cancellation and cleanup boundaries, isolate regression state, and bound the live notebook example without weakening its model round-trip assertions. ## Prompting Intent Address the current review and CI findings for public FLAML PR 1545, then run the one additional review round explicitly authorized by the engineer. Preserve public installation defaults, explicit Fabric behavior, exact OSS ROUGE tests and the existing cleanup of committed review reports. Do not commit new review outputs or expand the maintenance change into unrelated behavior. ## Linked Sources - Consolidation and review request: #1545 - Current-head CI failure: https://github.com/microsoft/FLAML/actions/runs/46075914038 - Public main: f2427d8 - Runtime contracts: https://github.com/microsoft/FLAML/blob/lijiang/open-source-internal-merge/flaml/fabric/README.md - Review evidence: all 30 cycle-ten finding rows and their dispositions retained in external session artifacts. ## Rationale Use public Ray lifecycle callbacks without fallible store I/O during callbacks, then reconcile only explicitly identified or uniquely owned attempts. Bind relative SQLite tracking to the driver's opened database rather than a later working directory. Preserve custom searcher interfaces and legacy normal batch semantics; reconstruct old state only where its retained information permits. Keep ambiguous historical reservations instead of guessing. Require actual backend cancellation causes, protect the original error during cleanup, and verify distributed behavior with real workers and subprocess-owned death probes. No dependency manifest, release version or public default is changed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Repair checkpoint recovery, objective selection, warm starts and optimizer lifecycle settlement. Preserve AutoML iteration/run identity and successful native-Ray tracking through failures. Harden cleanup and URI handling, retain adoption slots across retries, and strengthen real backend regression coverage. ## Prompting Intent The engineer asked to "try to address the issues" retained by the final authorized review of PR 1545. Apply precise corrections, validate them and update the existing PR while preserving public defaults, explicit Fabric behavior, version 2.8.0, exact OSS ROUGE and the exclusion of review outputs from git. No additional independent review round is part of this correction. ## Linked Sources - Consolidation and review request: #1545 - Prior reviewed head: f87a44c - Completed parent CI: https://github.com/microsoft/FLAML/actions/runs/46090524995 - Public main: f2427d8 - Runtime contracts: https://github.com/microsoft/FLAML/blob/lijiang/open-source-internal-merge/flaml/fabric/README.md - Review findings: all 36 cycle-eleven rows and original verdicts are retained in external session evidence. ## Rationale Share numeric eligibility and lexicographic bounds instead of maintaining inconsistent comparison paths. Keep normal full-batch semantics but settle completed tails and failed allocations at lifecycle boundaries. Restore only recoverable checkpoint information and preserve legacy ambiguity explicitly. Use actual driver stores and immutable accepted-result snapshots; restore worker state even when cleanup is interrupted. Stable iteration and adoption identities avoid positional mismatches after failed or disappearing trials. Focused counterexamples accompany source-bound full backend/package checks; the final legacy-candidate fallback also passes the relevant cases across all three Python/Ray profiles. No dependency manifest or release version changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
## Summary Correct the three reproducible failures from the published Windows ARM CI jobs. Optuna-like test doubles now define their metric and provide a valid report; analysis mocks provide actual final results. Generic callbacks no longer acquire an unnecessary dependency on an Optuna metric attribute. ## Prompting Intent Continue addressing the issues on PR 1545 and validate the published correction. Keep numeric-score guards and final-result selection intact, cover both generic and Optuna-like callbacks, preserve public defaults and OSS ROUGE, and do not commit review outputs or start another independent review round. ## Linked Sources - PR: #1545 - Failed validation: https://github.com/microsoft/FLAML/actions/runs/46169130141 - Python 3.13 ARM job: https://github.com/microsoft/FLAML/actions/runs/46169130141/job/141053286228 - Python 3.12 ARM job: https://github.com/microsoft/FLAML/actions/runs/46169130141/job/141053286179 ## Rationale Do not weaken production score validation to accommodate incomplete mocks or fall back to stale metric summaries. Supply the fixtures' real interface and payload while retaining callback exception assertions. Restrict metric access to the Optuna path so generic callbacks keep their previous contract. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
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?
Consolidate the internal Fabric AutoML fork into public FLAML so GitHub becomes
the sole maintained library source. Internal Fabric build/publish infrastructure
may consume this same source. Public main is merged normally; unrelated
internal Git history and delivery-only infrastructure are not imported.
Container-based Spark CI
The three existing Spark profiles now run against a standalone Docker Compose
cluster with a separate driver, master, and two worker containers:
Every node uses the same Python/Java/dependency image. A mandatory startup
guard rejects local mode, requires task execution on both worker hosts,
checks driver/executor runtime agreement, and verifies that joblib also
executes remotely. Test helpers honor
FLAML_TEST_SPARK_MASTERwithoutchanging their default local behavior.
Shared storage supports native-model persistence and MLflow artifacts.
Per-application resource limits leave capacity for notebook-created Spark
sessions. Coverage is mapped back to the checkout and aggregated with the
unchanged non-Spark matrix. Logs and JUnit results are retained, and cleanup
is scoped to the current job's Compose project.
The first container run exposed an existing
broadcast_codebug: asingle-partition copy task reached only one executor. Generated learner/metric
code now uses Spark-managed, content-addressed archives, with qualified module
lookup preserved for standard broadcast pickle and reused or late workers.
The live regression requires the generated learner to load on both containers.
The sampling regression now checks row conservation, disjointness, and
per-label fractions rather than assuming an exact-size four-row random sample.
Its lazy branches share one materialized input fixture, which is released
after the test instead of independently reevaluating a shuffle.
The latest public main merge adopts upstream's formatter Python 3.12 and
SHA-pinned Temurin Java 17. Container images retain their matching Java 17 runtime.
The joblib-spark-fabric reference workflow
was checked against its topology, image, assertions, and
passing execution logs.
Those logs show Spark and joblib executing on three distinct worker containers;
the reference is correct and does not need a correction PR.
Latest synchronization
Public main through
f2427d802is merged normally in1fc558bc9.A fresh complete internal-library inventory found no missing in-scope
feature. The latest internal main update changes ownership metadata only,
not library behavior; delivery-only exclusions remain intentional.
2.8.0.post1suffix.joblib context inside inline Spark trials, plus the public dependency update.
regression cases from the internal update.
Python 3.11; only missing packages or the known legacy dependency combination
skip. Existing finite/shape/SMAPE assertions and artifact isolation remain.
test/automl/test_rouge_metric.pyidentical to OSS. It still importsreal
rouge_score.scoring.ScoreandAggregateScore; the internalSimpleNamespaceenvironment workaround is deliberately not copied.Internal release skills, deployment/pipeline files, Conda/certificate changes,
and environment-specific timeout policy remain outside this public update.
Existing public calendar/forecast semantics and estimated smoothing
initialization are retained.
Current review fixes
Latest CI follow-up:
92d4f833b.The preceding head's Windows ARM jobs exposed three legacy fixture failures.
Optuna-like callback fixtures now declare their metric and supply valid reports;
analysis mocks now contain actual final results. Generic callbacks no longer
read a metric attribute that their non-Optuna path does not need.
The numeric-report and final-score protections remain intact.
Main reviewed-issue correction:
d6dd284cc.The engineer asked to address the remaining cycle-eleven issues. All 36 retained
finding rows have tested driver dispositions across 27 correction groups.
reports without losing their best value/cost, and recover from invalid warm starts.
signed percentage bounds, secondary objectives, nested starting configurations
and actual final-score selection.
failures, preserve partial reports and flush invocation-owned tail batches.
configurations after a failed trial. Preserve successful native-Ray sibling
metrics even when the experiment raises.
and SQLite URI semantics; retain adoption slots and completed writes across retries.
driver/worker stores and account for all runs, test actual non-cancellation errors,
and collect native-Ray visualization and invalid-score regressions in CI.
No dependency manifest or release version changed. The new private objective
helper brings the verified library payload to 100 Python files. Public
defaults, explicit Fabric behavior and exact OSS ROUGE are preserved.
No review outputs are committed.
Public defaults and Fabric behavior
Core installation remains NumPy-only, and
flaml[automl]remains usable withoutMLflow, Spark, or Fabric services. Runtime detection is local and does not start
Spark or contact services.
FLAML_FABRIC_RUNTIME=auto|true|falseselects runtimebehavior; explicit API options take precedence.
flaml.*synapseml.flaml.*mlflow_logging=Falsedisables the integration and Fabric history collection.Autologging artifact opt-outs and caller settings are preserved. Explicit
registration logs and registers the requested fitted pipeline.
The existing reviewed contracts remain: training-partition-only feature
preprocessing/augmentation, model-owned export preprocessing, fitted-calendar
forecasts, validation-only transform latency, full-column Spark cast checks,
lossless timestamp/integer handling, and safe training-log append without
implicit search resume.
Review history and scope
Public main remains
f2427d802and internal main remains2ba09f415.The existing migration-parity audit and intentional internal infrastructure
exclusions remain applicable.
Cycle 11 independently reviewed
f87a44c92with five valid assignments:Neon robustness/correctness/testing, Astra comprehensive and Grok comprehensive.
All 36 rows and the original ISSUES_FOUND verdicts remain preserved, with no
feedback or out-of-projection access. Driver counterexamples informed these fixes.
The later request, "try to address the issues", authorized corrections and
validation. No twelfth independent review was run. All previous review counts
and exhausted provider-replacement limits remain unchanged. Tested corrections
do not retroactively turn the earlier source review into a clean verdict for this
new revision; human review remains required.
The previous head's Build 46090524995
completed successfully, including its three container profiles. That is historical
evidence, not a replacement for the current-head checks below.
Validation
Current head:
92d4f833b.Build 46172007153
validates this revision. Exact-head automatic checks passed.
GitHub reports MERGEABLE and 0 unresolved review threads.
python -m pytest test\test_misc_coverage.py test\tune\test_search_thread.py -m "not spark" -q --tb=shortpython -m pytest test\test_misc_coverage.py -m spark -q --tb=short, installed-Spark environmentpython -m pytest test\test_misc_coverage.py::TestSearchThread test\test_misc_coverage.py::TestExperimentAnalysis test\fabric\test_ray_reporting.py::test_native_optuna_thread_ignores_partial_reports_and_settles_invalid_scores -q --tb=shortpython -m build --sdist --wheel --no-isolationand byte inventorypre-commit run --all-files, commit hooks and whitespace checksgit hash-object test\automl\test_rouge_metric.py4ec8824c0a78cf851eb35d6da5b405981b3e3bb2Ray compatibility (1.13.0, Python 3.10)Ray compatibility (2.4.0, Python 3.10)docker compose run --name "${COMPOSE_PROJECT_NAME}-driver" --use-aliases driverThe preceding correction retains its complete
local evidence: 1,513 affected tests, 46 native cases per Ray profile, 19 TFT
cases, 14 real local Spark cases and the additional final checkpoint/candidate
checks. Those results remain attributed to their original source snapshots.
This two-file follow-up has the targeted checks above and its own full hosted CI.
The earlier hosted failures and original local reproduction are preserved.
The extra local installed-Spark failure came from selecting a Spark-only test
in a profile without PySpark; it passed in the existing Spark environment.
No tests were skipped to hide the three reported failures, no numeric guard was
weakened, and no new independent review round was run.
Earlier validation (historical)
Bounded logistic-regression smoke (
630f30c42)The immediate prior Build 45665181111
passed 18 jobs, including every Spark profile and the corrected ARM cases.
Only Ubuntu/Python 3.13 non-Spark
timed out. Its faulthandler stack identifies
test_model.py::test_lrl2insidesklearn/SciPy L-BFGS dense matrix multiplication.
The old fixture allocated 100000-by-1000 floating-point values (800 MB before
copies and concurrent-worker overhead) and relied on a
1e-5budget tointerrupt native work. Replace it with a seeded 200-by-8 actual fit and a
prediction assertion. Separate small cases force
MemoryErrorandTimeoutError, verifying budget forwarding, a fitted dummy fallback, andmajority-class predictions. No estimator is skipped and no production code
or timeout limit is changed.
Result: 4 passed on Python 3.13 and 4 passed on Python 3.10.
pre-commit run --all-filesalso passed. The latest commit changes onlytest/automl/test_model.py; the built library remains byte-identical tob0e62ec75. The linked new-head run, not the local Windows tests, establisheswhether the Linux timeout has been eliminated.
Focused CI correction (
b0e62ec75)Build 45654950980
exposed three specific problems, all corrected without changing the public
default profile or weakening the worker/runtime guards:
configuration when an optional backend is unavailable. Replaying that
identical state as an explicit request caused the ARM Transformers-without-
PyTorch failure. Preserve disabled state and avoid the redundant explicit
attempt; genuinely different explicit settings still use their flavor API.
Their replacements require and consume the metadata before calling the
unchanged user objective.
[2, 3, 1]rather than[2, 1, 3]for two tied labels.Verify exact label/count association, cardinality, and descending frequency,
not an undefined ordering within a frequency tie. Library behavior is unchanged.
python -m pytest -q test\fabric\test_mlflow_lifecycle.py test\fabric\test_migration_contracts.py test\fabric\test_runtime.py test\fabric\test_mlflow_coverage.py test\automl\test_mlflow.py test\tune\test_tune_coverage.py -n 2 --dist=loadfile --maxfail=5 --tb=short -o faulthandler_timeout=90python -c "import transformers, pytest; raise SystemExit(pytest.main(['-q', r'test\fabric\test_mlflow_lifecycle.py::test_serialized_remote_objective_restores_actual_worker_configuration', r'test\fabric\test_mlflow_lifecycle.py::test_global_autolog_partial_configuration_is_not_retried_as_explicit', r'test\fabric\test_mlflow_lifecycle.py::test_remote_autolog_preserves_disabled_unavailable_flavor', '--tb=short']))"DummyObject.trainerror before the correctionpytest.main(['-q', r'test\spark\test_utils.py::test_unique_pandas_on_spark', '--tb=short'])in an ownedSparkSession(local[2])with Arrow enabled and ANSI disabledpre-commit run --all-filespython -m build --no-isolation --outdir "$ARTIFACTS\ci-correction-dist"The local optional-backend reproducer used Transformers 5.23.0 without
PyTorch in a session-owned environment. CI's exact 5.24.1 was unavailable
from the local package index; the new hosted ARM jobs validate that version.
No shared/user-global environment was modified.
At the prior head, the actual-container Python 3.11/Spark 3.5.1 profile passed
128 tests with 3 skips; Python 3.12/Spark 4.0.1 passed 129 with 2 skips.
Their logs prove two worker hosts, joblib execution, measured worker coverage,
and reused interpreter revisions. Python 3.13/Spark 4.1 passed 128 with 2 skips
and only the tied-order assertion failure. Ubuntu 3.13 non-Spark completed
in 42 minutes with only the three mock failures: the earlier three-hour
timeout did not recur, but its underlying cause is not claimed established.
All these are prior-head results, not substitutes for the new run.
Final-fix local validation (
ff8979245)The following commands use
pythonfor the selected isolated interpreter,$CHECKOUTfor the source worktree, and$ARTIFACTSfor session-only outputs.Source tests use Python 3.13; offline NLP/TFT use the existing Python 3.10
environment without installing or modifying user-global packages.
Result: 791 passed, 12 skipped, 20 subtests passed. Initial verification
exposed three test-setup defects: panel-CV cases lacked the required integer
index, and
max_iter=0still fitted an initial model. Corrected fixtures nowexercise CV guidance and a genuinely empty candidate search; the entire
affected command above then passed.
python -m pytest -q test\nlp\test_hf_utils_coverage.py test\nlp\test_autohf_classificationhead.py test\nlp\test_default.py::test_build_portfolio test\nlp\test_default.py::test_starting_point_not_in_search_space test\nlp\test_default.py::test_build_error_portfolio --junitxml="$ARTIFACTS\offline-nlp.xml"python -m pytest -q test\automl\test_forecast.py::test_forecast_panel --tb=short -o faulthandler_timeout=180python -m pytest -q test\spark\test_dtype_contracts.py --tb=shortpython -m build --no-isolation --outdir "$ARTIFACTS\dist"python "$CHECKOUT\test\check_public_install.py"andpython -m pip checkpython "$CHECKOUT\test\check_public_install.py" --automlandpython -m pip checkpython "$CHECKOUT\test\check_public_install.py" --autofeandpython -m pip checkpython "$CHECKOUT\test\check_public_install.py" --autozeroandpython -m pip checkpre-commit run --all-filesandactionlint .github\workflows\python-package.ymlgit hash-object test\automl\test_rouge_metric.py4ec8824c0a78cf851eb35d6da5b405981b3e3bb2All 99 library files in the baseline tested wheel were compared byte-for-byte
with that committed source. The review-fix commit contains only 43 explicitly
manifested source/test/config paths; no new review reports were included. The prior
validation below is retained as historical evidence, not current-head proof.
Local merge-baseline validation (
1fc558bc9)pre-commit run --all-filespython -m build --no-isolation --outdir ..\review-pr1545-nov25\distpython -m pytest -q test\test_packaging.py test\automl\test_rouge_metric.pypython -m pytest -q test\nlp\test_hf_utils_coverage.py test\nlp\test_autohf_classificationhead.py test\nlp\test_default.py::test_build_portfolio test\nlp\test_default.py::test_starting_point_not_in_search_space test\nlp\test_default.py::test_build_error_portfolio --maxfail=3actionlint .github\workflows\python-package.yml .github\workflows\pre-commit.ymltest\check_public_install.py, separately with no flag,--automl,--autofe, and--autozero;python -m pip check4ec8824c0a78cf851eb35d6da5b405981b3e3bb2At the merge-baseline head, the full affected-surface command passed 493 tests, with 11 skips:
An earlier combined local attempt was stopped in the existing CatBoost-heavy
preprocessing test. The restored HistGB case is now independently runnable;
the bounded affected suite above completed successfully. New-head platform
coverage remains the responsibility of the running hosted jobs.
Previous container-CI validation
The evidence below belongs to the previous published head, not this update.
Hosted execution for container-CI head
47ba01287is green in Build run 45183617905.
All 19 build jobs passed: three container Spark profiles, eleven non-Spark
profiles, four public-install profiles, and coverage aggregation.
At that head, all 27 reported PR checks passed; the release-only
gh-releasejob wasintentionally skipped.
Each previous container-CI-head Spark log records tasks on two distinct worker containers,
matching Python/Spark/FLAML versions, and remote joblib execution. The suites
include generated-learner broadcast pickle on both workers, notebook
execution, native-model persistence, and the materialized sampling assertions.
Actual container execution was validated on GitHub, not claimed locally:
the workstation's Linux Docker daemon was unavailable during local validation.
pre-commit run --all-filespython -m pytest test\tune\test_spark_backend.py test\test_spark_setup.py test\test_misc_coverage.py test\fabric\test_runtime.py -m "not spark" -q --tb=short --disable-warningspython -m pytest test\spark\test_utils.py::test_train_test_split_pyspark -q --tb=short --disable-warningspython -m pytest test\test_package_metadata.py test\test_packaging.py -q --tb=short --disable-warningsactionlint -color=false -shellcheck= -pyflakes= .github\workflows\pre-commit.yml .github\workflows\python-package.ymldocker compose -f test\spark\containers\compose.yml config --format json/workspace/flamlpath mappingms/mainPrevious consolidation validation
The earlier synchronization head
398c8f62bpassed all 19 jobs in Build run 42770393802.
This validates that earlier head, not the new container configuration.
python -m build --no-isolationpython -m pytest test\automl\test_forecast.py -q --tb=short --disable-warnings -k "naive or seasonal or panel_skip_policy or initialization"The affected-surface command passed 419 tests, with 6 Linux-shell-only
skips and 20 passing subtests:
The panel dependency gate was tested with missing, legacy, and modern package
versions without downloading data. The earlier hosted Ubuntu/Python 3.11 job
installed
pytorch-forecasting==1.8.0and passed its full non-Spark suite:1,447 passed, 10 skipped, with one successful rerun. Full panel training
was not run locally.
All nine existing GitHub review threads remain resolved. The latest merge
has no conflicts; fresh hosted checks and the targeted review remain
pending. Normal human approval is still required. The PR is not merged.
Live Fabric rollout is a separate activity.
Related issue number
Continuation of this consolidation PR; no separate issue or ADO TaskId was supplied.
Checks