Commit graph

61 commits

Author SHA1 Message Date
deqiangc
02898348ac
Add a hexagon build presubmit (#518)
* Add a hexagon build presubmit
Also update Hexagon Docker file

* Add a todo for to enable unit test for hexagon

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-09-20 22:59:30 +00:00
Nat Jeffries
6768147920
Generate cc and header files for micro_speech. (#429) 2021-08-27 22:18:07 +00:00
deqiangc
7882da6604
Fix: should cd into the build folder (#466)
This is not caught in presubmit because it requires manual trigger to
run

BUG=http://b/196637015
2021-08-26 05:23:46 +00:00
deqiangc
406a57cc24
Make size check workflow error out if memory footprint increase (#450)
* Make size check workflow error out if memory footprint increase
between head of main and this PR.

This error can be disabled by putting MEM_CHANGE_OK= tag.
In either case, a memory footprint comparison report will be produced
as part of this workflow action.

The plan is for the code reviewer to audit the report when the
PR increase memory footprint and only
allow the PR that increase memory footprint to be merged with
MEM_CHANGE_OK=what_is_the_reason_for_this_increase_and_why_this_is_ok

The PR shall be up to date for the comparison to be accurate.
So before applying MEM_CHANGE_OK=, please make the PR branch up to date.

BUG=http://b/196637015

* Fix an if condition
2021-08-25 21:58:02 +00:00
Advait Jain
19410a8963
Remove unused actions and workflows. (#440)
Arduino and Sparkfun workflows are now run from their respective GitHub
repositories:
 * [Arduino](f2960cf5fc/.github/workflows/ci.yml)
 * [Sparkfun Edge](0cc8217949/.github/workflows/ci.yml)

And the build badges from the TFLM repo also link to the external
Arduino and Sparkfun Edge repositories.

Folow-up changes will delete the Arduio and SParkfun Edge code from the
TFLM repository.

BUG=http://b/196257581 http://b/193823889 and https://github.com/tensorflow/tflite-micro/issues/407
2021-08-19 17:37:13 -07:00
deqiangc
c62b3bd94a
Fix ci test (#447)
* Fix size_check failure for ci:test label

* Add debug message to debug live

* Update comment

* Remove redundant checkout and add HEAD

This is an attempt to fix size_check workflow not
working for ci:test label

BUG=http://b/196637015

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-08-19 22:23:02 +00:00
deqiangc
9da0734d67
Fix event_name in size_check.yml and also fix permission of size_comp.py to be executable (#434)
BUG=http://b/196637015
2021-08-18 00:20:19 +00:00
deqiangc
7488038d00
Update size_check.yml and rename fusion_f1.json to a more general name (#431)
* Update size_check.yml and rename fusion_f1.json to more general
binary_size.json.

Updte the size_check workflow to be able to launched it
manually for test. Also update it so that it can build image.

The next step is to test whether this will lead to two
PR to have merge conflict always.

BUG=http://b/196637015

* Remove currently unused code
2021-08-17 22:39:39 +00:00
jwithers
d9b2263c84
Size comparison for binaries (#254)
* binary size check implementation

* doc comment changes

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-08-16 17:55:50 +00:00
Advait Jain
f38c896a59
Only perform a build for the vision_p6 PR presubmit checks (do not run the tests) (#405)
* Add option to only do a build for the vision_p6.

BUG=http://b/196459172

* Only build for Vision P6 as part of presubmit checks.

* make running the tests optional.

* fix whitespace.

* Address review comments.
2021-08-13 18:02:13 +00:00
Advait Jain
b929bdf9c9
Install Pillow for the nightly builds. (#403)
BUG=Fixes #401
2021-08-13 17:11:56 +00:00
Nat Jeffries
aeac6f39e5
Add support for c array generation during make and bazel builds (#337) 2021-08-12 18:06:04 +00:00
deqiangc
f01c717d1f
Add Hifi3z test into the nightly build test suite (#389)
This also adds a Hifi3z test script.

BUG=http://b/195937824
2021-08-10 16:51:51 -07:00
deqiangc
8bcaa217fe
Use 0.1 xtensa docker that supports Hif3Z (#387)
BUG=http://b/195937824

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-08-10 05:23:24 +00:00
Pete Warden
58f4c2e158
Add action for RISC-V CI workflow (#334)
* Fixes for RISCV build

* Consolidate compiler flags

* Added RISC-V continuous integration script

* Added workflow for RISC-V CI action

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-07-27 17:12:49 -07:00
Michael O'Cleirigh
868b1e738c
Fix esp32 ci build (#310) (#310)
Fixes #294

Copy from xtensa ci scripts to run the test script inside of a docker
container.

We use the espressif/idf:release-v4.3 image.

Add a build that builds the full tensorflow-microlite.a library.

The person detection example is more complicated and not fixed here.

Co-authored-by: Michael O'Cleirigh <michael.ocleirigh@gmail.com>
Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-07-23 17:16:33 +00:00
Michael O'Cleirigh
45c80c9698
Add community supported build for esp32 (#292) (#293)
I copied the sparkfun-edge action and then adjusted to call the esp32 ci test script.

Changed the job name from cortex_m to esp32.

Inserted the Readme entry at the alphabetically appropriate index.

Signed-off-by: Michael O'Cleirigh <michael.ocleirigh@gmail.com>

Co-authored-by: Michael O'Cleirigh <michael.ocleirigh@gmail.com>
2021-07-20 01:25:04 +00:00
Advait Jain
7fd7bf1794
Update sync script to not fail on the check from #195 and #196 (#272) 2021-07-13 00:10:07 +00:00
Advait Jain
2d465d7edc
Fixes to the check tflite files workflow (#270)
* modify a tflite file in the tflite-micro repository.

* fix the path

* Update workflow logic to complete workflow without error with NO_CHECK_TFLITE_FILES

* revert change to the tflite files.
2021-07-13 00:01:50 +00:00
jwithers
7ea0ff500a
fail PRs that overwrite a set of files from upstream (#195)
* fail PRs that overwrite a set of files from upstream

* Change some names, modify Python script logic etc.

* small fixes.

* Use more restrictive TFLM-bot token.

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
Co-authored-by: Advait Jain <advaitjain@google.com>
2021-07-12 23:46:17 +00:00
Advait Jain
20e0aa9114
Add Hifi5 and Vision P6 to the Xtensa CI. (#262) 2021-07-09 00:00:25 +00:00
Advait Jain
7c605aface
Add BUG=<reason> to sync PR description (required after #187) (#215) 2021-06-23 16:04:16 +00:00
Advait Jain
a0f26fa53b
Change job name and remove trailing whitespace. (#211) 2021-06-22 21:26:21 +00:00
jwithers
cd5cecd081
check PR description for a BUG= line (#187)
* check PR description for a BUG= line

* Changed file name and added some more documentation.

* move the if to be on the steo instead of at the job.

This is to allow for the job to succeed (instead of being skipped) when
the BUG= text is found. And as a result we can have it be a required
status check.

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
Co-authored-by: Advait Jain <advaitjain@google.com>
2021-06-22 21:19:00 +00:00
Advait Jain
0c14bdf88a
Fix #182 by explicitly checking out pull_request.head.sha (#184)
Similar to https://github.com/actions/checkout/issues/518
2021-06-16 21:02:07 +00:00
jwithers
070cb00e19
remove ci runner labels from PRs (#150)
* remove ci runner labels from PRs

* moving label deletion to own workflow file

* changing target and removing conditional

* adding comment on error catching

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-06-15 18:49:56 -07:00
Advait Jain
f583f92992
Fix the style check docker container. (#156)
Following the pattern of #151 and fixes #11.
2021-06-09 19:54:51 +00:00
Advait Jain
ce5865c45d
Have the project generation script explicitly call make third_party_downloads. (#129)
This is required only because some of the third_party_downloads are
still using the Makefile functions and thus require an explicit
`make third_party_downloads`.

Additionally, we sometimes also want to avoid all downloads and this PR
adds in a flag for that as well.

Fixes #119 and the corresponding internal bug http://b/184886633

Related bugs are http://b/143904317 and http://b/183229719
2021-06-07 18:28:06 +00:00
Advait Jain
950230ab19
Fixes for Xtensa workflow. (#130)
* Trigger workflow from pull_request_target.
 * Explicitly call third_party_downloads prior to running the tests.

BUG=http://b/190108540
2021-06-04 18:32:29 +00:00
Advait Jain
c23ed9c4d8
Attempt to fix the xtensa workflow. (#126) 2021-06-03 23:57:26 +00:00
Advait Jain
eb66fc5ce8
Add Xtensa toolchain github workflow. (#125)
BUG=http://b/190108540
2021-06-03 23:53:38 +00:00
jwithers
2c2ef3a4b6
tools to check in json value files from ci (#112)
Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-06-03 21:37:35 +00:00
Advait Jain
7af878a310
Clean up of the workflow files. (#99)
* remove unnecessary triggers.
 * explicitly specify branch for pull request trigger
2021-05-24 23:39:07 +00:00
Advait Jain
78c805c624
Fix typos in the ghcr_test.yml file. (#83)
Also, deleted some unused config from ci.yml
2021-05-19 20:42:56 +00:00
Advait Jain
f8fcde9eb6
Testing github container registry. (#82) 2021-05-19 20:33:03 +00:00
Advait Jain
83e656ad35
Proper handling of cla labels as part of sync from upstream TF. (#68) 2021-05-07 21:20:31 +00:00
Advait Jain
0b01cc8311
attempting to use the TFLM-bot account for sync. (#61) 2021-05-04 22:17:35 +00:00
Advait Jain
8e08d32b0e
Do not remove ci:run label from the sync PRs. (#59)
Since we trigger the CI workflow on any label change, when the cla:yes
label is applied the CI workflow will be run, and there is no way around
that with the current setup.

If the sync PR does not have the ci:run label, the checks will be
skipped but will still need to be run again prior to merge since
skipping the checks invalidates the previous completion of the required checks.

As a result, we are keeping the ci:run label. What this means is that
the reviewer can manually apply the cla:yes label and then start
auto-merge (which will wait for another round of the required checks to
be run).
2021-05-02 23:02:13 +00:00
Advait Jain
9cb047a316
Remove ci:run label so that CI checks do not run again. (#56)
cla:yes can only be applied by someone from Google, so will be done
manually. However, the goal here is to have the PR be ready to merge
once a Google engineer reviews it.
2021-04-30 21:15:47 +00:00
Advait Jain
b21c86ed48
Improve the process to sync shared TfLite/TFLM code. (#54)
* Automatically remove the cla: no label and apply cla: yes label.
 * sync PR generation should not error out if there are no changes.
2021-04-30 20:50:20 +00:00
Advait Jain
cf94ebed8c
Exclude scheduled jobs from running on forks. (#52) 2021-04-30 18:06:06 +00:00
Advait Jain
7babd1934e
Change time of scheduled jobs to account for UTC/PT difference. (#51) 2021-04-30 16:36:04 +00:00
Advait Jain
ec4531a6be
Also add any new files to the sync PR. (#48)
Without the additional step of `git add`, any untracked files will not
be part of the PR that is created with the sync workflow.

Manually tested this change on my fork of tensorflow by removing a file,
pushing it to main and then confirming that the sync workflow does not
add to the PR prior to this change, but does add it to the PR after this
change.
2021-04-29 22:11:09 +00:00
Advait Jain
0ae45d6d06
Do not attempt to manipulate the cla labels. (#46)
Adding the cla: yes label seems error prone so we are going to stick to
only applying the ci:run label automatically and manually toggle the cla
status.
2021-04-29 21:50:23 +00:00
Advait Jain
1053b7fba7
Add missing .outputs (#44)
This should allow the github script step to correctly apply and remove
labels.
2021-04-29 21:31:03 +00:00
Advait Jain
1241ceb918
Move all the label add/remove to its own step. (#43) 2021-04-29 21:25:42 +00:00
Advait Jain
cfe9851698
properly escape spaces in the YAML. (#41) 2021-04-29 21:18:55 +00:00
Advait Jain
f8bb9d9051
Revert "Renaming the workflow." (#40)
This reverts commit 2092fec883.
2021-04-29 21:17:26 +00:00
Advait Jain
2092fec883
Renaming the workflow. (#39)
For some reason the actions dashboard has stopped showing me the name of
the sync workflow. Instead it is showing me the path to the yml file
which is somewhat annoying.
2021-04-29 21:12:58 +00:00
Advait Jain
3765287950
Some cleanup of the workflow files. (#38)
* Added a (presubmit) suffix to all the status checks that shold be
   required prior to merging.
 * trying out automatically removeing the "cla: no" label for the sync
   PRs.
2021-04-29 20:56:48 +00:00