Skip to content

Commit 00b4e5c

Browse files
sanketsudakeclaude
andauthored
Move examples to fission/examples; vendor minimal CI fixtures (#454)
* Move examples to fission/examples; vendor minimal CI fixtures 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> * Fix CI: repoint e2e tests and catalog links after examples removal 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> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0250b82 commit 00b4e5c

181 files changed

Lines changed: 606 additions & 2388 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/resources/release-process.md‎

Lines changed: 1 addition & 1 deletion

‎CLAUDE.md‎

Lines changed: 4 additions & 1 deletion

‎binary/envconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"builder": "binary-builder",
4-
"examples": "https://github.com/fission/environments/tree/master/binary/examples",
4+
"examples": "https://github.com/fission/examples/tree/main/miscellaneous/binary",
55
"icon": "./logo/full_colored_dark.svg",
66
"image": "binary-env",
77
"keywords": [],

‎binary/examples/README.md‎

Lines changed: 0 additions & 80 deletions
This file was deleted.

‎binary/examples/headers.sh‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎binary/examples/hello.go‎

Lines changed: 0 additions & 12 deletions
This file was deleted.
File renamed without changes.

‎binary/test/local_test.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ echo "--Healthz"
3030
curl -i -f -X GET "$SERVER"/healthz
3131

3232
echo "-- Specializing"
33-
curl -i -f -XPOST "$SERVER"/v2/specialize -H 'Content-Type: application/json' -d '{"filepath": "./examples/echo.sh"}'
33+
curl -i -f -XPOST "$SERVER"/v2/specialize -H 'Content-Type: application/json' -d '{"filepath": "./test/fixtures/echo.sh"}'
3434

3535
echo "-- Running"
3636
curl -i -f -XPOST "$SERVER" -d 'Echoooooo!'

0 commit comments

Comments
 (0)