Skip to content

Commit

Permalink
Set min build number to 10
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia committed Nov 7, 2024
1 parent 43bf3d4 commit f941abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TestResultSummaryService/BuildMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ class BuildMonitor {
// descending order
allBuilds.sort((a, b) => parseInt(b.id) - parseInt(a.id));
/*
* Loop through allBuilds or past 5 builds (whichever is
* Loop through allBuilds or past 10 builds (whichever is
* less) to avoid OOM error. If there is not a match in db,
* create the new build. Otherwise, break. Since allBuilds
* are in descending order, we assume if we find a match,
* all remaining builds that has a lower build number is in
* db.
*/
const limit = Math.min(5, allBuilds.length);
const limit = Math.min(10, allBuilds.length);
const testResults = new TestResultsDB();
for (let i = 0; i < limit; i++) {
const buildNum = parseInt(allBuilds[i].id, 10);
Expand Down

0 comments on commit f941abc

Please sign in to comment.