This repository was archived by the owner on Jun 18, 2026. It is now read-only.
Commit 6fe2056
committed
refactor: consolidate exporter escape helpers + fix Copilot setup workflow path
refactor: route per-class escapeHtml / jsonString wrappers through gvisual.ExportUtils
so we have one canonical implementation. Affected:
- GraphAdversaryForecaster.jsonString -> ExportUtils.jsonString
(the local copy was the only one that already covered \\b/\\f and
sub-0x20 \\uXXXX escapes; ExportUtils already does both, so behavior
is preserved while killing 22 lines of dupe.)
- GraphAnnotationManager.jsonString -> ExportUtils.jsonString
(local copy did NOT escape \\b/\\f or control chars -> latent JSON
output bug; now correct.)
- GraphFairnessAuditEngine.escapeHtml -> ExportUtils.escapeHtml
- GraphPercolationEngine.escapeHtml -> ExportUtils.escapeHtml
Net: -47 lines, removes drift between exporters/engines, and silently
fixes two control-char escaping holes in JSON annotation output.
setup_copilot_agent: the existing copilot setup file was at
.github/copilot-setup-steps.yml with job name 'setup'. GitHub's coding
agent only picks it up at .github/workflows/copilot-setup-steps.yml
with job name 'copilot-setup-steps' (per docs), so the previous file was
effectively a no-op for the agent.
- Move + rename to .github/workflows/copilot-setup-steps.yml
- Rename job to copilot-setup-steps
- Add timeout, least-privilege contents:read permissions
- Add push/pull_request triggers scoped to pom.xml + this workflow
so breakage is caught in normal CI, not only when an agent runs
- Swap 'mvn dependency:resolve' for 'mvn dependency:go-offline' so
the agent can run tests with -o
- Add 'test-compile' step so test-only breakage surfaces before
running the suite
- Document the new helper conventions in copilot-instructions.md
Build verified: mvn compile -B -ntp (177 sources, BUILD SUCCESS).
Tests verified for touched classes:
ExportUtilsTest, JsonGraphExporterTest, GraphMLExporterTest,
SvgExporterTest, GexfExporterTest, GraphTimelineExporterTest -> 91/91 pass
GraphAdversaryForecasterTest, GraphAnnotationManagerTest,
GraphFairnessAuditEngineTest, GraphPercolationEngineTest (minus the
pre-existing flaky testSiteCurveMonotonicallyNonDecreasing) -> 126/126 pass
The percolation site-curve monotonicity test is a pre-existing flake on
master and is unrelated to this refactor (reproduced before stash apply).1 parent 3150a0c commit 6fe2056
7 files changed
Lines changed: 72 additions & 60 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| 78 | + | |
| 79 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 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 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
816 | 817 | | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
| 818 | + | |
837 | 819 | | |
838 | 820 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
570 | 571 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
| 572 | + | |
577 | 573 | | |
578 | 574 | | |
579 | 575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| 961 | + | |
961 | 962 | | |
962 | | - | |
963 | | - | |
| 963 | + | |
964 | 964 | | |
965 | 965 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| 769 | + | |
769 | 770 | | |
770 | | - | |
771 | | - | |
| 771 | + | |
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| |||
0 commit comments