Open Bug 1802601 Opened 3 years ago Updated 2 years ago

PULL_REQUEST_NUMBER not attaching to Task payload definition

Categories

(Focus :: General, defect)

All
Android
defect

Tracking

(Not tracked)

People

(Reporter: cpeterson, Unassigned)

Details

From github: https://github.com/mozilla-mobile/focus-android/issues/7892.

Per https://github.com/mozilla-mobile/focus-android/blob/a2eb4e43d87459b65391b0b0a232d8e7bbab21c9/.taskcluster.yml#L217 and https://github.com/mozilla-mobile/focus-android/blob/0c2e0b77fe4fd918672fa55256b881a45d117f3e/taskcluster/focus_android_taskgraph/parameters.py#L32 I should be seeing a PULL_REQUEST_NUMBER env-var under task.payload.env but am not 🤔

https://github.com/mozilla-mobile/focus-android/blob/21a3a87be075faa05ea980e5240739c69101a4ba/.taskcluster.yml#L217

- $if: 'tasks_for in ["github-pull-request"]'
                                      then:
                                          MOBILE_PULL_REQUEST_NUMBER: '${event.pull_request.number}'

Example PR task: https://firefox-ci-tc.services.mozilla.com/tasks/W1YMP7E5QwOW5pWn4q6zkQ and task.payload.env

"payload": {
    "env": {
      "VCS_PATH": "/builds/worker/checkouts/vcs",
      "REPOSITORIES": "{\"mobile\": \"Focus-Android\"}",
      "HG_STORE_PATH": "/builds/worker/checkouts/hg-store",
      "MOZ_SCM_LEVEL": "1",
      "GOOGLE_PROJECT": "moz-focus-android",
      "MOZ_AUTOMATION": "1",
      "MOBILE_HEAD_REF": "6478",
      "MOBILE_HEAD_REV": "3650e94e6f93ef8c56932771424fd7b97b51878a",
      "SCCACHE_DISABLE": "1",
      "MOBILE_BASE_REPOSITORY": "https://github.com/mozilla-mobile/focus-android",
      "MOBILE_HEAD_REPOSITORY": "https://github.com/iorgamgabriel/focus-android",
      "MOBILE_REPOSITORY_TYPE": "git",
      "GOOGLE_APPLICATION_CREDENTIALS": ".firebase_token.json"
    }

This works on the Fenix repository. There must be a conditional difference affecting this?

Change performed by the Move to Bugzilla add-on.

Aaron, I moved this bug from the focus-android GitHub issue tracker. Will this bug still be relevant after we move Focus builds and tests to the new firefox-android monorepo?

Flags: needinfo?(aaron.train)

I'm not entirely sure but it will be easy to check once we have some PR's up to look at their full-payload definition to confirm if the key is there. Having that key has been helpful for payload context in data gathering.

Flags: needinfo?(aaron.train)

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
Severity: -- → S3
Flags: needinfo?(cpeterson)
You need to log in before you can comment on or make changes to this bug.