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

Fix/content dates for new version #365

Merged
merged 8 commits into from
Oct 2, 2023

Conversation

k-burt-uch
Copy link
Contributor

New Features

Breaking Changes

Bug Fixes

  • Add version endpoint now works with content_create_date and content_update_date.

Improvements

Dependency updates

Deployment changes

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

paulineribeyre
paulineribeyre previously approved these changes Sep 6, 2023
paulineribeyre
paulineribeyre previously approved these changes Sep 27, 2023
.travis.yml Outdated Show resolved Hide resolved
BinamB
BinamB previously approved these changes Sep 27, 2023
@k-burt-uch
Copy link
Contributor Author

Adding @Avantol13 to check the github actions CI

.github/workflows/ci.yaml Outdated Show resolved Hide resolved

UnitTest:
name: Python Unit Test with Postgres
uses: uc-cdis/.github/.github/workflows/python_unit_test.yaml@master
Copy link
Contributor

Choose a reason for hiding this comment

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

the default script runs poetry run pytest -vv but in indexd we have coveralls set up and we want to report coverage updates, so i think we actually need a custom script that does this: https://github.com/uc-cdis/indexd/blob/2023.09/.travis.yml#L20-L23

Copy link
Contributor

@Avantol13 Avantol13 Sep 28, 2023

Choose a reason for hiding this comment

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

I'd actually be okay leaving this as-is, because if we want to add consistent coverage in the future, we could just modify the template. but we'd lose coverage reporting in the meantime. idk, I don't have a strong opinion either way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems we've lost coverage reporting already, checking the last few closed PRs for indexd.

Checking this PR #361 and this one #360 there's no coveralls run. It seems the last one was Atharva's PR here: #359

I could be missing something, but it seems we've already lost coverage reporting so my vote is to add it to the template in a separate PR. Sound good @paulineribeyre ??

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know why coveralls is not reporting as a check on those PRs, but you can see in coveralls that it did get the report, for example for #361:
Screenshot 2023-09-28 at 4 00 33 PM

But anyway i'm referring to the coverage badge we have on this repo's readme, more than to the PR checks. It would be nice to include the coveralls logic in the template, but since it's not there yet, i think removing it would be a regression and the coverage % on the repo readme would be inaccurate. Tbh i think it's probably not a heavy lift to add it, but if it is for some reason, we can file a ticket instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, that makes sense. Given that https://github.com/uc-cdis/sheepdog#sheepdog has broken tags now I'll see what I can do about getting this working here and moving it to the template.

Reading the docs here https://github.com/marketplace/actions/coveralls-github-action it looks fairly straightforward but I might have to DM you with questions if I run into something I can't find in the coveralls config or guides.

Avantol13
Avantol13 previously approved these changes Sep 28, 2023
k-burt-uch and others added 2 commits September 28, 2023 14:59
Co-authored-by: Pauline Ribeyre <4224001+paulineribeyre@users.noreply.github.com>
@k-burt-uch k-burt-uch force-pushed the fix/content-dates-for-new-version branch from e9b7049 to c32122e Compare September 28, 2023 22:13
with:
python-version: '3.9'
test-script: 'tests/ci_commands_script.sh'
Coveralls:
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think this will work because it's set up as a different "job", when it should be a new "step" in the same "job" (to use the report file generated by the pytest command). Unfortunately i don't think you can add a step to a job that's defined in a reusable workflow, so if you want to do it that way, it would have to be directly in the reusable workflow.

What i was suggesting was to add the coveralls command to tests/ci_commands_script.sh. But i think we'd need to pass the token to the test-script.

I see now that it's not as straightforward as i thought 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

@k-burt-uch k-burt-uch merged commit 952e3f7 into master Oct 2, 2023
5 checks passed
@k-burt-uch k-burt-uch deleted the fix/content-dates-for-new-version branch October 2, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants