Simão Gomes Viana
627a247ad4
blueprint: report config reads that could not be hashed
...
ConfigValuesRead returned only a slice of reads. When a
read could not be hashed, the error had no way out.
The method now returns a slice and an error. The helper
configValuesReadBy panics with the name of the module or
singleton when the list cannot be built.
ConfigValuesRead gains a second return value of type error.
configValuesReadBy takes a name string and the module or
singleton. It calls ConfigValuesRead and checks the
returned error. On failure it panics through newPanicErrorf
with a message that names the source. Both call sites in
context.go pass the name: the module description for
modules, the singleton name for singletons.
A hash error during the read collection was invisible to
the caller, so a partial list could be saved without any
warning.
A module or singleton whose read list cannot be built now
stops the analysis with an identifiable message instead of
saving a partial list.
Test: go test -count=1 \
-run 'TestRestoreBuildActions|TestSingletonRestore' . (ok)
Category: build optimization
2026-11-14 07:44:58 +01:00
.github /workflows
Fix github builds for deprecated set-env and add-path commands ( #333 )
2020-11-23 16:52:58 -08:00
bootstrap
blueprint: store order-only dependencies per entry in the cache
2026-11-14 07:44:58 +01:00
bpfmt
Split build/blueprint/Android.bp into subdirectories
2025-10-01 12:11:29 -07:00
bpmodify
bpmodify: Don't add newlines when removing.
2026-02-21 00:19:07 +00:00
dbtools
dbtools: read the incremental cache files into memory until close
2026-11-04 22:56:36 +01:00
depset
blueprint: decode the values read by always-running singletons on all cores
2026-11-03 21:25:12 +01:00
deptools
Split build/blueprint/Android.bp into subdirectories
2025-10-01 12:11:29 -07:00
gobtools
blueprint: store each cached reference when it is first encoded
2026-11-03 21:25:12 +01:00
gotestmain
Split build/blueprint/Android.bp into subdirectories
2025-10-01 12:11:29 -07:00
gotestrunner
Split build/blueprint/Android.bp into subdirectories
2025-10-01 12:11:29 -07:00
loadplugins
Split build/blueprint/Android.bp into subdirectories
2025-10-01 12:11:29 -07:00
metrics
Add unit test for EventHandler
2023-02-27 11:41:51 -05:00
microfactory
microfactory, bootstrap: read Go sources once, bound the builder heap
2026-10-18 17:04:02 +02:00
optional
Split build/blueprint/Android.bp into subdirectories
2025-10-01 12:11:29 -07:00
parallel
blueprint: write module actions into one ninja file per directory group
2026-11-11 21:17:49 +01:00
parser
bpmodify: Don't add newlines when removing.
2026-02-21 00:19:07 +00:00
pathtools
pathtools: add a writer that replaces a file only when its content changed
2026-11-11 21:17:49 +01:00
pool
blueprint: compress every value of the incremental analysis cache
2026-11-03 21:25:12 +01:00
proptools
blueprint: write module actions into one ninja file per directory group
2026-11-11 21:17:49 +01:00
syncmap
Fix race in uniquelist.Make()
2026-02-20 18:26:00 -08:00
tests
Make test_tree_tests.sh slightly easier to read
2017-10-30 15:00:19 -07:00
uniquelist
Fix race in uniquelist.Make()
2026-02-20 18:26:00 -08:00
.gitignore
Ignore editor swap files.
2025-09-29 15:54:33 -07:00
.gofmt.sh
Use github actions instead of travis
2020-06-15 10:32:10 -07:00
Android.bp
blueprint: rerun a cached entry whose config reads changed
2026-11-14 07:44:58 +01:00
background_tasks.go
blueprint: store module providers from the analysis, not one writer
2026-11-03 21:25:12 +01:00
blueprint_enc.go
blueprint: rerun a cached entry whose config reads changed
2026-11-14 07:44:58 +01:00
CODEOWNERS
Add CODEOWNERS: @google/blueprint
2020-10-07 11:57:54 +08:00
config_values_read.go
blueprint: report config reads that could not be hashed
2026-11-14 07:44:58 +01:00
context.go
blueprint: report config reads that could not be hashed
2026-11-14 07:44:58 +01:00
context_test.go
blueprint: store order-only dependencies per entry in the cache
2026-11-14 07:44:58 +01:00
CONTRIBUTING.md
Add CONTRIBUTING.md file
2015-03-16 00:12:49 -07:00
doc.go
apply gofmt
2023-02-21 15:11:20 -05:00
glob.go
pathtools: read glob directories in parallel, re-read only changed ones
2026-11-02 20:20:05 +01:00
glob_test.go
Rename Blueprints to Android.bp .
2021-09-02 11:48:19 +02:00
go.mod
Enable pogreb access in soong as the project is now in the repo.
2025-07-09 17:00:01 +00:00
go.work
Enable pogreb access in soong as the project is now in the repo.
2025-07-09 17:00:01 +00:00
incremental.go
blueprint: rerun a cached entry whose config reads changed
2026-11-14 07:44:58 +01:00
incremental_module.go
blueprint: rerun a cached entry whose config reads changed
2026-11-14 07:44:58 +01:00
incremental_singleton.go
blueprint: decode the values read by always-running singletons on all cores
2026-11-03 21:25:12 +01:00
incremental_test.go
blueprint: store order-only dependencies per entry in the cache
2026-11-14 07:44:58 +01:00
levenshtein.go
Add name hint to blueprint.
2023-04-10 20:21:15 +00:00
levenshtein_test.go
Add name hint to blueprint.
2023-04-10 20:21:15 +00:00
LICENSE
Add license headers and LICENSE file
2015-01-23 14:23:27 -08:00
live_tracker.go
Fix a deadlock bug in addPool.
2025-05-07 17:45:56 +00:00
mangle.go
Add license headers and LICENSE file
2015-01-23 14:23:27 -08:00
module_ctx.go
blueprint: decide once whether a module is written to the cache
2026-11-03 21:25:11 +01:00
module_ctx_test.go
Convert return value of Add*Dependencies to ModuleProxy
2025-10-29 11:52:29 -07:00
module_ninja_files.go
blueprint: write module actions into one ninja file per directory group
2026-11-11 21:17:49 +01:00
name_interface.go
blueprint: resolve replacements across names, types and namespaces
2026-10-18 17:04:02 +02:00
ninja_defs.go
Make CommandDepsTools accept []HostTool instead of []*HostTool
2026-02-27 12:28:55 -08:00
ninja_strings.go
blueprint: add Ninja variables that the including Ninja file sets
2026-11-02 20:20:05 +01:00
ninja_strings_test.go
blueprint: add Ninja variables that the including Ninja file sets
2026-11-02 20:20:05 +01:00
ninja_writer.go
Move name memoization out of variables
2024-01-18 12:28:49 -08:00
ninja_writer_test.go
Use strings instead of simpleNinjaStrings where possible
2023-11-01 15:15:15 -07:00
OWNERS
Refactor OWNERS in platform/build/blueprint
2020-10-08 16:23:53 -07:00
package_ctx.go
blueprint: add Ninja variables that the including Ninja file sets
2026-11-02 20:20:05 +01:00
PREUPLOAD.cfg
Add preupload hooks to build/blueprint
2021-02-23 10:29:46 -08:00
provider.go
blueprint: decode the values read by always-running singletons on all cores
2026-11-03 21:25:12 +01:00
provider_test.go
Enforce build providers to implement gobtools.CustomEnc.
2025-10-17 17:54:54 +00:00
README.md
Update README.md .
2022-10-10 07:06:22 +00:00
record_stream.go
blueprint: write module actions into one ninja file per directory group
2026-11-11 21:17:49 +01:00
record_stream_test.go
blueprint: write module actions into one ninja file per directory group
2026-11-11 21:17:49 +01:00
replacement.go
blueprint: resolve replacements across names, types and namespaces
2026-10-18 17:04:02 +02:00
replacement_test.go
blueprint: resolve replacements across names, types and namespaces
2026-10-18 17:04:02 +02:00
scope.go
blueprint: add Ninja variables that the including Ninja file sets
2026-11-02 20:20:05 +01:00
singleton_ctx.go
blueprint: decode the values read by always-running singletons on all cores
2026-11-03 21:25:12 +01:00
splice_modules_test.go
Remove aliases
2024-09-26 15:02:22 -07:00
transition.go
Sort upfront and on-demand variants.
2026-03-18 23:19:07 +00:00
transition_test.go
Apply IncomingTransition to on-demand variants before Mutate
2026-03-05 00:48:37 +00:00
visit_test.go
Remove unused methods from ModuleContext
2025-09-04 19:47:17 -07:00