Skip to content

Conversation

FahadBSyed
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Sep 25, 2024

size-limit report 📦

Path Size
Entry 93.11 KB (0%)
Vendor XL 800.86 KB (0%)
Chunks 292.47 KB (0%)
Everything 1.16 MB (0%)

@@ -42,14 +42,13 @@ func createPJSSchema(ctx context.Context, env migrations.Env) error {
);
-- PJS has a server side cache for jobs. Utilizing this cache allows PJS to skip subtrees when spawning job trees.
CREATE TABLE pjs.job_cache (
job_hash BYTEA NOT NULL,
job_id BIGINT REFERENCES pjs.jobs(id) ON DELETE CASCADE,
job_id BIGINT REFERENCES pjs.jobs(id) ON DELETE CASCADE PRIMARY KEY,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A stub necessitates that we may write an entry to this table without the job hash being there.

Copy link
Contributor

@Zhang-Muyang Zhang-Muyang left a comment

Choose a reason for hiding this comment

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

I mostly checked code styles and it is great work. I want to re-review given more understanding.

`, job.ID, job.ReadEnabled, job.WriteEnabled)
}

// a full write is only done on a cache hit.
Copy link
Contributor

Choose a reason for hiding this comment

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

I just reviewed a PR of Bob's static check of comments. The comments would be better starts with "writeToJobCache" does something (to pass the checks) 😀 . Same applies to other functions.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 6 lines in your changes missing coverage. Please review.

Project coverage is 62.14%. Comparing base (5db52a1) to head (9c94ee1).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/internal/pjsdb/job_cache.go 88.00% 3 Missing ⚠️
src/internal/pjsdb/job_crud.go 85.71% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10353      +/-   ##
==========================================
- Coverage   62.15%   62.14%   -0.01%     
==========================================
  Files        1218     1218              
  Lines       87602    87619      +17     
  Branches     1820     1820              
==========================================
+ Hits        54448    54453       +5     
- Misses      32314    32333      +19     
+ Partials      840      833       -7     
Flag Coverage Δ
62.14% <88.23%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FahadBSyed FahadBSyed merged commit 66155cc into master Sep 26, 2024
26 checks passed
@FahadBSyed FahadBSyed deleted the MLDM-89-3 branch September 26, 2024 13:48
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.

2 participants