Skip to content
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
bc76954
feat(idl): add constraints to IDL
dhower-qc Jul 3, 2025
60f2054
feat: add mock spec to udb gem for testing, add Condition classes
dhower-qc Jul 11, 2025
6928ad8
docs: document schema conditions and idl implications
dhower-qc Jul 16, 2025
19c9d58
refactor: move parameters into their own YAML files
dhower-qc Jul 16, 2025
345b441
feat: wip
dhower-qc Jul 23, 2025
0db0e7c
feat: wip
dhower-qc Jul 23, 2025
2d5fb7f
feat: wip
dhower-qc Oct 2, 2025
e5a1756
Merge remote-tracking branch 'origin/main' into param_dep
dhower-qc Oct 2, 2025
3bad309
fix: merge errors
dhower-qc Oct 2, 2025
e0fa497
wip
dhower-qc Oct 7, 2025
688ae1f
wip
dhower-qc Oct 12, 2025
e8f0cb5
add regress job dependency
dhower-qc Oct 12, 2025
a0efba3
Merge remote-tracking branch 'origin/main' into param_dep
dhower-qc Oct 12, 2025
8cc68a6
Fix path in regression for udb unit tests
dhower-qc Oct 12, 2025
728a407
wip
dhower-qc Oct 12, 2025
511534d
wip
dhower-qc Oct 13, 2025
2146664
wip
dhower-qc Oct 13, 2025
c83c9bd
wip
dhower-qc Oct 13, 2025
00f22de
wip
dhower-qc Oct 13, 2025
5383f39
wip
dhower-qc Oct 15, 2025
452c776
wip
dhower-qc Oct 16, 2025
ac82312
wip
dhower-qc Oct 16, 2025
6b3ed6c
wip
dhower-qc Oct 16, 2025
ac2fc62
wip
dhower-qc Oct 16, 2025
2f931cb
wip
dhower-qc Oct 16, 2025
ca34bc4
wip
dhower-qc Oct 31, 2025
044a455
wip
dhower-qc Oct 31, 2025
9f8d8cc
Merge remote-tracking branch 'origin/main' into param_dep
dhower-qc Oct 31, 2025
0d4ff5e
wip
dhower-qc Nov 3, 2025
bccec45
wip
dhower-qc Nov 4, 2025
bcfe7e2
wip
dhower-qc Nov 4, 2025
51eee36
wip
dhower-qc Nov 19, 2025
f0192da
Merge remote-tracking branch 'origin/main' into param_dep
dhower-qc Nov 19, 2025
ff4a76d
Merge remote-tracking branch 'origin/main' into param_dep
dhower-qc Nov 19, 2025
8d8d182
wip
dhower-qc Nov 19, 2025
dc67562
wip
dhower-qc Nov 20, 2025
3d191bc
wip
dhower-qc Nov 20, 2025
b0be0de
wip
dhower-qc Nov 21, 2025
0b34ef5
qip
dhower-qc Nov 24, 2025
9c2b695
wip
dhower-qc Nov 25, 2025
36d205a
wip
dhower-qc Nov 25, 2025
711b06e
wip
dhower-qc Nov 25, 2025
dcf6d37
wip
dhower-qc Nov 25, 2025
500c2ca
wip
dhower-qc Nov 25, 2025
bed5d6f
wip
dhower-qc Nov 25, 2025
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
  •  
  •  
  •  
37 changes: 36 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN \
libgmp-dev \
libnewlib-dev\
libyaml-dev \
minisat \
nodejs \
npm \
parallel \
Expand All @@ -36,7 +37,41 @@ RUN \
python3.12-venv \
ruby \
ruby-dev \
shellcheck
shellcheck \
zlib1g-dev

# build/install eqntott
RUN <<CMDS
git clone --depth=1 https://github.com/TheProjecter/eqntott.git
cd eqntott
./configure
make && make install
cd ..
rm -rf eqntott
CMDS

# build/install espresso
RUN <<CMDS
git clone --depth=1 https://github.com/psksvp/espresso-ab-1.0.git
cd espresso-ab-1.0
./configure
make && make install
cd ..
rm -rf espresso-ab-1.0
CMDS

# build / install must
RUN <<CMDS
git clone https://github.com/jar-ben/mustool.git
cd mustool
git checkout 17fa9f9542a9ce05328dfccd1cd410f05f741ab3
# mcsmus/mcsmus/control.cc is missing #include <cstdio>
sed -i -e 's/#include <signal.h>/#include <signal.h>\n#include <cstdio>/' mcsmus/mcsmus/control.cc
Comment on lines +68 to +69
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should an issue be opened in that upstream repo for this problem?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[I know this is not terribly important... I am testing the use of the gh command to submit comments on the code. ;-) ]

make
install must -m 0777 /usr/bin/must
cd ..
rm -rf mustool
CMDS

RUN apt-get clean autoclean
RUN apt-get autoremove -y
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,58 @@ jobs:
disable_search: true
files: tools/ruby-gems/idlc/coverage/coverage.xml
flags: idlc
regress-udb-unit-test:
runs-on: ubuntu-latest
env:
SINGULARITY: 1
strategy:
matrix:
test:
- logic
- conditions
- cli
- yaml_loader
- cfg_arch
steps:
- name: Clone Github Repo Action
uses: actions/checkout@v4
- name: singularity setup
uses: ./.github/actions/singularity-setup
- name: Run udb gem ${{ matrix.test }} unit tests
run: ./bin/ruby tools/ruby-gems/udb/test/test_${{ matrix.test }}.rb
- name: Rename coverage file
run: mv tools/ruby-gems/udb/coverage/.resultset.json tools/ruby-gems/udb/coverage/${{ matrix.test }}.resultset.json
- name: Save coverage report
uses: actions/upload-artifact@v4
with:
name: udb-${{ matrix.test }}-cov
path: tools/ruby-gems/udb/coverage/${{ matrix.test }}.resultset.json
regress-udb-cov-report:
runs-on: ubuntu-latest
env:
SINGULARITY: 1
needs: regress-udb-unit-test
steps:
- name: Clone Github Repo Action
uses: actions/checkout@v4
- name: singularity setup
uses: ./.github/actions/singularity-setup
- name: download coverage
uses: actions/download-artifact@v5
with:
pattern: udb-*-cov
path: _cov/udb
merge-multiple: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Collate coverage
run: ./do chore:udb:collate_cov[_cov/udb]
- name: Upload udb coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
files: tools/ruby-gems/udb/coverage/coverage.xml
flags: udb
regress-gen-isa-manual:
runs-on: ubuntu-latest
env:
Expand Down
15 changes: 11 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"solargraph.bundlerPath": "bin/bundle",
"solargraph.bundlerPath": "./bin/bundle",
"solargraph.useBundler": true,
"sorbet.lspConfigs": [


{
"id": "container",
"name": "Sorbet (UDB)",
Expand Down Expand Up @@ -34,13 +35,13 @@
"name": "Sorbet (Host)",
"description": "Sorbet on the host",
"command": [
"/usr2/dhower/.rbenv/shims/bundle",
"bundle",
"exec",
"srb",
"typecheck",
"--lsp",
"--dir",
"tools/gems",
"tools/ruby-gems",
"--ignore",
"api_doc",
"--ignore",
Expand All @@ -66,5 +67,11 @@
]
}
],
"sorbet.selectedLspConfigId": "host"
"sorbet.selectedLspConfigId": "host",
"rubyTestExplorer.debugCommand": "bundle exec rdebug-ide",
"rubyTestExplorer.minitestCommand": "bundle exec rake",
"rubyTestExplorer.rspecCommand": "bundle exec rspec",
"rubyTestExplorer.testFramework": "minitest",
"rubyTestExplorer.minitestDirectory": "./tools/ruby-gems/idlc/test/",
"ipynb.experimental.serialization": false
}
6 changes: 1 addition & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ruby "~> 3.2"
# local gems in UDB
gem "idlc", path: "tools/ruby-gems/idlc"
gem "idl_highlighter", path: "tools/ruby-gems/idl_highlighter"
gem "udb_helpers", path: "tools/ruby-gems/udb_helpers"
gem "udb", path: "tools/ruby-gems/udb"
gem "udb_helpers", path: "tools/ruby-gems/udb_helpers"

source "https://rubygems.org"

Expand All @@ -18,12 +18,8 @@ gem "bigdecimal"
gem "concurrent-ruby", require: "concurrent"
gem "concurrent-ruby-ext"
gem "json_schemer", "~> 1.0"
# gem "pygments.rb"
gem "rake", "~> 13.0"
#gem "rouge"
gem "ruby-progressbar", "~> 1.13"
gem "sorbet-runtime"
#gem "treetop", "1.6.12"
gem "ttfunk", "1.7" # needed to avoid having asciidoctor-pdf dependencies pulling in a buggy version of ttunk (1.8)
gem "webrick"
gem "write_xlsx"
Expand Down
Loading
Loading