[
https://issues.apache.org/jira/browse/BEAM-10184?focusedWorklogId=443033&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-443033
]
ASF GitHub Bot logged work on BEAM-10184:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Jun/20 16:24
Start Date: 09/Jun/20 16:24
Worklog Time Spent: 10m
Work Description: TobKed commented on pull request #11877:
URL: https://github.com/apache/beam/pull/11877#issuecomment-641137700
After rethinking gh-actions I made some updates which changes CI behavior
dependent on the triggering event as presented below:
* **on pull_request** - operates on PR branch, builds wheels and uploads
them only to gh-action artifacts
([example-run](https://github.com/TobKed/beam/actions/runs/129159523))
* **on push** - operates on master/release/release-candidate branches, build
wheels and uploads them gh-action artifacts and GCS bucket (folder - branch
name) ([example-run](https://github.com/TobKed/beam/actions/runs/129158855))
* **on schedule** - operates master branch, builds wheels and uploads them
to gh-action artifacts and GCS bucket (folder - branch name), tags last commit
on master as `nightly-master`
([example-run](https://github.com/TobKed/beam/actions/runs/129288105))
Additionally I've added `Cancel Previous Runs` workflow
(`.gihub/workflows/cancel.yml`) which cancels previous runs on the same branch.
It was inspired by Apache Airflow solution ([link to
PR](https://github.com/apache/airflow/pull/9050))
@aaltay answering your questions:
> Could we make it such that:
>
> * we have a cron job that builds nightly (like a snapshot release)
> * and a way to manually trigger this from the release branch, so that the
release manager can build wheel files on demand.
1. Nightly is addressed by `on schedule` trigger.
2. I investigated triggering builds manually by using `repository_dispatch`
and curl however build triggered by it is executed on master branch and I think
there is no convenient way to run it on different branches. If your question is
related to "Build Release Candidate" phase it may be solved here as well since
build will be triggered during pushing to master/release/release-candidate
branches (and related to it by commit hash).
WDYT?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 443033)
Time Spent: 4.5h (was: 4h 20m)
> Build python wheels on GitHub Actions for Linux/MacOS
> -----------------------------------------------------
>
> Key: BEAM-10184
> URL: https://issues.apache.org/jira/browse/BEAM-10184
> Project: Beam
> Issue Type: Sub-task
> Components: build-system
> Reporter: Tobiasz Kedzierski
> Priority: P2
> Labels: build, python, python-packages, python-wheel
> Time Spent: 4.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)