Closed Bug 1818083 Opened 3 years ago Closed 3 years ago

Old code coverage info makes searchfox display old revisions

Categories

(Testing :: Code Coverage, defect)

Default
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emilio, Unassigned)

References

Details

https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.relman.code-coverage.production.repo.mozilla-central.latest

right now replies with:

{
  "namespace": "project.relman.code-coverage.production.repo.mozilla-central.latest",
  "taskId": "WvmwBVuFR4CUGVfKXqtPYw",
  "rank": 0,
  "data": {},
  "expires": "2023-08-20T16:05:29.590Z"
}

Fetching that task (https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WvmwBVuFR4CUGVfKXqtPYw) has:

{
  "provisionerId": "code-coverage",
  "workerType": "bot-gcp",
  "taskQueueId": "code-coverage/bot-gcp",
  "schedulerId": "relman",
  "projectId": "none",
  "taskGroupId": "dsT_9u23SheLE7TO7Pr6-Q",
  "dependencies": [],
  "requires": "all-completed",
  "routes": [],
  "priority": "lowest",
  "retries": 5,
  "created": "2023-02-21T16:01:32.893Z",
  "deadline": "2023-02-21T20:01:32.893Z",
  "expires": "2023-03-23T16:01:32.893Z",
  "scopes": [
    "secrets:get:project/relman/code-coverage/runtime-production",
    "notify:email:*",
    "docker-worker:cache:code-coverage-bot-production",
    "index:insert-task:project.relman.code-coverage.production.repo.*"
  ],
  "payload": {
    "env": {
      "REVISION": "087477ea609de1122cf98f9f0a7bad2cae0055fd",
      "taskName": "covdir for 087477ea609de1122cf98f9f0a7bad2cae0055fd",
      "REPOSITORY": "https://hg.mozilla.org/mozilla-central",
      "taskGroupId": "dsT_9u23SheLE7TO7Pr6-Q"
    },
    "cache": {
      "code-coverage-bot-production": "/cache"
    },
    "image": {
      "path": "public/code-coverage-bot.tar.zst",
      "type": "indexed-image",
      "namespace": "code-analysis.v2.code-coverage.branch.production"
    },
    "command": [
      "code-coverage-repo",
      "--taskcluster-secret",
      "project/relman/code-coverage/runtime-production",
      "--cache-root",
      "/cache",
      "--working-dir",
      "/build"
    ],
    "features": {
      "taskclusterProxy": true
    },
    "maxRunTime": 14400,
    "capabilities": {}
  },
  "metadata": {
    "name": "covdir for 087477ea609de1122cf98f9f0a7bad2cae0055fd",
    "owner": "release-mgmt-analysis@mozilla.com",
    "source": "https://github.com/mozilla/code-coverage",
    "description": ""
  },
  "tags": {},
  "extra": {}
}

That's rev https://hg.mozilla.org/mozilla-central/rev/087477ea609de1122cf98f9f0a7bad2cae0055fd, which is rather old (september of 2022).

Marco, do you know what might be going on? That causes searchfox to use an older revision which is not great.

Flags: needinfo?(mcastelluccio)

https://github.com/mozsearch/mozsearch-mozilla/pull/194 should prevent this from happening again

There was a problem with the AWS -> GCP migration that caused some tasks to be running for old revisions, and they replaced the "latest".

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(mcastelluccio)
Resolution: --- → WORKSFORME

I guess we should mark this as FIXED instead, given Emilio's patch is going to prevent this from happening again.

Resolution: WORKSFORME → FIXED
You need to log in before you can comment on or make changes to this bug.