chore(cef): adopt reliable OSR input stack
- commit
- 1721466378c4350abe841ab33a18ae9e26b70552
- author
- brice · · 2026-07-26 16:19 UTC
- parent
- a405b8e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3 files · +12 -8
M go.mod +2 -2
| @@ -6,8 +6,8 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.14.1 | |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.5 | |
| 9 | + | github.com/bnema/purego-cef v0.14.2 | |
| 10 | + | github.com/bnema/purego-cef2gtk v0.9.0 | |
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5 | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4 | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1 | |
| @@ -6,8 +6,8 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.14.1 | 9 | + | github.com/bnema/purego-cef v0.14.2 |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.5 | 10 | + | github.com/bnema/purego-cef2gtk v0.9.0 |
| 11 | github.com/bnema/purego-pipewire v0.1.5 | 11 | github.com/bnema/purego-pipewire v0.1.5 | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4 | 12 | github.com/bnema/purego-sqlite v0.1.4 | ||
| 13 | github.com/bnema/purego-webp v0.2.1 | 13 | github.com/bnema/purego-webp v0.2.1 | ||
M go.sum +4 -4 generated file: collapsed
M internal/infrastructure/cef/first_presentation_collector_test.go +6 -2
| @@ -118,6 +118,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 118 | 118 | binary := filepath.Join(temp, "dumber") | |
| 119 | 119 | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 120 | 120 | ||
| 121 | + | const upstreamVersion = "v0.8.5-0.20300102030405-bbd397409ebe" | |
| 122 | + | const upstreamRevision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |
| 123 | + | goBin := collectorProvenanceGo(t, temp, upstreamVersion, upstreamRevision, "") | |
| 121 | 124 | output := filepath.Join(temp, "artifacts") | |
| 122 | 125 | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 123 | 126 | cmd.Dir = repoRoot | |
| @@ -129,6 +132,7 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 129 | 132 | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 130 | 133 | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |
| 131 | 134 | "DUMBER_MACHINE_GPU_PROFILE=integrated-gpu", | |
| 135 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 132 | 136 | ) | |
| 133 | 137 | result, err := cmd.CombinedOutput() | |
| 134 | 138 | require.NoErrorf(t, err, "collector failed: %s", result) | |
| @@ -144,9 +148,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 144 | 148 | } | |
| 145 | 149 | for _, required := range []string{ | |
| 146 | 150 | `"measured_source_revision"`, | |
| 147 | - | `"version": "v0.8.5"`, | |
| 151 | + | `"version": "` + upstreamVersion + `"`, | |
| 148 | 152 | `"tag": "v0.8.5"`, | |
| 149 | - | `"revision": "b9fb46ef5c04ca0993943c5ca4b6f0fe83583304"`, | |
| 153 | + | `"revision": "` + upstreamRevision + `"`, | |
| 150 | 154 | } { | |
| 151 | 155 | require.Contains(t, artifacts.String(), required) | |
| 152 | 156 | } | |
| @@ -118,6 +118,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 118 | binary := filepath.Join(temp, "dumber") | 118 | binary := filepath.Join(temp, "dumber") | ||
| 119 | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | 119 | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | ||
| 120 | 120 | ||||
| 121 | + | const upstreamVersion = "v0.8.5-0.20300102030405-bbd397409ebe" | |||
| 122 | + | const upstreamRevision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |||
| 123 | + | goBin := collectorProvenanceGo(t, temp, upstreamVersion, upstreamRevision, "") | |||
| 121 | output := filepath.Join(temp, "artifacts") | 124 | output := filepath.Join(temp, "artifacts") | ||
| 122 | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | 125 | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | ||
| 123 | cmd.Dir = repoRoot | 126 | cmd.Dir = repoRoot | ||
| @@ -129,6 +132,7 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 129 | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | 132 | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | ||
| 130 | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | 133 | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | ||
| 131 | "DUMBER_MACHINE_GPU_PROFILE=integrated-gpu", | 134 | "DUMBER_MACHINE_GPU_PROFILE=integrated-gpu", | ||
| 135 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 132 | ) | 136 | ) | ||
| 133 | result, err := cmd.CombinedOutput() | 137 | result, err := cmd.CombinedOutput() | ||
| 134 | require.NoErrorf(t, err, "collector failed: %s", result) | 138 | require.NoErrorf(t, err, "collector failed: %s", result) | ||
| @@ -144,9 +148,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 144 | } | 148 | } | ||
| 145 | for _, required := range []string{ | 149 | for _, required := range []string{ | ||
| 146 | `"measured_source_revision"`, | 150 | `"measured_source_revision"`, | ||
| 147 | - | `"version": "v0.8.5"`, | 151 | + | `"version": "` + upstreamVersion + `"`, |
| 148 | `"tag": "v0.8.5"`, | 152 | `"tag": "v0.8.5"`, | ||
| 149 | - | `"revision": "b9fb46ef5c04ca0993943c5ca4b6f0fe83583304"`, | 153 | + | `"revision": "` + upstreamRevision + `"`, |
| 150 | } { | 154 | } { | ||
| 151 | require.Contains(t, artifacts.String(), required) | 155 | require.Contains(t, artifacts.String(), required) | ||
| 152 | } | 156 | } | ||