Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
570 commits
Select commit Hold shift + click to select a range
5924468
Regenerate spec
bocchino Sep 28, 2026
82df9d6
Merge branch 'absolute-qual-id-semantics' into absolute-qual-id-codegen
bocchino Sep 28, 2026
37ba7fe
Merge branch 'feature/absolute-qual-ids' into absolute-qual-id-users-…
bocchino Sep 28, 2026
7ef22c3
Revise parser tests
bocchino Sep 28, 2026
5992b13
Update fpp-syntax tests
bocchino Sep 28, 2026
9c8b554
Merge branch 'feature/absolute-qual-ids' into absolute-qual-id-semantics
bocchino Sep 28, 2026
cc6e482
Merge branch 'absolute-qual-id-semantics' into absolute-qual-id-codegen
bocchino Sep 28, 2026
ee68a3a
Merge branch 'absolute-qual-id-codegen' into absolute-qual-id-users-g…
bocchino Sep 28, 2026
936ffe8
Add fpp-check tests
bocchino Sep 28, 2026
745ef3a
Expose configuration constants in init snippets
sylvesterkaczmarek Sep 28, 2026
0c4c353
Reuse generated constant lines directly
sylvesterkaczmarek Sep 28, 2026
ff56a56
Match generated configuration constant reference
sylvesterkaczmarek Sep 28, 2026
8f7433b
Document configuration constant visibility
sylvesterkaczmarek Sep 28, 2026
74f8b97
Match generated instance spacing
sylvesterkaczmarek Sep 28, 2026
c788aaa
Merge pull request #1133 from nasa/release-3.4-integration
bocchino Sep 28, 2026
763b2ce
Merge branch 'main' into feature/absolute-qual-ids
bocchino Sep 28, 2026
dee6619
Merge branch 'feature/absolute-qual-ids' into absolute-qual-id-semantics
bocchino Sep 28, 2026
bfd1f8e
Address configuration namespace review feedback
sylvesterkaczmarek Sep 29, 2026
7e14f11
Refresh Health topology references
sylvesterkaczmarek Sep 29, 2026
fa154a5
Match generated Health helper reference
sylvesterkaczmarek Sep 29, 2026
449af86
Add explanatory comments to tests
bocchino Sep 29, 2026
9745131
Revise User's Guide
bocchino Sep 29, 2026
1ba47be
Merge remote-tracking branch 'nasa/main' into fix/1125-20260926
bocchino Sep 29, 2026
d67df59
Code cleanup
bocchino Sep 29, 2026
f952398
Merge branch 'absolute-qual-id-semantics' into absolute-qual-id-codegen
bocchino Sep 29, 2026
2c8d62f
Merge branch 'absolute-qual-id-codegen' into absolute-qual-id-users-g…
bocchino Sep 29, 2026
d4864f4
Merge branch 'main' into template-users-guide
bocchino Sep 30, 2026
d75c6e3
Revise User's Guide
bocchino Sep 30, 2026
b7b46bc
Revise User's Guide
bocchino Sep 30, 2026
98c48a4
Revise User's Guide
bocchino Sep 30, 2026
35d0e0c
Revise User's Guide
bocchino Sep 30, 2026
b83ce85
Revise User's Guide
bocchino Sep 30, 2026
d01c21d
Revise User's Guide
bocchino Sep 30, 2026
91b4740
Merge pull request #1132 from sylvesterkaczmarek/fix/1125-20260926
bocchino Sep 30, 2026
5dd7371
Merge branch 'main' into feature/absolute-qual-ids
bocchino Oct 1, 2026
604a6f0
Merge branch 'feature/absolute-qual-ids' into absolute-qual-id-semantics
bocchino Oct 1, 2026
90ede16
Merge branch 'absolute-qual-id-semantics' into absolute-qual-id-codegen
bocchino Oct 1, 2026
4c4cd55
Merge branch 'absolute-qual-id-codegen' into absolute-qual-id-users-g…
bocchino Oct 1, 2026
2080f34
Merge branch 'main' into template-users-guide
bocchino Oct 1, 2026
48bd9b9
Revise User's Guide
bocchino Oct 1, 2026
70549ff
Revise User's Guide
bocchino Oct 1, 2026
5cbc5c3
Merge branch 'main' into remove-fpp-format-pyproject
bocchino Oct 1, 2026
c56ca21
Fix top-level command validation
bocchino Oct 1, 2026
167e86e
Merge branch 'template-users-guide' into issue-1073-fpp-to-fpp
bocchino Oct 1, 2026
3362d23
Fix comment in Scala tests
bocchino Oct 1, 2026
f1bc81a
Merge pull request #1135 from nasa/absolute-qual-id-semantics
bocchino Oct 2, 2026
f72645f
Merge pull request #1136 from nasa/absolute-qual-id-codegen
bocchino Oct 2, 2026
f9d036c
Revise fpp-to-fpp
bocchino Oct 2, 2026
1a6c2f5
Regenerate docs
bocchino Oct 2, 2026
ae16bfb
Revise code gen for direct port calls (#1143)
bocchino Oct 5, 2026
f96d4e8
Revise fpp-locate-defs
bocchino Oct 5, 2026
7934207
Remove commented-out code
bocchino Oct 5, 2026
74fa7c9
Revise User's Guide
bocchino Oct 5, 2026
6b4084b
Revise User's Guide
bocchino Oct 6, 2026
5d06e32
Merge pull request #1144 from nasa/issue-1143-typed-serial
bocchino Oct 6, 2026
4579f1a
Merge branch 'main' into template-users-guide
bocchino Oct 6, 2026
3e8221d
Merge branch 'template-users-guide' into issue-1073-fpp-to-fpp
bocchino Oct 6, 2026
6e87828
Merge branch 'issue-1073-fpp-to-fpp' into issue-1137-fpp-locate-defs
bocchino Oct 6, 2026
6b1a327
Merge branch 'main' into feature/absolute-qual-ids
bocchino Oct 6, 2026
e486c49
Merge branch 'feature/absolute-qual-ids' into absolute-qual-id-users-…
bocchino Oct 6, 2026
4e39f77
Merge branch 'issue-1137-fpp-locate-defs' into issue-990-integration
bocchino Oct 6, 2026
948f4fd
Revise User's Guide
bocchino Oct 6, 2026
b490add
Rename helper functions
bocchino Oct 6, 2026
1bca7c6
Revise User's Guide
bocchino Oct 6, 2026
723d3ac
Revise User's Guide
bocchino Oct 6, 2026
c5e8e43
Rename ResolveTemplates
bocchino Oct 6, 2026
a1ab352
Rename EnterTemplateSymbols
bocchino Oct 6, 2026
3c8780b
Refactor EnterSymbols
bocchino Oct 6, 2026
3384821
Merge branch 'template-users-guide' into issue-1073-fpp-to-fpp
bocchino Oct 6, 2026
f9aad3d
Merge branch 'issue-1073-fpp-to-fpp' into issue-1137-fpp-locate-defs
bocchino Oct 6, 2026
20d6407
Regenerate docs
bocchino Oct 6, 2026
a605513
Merge branch 'issue-1073-fpp-to-fpp' into issue-1137-fpp-locate-defs
bocchino Oct 6, 2026
bc1224b
Fix template argument type finalization
Kronos3 Oct 7, 2026
4367dde
Merge pull request #1147 from nasa/issue-1137-fpp-locate-defs
bocchino Oct 7, 2026
290bbfa
Merge pull request #1150 from nasa/fix-template-arg-type-finalization
Kronos3 Oct 7, 2026
eec2671
Merge branch 'main' into feature/absolute-qual-ids
bocchino Oct 7, 2026
359a950
Merge branch 'feature/absolute-qual-ids' into absolute-qual-id-users-…
bocchino Oct 7, 2026
01e6573
Merge branch 'main' into feature/absolute-qual-ids
bocchino Oct 7, 2026
83c6f67
Merge branch 'feature/absolute-qual-ids' into absolute-qual-id-users-…
bocchino Oct 7, 2026
2b8ea04
Revise User's Guide
bocchino Oct 7, 2026
d354573
Merge pull request #1140 from nasa/absolute-qual-id-users-guide
bocchino Oct 7, 2026
ebf5250
Merge branch 'main' into issue-1146-syntax-expansion
bocchino Oct 7, 2026
a036151
Move Dependencies from Expansion to Definition
Kronos3 Oct 7, 2026
cd904ee
Merge remote-tracking branch 'origin/main' into reword-fpp-depend-tem…
Kronos3 Oct 7, 2026
7860d77
Fix tests and move deployment topology check into CheckSemantics
Kronos3 Oct 7, 2026
8c9f14b
Refactor syntax expansion
bocchino Oct 7, 2026
5c8ff4f
Refactor fpp-depend
bocchino Oct 7, 2026
fda0392
Refactor fpp-locate-defs
bocchino Oct 7, 2026
1589f7c
Refactor fpp-locate-uses
bocchino Oct 7, 2026
5d90627
Refactor fpp-locate-uses
bocchino Oct 7, 2026
95e042b
Revise fpp-syntax
bocchino Oct 7, 2026
ece6283
Revise fpp-to-fpp
bocchino Oct 7, 2026
c93c261
Refactor fpp-to-json
bocchino Oct 8, 2026
c750f44
Refactor fpp-to-layout
bocchino Oct 8, 2026
cf3cc3b
Refactor CheckSemantics, fpp-check
bocchino Oct 8, 2026
d5b8810
Refactor fpp-to-layout
bocchino Oct 8, 2026
f33a9ab
Refactor tools
bocchino Oct 8, 2026
33c4183
Refactor fpp-filenames
bocchino Oct 8, 2026
9c72ae0
Refactor fpp-locate-defs
bocchino Oct 8, 2026
d00a837
Refactor fpp-locate-uses
bocchino Oct 8, 2026
aaab77d
Refactor fpp-to-cpp
bocchino Oct 8, 2026
4b2c743
Refactor fpp-to-dict
bocchino Oct 8, 2026
657042f
Refactor fpp-to-json
bocchino Oct 8, 2026
030feca
Refactor semantics tests
bocchino Oct 8, 2026
8d68236
Refactor CheckSemantics
bocchino Oct 8, 2026
afcffd4
Refactor CheckSemantics, ToolUtils
bocchino Oct 8, 2026
a592f25
Move wiki into docs/wiki and deploy it from CI
Kronos3 Oct 8, 2026
d5afd4a
Refactor tools
bocchino Oct 8, 2026
717d6f6
Revise fpp-to-json
bocchino Oct 8, 2026
622a611
Revise fpp-to-layout
bocchino Oct 8, 2026
9311d92
Merge pull request #1155 from nasa/issue-1128-move-wiki
bocchino Oct 8, 2026
c3bbf6d
Merge branch 'main' into issue-1146-syntax-expansion
bocchino Oct 9, 2026
d8fa6e9
Update wiki
bocchino Oct 9, 2026
fcb8cb0
Refactor Scala tests for templates
bocchino Oct 12, 2026
f45bb80
Implement review comments
bocchino Oct 12, 2026
10be1fc
Merge pull request #1156 from nasa/issue-1146-syntax-expansion
bocchino Oct 12, 2026
701e470
Merge remote-tracking branch 'origin/main' into reword-fpp-depend-tem…
Kronos3 Oct 12, 2026
6f09d40
Revise spec
bocchino Oct 12, 2026
8ab7f5e
Revise spec; revise syntax
bocchino Oct 12, 2026
cfde476
Refactor AstWriter
bocchino Oct 12, 2026
5bd18ab
Revise spec, syntax, and tests
bocchino Oct 13, 2026
ebf0208
Revise analysis
bocchino Oct 13, 2026
779f30f
Revise ExpandTemplates
bocchino Oct 13, 2026
fd871c1
Revise spec
bocchino Oct 13, 2026
1464b48
Refactor error checking
bocchino Oct 13, 2026
450a092
Revise CheckTemplateDefs
bocchino Oct 13, 2026
5bd75f7
Revise ExpandTemplates
bocchino Oct 13, 2026
4ff5579
Refactor ExpandTemplates
bocchino Oct 13, 2026
a433316
Refactor ExpandTemplates
bocchino Oct 13, 2026
a5e519b
Refactor ExpandTemplates
bocchino Oct 13, 2026
910aa23
Refactor ExpandTemplates
bocchino Oct 13, 2026
d313f13
Refactor ExpandTemplates
bocchino Oct 13, 2026
bce7e7a
Refactor ExpandTemplates
bocchino Oct 13, 2026
84f9d3c
Refactor ExpandTemplates
bocchino Oct 13, 2026
c11355c
Refactor ExpandTemplates
bocchino Oct 13, 2026
3895d4d
Refactor ExpandTemplates
bocchino Oct 13, 2026
c36ae19
Refactor ExpandTemplates
bocchino Oct 13, 2026
bab45e5
Refactor ExpandTemplates
bocchino Oct 13, 2026
be387f3
Refactor ExpandTemplates
bocchino Oct 13, 2026
a3f7340
Refactor ExpandTemplates
bocchino Oct 13, 2026
c99182f
Refactor ExpandTemplates
bocchino Oct 13, 2026
7404f06
Refactor ExpandTemplates
bocchino Oct 13, 2026
14c498e
Refactor ExpandTemplates
bocchino Oct 13, 2026
3431b94
Refactor ExpandTemplates
bocchino Oct 13, 2026
44839b0
Refactor ExpandTemplates
bocchino Oct 13, 2026
c59d1b5
Refactor ExpandTemplates
bocchino Oct 13, 2026
40c439d
Refactor ExpandTemplates
bocchino Oct 13, 2026
06f86b0
Refactor analysis
bocchino Oct 13, 2026
1f16a9e
Add outline of CheckTemplateExpansions
bocchino Oct 13, 2026
9e01546
Revise CheckTemplateExpansions
bocchino Oct 13, 2026
672eb46
Rename Expand Syntax
bocchino Oct 13, 2026
50f1f0f
Revise ExpandSyntax
bocchino Oct 13, 2026
0c95945
Revise ExpandSyntax
bocchino Oct 13, 2026
faaab98
Revise fpp-check tests
bocchino Oct 13, 2026
d673cac
Revise fpp-check tests
bocchino Oct 13, 2026
840123c
Refactor ExpandTemplates
bocchino Oct 14, 2026
58da0ee
Refactor ExpandTemplates
bocchino Oct 14, 2026
f4814f7
Revise comment
bocchino Oct 14, 2026
5b070c8
Refactor ExpandTemplates and AstUnitTransformer
bocchino Oct 14, 2026
1cedb50
Update wiki with new algorithm
Kronos3 Oct 14, 2026
56922f0
Move expand down
Kronos3 Oct 14, 2026
09df411
Disallow system inside a template
Kronos3 Oct 14, 2026
158c5f2
Regen ref
Kronos3 Oct 14, 2026
b9953c7
Refactor fpp-depend code
Kronos3 Oct 14, 2026
45e3238
Add for instance
Kronos3 Oct 15, 2026
236c52c
Regen docs
Kronos3 Oct 15, 2026
d8623cc
Rename CheckTemplateDefinitions
bocchino Oct 15, 2026
c301b0f
Revise wiki
bocchino Oct 15, 2026
b211445
Revise spec and user's guide
bocchino Oct 15, 2026
9911494
Revise Analysis structure and wiki
bocchino Oct 15, 2026
23a9fa5
Revise ExpandTemplates
bocchino Oct 15, 2026
9ecccf1
Revise AstTransformer
bocchino Oct 15, 2026
8324462
Revise ast transformers
bocchino Oct 15, 2026
72f1a73
Update fpp-syntax tests
bocchino Oct 15, 2026
c57e234
Refactor fpp-syntax tests
bocchino Oct 15, 2026
2743b77
Merge branch 'issue-1090-expand' into issue-1159-fpp-to-fpp-import
bocchino Oct 15, 2026
3b3abf1
Revise fpp-syntax
bocchino Oct 15, 2026
edacdb0
Revise fpp-to-fpp
bocchino Oct 15, 2026
39cf581
Revise fpp-to-fpp
bocchino Oct 15, 2026
53693e0
Rename test files
bocchino Oct 15, 2026
7839788
Update fpp-to-fpp tests
bocchino Oct 15, 2026
e38199f
Update User's Guide
bocchino Oct 16, 2026
393f89a
Move using first
Kronos3 Oct 16, 2026
9e4c73b
Include annotation for packets from FPP in dictionary
bevinduckett Oct 16, 2026
9f239bf
Merge pull request #1158 from nasa/issue-1090-expand
bocchino Oct 16, 2026
9dbeda2
Revise wiki
bocchino Oct 15, 2026
a5e2d6d
Revise fpp-syntax
bocchino Oct 15, 2026
43e5ade
Revise fpp-to-fpp
bocchino Oct 15, 2026
1bc3704
Revise fpp-to-fpp
bocchino Oct 15, 2026
39d5a1a
Rename test files
bocchino Oct 15, 2026
5cad441
Update fpp-to-fpp tests
bocchino Oct 15, 2026
46f8f88
Update User's Guide
bocchino Oct 16, 2026
4b7da8e
Merge branch 'issue-1159-fpp-to-fpp-import' of github.com:nasa/fpp in…
bocchino Oct 16, 2026
2d41de0
Merge branch 'main' into add-using-for-instance
bocchino Oct 16, 2026
e176425
Revise User's Guide
bocchino Oct 16, 2026
0dd1657
Merge remote-tracking branch 'nasa/main' into packet-annotation
bocchino Oct 19, 2026
f44a9d7
Merge pull request #1167 from bevinduckett/packet-annotation
bocchino Oct 19, 2026
0fb3f12
Merge branch 'main' into issue-1159-fpp-to-fpp-import
bocchino Oct 19, 2026
00dcb9c
Add test for state enums
bocchino Oct 19, 2026
32291e7
Add fpp-check test
bocchino Oct 19, 2026
e4add7a
Revise wiki
bocchino Oct 19, 2026
41502e3
Revise AddStateEnums
bocchino Oct 19, 2026
62f7e45
Revise wiki, AddStateEnums
bocchino Oct 19, 2026
489764a
Refactor FppWriter
bocchino Oct 19, 2026
7a094aa
Revise fpp-to-fpp for state enums
bocchino Oct 19, 2026
8aeb501
Revise fpp-to-fpp tests
bocchino Oct 19, 2026
f962598
Revise wiki
bocchino Oct 19, 2026
9d8eab2
Revise User's Guide
bocchino Oct 19, 2026
79d65a2
Reviser User's Guide
bocchino Oct 19, 2026
bba4ca3
Merge branch 'issue-1159-fpp-to-fpp-import' into issue-1162-state-enums
bocchino Oct 20, 2026
693919c
Merge branch 'issue-1162-state-enums' into issue-1160-writing-state-e…
bocchino Oct 20, 2026
2cdfc82
Fix Parser test
bocchino Oct 20, 2026
2573713
Merge remote-tracking branch 'origin/main' into reword-fpp-depend-tem…
Kronos3 Oct 20, 2026
47718b8
Bring the algorithm back in-line with 3.4.0
Kronos3 Oct 20, 2026
c708446
Make TemplatesSpec not check the template, just expand it
Kronos3 Oct 21, 2026
479c1f6
Remove duplicate step
Kronos3 Oct 21, 2026
5ef8620
Fix wiki
Kronos3 Oct 21, 2026
771f7bb
Cache the parsed TU for later during template expansion
Kronos3 Oct 22, 2026
e56c208
Removed redundant CheckTemplateDefs
Kronos3 Oct 22, 2026
462faca
Revise User's Guide
bocchino Oct 22, 2026
ea27f5a
Check for system/deployment top in expansion, add tests, wiki spec
Kronos3 Oct 22, 2026
b5fabc5
Revise User's Guide
bocchino Oct 22, 2026
ae8a807
Merge pull request #1153 from nasa/reword-fpp-depend-template
bocchino Oct 23, 2026
a2dfb7c
Merge branch 'issue-1159-fpp-to-fpp-import'
bocchino Oct 23, 2026
d2ccbb7
Merge branch 'issue-1159-fpp-to-fpp-import' into issue-1162-state-enums
bocchino Oct 23, 2026
fdfffe6
Merge branch 'issue-1162-state-enums' into issue-1160-writing-state-e…
bocchino Oct 23, 2026
8868218
Fix Scala tests
bocchino Oct 23, 2026
d13656d
Merge remote-tracking branch 'origin/main' into add-using-for-instance
Kronos3 Oct 23, 2026
49a1492
Merge pull request #1175 from nasa/issue-1159-fpp-to-fpp-import
bocchino Oct 23, 2026
512e6b0
Merge pull request #1176 from nasa/issue-1162-state-enums
bocchino Oct 23, 2026
e8d1c7f
Revise fpp-depend
bocchino Oct 23, 2026
9bc4ff0
Merge pull request #1177 from nasa/issue-1160-writing-state-enums
bocchino Oct 23, 2026
8b12c3d
Merge branch 'main' into add-using-for-instance
bocchino Oct 23, 2026
a06732b
Revise dependency algorithm
bocchino Oct 23, 2026
2617959
Revise fpp-depend tests
bocchino Oct 23, 2026
f882930
Revise Computing Dependencies algorithm
bocchino Oct 24, 2026
89b20e0
Revise AddDependencies
bocchino Oct 24, 2026
ad8b5bc
Revise AddDependencies
bocchino Oct 24, 2026
8da85b6
Refactor AddDependencies
bocchino Oct 26, 2026
2f18f33
Refactor AddDependencies
bocchino Oct 26, 2026
a99d84a
Add newline to end of file
bocchino Oct 26, 2026
ad02057
Update macOs runner to macos-15 (#1183)
bocchino Oct 27, 2026
589a0be
Update ubuntu runner to 24.04
bocchino Oct 27, 2026
40c2bdc
Revert "Update ubuntu runner to 24.04"
bocchino Oct 27, 2026
3072abe
Merge pull request #1185 from nasa/issue-1183-macos-runner
LeStarch Oct 27, 2026
c4ce420
Merge branch 'main' into issue-1172-direct-depend
bocchino Oct 28, 2026
fa045b9
Merge pull request #1161 from nasa/add-using-for-instance
Kronos3 Oct 29, 2026
cf3d759
Merge branch 'main' into issue-1172-direct-depend
bocchino Oct 29, 2026
8b2c17e
Merge pull request #1179 from nasa/issue-1172-direct-depend
bocchino Oct 30, 2026
1e6c751
Merge remote-tracking branch 'origin/vector-types' into variable-size…
Kronos3 Nov 11, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/build-native-images/native-images
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ do
echo "Building $out_file"
class_path="${CLASSPATH}"
evalp "$FPP_GRAALVM_JAVA_HOME/bin/native-image" -H:PageSize=65536 -cp "${class_path}" $FPP_NATIVE_IMAGE_FLAGS \
--no-fallback --install-exit-handlers \
--sun-misc-unsafe-memory-access=allow --enable-native-access=ALL-UNNAMED \
-jar "$jar_file" "$out_file"
if [ $? -ne 0 ]
then
Expand Down
52 changes: 37 additions & 15 deletions .github/actions/native-tools-setup/env-setup
Original file line number Diff line number Diff line change
@@ -1,46 +1,68 @@
#!/bin/bash

# Resolve architecture. Note: this is dependent on the graal version
graal_arch="$(uname -m)"
set -e

# Map uname output to the OS name used by GraalVM release assets
graal_os="$( uname -s | tr "[:upper:]" "[:lower:]")"
if [[ "$graal_os" == "darwin" ]]
then
graal_os="macos"
fi

# Override graal_arch when on amd64
# Map uname output to the architecture name used by GraalVM release assets
graal_arch="$(uname -m)"
if [[ "$graal_arch" == "x86_64" ]] || [[ "$graal_arch" == "x64" ]]
then
graal_arch="amd64"
graal_arch="x64"
elif [[ "$graal_arch" == "arm64" ]] || [[ "$graal_arch" == "aarch64" ]]
then
graal_arch="aarch64"
fi

graal_ver="22.3.0"
graal_os="$( uname -s | tr "[:upper:]" "[:lower:]")"
graal_ar="graalvm-ce-java11-${graal_os}-${graal_arch}-${graal_ver}.tar.gz"
graal_dir="$(pwd)/graalvm-ce-java11-${graal_ver}"
graal_url="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${graal_ver}/${graal_ar}"
# The GraalVM Community Edition release to use: graal_tag is the tag of the
# GitHub release, and graal_jdk is the JDK version that it provides
graal_tag="graal-25.3.4.1"
graal_jdk="25i3-25.0.4.1"
graal_ar="graalvm-community-jdk-${graal_jdk}_${graal_os}-${graal_arch}_bin.tar.gz"
graal_url="https://github.com/graalvm/graalvm-ce-builds/releases/download/${graal_tag}/${graal_ar}"

# Download Graal
echo "Downloading GraalVM from: ${graal_url}"
curl -fL -o "${graal_ar}" "${graal_url}"

# The name of the extracted directory does not match the name of the archive,
# so read it out of the archive
graal_dir="$(pwd)/$(tar -tzf "${graal_ar}" | head -1 | cut -d/ -f1)"

# Start fresh
if [ -d "${graal_dir}" ]
then
rm -r "${graal_dir}"
fi


# Download Graal
echo "Downloading GraalVM from: ${graal_url}"
curl -L "${graal_url}" > "${graal_ar}"
tar -xzf "${graal_ar}"
graal_bin="${graal_dir}/bin"
if [ ! -d "${graal_bin}" ]
then
graal_bin="${graal_dir}/Contents/Home/bin"
fi

# native-image is bundled with GraalVM for JDK 21 and later, so there is
# nothing to install. Check that we resolved the layout of the release
# correctly.
if [ ! -x "${graal_bin}/native-image" ]
then
echo "[ERROR] native-image not found in ${graal_bin}" 1>&2
exit 1
fi

export PATH="${graal_bin}:${PATH}"
export JAVA_HOME="$(dirname ${graal_bin})"
export FPP_GRAALVM_JAVA_HOME="$(dirname ${graal_bin})"
# Install native image
${graal_bin}/gu install native-image

if [ -n "$GITHUB_ENV" ]
then
echo PATH="${PATH}" >> $GITHUB_ENV
echo JAVA_HOME="${JAVA_HOME}" >> $GITHUB_ENV
echo FPP_GRAALVM_JAVA_HOME="${FPP_GRAALVM_JAVA_HOME}" >> $GITHUB_ENV
fi
68 changes: 68 additions & 0 deletions .github/scripts/test-wheels
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/bin/sh

# ----------------------------------------------------------------------
# Install the FPP wheel found in a directory and check that each tool runs
#
# Usage: test-wheels wheel-dir
#
# Run this with the target Python virtual environment already activated.
# ----------------------------------------------------------------------

if test $# -ne 1
then
echo "usage: test-wheels wheel-dir" 1>&2
exit 1
fi

wheel_dir="$1"
repo_root=$(cd $(dirname $0)/../..; pwd)

if test ! -d "$wheel_dir"
then
echo "[ERROR] no such directory: $wheel_dir" 1>&2
exit 1
fi

wheels=$(find "$wheel_dir" -name "*.whl")
if test -z "$wheels"
then
echo "[ERROR] no wheel files in $wheel_dir" 1>&2
exit 1
fi

# The FPP package has no dependencies, so install without consulting an index
echo "[INFO] Installing $wheels"
python3 -m pip install --no-index $wheels || exit 1

# Report which tools we are about to test, so that a wheel that installs no
# entry points is easy to diagnose
echo "[INFO] Using fpp at $(command -v fpp)"

# Build the list of tool names
tools="fpp"
for tool in $(cat "$repo_root/compiler/tools.txt")
do
tools="$tools fpp-$tool"
done

# Check that each tool runs. Every tool exits 0 on --help; note that --version
# does not work for the subcommand wrappers.
num_failed=0
for tool in $tools
do
if $tool --help > /dev/null < /dev/null
then
echo "[INFO] $tool --help: ok"
else
echo "[ERROR] $tool --help failed" 1>&2
num_failed=$(expr $num_failed + 1)
fi
done

if test $num_failed -ne 0
then
echo "[ERROR] $num_failed tools failed" 1>&2
exit 1
fi

echo "[INFO] All tools passed"
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v6
- name: Set up JDK 11
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '11'
java-version: '25'
distribution: 'temurin'
cache: 'sbt'
- name: Install Scala
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/deploy-wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy Wiki

on:
push:
branches: [ "main" ]
paths: [ "docs/wiki/**" ]
workflow_dispatch:

permissions:
contents: write

concurrency:
group: deploy-wiki
cancel-in-progress: false

jobs:
deploy:
if: github.repository == 'nasa/fpp'
runs-on: ubuntu-22.04

steps:
- name: Check out repository
uses: actions/checkout@v6
with:
path: fpp
- name: Check out wiki
uses: actions/checkout@v6
with:
repository: ${{ github.repository }}.wiki
path: wiki
- name: Copy wiki sources
run: rsync -a --delete --exclude .git fpp/docs/wiki/ wiki/
- name: Commit and push
working-directory: wiki
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
if git diff --cached --quiet
then
echo "Wiki is up to date"
exit 0
fi
git commit -m "Deploy docs/wiki from ${GITHUB_REPOSITORY}@${GITHUB_SHA}"
git push
25 changes: 16 additions & 9 deletions .github/workflows/native-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,8 @@ jobs:
matrix = {
"run": [
{
"runner": "macos-14",
"tag": "macosx_14_0_arm64"
},
{
"runner": "macos-15-intel",
"tag": "macosx_15_0_x86_64"
"runner": "macos-15",
"tag": "macosx_15_0_arm64"
},
{
"runner": "ubuntu-22.04",
Expand Down Expand Up @@ -191,6 +187,10 @@ jobs:
name: build-jar
path: ${{ inputs.output-directory }}
- name: "Run Builder"
env:
# Pin the version to the release tag; `git describe` may pick an older
# tag on the same commit. Empty (non-release) values are ignored.
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.release.tag_name }}
run: |
pip install build
cp -vr ${{ inputs.output-directory }}/*.jar python/fprime_fpp/
Expand All @@ -217,8 +217,12 @@ jobs:
matrix: ${{ fromJson(needs.generate-run-matricies.outputs.native) }}
runs-on: ${{ matrix.run.runner }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v6
with:
submodules: recursive
- name: "Setup Native Image Tools"
uses: fprime-community/native-images-action@unified-tool
uses: ./.github/actions/native-tools-setup
- name: "Download Native Wheels"
uses: actions/download-artifact@v8
with:
Expand All @@ -235,8 +239,11 @@ jobs:
do
python3 -m venv ./test-${subdir}
. ./test-${subdir}/bin/activate
echo "[INFO] Testin ${subdir} Wheels"
$NATIVE_IMAGE_TOOLS_PATH/test-wheels "${{ inputs.output-directory }}/${subdir}" "${{ inputs.meta-package }}" || exit $?
echo "[INFO] Testing ${subdir} wheels"
.github/scripts/test-wheels "${{ inputs.output-directory }}/${subdir}" || exit $?
# Leave the virtual environment, so that the next iteration does
# not find this one's tools on the PATH
deactivate
done
shell: bash
publish-wheels:
Expand Down
3 changes: 2 additions & 1 deletion compiler/.jvmopts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-XX:+CMSClassUnloadingEnabled
-Xss2M
--sun-misc-unsafe-memory-access=allow
--enable-native-access=ALL-UNNAMED
30 changes: 11 additions & 19 deletions compiler/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

. The https://www.scala-sbt.org[Simple Build Tool (sbt)] for Scala.

. Version 11 of the Java Development Kit (JDK).
. Version 25 of the Java Development Kit (JDK).
If you have a different version of Java installed on your system, then
you can do the following:

.. Install version 11 of the JDK.
.. Install version 25 of the JDK.
For example, in MacPorts you can run
+
[source,bash]
----
% sudo port install openjdk11-graalvm
% sudo port install openjdk25-graalvm
----

.. Set the environment variable `FPP_JAVA_HOME` to the home directory associated
Expand All @@ -24,7 +24,7 @@ For example, on Mac OS:
+
[source,bash]
----
% export FPP_JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk11-graalvm/Contents/Home
% export FPP_JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-25-graalvm-community.jdk/Contents/Home
----

== Installing
Expand All @@ -50,12 +50,12 @@ That way you can run the tools from anywhere.
* `fpp-check`
* `fpp-depend`
* `fpp-filenames`
* `fpp-format`
* `fpp-from-xml`
* `fpp-locate-defs`
* `fpp-locate-uses`
* `fpp-syntax`
* `fpp-to-cpp`
* `fpp-to-fpp`
* `fpp-to-dict`
* `fpp-to-layout`

Expand Down Expand Up @@ -135,7 +135,7 @@ For example, using MacPorts on Mac OS:
+
[source,bash]
----
% sudo port install openjdk11-graalvm
% sudo port install openjdk25-graalvm
----

. Set the global environment variable `FPP_GRAALVM_JAVA_HOME` to the `Home` directory
Expand All @@ -144,15 +144,9 @@ For example, on Mac OS:
+
[source,bash]
----
% export FPP_GRAALVM_JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk11-graalvm/Contents/Home
% export FPP_GRAALVM_JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-25-graalvm-community.jdk/Contents/Home
----

. Run `sudo $FPP_GRAALVM_JAVA_HOME/bin/gu install native-image`
*You must rerun this step every time you update or reinstall GraalVM (step 1).*
If you update or reinstall GraalVM, and you forget to re-install `native-image`,
then your GraalVM installation and your `native-image` installation will be out
of sync, and the native image build may not work.

. Run `./release` in this directory.
The script will build the native binary tools and install them at
`native-fpp-[platform name]`.
Expand All @@ -178,16 +172,14 @@ Occasionally when developing FPP, you may need to re-run the tracing
agent to capture new runtime behavior.
To do that, use the following procedure:

. Ensure that `native-image` is installed and up-to-date,
as described above.
. Ensure that GraalVM is installed, as described above.

. Run `./install-trace` to install JVM versions of the FPP tools with
tracing enabled in the `bin` directory.

. Edit the file
`compiler/lib/src/main/resources/META-INF/native-image/reflect-config.json`
so that it contains a pair of square brackets `[]` and nothing else.
This will clear out any old trace information.
. Delete all files in the directory
`compiler/lib/src/main/resources/META-INF/native-image`.
This step will clear out any old trace information.

. Run `./test` to use the installed tools to run the unit tests.
This step will run the tracing agent and update the trace files.
Expand Down
Loading