Skip to content

Comments

Updated template and job creation for scrapers and indexers#1072

Merged
bishwaspraveen merged 2 commits intodevfrom
1052-update-cosmos-to-create-jobs-for-scrapers-and-indexers
Feb 28, 2025
Merged

Updated template and job creation for scrapers and indexers#1072
bishwaspraveen merged 2 commits intodevfrom
1052-update-cosmos-to-create-jobs-for-scrapers-and-indexers

Conversation

@dhanur-sharma
Copy link
Contributor

@dhanur-sharma dhanur-sharma commented Oct 15, 2024

Added the templates to be used for scraper and indexer creation on workflow status change.
Updated the fields to be retained in the indexer when reading from the existing scraper.
Updated job creation into a single method for scrapers and indexers with the correct naming scheme.
Updated the nomenclature previously used for relevant methods.

Some test cases are written here which include the commits originally added to this branch.

@dhanur-sharma dhanur-sharma linked an issue Oct 24, 2024 that may be closed by this pull request
<Url></Url>
<Plugin>SMD_Plugins/Sinequa.Plugin.WebCrawler_Index_URLList</Plugin>
<WorkerCount>6</WorkerCount>
<WorkerCount>8</WorkerCount>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<WorkerCount>8</WorkerCount>
<WorkerCount>4</WorkerCount>

@saifrk
Copy link
Collaborator

saifrk commented Feb 12, 2025

Wrt to the test_workflow_status_triggers test, Previously we interacted directly with GitHub but encountered authentication issues due to missing tokens. Now, GitHubHandler is mocked. If we want to interact with actual GitHub, the GitHub token should be stored as a secret in the repository settings (which requires admin permissions) and necessary changes must be made in the GitHub Actions workflow file. Additionally, to prevent unnecessary buildup, test cases should include steps to delete the config file post-verification, as config generation occurs with each test run. This can be done as part of Issue #3036.

Copy link
Contributor

@bishwaspraveen bishwaspraveen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bishwaspraveen bishwaspraveen merged commit 1dd1a63 into dev Feb 28, 2025
5 checks passed
@bishwaspraveen bishwaspraveen deleted the 1052-update-cosmos-to-create-jobs-for-scrapers-and-indexers branch February 28, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update COSMOS to Create Jobs for Scrapers Update COSMOS Config Gen for Version and ID Bring LRM Plugin Template Creation in Line with COSMOS

4 participants