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

Refactor daily CI workflow #30012

Merged
merged 5 commits into from
Apr 5, 2024
Merged

Refactor daily CI workflow #30012

merged 5 commits into from
Apr 5, 2024

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Apr 3, 2024

What does this PR do?

This is a re-work of #29197. The main difference is: in this new work, we

  • keep the definition of all jobs in a single workflow file (self-scheduled.yml)
    • this is changed to be a re-usable workflow
  • create a new workflow file (self-scheduled-caller.yml) as the caller to the above one (self-scheduled.yml)
    • it pass some inputs to the self-scheduled.yml

The reasons of the re-work:

  • avoid too many workflow files for a single CI. (As we also have push-ci, amd-ci x 2, nightly-ci, past-ci etc)

Once approved and merged, the same refactorization will be applied to other workflow files.

I have made sure it runs successfully as expected: https://github.com/huggingface/transformers/actions/runs/8524250043
(please don't look at the diagram - look the left side instead)

@ydshieh ydshieh requested a review from younesbelkada April 3, 2024 07:47
@ydshieh ydshieh requested a review from ArthurZucker April 3, 2024 07:52
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

🔥 Let's not forget to update slack channel ids, but LGTM

Comment on lines +1088 to +1093
# Remove some entries in `additional_files` if they are not concerned.
test_name = None
job_name = os.getenv("CI_TEST_JOB")
if job_name in job_to_test_map:
test_name = job_to_test_map[job_name]
additional_files = {k: v for k, v in additional_files.items() if k == test_name}
Copy link
Collaborator

Choose a reason for hiding this comment

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

were we testing additional things in some jobs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No. That additional means the test jobs that are not the modeling test jobs: deepspeed, quantization, example, pipeline test jobs.

.github/workflows/self-scheduled.yml Outdated Show resolved Hide resolved
.github/workflows/self-scheduled.yml Show resolved Hide resolved
.github/workflows/self-scheduled.yml Show resolved Hide resolved
@ydshieh ydshieh changed the title Refactor daily CI workflow [Need to update channels before merge] Refactor daily CI workflow Apr 5, 2024
@ydshieh ydshieh mentioned this pull request Apr 5, 2024
@ydshieh
Copy link
Collaborator Author

ydshieh commented Apr 5, 2024

Make final commit(s) to clean up the channels stuff - all channels are created and used in the new workflow file.

Will merge once CircleCI is done

@ydshieh ydshieh changed the title [Need to update channels before merge] Refactor daily CI workflow Refactor daily CI workflow Apr 5, 2024
@ydshieh ydshieh merged commit b17b54d into main Apr 5, 2024
8 checks passed
@ydshieh ydshieh deleted the move_jobs_from_daily_ci branch April 5, 2024 13:49
ArthurZucker pushed a commit that referenced this pull request Apr 22, 2024
* separate jobs

* separate jobs

* use channel name directly instead of ID

* use channel name directly instead of ID

* use channel name directly instead of ID

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
itazap pushed a commit that referenced this pull request May 14, 2024
* separate jobs

* separate jobs

* use channel name directly instead of ID

* use channel name directly instead of ID

* use channel name directly instead of ID

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
@ydshieh ydshieh mentioned this pull request May 31, 2024
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