Skip to content

ci: fix the cpu test workflow to main branch#3

Merged
SaboniAmine merged 2 commits intomainfrom
ci/fix_workflows_configuration
Mar 14, 2025
Merged

ci: fix the cpu test workflow to main branch#3
SaboniAmine merged 2 commits intomainfrom
ci/fix_workflows_configuration

Conversation

@SaboniAmine
Copy link
Member

Description

This PR proposes a trigger configuration to fix the workflow version to the main branch.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copy link
Member

Choose a reason for hiding this comment

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

thanks a lot, on: pull_request_target was exactly the setting I was referring to! Do you think it would make sense to also add this to linting and documentation (not necessary for cpu_tests.yaml I think, this is anyway only for members).

Copy link
Member

Choose a reason for hiding this comment

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

Since the other workflows are cheaper, it is fine if we do not change but I agree that it could also make sense for the other workflows.

Copy link
Member

Choose a reason for hiding this comment

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

@sharpenb just for context - in my understanding currently the on: pull_request_target setting is not so much about when someone is allowed to run the models - it specifies that the PR is run i the context of the main branch. This means that even if someone opens a PR modifying the workflow to always run, this will not happen and only once this would be merged into the main branch (which we catch in a review).

Copy link
Member Author

Choose a reason for hiding this comment

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

FYI: this prevents from updating / testing workflows from a PR, which could be a bit annoying when iterating on a new pipeline.

Copy link
Member

Choose a reason for hiding this comment

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

After tests, this is validated :)

Copy link
Member

Choose a reason for hiding this comment

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

Hm not sure I can 100% follow - so now we run the the tests as soon as the review is requested? I remember discussing that this tests need approval and I can't quite parse yet where this setting is in this yaml

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, for first time contributors, there still is a need for an approval before being able to access the workflow.
Second time contributors won't have this gate, so they will be able to run tests directly with a review request. Is it the expected behavior, or should I change ?

Copy link
Member

Choose a reason for hiding this comment

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

no that is perfect then, thanks!

Copy link
Member

Choose a reason for hiding this comment

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

I think "intel" is outdated for Pruna and will no longer work

Copy link
Member

Choose a reason for hiding this comment

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

okay this is also still present in the CPU tests, @johnrachwan123 can you confirm this is outdated?

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me know if I should update this :)

Copy link
Member

Choose a reason for hiding this comment

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

yes I double checked - intel can be removed

@sharpenb sharpenb assigned sharpenb and unassigned sharpenb Mar 13, 2025
@sharpenb sharpenb self-requested a review March 13, 2025 15:58
Copy link
Member

@sharpenb sharpenb left a comment

Choose a reason for hiding this comment

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

Thanks! Left a couple of comments ont he workflows. Please do not forget also to use the PR template to clearly explain the purpose of the code change :)

Copy link
Member

Choose a reason for hiding this comment

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

There is now one workflom for internal cpu tests andone for external cpu tests. Coudl we name the workflow files accordingly i.. internal/external_contribution_cpu_tests

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure!

Copy link
Member

Choose a reason for hiding this comment

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

Since the other workflows are cheaper, it is fine if we do not change but I agree that it could also make sense for the other workflows.

@SaboniAmine SaboniAmine force-pushed the ci/fix_workflows_configuration branch 2 times, most recently from b51c8fd to c53762f Compare March 14, 2025 08:50
@SaboniAmine SaboniAmine force-pushed the ci/fix_workflows_configuration branch from c53762f to 413cfbf Compare March 14, 2025 08:57
johannaSommer
johannaSommer previously approved these changes Mar 14, 2025
Copy link
Member

@johannaSommer johannaSommer left a comment

Choose a reason for hiding this comment

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

LGTM Amine, thanks a lot!! We just have to remove the [intel] installation then we are good to go, approving already :)

johannaSommer
johannaSommer previously approved these changes Mar 14, 2025
@SaboniAmine SaboniAmine force-pushed the ci/fix_workflows_configuration branch 3 times, most recently from 5125d18 to 1731eeb Compare March 14, 2025 12:11
Copy link
Member

@sharpenb sharpenb left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Copy link
Member

Choose a reason for hiding this comment

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

After tests, this is validated :)

@SaboniAmine SaboniAmine merged commit 90e206e into main Mar 14, 2025
8 checks passed
@johannaSommer johannaSommer deleted the ci/fix_workflows_configuration branch March 17, 2025 10:33
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