Commit Graph

241 Commits

Author SHA1 Message Date
Geoff Brown
f97c1d2806 Bug 1896894 - Enable basic treeherder error formatting for A-C ui-tests r=aaronmt
When running A-C ui-tests, use the same error parsing and formatting strategy used for focus and fenix.

Differential Revision: https://phabricator.services.mozilla.com/D210578
2024-05-21 13:28:17 +00:00
Geoff Brown
4939eda588 Bug 1881094 - 2. remove whitespace exclusions for firefox-android r=android-reviewers,gl
Whitespace changes made with `mach lint --fix`.

Differential Revision: https://phabricator.services.mozilla.com/D206702
2024-04-04 22:19:32 +00:00
Geoff Brown
bd90c4e64e Bug 1886173 - Make --report-treeherder-failures a boolean flag r=jcristau,android-reviewers,Roger
Differential Revision: https://phabricator.services.mozilla.com/D205075
2024-03-19 15:51:04 +00:00
Geoff Brown
7f6f937c20 Bug 1882087 - Improve ui-test failure messages for treeherder r=aaronmt
Recall that `test-lab.py` uses `parse-ui-test.py` and `parse-ui-test-fromfile.py` to parse test results, depending on the test type. `parse-ui-test-fromfile` can produce better failure messages, including the test class and test name.

The strategy here is to first run `parse-ui-test-fromfile` (subject to test type, as before), noting whether it produced a treeherder-friendly failure message; then run `parse-ui-test` (for all tests, as before) passing a new argument to print any failures in the treeherder-friendly way, only if `parse-ui-test-fromfile` did not report failures. Most of the complexity is to avoid duplicate reporting, favouring the more granular failure messages from `parse-ui-test-fromfile`.

Differential Revision: https://phabricator.services.mozilla.com/D204684
2024-03-18 18:40:51 +00:00
Geoff Brown
43bbbb0609 Bug 1882087 - Format ui-test failure messages for treeherder. r=aaronmt,tthibaud,android-reviewers,aryx
Example: https://treeherder.mozilla.org/logviewer?job_id=450541238&repo=try
```
TEST-UNEXPECTED-FAIL | failure | https://console.firebase.google.com/project/moz-fenix/testlab/histories/bh.66b7091e15d53d45/matrices/8658376039685060316 | 1 test cases failed, 589 passed
```
That's an unconventional and suboptimal error message, but it's the only information that I see readily available; hopefully someone can improve on this in the future.

Differential Revision: https://phabricator.services.mozilla.com/D204207
2024-03-08 22:21:38 +00:00
Julien Cristau
0487cf1a06 Bug 1877823 - remove unused android-components shell scripts. r=gbrown,gl
Differential Revision: https://phabricator.services.mozilla.com/D203442
2024-03-04 14:06:29 +01:00
Geoff Brown
e21a50229a Bug 1843157 - Correct link to Mobile Test Engineering (https://github.com/mozilla-mobile/firefox-android/pull/2854)
Co-authored-by: dsmithpadilla <88508950+dsmithpadilla@users.noreply.github.com>
2023-07-18 03:31:42 +00:00
Geoff Brown
95bdefe22a Bug 1825116 - Reformat some python files with black and avoid 'bare except' ruff warnings 2023-07-13 00:53:55 +00:00
Geoff Brown
4b36c91e06 Bug 1825116 - Add license notice where missing (https://github.com/mozilla-mobile/firefox-android/pull/1637)
* Bug 1825116 - Add license notice where missing

* Bug 1825116 - Revert changes to strings.xml

* Bug 1825116 - Restore ic_cc*.xml
2023-04-19 21:08:15 +00:00
Geoff Brown
6561b2de2b Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues 2023-04-12 14:04:29 +00:00
Johan Lorenzo
ab92f085ae Bug 1799668 - part 10: Port focus build jobs 2022-12-13 16:12:58 +01:00
Aaron Train
c17de6b4a5 No issue: Add matrix parsing markdown to UI checks 2022-11-14 15:52:39 +00:00
Aaron Train
41cc667597 No issue: Try Pixel2 (ARM) on Firebase Test Lab 2022-11-09 14:24:27 +00:00
Aaron Train
23563a9048 No issue: Update Flank Configs (https://github.com/mozilla-mobile/firefox-android/pull/117)
* Bug 1797997 - part 8: Fix nit on event name

* No issue: Update Flank Configs

Co-authored-by: Johan Lorenzo <jlorenzo@mozilla.com>
2022-11-07 18:58:35 +00:00
Christian Sadilek
ef5c53aa13 A-C auto publication only needs to hash changes of files under android-components 2022-11-03 10:24:20 -04:00
Christian Sadilek
f79fe5f8d0 Fix local/auto publication to not rely on LICENSE file 2022-11-02 11:19:48 -04:00
Andrew Halberstadt
2e83ede93a [components] Run 'get-secret.py' with Python 3 (https://github.com/mozilla-mobile/android-components/pull/10613)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-07-15 16:34:47 +00:00
Sebastian Kaspari
9a38aae3e9 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10389: Remove codecov. 2021-06-07 08:18:13 +00:00
Aaron Train
f55f83c395 [components] For https://github.com/mozilla-mobile/android-components/issues/10406 - Expose Flank results as public artifacts
fix: typo

fix: typo

Fix: Change artifacts path in kind.yml

Fix: Remove old copying artifacts step
2021-06-02 20:33:54 +00:00
Sebastian Kaspari
e809a01c58 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10070: Update ui-test.sh. 2021-04-20 18:51:39 +00:00
Grisha Kruglov
1f393d50e3 [components] Disable unused coverage tools 2021-01-14 11:03:03 +00:00
Grisha Kruglov
24cd34e315 [components] Update codecov script to the current version 2021-01-14 11:03:03 +00:00
Sebastian Kaspari
eb5a77011b [components] Scripts for updating GeckoView/PSL: Always open PR for changes. 2020-09-22 15:21:58 +00:00
Richard Pappalardo
7f3860aafc [components] fix: remove old Dockerfile 2020-08-27 14:54:13 -07:00
Aaron Train
11bb07981d [components] Update flank-arm.yml 2020-08-20 09:57:57 -04:00
Simon Chae
21909af4bc [components] Issue https://github.com/mozilla-mobile/android-components/issues/7500: Enable codecov 2020-08-06 14:05:57 -04:00
Mark Hammond
a385b24aca [components] Allow publish_to_maven_local_if_modified.py to work on Windows 2020-06-12 17:42:42 +10:00
MozLando
dd8e4066cf [components] Merge https://github.com/mozilla-mobile/android-components/pull/7166
7166: Closes https://github.com/mozilla-mobile/android-components/issues/7165: Handle untracked directories during auto-publish r=rocketsroger a=grigoryk

Our python script would blow up if it encountered an untracked directory. This changes how the script reads in untracked files to account for this, and switches to git's hash-object to calculate hashes of files (instead of manually reading them into memory and hashing in python).



Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
2020-06-05 01:03:25 +00:00
MozLando
a992244373 [components] Merge https://github.com/mozilla-mobile/android-components/pull/7160 https://github.com/mozilla-mobile/android-components/pull/7196 (part 2)
7160:  Closes https://github.com/mozilla-mobile/android-components/issues/7142: Sanitize url in HttpIconLoader  r=pocmo a=Amejia481



7196: Closes https://github.com/mozilla-mobile/android-components/issues/7176: Add to the configuration file for instrumentation tests components that use Room r=gabrielluong,pocmo,isabelrios a=Amejia481

Closes https://github.com/mozilla-mobile/android-components/issues/7176


Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2020-06-03 14:55:40 +00:00
Grisha Kruglov
bc629b3229 [components] Run ui-samples-browser on API21 2020-06-02 18:29:48 -07:00
Arturo Mejia
c6db6fde88 [components] Add to the configuration file for instrumentation tests
components that use Room
2020-05-31 22:25:21 -04:00
Grisha Kruglov
951e82b5dd [components] Use hash-object instead of reading files ourselves for speed 2020-05-28 16:05:59 -07:00
Grisha Kruglov
e9783012a8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7165: Use ls-files to handle untracked files in directories 2020-05-28 15:36:59 -07:00
Mihai Tabara
4ec39339c0 [components] Bug 1620585 - remove snapshots logic from AC 2020-05-18 23:19:09 +01:00
Grisha Kruglov
46d6727250 [components] Closes https://github.com/mozilla-mobile/android-components/issues/6233: Git-based autopublish workflow
Adds a python script which is responsible for checking if there are any local changes,
and publishing to mavenLocal if there are.

Before, consuming projects were responsible for this logic; now, they can simply call this command.

This also behaves differently from what fenix did.
Before, to determine if there are changes we'd run the build, and see if any tasks were
actually performed (meaning, there were code changes that triggered a rebuild).
This way had its pros - it wouldn't consider changes to .gitignore, for example, as something that would
affect the build.
However, for the most common case, when there are no changes, this approach would still run through the build.
Doing so comes with a significant overhead of running through all of gradle's build phases, even if there isn't
actually anything to re-compile.

New approach optimizes for the common case. When there are no changes, we can now determine that almost instantly
by looking at an aggregate of git hash values for our project. And, by allowing consuming projects to call the python
script directly, we're skipping the gradle overhead as well.

The end result is a zero-cost auto-publication workflow.
2020-04-21 18:45:22 -07:00
Aaron Train
7fffafe121 [components] Closes https://github.com/mozilla-mobile/android-components/issues/6550: Update Flank templates to use single and same device 2020-04-06 16:20:13 -04:00
isabelrios
f3337375f4 [components] address reviwer comments 2020-04-02 15:59:15 +02:00
isabelrios
483351f61f [components] testing-branch-issue-3652 2020-04-02 15:59:15 +02:00
Mihai Tabara
c6f31e75c5 [components] Bug 1615248 - nightly graphs version override. 2020-02-28 14:53:53 +01:00
MozLando
79b56b15db [components] Merge https://github.com/mozilla-mobile/android-components/pull/5967
5967: Add nightly releases to compete snapshots - part 1 (building) bors r=JohanLorenzo,pocmo r=JohanLorenzo,pocmo a=MihaiTabara

Motivation for this is https://github.com/mozilla-mobile/android-components/issues/5023

WIP - ~just a stub for now~ I still need to address a bunch of things like ~artifacts exposure~, beetmover and signing jobs, etc. But the main blocker is the fact that we need to create a new subdomain within maven.mozilla.org, something like https://nightly.maven.mozilla.org/.

Later edit: this seems to be working locally just fine. Adds the `nightly-release` graph succesfully and the version to be used is e.g. `public/build/browser-awesomebar-32.0.20200212190116-sources.jar` placed within

```
      "payload": {
        "artifacts": {
          "public/build/browser-awesomebar-32.0.20200212190116-sources.jar": {
            "expires": {
              "relative-datestamp": "1 year"
            },
            "path": "/builds/worker/checkouts/src/components/browser/awesomebar/build/maven/org/mozilla/components/browser-awesomebar/32.0.20200212190116/browser-awesomebar-32.0.20200212190116-sources.jar",
            "type": "file"
          },
```

Co-authored-by: Mihai Tabara <mtabara@mozilla.com>
2020-02-19 14:10:15 +00:00
Mihai Tabara
78645ec0b0 [components] Address nits and fixes 2020-02-17 18:23:57 +00:00
Mihai Tabara
ada154839f [components] Tweak nightly_version instead of buildid 2020-02-17 18:12:08 +00:00
Mihai Tabara
a706fcb6e6 [components] Add renaming script for nightly-releases 2020-02-17 15:51:22 +00:00
Michael Droettboom
8f68a49bda [components] Making progress on getting this to work 2020-02-13 10:27:37 -05:00
Michael Droettboom
c873c3c725 [components] Fix https://github.com/mozilla-mobile/android-components/issues/1549: Support publishing jar artifacts 2019-12-17 14:43:10 -05:00
Johan Lorenzo
123d97bb70 [components] Bug 1583870 - Migrate snapshot and release graphs to taskgraph 2019-10-07 15:10:31 +02:00
MozLando
163573f4bd [components] Merge https://github.com/mozilla-mobile/android-components/pull/4604
4604: Bug 1583870 - Migrate build tasks for PRs and pushes r=JohanLorenzo a=JohanLorenzo



Co-authored-by: Johan Lorenzo <jlorenzo@mozilla.com>
2019-10-03 08:16:58 +00:00
Johan Lorenzo
820dda6809 [components] Bug 1583870 - Migrate build tasks for PRs and pushes 2019-10-03 09:53:41 +02:00
Johan Lorenzo
876aa51b97 [components] Bug 1583870 - Fix snapshot decision task 2019-10-02 15:43:09 +02:00
Johan Lorenzo
5aac7c3a63 [components] Bug 1583870 - Migrate ui-test task 2019-10-02 11:35:36 +02:00