Skip to content

Move examples to fission/examples; vendor minimal CI fixtures#454

Merged
sanketsudake merged 2 commits into
masterfrom
move-examples-to-examples-repo
Jun 9, 2026
Merged

Move examples to fission/examples; vendor minimal CI fixtures#454
sanketsudake merged 2 commits into
masterfrom
move-examples-to-examples-repo

Conversation

@sanketsudake

Copy link
Copy Markdown
Member

What

Runnable examples now live canonically in the fission/examples repo. This removes the duplicated examples/ directory from every environment.

To keep each environment's test suite self-contained (no cross-repo dependency at test time), the minimal function code each test actually uses is vendored under that environment's test dir as tests/fixtures/ (or test/fixtures/), and the test scripts are repointed.

Test scripts rewired

Env Script Fixture
binary test/local_test.sh test/fixtures/echo.sh
python tests/local_test.sh, tests/test_python_env.sh, tests/websocket_test.sh tests/fixtures/hello.py, tests/fixtures/websocket/main.py
python-fastapi tests/local_test.sh, tests/test_python_fastapi_env.sh tests/fixtures/hello.py
rust test/local_test.sh test/fixtures/project-example/
jvm tests/test_java_env.sh tests/fixtures/java/
tensorflow-serving tests/test_tensorflow_serving_env.sh tests/fixtures/half_plus_two/

Git tracks the vendored files as renames from examples/.

Notable detail: the jvm test mounts install-fission-java-core.sh via a relative ../../ from the example dir; moving the project one level deeper required bumping that to ../../../.

Docs

  • README "ready-to-run examples" links now point at github.com/fission/examples.
  • CLAUDE.md and the release-process note updated to reflect that examples live elsewhere and tests use fixtures/.

Companion PRs

Verification done locally

  • bash -n passes on all 9 modified scripts.
  • No remaining local examples/ references in scripts, Makefiles, CI, or READMEs.
  • Fixture paths exist at the new locations.

⚠️ I could not run the cluster-based env test suites locally — please let CI validate.

🤖 Generated with Claude Code

Runnable examples now live canonically in the fission/examples repo.
This removes the duplicated examples/ directory from every environment.

To keep the environment test suites self-contained, the minimal function
code each test needs is vendored under that environment's test dir as
tests/fixtures/ (or test/fixtures/), and the test scripts are repointed:
- binary, python, python-fastapi, rust, jvm, tensorflow-serving
- jvm: adjusted the install-fission-java-core.sh mount depth for the new
  fixture path

README "ready-to-run examples" links now point at github.com/fission/examples.
Updated CLAUDE.md and the release-process note accordingly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The first pass missed the e2e suites (test_go_env.sh, test_rust_env.sh,
test_binary_env.sh, test_dotnet8_env.sh) because they `cd $ROOT/<env>/examples`
without a trailing slash. They now build from vendored fixtures:
- go/tests/fixtures (hello.go + module-example)
- rust/tests/fixtures (hello.rs + project-example)
- binary/test/fixtures (hello.sh + module-example, alongside echo.sh)
- dotnet8/tests/fixtures (HelloWorld + MultiFileExample)

Also repoint the `examples` URL in every envconfig.json to fission/examples
(fixing two pre-existing copy-paste bugs: python-fastapi pointed at python,
php7 pointed at perl) and regenerate environments.json.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sanketsudake sanketsudake merged commit 00b4e5c into master Jun 9, 2026
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant