Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0998fac
docs(python): update python and cli documentation and skill definitions
Nov 5, 2026
46bf7e2
feat(python): improve python subprocess handling and documentation
Nov 5, 2026
8a56ade
feat(channels): update channel graph, mapping, and wrapper logic
Nov 6, 2026
60de863
feat(test): implement ow-test framework and modernization plan
Nov 6, 2026
bf651b5
test(tests): update autoTestAll suite and documentation
Nov 6, 2026
98e41fa
chore(build): update clean.yaml and remove test artifacts
Nov 6, 2026
f8902f3
feat(core): update core logic, JS wrappers, and expand test suite
Nov 6, 2026
2e8923e
feat(mcp): implement advanced MCP client capabilities and testing suite
Nov 7, 2026
75a565f
feat(frontend): update llm-frontend-guide and chart.js logic
Nov 8, 2026
c347248
docs(odoc): update odoc documentation
Nov 8, 2026
64245e1
feat(core): add HPROF OOM diagnostics and ODoc reference generation
Nov 8, 2026
4b11069
feat(owrap): add format visualization and java diagnostics helpers
Nov 9, 2026
7f5a140
feat(cli): update oafp completion scripts and logic
Nov 9, 2026
243589d
docs(ref): regenerate API reference documentation
Nov 9, 2026
2886be4
feat(hprof): implement HPROFIndex for improved heap profile analysis
Nov 9, 2026
76c3e7b
chore(deps): upgrade Jackson libraries to 2.23.x
Nov 9, 2026
7e611e6
feat(mcp): implement MCP OAuth and update documentation
Nov 9, 2026
e2545c7
feat(ui): update desktop and screen wrappers and documentation
Nov 10, 2026
1e37dd2
feat(console): add oJob interact mode with screen-based prompts
Nov 10, 2026
93b5fde
chore(deps): upgrade jetty to 12.1.15 and update AI documentation
Nov 10, 2026
bf835d6
chore(deps): upgrade jline to 4.6.0
Nov 10, 2026
8e8b867
feat(ai): expand ow.ai decision handling and docs
Nov 11, 2026
64cfccc
chore(deps): upgrade commons-lang3, jcodings, and joni
Nov 12, 2026
a3e0569
chore(deps): update versionsAndDeps.json
Nov 12, 2026
906e7c9
feat(oafp): update oafp.js and extend shell completions
Nov 12, 2026
c329ca3
feat(core): implement resource limits for remote oJobs and archives
Nov 12, 2026
3aad9d0
chore(deps-dev): bump org.codehaus.mojo:exec-maven-plugin
dependabot[bot] Nov 12, 2026
d071801
Merge pull request #1940 from OpenAF/dependabot/maven/t8/org.codehaus…
nmaguiar Nov 13, 2026
fdd0794
Merge branch 'master' into t8
nmaguiar Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 46 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,19 @@ jobs:
run : |
java -jar openaf.jar --install
cd tests
rm -f autoTestAll.results.json
../ojob autoTestAll.yaml

- name: Upload structured test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
tests/autoTestAll.results.json
tests/autoTestAllResults.xml
tests/autoTestAll.md

# ------------------------------------
- name: Convert autoTestAll.md to html
uses: openaf/ojob-action@v7
Expand Down Expand Up @@ -274,7 +285,7 @@ jobs:
# ------------------
- name: Test results
run : |
grep -q '"fail":0' tests/autoTestAll.results.json || exit -1
python3 -c 'import json; r=json.load(open("tests/autoTestAll.results.json")); assert r.get("complete") is True and r["fail"] == 0 and r["count"] > 0 and not r.get("infrastructureErrors")'

languages:
needs: build
Expand Down Expand Up @@ -318,4 +329,37 @@ jobs:
if: always()
with:
name: language-results-${{ matrix.os }}
path: tests/languages-results.json
path: |
tests/languages-results.json
tests/framework-results.json

test-framework:
needs: build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: ['21', '25']
runs-on: ${{ matrix.os }}
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
- uses: actions/download-artifact@v4
with:
name: openaf.jar
path: .
- name: Test standalone framework
run: >-
java -Dopenaf.test.worker=true -jar openaf.jar -c
"try { loadLib('tests/runTestFramework.js'); exit(2); } catch(e) { printErr(e); exit(1); }"
- uses: actions/upload-artifact@v4
if: always()
with:
name: framework-results-${{ matrix.os }}-java${{ matrix.java }}
path: tests/framework-results.json
3 changes: 2 additions & 1 deletion .github/workflows/publish-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ jobs:
run: |
java -jar openaf.jar --install
cd tests
rm -f autoTestAll.results.json
../ojob autoTestAll.yaml
python3 -c 'import json; r=json.load(open("autoTestAll.results.json")); assert r["fail"] == 0 and r["count"] > 0'
python3 -c 'import json; r=json.load(open("autoTestAll.results.json")); assert r.get("complete") is True and r["fail"] == 0 and r["count"] > 0 and not r.get("infrastructureErrors")'
- name: Snapshot tested binary and matching generated sources
working-directory: release
run: |
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ maven-*
.github/workflows/*
!.github/workflows/publish-maven.yml
/tools/central/__pycache__/

# ow.test generated validation artifacts
/tests/framework-results.json
/js/.openaf_precompiled/
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
## Coding Style & Naming Conventions
- Java: standard conventions (classes `CamelCase`, methods/fields `camelCase`, constants `UPPER_SNAKE`). Indent with 4 spaces, UTF‑8, LF endings.
- Java packages: keep under `openaf.*`; place new plugins in `src/openaf/plugins/` when appropriate.
- JavaScript/YAML: 2‑space indent; end statements with semicolons in JS; filenames use kebab/camel to match neighbors.
- JavaScript/YAML: use 2-space indentation in new code; preserve the surrounding indentation in existing blocks. Filenames use kebab/camel to match neighbors.
- JavaScript: omit optional statement-ending semicolons in new code. Retain required separators in `for` headers, between same-line statements, and wherever automatic semicolon insertion would change parsing (for example before a following `(` or `[` expression). Keep spacing readable and avoid reformatting unrelated legacy code.
- ODoc: place documentation immediately above the corresponding function or the registration block for generated methods. Use `<odoc format="markdown">` for Markdown content, backticks for API names and parameters, and CDATA for examples or XML-sensitive text. Preserve help keys/signatures and ensure moved module documentation remains included in generated help.
- No strict linter config is enforced; match surrounding style and minimize diff noise.

## Testing Guidelines
Expand Down
24 changes: 24 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ This will create two main files:
* openaf.jar
* openaf.jar.orig

Compiler failures stop the build with a nonzero exit status. The build assembles
and checks a temporary JAR before atomically replacing `openaf.jar`, preserving
the previous JAR if compilation or assembly fails. Packaging steps run in order
before the completed JAR is copied to `dist/`.

In an installed OpenAF directory, run `./oaf --repack` after replacing the JAR or
changing the JDK to refresh the `.shared.oaf` archive used by generated launchers.
Repacking trains and validates archive coverage while retaining the existing
Expand All @@ -53,6 +58,25 @@ cd tests
java --enable-native-access=ALL-UNNAMED -jar ../openaf.jar --ojob -e autoTestAll.yaml
```

The browser table sorter and build failure regressions can also run independently
from the repository root:

```bash
node tests/mdtablesort.cjs
python3 tests/build-failures.py --bootstrap /path/to/existing/openaf.jar
```

The build regression uses a temporary copy and injected compiler failures,
including large diagnostics, to verify failure status and preservation of the
previous JAR. It requires a POSIX shell. To exercise subprocess pipe pressure,
timeouts and cancellation against the rebuilt classes:

```bash
mkdir -p /tmp/openaf-shell-tests
javac -cp 'bin:openaf.jar:lib/*' -d /tmp/openaf-shell-tests tests/java/ShellProcessTest.java
java -cp '/tmp/openaf-shell-tests:bin:openaf.jar:lib/*' ShellProcessTest
```

### Optional Maven Central distribution

See [Maven Central publishing](docs/dev/maven-central-publishing.md) for the
Expand Down
39 changes: 34 additions & 5 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,42 @@ jobs:
- Build OpenAFOS
exec : |
log("Repacking...");
$sh().envs({ __OAF_MAINCLASS: "openaf.Launcher" }, true).sh([ow.format.getJavaHome() + "/bin/java", "-jar", global.path + "/openaf.jar", "--repack"]).exec()
var result = $sh().envs({ __OAF_MAINCLASS: "openaf.Launcher" }, true).sh([ow.format.getJavaHome() + "/bin/java", "-jar", global.path + "/openaf.jar", "--repack"]).exec(0)
if (result.exitcode != 0) {
logErr("Repack failed: " + result.stderr + result.stdout)
exit(1)
}

var isOk = false, init = now()
do {
sleep(1000, true)
if (!io.fileExists(global.path + "/openaf.jar.tmp")) isOk = true
} while (!isOk && now() - init < 60000)

if (!isOk) {
logErr("Repack did not finish within 60 seconds")
exit(1)
}
log("Repacked.")

# Copy OpenAF to the right place for use
- name : Copy OpenAF
deps :
- Prepare shell complete
- Prepare ojob saved
- Prepare ojob doc
- Build OpenAFOS
- Repack OpenAFOS
exec : >
exec : |
log("Copying...");
//sh("cp " + global.path + "/openaf.jar " + global.path + "/dist/openaf.jar", "", undefined, true);
io.mkdir(global.path + "/dist");
io.cp(global.path + "/openaf.jar", global.path + "/dist/openaf.jar");

# -----------------------
- name : Prepare ojob doc
deps :
- Repack OpenAFOS
- Prepare ojob saved
exec : |
sleep(1000, true)

Expand Down Expand Up @@ -90,6 +99,7 @@ jobs:
zip.close()
} catch(e) {
logErr("Error copying " + from + " to (openaf.jar)" + to + ": " + e)
exit(1)
}
}
try {
Expand All @@ -99,6 +109,7 @@ jobs:
zip.close()
} catch(e) {
logErr("Error copying " + from + " to (openaf.jar.orig)" + to + ": " + e)
exit(1)
}
}

Expand Down Expand Up @@ -141,8 +152,12 @@ jobs:
exec : |
sleep(1000, true)

$sh([ow.format.getJavaHome() + "/bin/java", "-jar", global.path + "/openaf.jar", "-c", "ow.loadOJob();__flags.OJOB_CHECK_JOB_CHANGES=false;oJobRunFile('" + global.path + "/ojob.json');io.writeFileJSON('" + global.path + "/ojob.saved.json',$ch('oJob::jobs').getAll(), '')"])
.exec()
var result = $sh([ow.format.getJavaHome() + "/bin/java", "-jar", global.path + "/openaf.jar", "-c", "ow.loadOJob();__flags.OJOB_CHECK_JOB_CHANGES=false;oJobRunFile('" + global.path + "/ojob.json');io.writeFileJSON('" + global.path + "/ojob.saved.json',$ch('oJob::jobs').getAll(), '')"])
.exec(0)
if (result.exitcode != 0) {
logErr("Generating saved jobs failed: " + result.stderr + result.stdout)
exit(1)
}

plugin("ZIP")
var zip = new ZIP()
Expand All @@ -154,6 +169,19 @@ jobs:
zip.streamPutFileStream(global.path + "/openaf.jar.orig", "ojob.saved.json", is)
is.close()

# ----------------------------
- name : Generate ODoc reference
deps :
- Repack OpenAFOS
exec : |
log("Generating ODoc reference...")
var result = $sh([ow.format.getJavaHome() + "/bin/java", "-jar", global.path + "/openaf.jar", "--ojob", "-e",
global.path + "/genODocReference.yaml dirs=js,src output=docs/ref"]).pwd(global.path).get(0)
if (result.exitcode != 0) {
logErr("Generating ODoc reference failed: " + result.stderr + result.stdout)
exit(1)
}

# --------------------
- name : Check pom.xml
to :
Expand All @@ -165,6 +193,7 @@ todo:
- Prepare ojob saved
- Prepare ojob doc
- Prepare shell complete
- Generate ODoc reference
- Build OpenAFOS
- Repack OpenAFOS
- Copy OpenAF
Loading
Loading