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

CML workflow improvements #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

CML workflow improvements #4

wants to merge 4 commits into from

Conversation

casperdcl
Copy link

@casperdcl casperdcl commented Mar 29, 2022

Is this a generated repo? @iesahin @tapadipti

@casperdcl casperdcl self-assigned this Mar 29, 2022
Comment on lines 31 to 35
git add --all
if [-z "$(git status --porcelain)"]; then
echo "::set-output name=push::false"
else
git commit -m "Results of the last experiment" -a
echo "::set-output name=push::true"
if [[ -n "$(git status --porcelain)" ]]; then
git commit -m "Results of the last experiment"
git push origin HEAD:${{ github.ref }}
fi
Copy link
Author

Choose a reason for hiding this comment

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

alternatively could (should?) use cml pr . here /CC @iterative/cml

Copy link
Member

Choose a reason for hiding this comment

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

With iterative/cml#907, cml pr --auto-merge . would be an awesome alternative to all this git trickery.

Copy link
Member

Choose a reason for hiding this comment

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

Update: now cml pr --squash . as per iterative/cml#823 and children

id: commit
vl2png vega.json -s 1.5 | cml publish --md >> report.md
echo "## Metrics" >> report.md
dvc metrics show --md >> report.md
Copy link
Author

Choose a reason for hiding this comment

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

I assume dvc metrics show --md >> report.md works? Rather than the previous cat output/metrics.json >> report.md

Copy link
Member

Choose a reason for hiding this comment

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

Probably? Assumptions are dangerous in CI/CD workflows; empyrical testing will dissipate our doubts.

@casperdcl
Copy link
Author

PS workflow failing for same reason as current main branch.

@0x2b3bfa0

This comment was marked as outdated.

@0x2b3bfa0

This comment was marked as outdated.

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