-
Notifications
You must be signed in to change notification settings - Fork 728
feat: add rubygems ecosystem to bq-dataset-ingest (CM-1296) #4307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2bec760
fix: drive osspckgs monitor total ETA off file progress
themarolt 7c45233
fix: drop diluted-rate fallback in osspckgs monitor merge ETA
themarolt 66c89b7
feat: resume partially-merged package_dependencies ingest by job id
themarolt d9244ba
Merge remote-tracking branch 'origin/main' into fix/osspckgs-monitor
themarolt 92bef2c
fix: show 'merging' phase step during osspckgs merge loop
themarolt 1fb1932
fix: eliminate flicker in osspckgs monitor with buffered redraw
themarolt f1192cb
refactor: remove index drop/recreate from osspckgs ingest (CM-1296)
themarolt 6311438
feat: add rubygems ecosystem to bq-dataset-ingest (CM-1296)
themarolt d9b3d38
Merge remote-tracking branch 'origin/main' into fix/osspckgs-monitor
themarolt 18f79ef
Merge branch 'fix/osspckgs-monitor' into feat/add-rubygems-ingest-CM-…
themarolt dfafcbe
fix: restore merge dedup and relax deps resume guards (CM-1296)
themarolt a103b06
fix: resume deps ingest with original export settings (CM-1296)
themarolt ac7eee9
docs: fix stale comments after merge dedup + resume changes (CM-1296)
themarolt f41eb3a
Merge remote-tracking branch 'origin/main' into feat/add-rubygems-ing…
themarolt ec0e676
fix: stamp meta:fill on deps export reuse (CM-1296)
themarolt b92d4d0
docs: sync deps incremental byte-ceiling note for rubygems (CM-1296)
themarolt 9065aa6
fix: clear stale meta:fill on non-fill deps export reuse (CM-1296)
themarolt 3ade70a
fix: fail deps resume when parquet file count changed (CM-1296)
themarolt c805516
Merge remote-tracking branch 'origin/main' into feat/add-rubygems-ing…
themarolt 359a4cb
fix: raise versions merge activity timeout to 4h (CM-1296)
themarolt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
services/apps/packages_worker/src/deps-dev/activities/getResumeExport.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { getIngestJobForResume } from '@crowd/data-access-layer' | ||
|
|
||
| import { getPackagesDb } from '../../db' | ||
|
|
||
| export interface GetResumeExportInput { | ||
| jobId: number | ||
| } | ||
|
|
||
| export interface GetResumeExportOutput { | ||
| jobId: number | ||
| jobKind: string | ||
| status: string | ||
| syncMode: string | ||
| gcsPrefix: string | null | ||
| progressDone: number | ||
| progressTotal: number | ||
| rowCountPg: number | ||
| ecosystems: string[] | null | ||
| fill: boolean | ||
| } | ||
|
|
||
| // Pure fetch of a prior job's resume-relevant fields (export path, status, file-load progress, | ||
| // rows merged). Returns null if the job id does not exist. All validation — kind, status, presence | ||
| // of an export, and that the parquet files still exist — is done by the caller (ingestDependencies) | ||
| // so it can fail fast with non-retryable errors instead of retrying a bad-input activity. | ||
| export async function getResumeExport( | ||
| input: GetResumeExportInput, | ||
| ): Promise<GetResumeExportOutput | null> { | ||
| const qx = await getPackagesDb() | ||
| const job = await getIngestJobForResume(qx, input.jobId) | ||
| if (!job) { | ||
| return null | ||
| } | ||
| return { | ||
| jobId: job.id, | ||
| jobKind: job.jobKind, | ||
| status: job.status, | ||
| syncMode: job.syncMode, | ||
| gcsPrefix: job.gcsPrefix, | ||
| progressDone: job.progressDone, | ||
| progressTotal: job.progressTotal, | ||
| rowCountPg: job.rowCountPg, | ||
| ecosystems: job.ecosystems, | ||
| fill: job.fill, | ||
| } | ||
| } |
5 changes: 1 addition & 4 deletions
5
services/apps/packages_worker/src/deps-dev/activities/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 0 additions & 93 deletions
93
services/apps/packages_worker/src/deps-dev/activities/managePackageDepsConstraints.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.