Repository navigation
feat: add example datasets and workflows to Docker Compose - #4247
Merged
Merged
Conversation
Contributor
|
@kunwp1 Can you review it? |
bobbai00
force-pushed
the
feat/add-example-dataset-workflow
branch
from
February 28, 2026 18:08
ae4a92a to
afcadca
Compare
bobbai00
force-pushed
the
feat/add-example-dataset-workflow
branch
from
February 28, 2026 18:09
afcadca to
47e2b5d
Compare
kunwp1
reviewed
Mar 2, 2026
kunwp1
left a comment
Contributor
There was a problem hiding this comment.
I'm a little concerned about maintaining the example workflows. Is your assumption that the workflow JSON format won't change very often? If so, could you add this assumption in the PR description?
Contributor
Author
That's a valid concern. Yes I made such assumptions, and I just added it to the PR description. |
bobbai00
added a commit
that referenced
this pull request
Mar 3, 2026
…se tarball when creating the release candidate (#4253) ### What changes were proposed in this PR? The `create-release-candidate` workflow builds a self-contained Docker Compose deployment tarball (`apache-texera-<version>-docker-compose.tar.gz`), but it only copies a hardcoded list of files from `bin/single-node/` into the bundle: - `docker-compose.yml` - `nginx.conf` - `.env` - `README.md` - `sql/` In #4247 we added the example datasets and workflows, however the current CI didn't include them in the docker-compose tarball. **The fix:** Add a conditional `cp -r` of the `examples/` directory into the bundle, guarded by `if [ -d ... ]` so it doesn't break when building from older tags that predate the examples directory. ### Any related issues, documentation, discussions? #4247 ### How was this PR tested? Tested using my own fork ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-6) Co-authored-by: Claude <[email protected]> Co-authored-by: Kunwoo (Chris) <[email protected]>
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
### What changes were proposed in this PR? This PR adds example datasets and workflows that are automatically loaded into Texera when using Docker Compose, so new users have sample data to explore immediately after startup. **What gets loaded:** - **2 datasets**: Iris Species (5KB CSV), TMDb Popular Movies (327KB CSV) - **2 workflows**: ML on Iris Dataset, Data Exploration on Movies Dataset This PR has the assumption that the format of workflow won't change very often. If there is any change, the example workflows need to be updated. **Key design choices:** - Uses Docker Compose `profiles` — the loader only runs when explicitly opted in via `docker compose --profile examples up`, not on every restart - Uses a stock `alpine:latest` image with runtime `apk add` — no custom image build required - Idempotent — skips datasets/workflows that already exist - Admin credentials (`USER_SYS_ADMIN_USERNAME`/`USER_SYS_ADMIN_PASSWORD`) are defined in `.env` and shared between the Texera backend and the example loader **Files added:** - `bin/single-node/examples/` — datasets (CSV + descriptions), workflow JSONs, and `load-examples.sh` loader script - `bin/single-node/docker-compose.yml` — added `example-data-loader` service (Part 4) - `bin/single-node/.env` — added `USER_SYS_ADMIN_USERNAME`/`USER_SYS_ADMIN_PASSWORD` env vars ### Any related issues, documentation, discussions? No ### How was this PR tested? 1. Ran `docker compose --profile examples up` and verified: - The loader waits for services to be healthy - Datasets and workflows appear in the Texera UI - The loader container exits after loading 2. Ran `docker compose up` (without `--profile examples`) and verified the loader does NOT start ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.6) --------- Co-authored-by: Kunwoo (Chris) <[email protected]>
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
…se tarball when creating the release candidate (apache#4253) ### What changes were proposed in this PR? The `create-release-candidate` workflow builds a self-contained Docker Compose deployment tarball (`apache-texera-<version>-docker-compose.tar.gz`), but it only copies a hardcoded list of files from `bin/single-node/` into the bundle: - `docker-compose.yml` - `nginx.conf` - `.env` - `README.md` - `sql/` In apache#4247 we added the example datasets and workflows, however the current CI didn't include them in the docker-compose tarball. **The fix:** Add a conditional `cp -r` of the `examples/` directory into the bundle, guarded by `if [ -d ... ]` so it doesn't break when building from older tags that predate the examples directory. ### Any related issues, documentation, discussions? apache#4247 ### How was this PR tested? Tested using my own fork ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-6) Co-authored-by: Claude <[email protected]> Co-authored-by: Kunwoo (Chris) <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
### What changes were proposed in this PR? This PR adds example datasets and workflows that are automatically loaded into Texera when using Docker Compose, so new users have sample data to explore immediately after startup. **What gets loaded:** - **2 datasets**: Iris Species (5KB CSV), TMDb Popular Movies (327KB CSV) - **2 workflows**: ML on Iris Dataset, Data Exploration on Movies Dataset This PR has the assumption that the format of workflow won't change very often. If there is any change, the example workflows need to be updated. **Key design choices:** - Uses Docker Compose `profiles` — the loader only runs when explicitly opted in via `docker compose --profile examples up`, not on every restart - Uses a stock `alpine:latest` image with runtime `apk add` — no custom image build required - Idempotent — skips datasets/workflows that already exist - Admin credentials (`USER_SYS_ADMIN_USERNAME`/`USER_SYS_ADMIN_PASSWORD`) are defined in `.env` and shared between the Texera backend and the example loader **Files added:** - `bin/single-node/examples/` — datasets (CSV + descriptions), workflow JSONs, and `load-examples.sh` loader script - `bin/single-node/docker-compose.yml` — added `example-data-loader` service (Part 4) - `bin/single-node/.env` — added `USER_SYS_ADMIN_USERNAME`/`USER_SYS_ADMIN_PASSWORD` env vars ### Any related issues, documentation, discussions? No ### How was this PR tested? 1. Ran `docker compose --profile examples up` and verified: - The loader waits for services to be healthy - Datasets and workflows appear in the Texera UI - The loader container exits after loading 2. Ran `docker compose up` (without `--profile examples`) and verified the loader does NOT start ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.6) --------- Co-authored-by: Kunwoo (Chris) <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…se tarball when creating the release candidate (apache#4253) ### What changes were proposed in this PR? The `create-release-candidate` workflow builds a self-contained Docker Compose deployment tarball (`apache-texera-<version>-docker-compose.tar.gz`), but it only copies a hardcoded list of files from `bin/single-node/` into the bundle: - `docker-compose.yml` - `nginx.conf` - `.env` - `README.md` - `sql/` In apache#4247 we added the example datasets and workflows, however the current CI didn't include them in the docker-compose tarball. **The fix:** Add a conditional `cp -r` of the `examples/` directory into the bundle, guarded by `if [ -d ... ]` so it doesn't break when building from older tags that predate the examples directory. ### Any related issues, documentation, discussions? apache#4247 ### How was this PR tested? Tested using my own fork ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-6) Co-authored-by: Claude <[email protected]> Co-authored-by: Kunwoo (Chris) <[email protected]>
This was referenced Nov 25, 2026
renovate-bot
pushed a commit
to renovate-bot/apache-_-texera
that referenced
this pull request
Nov 25, 2026
…9686) ### What changes were proposed in this PR? Remove code that nothing uses, and constructs that repeat a default or an alias, from the Python tests, the agent service, three frontend specs, the AsterixDB source and the RustFS test container, and make an unreachable error check in the single-node example loader reachable (**+84/−137 lines**). Only the loader's behavior changes: a workflow file that `jq` cannot parse is now reported and skipped instead of aborting the loader. - **Python tests (14 files):** `test_console_message.py` drops the unused `internal_queue` and `timed_buffer` fixtures and their imports. Two tests drop fixture parameters they never read (`executor`, `a_timestamp`), and `test_proxy_client.py` names an unused loop value `_`. The others write `dict(...)` calls as literals, return from fixtures that yield without teardown, drop empty `@pytest.fixture()` parentheses, merge nested `with` blocks, return a value directly instead of through a local, take the first element with `next(iter(...))`, and spell `datetime.timezone.utc`, `socket.timeout` and `bytes()` as `datetime.UTC`, `TimeoutError` and `b""` (Ruff targets Python 3.11). - **Agent service:** `src/agent/index.ts` and `src/api/index.ts` only re-export modules that callers import directly. No file imports either barrel, and the package entry is `src/index.ts`. `workflow-system-metadata.ts` drops the unused `OperatorSchema` and `ValidationError` type imports. - **Frontend specs:** the dataset and model creator specs drop `FormsModule` and `HttpClientTestingModule`, which `createFormlyModalFixture` already provides, and the admin Gmail spec drops three modules that the standalone component and its stubbed service do not need. - **`load-examples.sh`:** tests the `content=$(jq -c . "$workflow_file")` assignment in the `if` instead of checking `$?` after it. The script runs under `set -euo pipefail` and `main` calls `load_workflows` directly, so the old check could never fire: a workflow file that `jq` could not parse aborted the loader and skipped the files after it, although the comment above `FAILURES` calls each failure deliberately non-fatal. Now `print_error` counts the file, the loop moves on, and `main` still exits non-zero at the end. `test_load_examples_sh.sh` adds a case with an unparseable workflow sorted ahead of a good one. - **AsterixDB source:** `AsterixDBConnUtil` and `AsterixDBSourceOpExec` assign the version response and the parsed row once as `val`s instead of overwriting `null` and `None` placeholders. - **`RustFSContainer`:** drops the Scaladoc lines saying the console is left disabled. RustFS 1.0.0 enables the console by default, and the fixture does not override it. | Event | PR / Commit | | --- | --- | | Introduced by | Python tests: apache#1259 (2021-07-23), apache#1498 (2022-04-15), apache#1452 (2022-05-13), apache#2067 (2023-07-27), apache#1748 (2023-11-09), apache#2815 (2024-09-05), apache#4520 (2026-04-27), apache#4704, apache#4719 and apache#4795 (2026-05-03), apache#4893 (2026-05-04), apache#6643 (2026-07-20), apache#6988 (2026-07-29), apache#7374 (2026-08-07), apache#7579 (2026-08-13), apache#8067 (2026-08-29), apache#8542 (2026-09-15), apache#9279 (2026-11-04), apache#8704 (2026-11-05), apache#9623 (2026-11-23); agent service: apache#4020 (2025-11-25), apache#4495 and apache#4540 (2026-04-28); frontend specs: apache#6513 (2026-07-18), apache#6576 (2026-07-20), apache#8068 (2026-08-28); `load-examples.sh`: apache#4247 (2026-03-02); AsterixDB source: apache#1044 (2021-02-25); `RustFSContainer`: apache#8542 (2026-09-15) | | Usage removed by | Creator spec modules: apache#9522 (2026-11-22, `refactor(frontend): share dataset and model resource UI`) moved both specs to `createFormlyModalFixture`. Everything else: unused, unreachable or redundant since introduction. | As of 2026-11-24: - The AsterixDB placeholders have been overwritten before any read for over 5 years. - The console-message fixtures have been unused for over 2 years. - The `load-examples.sh` check has been unreachable for almost 9 months. - The agent-service barrels have had no importer for the 7 months the service has existed. - The creator spec modules have been redundant for 2 days. ### Any related issues, documentation, discussions? Closes apache#9685. ### How was this PR tested? Ran on this branch and on `main` at `424b2a757a` (Windows 11; Python 3.12 with CI's pinned `ruff` 0.14.7; Node 24 with Yarn 4.14.1; Bun 1.3.13; JDK 17; the loader test in an Alpine container with Bash 5.2.21 and jq 1.7.1): ```bash cd amber ruff check src/main/python src/test/python ruff format --check src/main/python src/test/python pytest $(git diff --name-only --relative origin/main -- src/test/python) cd ../agent-service bun test bun run typecheck cd ../frontend npx ng test --watch=false --include='**/user-dataset-creator.component.spec.ts' --include='**/user-model-creator.component.spec.ts' --include='**/admin-gmail.component.spec.ts' npx tsc --noEmit -p src/tsconfig.spec.json yarn prettier-eslint --list-different $(git diff --name-only --relative origin/main -- src) yarn eslint $(git diff --name-only --relative origin/main -- src) cd .. sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.source.sql.*" WorkflowCore/Test/compile WorkflowOperator/scalafmtCheckAll WorkflowCore/scalafmtCheckAll "WorkflowOperator/scalafixAll --check" "WorkflowCore/scalafixAll --check" bash bin/single-node/tests/test_load_examples_sh.sh ``` - **Python:** - Ruff passes on all 218 files. - The 14 changed test files run 288 tests with the same outcome per test on both sides: 218 pass, 67 are skipped and 3 fail. - The three failures are timestamp cases in `test_ui_parameter_contract.py` that expect UTC and come out 8 hours off in this machine's time zone. They fail the same way on `main`. - **Agent service:** all 361 tests in 20 files and the typecheck pass on both sides. - **Frontend:** the three specs run 37 tests, all passing on both sides. The spec typecheck, prettier-eslint and ESLint pass. - **Scala:** the 11 `source.sql` suites, including the three AsterixDB specs, run 204 tests that all pass on both sides. WorkflowCore's tests compile, and scalafmt and scalafix pass on both modules. - **`load-examples.sh`:** `test_load_examples_sh.sh` passes all 11 checks. Against `main`'s loader, the 9 existing checks pass and the 2 new ones fail: `jq` exits 5 at the malformed file, and the loader stops there without creating the other workflow. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5)
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.
What changes were proposed in this PR?
This PR adds example datasets and workflows that are automatically loaded into Texera when using Docker Compose, so new users have sample data to explore immediately after startup.
What gets loaded:
This PR has the assumption that the format of workflow won't change very often. If there is any change, the example workflows need to be updated.
Key design choices:
profiles— the loader only runs when explicitly opted in viadocker compose --profile examples up, not on every restartalpine:latestimage with runtimeapk add— no custom image build requiredUSER_SYS_ADMIN_USERNAME/USER_SYS_ADMIN_PASSWORD) are defined in.envand shared between the Texera backend and the example loaderFiles added:
bin/single-node/examples/— datasets (CSV + descriptions), workflow JSONs, andload-examples.shloader scriptbin/single-node/docker-compose.yml— addedexample-data-loaderservice (Part 4)bin/single-node/.env— addedUSER_SYS_ADMIN_USERNAME/USER_SYS_ADMIN_PASSWORDenv varsAny related issues, documentation, discussions?
No
How was this PR tested?
docker compose --profile examples upand verified:docker compose up(without--profile examples) and verified the loader does NOT startWas this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.6)