Skip to content
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

associate measurements with a specific coverage file, not just a raw upload #37

Open
matt-codecov opened this issue Sep 11, 2024 · 0 comments

Comments

@matt-codecov
Copy link
Collaborator

currently measurements record which raw upload they came from, but a raw upload can contain several separate coverage data files. it would be nice to, for example, tie one measurement to the lcov file and another measurement to the cobertura file

we could accomplish this by replacing raw_upload_id in all of the measurement tables with a coverage_file_id which refers to some new coverage_file table:

create table coverage_file (
    id INTEGER PRIMARY KEY, -- random
    path VARCHAR NOT NULL, -- e.g. "./lcov.info"
    format VARCHAR NOT NULL, -- e.g. "lcov", "cobertura"
    raw_upload_id INTEGER REFERENCES raw_upload(id) NOT NULL
);

existing pyreports will not have this information, so we can just treat them as coming from a single coverage file of format "pyreport"

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

No branches or pull requests

1 participant