Commit 2800d18
Sqoia Dev Agent
fix: billing correctness, install, sequential invoices, rules tests
Billing Correctness:
- use_requested_time rule now works (was no-op): charges at timelimit
- GPU invoice line items use GPU rate, not blended CPU rate
- Sequential invoice numbering (INV-YYYY-0001) from ledger
- Fixed double-discount: user/job costs now roll up correctly
from rule-adjusted job costs instead of independent calculation
Performance:
- Wire in fetch_summary_aggregated for year/summary views (was dead code)
- Cache SHOW COLUMNS result (was running on every query)
Install:
- Added make install target (copies files, creates /etc/slurmledger/)
- Removed system symlink from make build
- RPM spec: added python3-pymysql, python3-reportlab Requires
- RPM spec: added %config(noreplace) for rate/institution configs
CI:
- Release workflow: build+test before tag (was tag first)
- Python 3.8 compatibility for ET.indent in financial_export.py
Tests:
- 15 new billing rules tests (no_charge, discount, use_requested_time,
exclude_states, first-match-wins, disabled rules)1 parent e2faa50 commit 2800d18
6 files changed
Lines changed: 559 additions & 43 deletions
File tree
- .github/workflows
- src
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | | - | |
86 | | - | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
22 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | | - | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | | - | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
23 | 49 | | |
24 | 50 | | |
25 | 51 | | |
| |||
98 | 124 | | |
99 | 125 | | |
100 | 126 | | |
101 | | - | |
| 127 | + | |
102 | 128 | | |
103 | 129 | | |
104 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
964 | 975 | | |
965 | 976 | | |
966 | 977 | | |
| |||
971 | 982 | | |
972 | 983 | | |
973 | 984 | | |
974 | | - | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
975 | 1025 | | |
976 | 1026 | | |
977 | 1027 | | |
978 | | - | |
| 1028 | + | |
979 | 1029 | | |
980 | 1030 | | |
981 | 1031 | | |
982 | 1032 | | |
983 | 1033 | | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
| 1034 | + | |
| 1035 | + | |
999 | 1036 | | |
1000 | 1037 | | |
1001 | | - | |
| 1038 | + | |
1002 | 1039 | | |
1003 | 1040 | | |
1004 | 1041 | | |
| |||
1058 | 1095 | | |
1059 | 1096 | | |
1060 | 1097 | | |
1061 | | - | |
| 1098 | + | |
1062 | 1099 | | |
1063 | 1100 | | |
1064 | 1101 | | |
| |||
0 commit comments