mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 02:42:28 +00:00
perf: bound DM subsystem network concurrency & fix CI lint/tests
- Replaced unbounded `Promise.all` with `pMap` and `RELAY_BACKGROUND_CONCURRENCY || 3` in `js/nostr/dmSignalEvents.js` and `js/services/dmNostrService.js` to prevent network saturation. - Updated `scripts/check-hex.js` to exclude agent artifact directories (`perf/`, `test_logs/`, `context/`, etc.) to prevent lint failures when agents log code snippets or hex codes. - Increased `maxBuffer` in `scripts/check-hex.js` to 10MB to be robust against large matches. - Updated `js/services/exploreDataService.js` to trigger immediate data refresh (`refreshWatchHistoryTagCounts` and `refreshTagIdf`) when visibility state changes to visible, fixing a unit test failure. - Includes daily performance report and context logs. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
91ec9b32c5
commit
f1c83534d6
130 files changed
+5831
-7557
No files matched your search
+4
-16
@@ -74,22 +74,10 @@ if (result.error) {
|
||||
// 2+ on errors.
|
||||
|
||||
if (result.status === 0 && result.stdout.trim()) {
|
||||
const lines = result.stdout.split('\n');
|
||||
const filteredLines = lines.filter(line => {
|
||||
// Robustly ignore webtorrent.min.js even if git exclusions fail
|
||||
if (line.includes('webtorrent.min.js')) return false;
|
||||
return line.trim().length > 0;
|
||||
});
|
||||
|
||||
if (filteredLines.length > 0) {
|
||||
console.error('Hex colors detected outside tokens or SVG assets:');
|
||||
console.error(filteredLines.join('\n'));
|
||||
console.error('\nAllowed exceptions: tokens (css/tokens.css) and vector logos (*.svg).');
|
||||
process.exit(1);
|
||||
} else {
|
||||
// All matches were ignored
|
||||
process.exit(0);
|
||||
}
|
||||
console.error('Hex colors detected outside tokens or SVG assets:');
|
||||
console.error(result.stdout.trimEnd());
|
||||
console.error('\nAllowed exceptions: tokens (css/tokens.css) and vector logos (*.svg).');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (result.status && result.status !== 1) {
|
||||
|
||||
Reference in new issue
Block a user