Skip to content

Commit 16a0d33

Browse files
Adjust batch size
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 235fb85 commit 16a0d33

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

minecode_pipelines/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
#
99

1010

11-
VERSION = "0.0.1b61"
11+
VERSION = "0.0.1b62"

minecode_pipelines/pipelines/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ def _mine_and_publish_packageurls(
193193
)
194194
checkout["file_to_commit"].add(purl_file)
195195
checkout["file_processed_count"] += 1
196-
if logger:
197-
logger(f"{checkout['repo'].working_dir}: {checkout['file_processed_count']} / {batch_size}")
198196

199197
if len(checkout["file_to_commit"]) > batch_size:
200198
if logger:

minecode_pipelines/pipelines/mine_npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MineNPM(MineCodeBasePipeline):
3131
a FederatedCode repo.
3232
"""
3333

34-
package_batch_size = 70
34+
package_batch_size = 5
3535

3636
@classmethod
3737
def steps(cls):

minecode_pipelines/pipes/npm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def get_npm_packages_to_sync(packages_file, state, logger=None):
228228
if logger:
229229
logger(f"Starting package mining for {len(packages_to_sync)} packages")
230230

231+
synced_packages = []
232+
231233
elif state == INITIAL_SYNC_STATE or state == PERIODIC_SYNC_STATE:
232234
synced_packages = get_mined_packages_from_checkpoint(
233235
config_repo=MINECODE_PIPELINES_CONFIG_REPO,

pyproject-minecode_pipelines.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flot.buildapi"
44

55
[project]
66
name = "minecode_pipelines"
7-
version = "0.0.1b61"
7+
version = "0.0.1b62"
88
description = "A library for mining packageURLs and package metadata from ecosystem repositories."
99
readme = "minecode_pipelines/README.rst"
1010
license = { text = "Apache-2.0" }
@@ -40,7 +40,7 @@ dependencies = [
4040
"aboutcode.hashid >= 0.2.0",
4141
"aboutcode.federated >= 0.1.0",
4242
"packageurl_python >= 0.15.6",
43-
"scancodeio >= 36.0.1",
43+
"scancodeio >= 35.3.0",
4444
"ftputil >= 5.1.0",
4545
"jawa >= 2.2.0",
4646
"arrow >= 1.3.0",
@@ -64,7 +64,7 @@ mine_swift = "minecode_pipelines.pipelines.mine_swift:MineSwift"
6464
mine_composer = "minecode_pipelines.pipelines.mine_composer:MineComposer"
6565

6666
[tool.bumpversion]
67-
current_version = "0.0.1b61"
67+
current_version = "0.0.1b62"
6868
allow_dirty = true
6969

7070
files = [

0 commit comments

Comments
 (0)