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 grouping GT vs prediction by not assuming only pred have score #14

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

bertsky
Copy link
Collaborator

@bertsky bertsky commented Mar 22, 2021

This removes the assumption that only the prediction dataset contains score values.

@bertsky
Copy link
Collaborator Author

bertsky commented Mar 23, 2021

I've merged the current master to give the new CI a try. Unfortunately, the credentials problem persists...

The current Github workflow configuration still tries to build and push Docker images for pull requests. IMHO @i008 you need two different job definitions here, one for push to master (including all steps of the setup-build-publish job) and one for PRs (only Checkout and Build).

@i008
Copy link
Owner

i008 commented Mar 23, 2021 via email

@i008
Copy link
Owner

i008 commented Mar 23, 2021 via email

@i008
Copy link
Owner

i008 commented Mar 23, 2021

Ok it seems it's more complicated that this i guess using the github registry might be a better way. Will check.

@bertsky
Copy link
Collaborator Author

bertsky commented Mar 24, 2021

If you work on the fork it will not work. Dockerhub credentials are added to the original repo and only accessible here.
I don't see much value in just building without pushing for manual testing.

I disagree. Whether or not an image can be built at all is already a test on its own. Pushing certainly is not, and can (must) be reserved for master only.

As soon as someone comes up with more elaborate checks (unit tests or smoke tests for a demo on sample data), that could be integrated into both strains.

But I assume once you open a pr it will work properly?

No, because a PR is technically a branch on a fork (for which a ref/alias exists) – see above.

Ok it seems it's more complicated that this i guess using the github registry might be a better way. Will check.

I don't think it's complicated at all from here on. You've already covered all the bases, just differentiate the jobs for master and everything else (local branches or PR branches).

@i008
Copy link
Owner

i008 commented Mar 24, 2021

I don't think it's complicated at all from here on. You've already covered all the bases, just differentiate the jobs for master and everything else (local branches or PR branches)

I ment its more complicated to have builds and pushing to a open registry, from a PR. not just commit to the repo .
Ofcourse building especially with testing adds value, but in such a tool what is more important i feel is to be able to easly test it manually, so for instance just downloading and image based on a PR/branch.

Anyhow i guess you are right i was not exactly sure what happens on a PR and wrongly assumed this might work:P

@i008
Copy link
Owner

i008 commented Mar 24, 2021

@bertsky Please chceck the current workflow in master if this will work.

@bertsky
Copy link
Collaborator Author

bertsky commented Mar 24, 2021

Oh, now I understand. I am a bit surprised you prefer Docker for testing over a native venv, but in that case, I always try to keep an up-to-date bertsky/coco_explorer on Dockerhub with my latest PR adventures 😄

Please chceck the current workflow in master if this will work.

Will do...

@bertsky
Copy link
Collaborator Author

bertsky commented Mar 24, 2021

Please chceck the current workflow in master if this will work.

So partial success it is. PR still triggers the publish job (which fails), but also the build job.

Cannot open suggestions without an open PR for the CI, but I propose the following changes:

  • during docker build, instead of unconditionally using both --tag i008/$IMAGE:$GITHUB_SHA and --tag i008/$IMAGE:latest, use only the former
  • then in PublishLatest, before docker push, do a docker tag i008/$IMAGE:$GITHUB_SHA i008/$IMAGE:latest
  • split the build.yml file into 2 separate files, one for the on: [push] with the publish job, and another for on: [pull_request] with the build job

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