| 973 | } |
| 974 | |
| 975 | static void merge_pkg_entries(cbm_pipeline_ctx_t *ctx, cbm_pkg_entries_t *pkg_entries, |
| 976 | int worker_count) { |
| 977 | if (!pkg_entries) { |
| 978 | return; |
| 979 | } |
| 980 | /* Supplement with a repo-wide filesystem walk so manifests filtered |
| 981 | * by the main discoverer (package.json, composer.json — in |
| 982 | * IGNORED_JSON_FILES) still feed pkgmap. Append into worker 0's |
| 983 | * array so the existing merge below sees them. */ |
| 984 | cbm_pkgmap_scan_repo(ctx->repo_path, &pkg_entries[0], ctx->excluded_dirs, ctx->excluded_count); |
| 985 | cbm_pipeline_set_pkgmap(cbm_pkgmap_build(pkg_entries, worker_count, ctx->project_name)); |
| 986 | for (int i = 0; i < worker_count; i++) { |
| 987 | cbm_pkg_entries_free(&pkg_entries[i]); |
| 988 | } |
| 989 | free(pkg_entries); |
| 990 | } |
| 991 | |
| 992 | static void log_extract_mem_stats(int worker_count) { |
| 993 | if (cbm_mem_budget() > 0) { |
no test coverage detected