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

#13065: Use the same action for building and running #13066

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

Conversation

dimitri-tenstorrent
Copy link
Contributor

@dimitri-tenstorrent dimitri-tenstorrent commented Sep 24, 2024

Ticket

#13065

Problem description

We were working at the same time and solving similar issues from different angles resulting in very similar solutions.

  1. Docker Run Action

    - uses: addnab/docker-run-action@v3

  2. Docker Run Action in Build Step

    - name: Build tt-metal and libs

What's changed

The actions are actually near identical and so the generic Docker Run Action just needs to be incorporated into the build step.

Couple of other fixes:

  • TTNN All Commit tests were modified during the rebase and I did not notice. Fixed.
  • Boolean condition in Docker Run Action should be evaluated as string.

Checklist

  • Post commit CI passes
  • Blackhole Post commit (if applicable)
  • Model regression CI testing passes (if applicable)
  • Device performance regression CI testing passes (if applicable)
  • New/Existing tests provide coverage for changes

@@ -80,12 +80,9 @@ jobs:
timeout-minutes: ${{ inputs.timeout }}
uses: ./.github/actions/docker-run
with:
docker_username: ${{ github.actor }}
install_wheel: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed this in the code rebase

@@ -80,7 +80,7 @@ runs:
${{ inputs.device }}
-w ${{ github.workspace }}
run: |
if [ ${{ inputs.install_wheel }} ]; then
if [ ${{ inputs.install_wheel }} = "true" ]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to use as a string comparison - the value is not actually boolean. There is an existing Github issue:

Copy link
Contributor

Choose a reason for hiding this comment

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

does it matter if its "" or ''?
I didn't realize this was a thing so maybe we should double check if we have other comparisons here too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think both "" and '' evaluate to a string in bash so it does not matter.
Do you think '' is more consistent?

Copy link
Contributor

Choose a reason for hiding this comment

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

i think as long as we stick to one convention it is fine.

@dimitri-tenstorrent dimitri-tenstorrent force-pushed the dimitri/13065-use-a-single-docker-run-for-building-and-running-tests branch from 7d37bcc to b4c93a0 Compare September 24, 2024 21:00
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.

3 participants