Skip to content

Prebuild triggered on project creation does not get reported as usage #15282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #15148
jldec opened this issue Dec 10, 2022 · 1 comment
Closed
Tracked by #15148

Prebuild triggered on project creation does not get reported as usage #15282

jldec opened this issue Dec 10, 2022 · 1 comment
Labels
feature: prebuilds feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. type: bug Something isn't working

Comments

@jldec
Copy link
Contributor

jldec commented Dec 10, 2022

Unlike prebuilds triggered by a commit webhook, the prebuild triggered after new project creation is not recorded in d_b_usage.

NOTE This may be moot if we stop auto-triggering prebuilds on new projects. (#15281)

Example workspace instance below - looks like the startedTime is missing

{
  "id": "26a24057-cd7b-4e03-bdcb-28190a69fa3c",
  "workspaceId": "jldec-teamwowproject-l9n8921gofu",
  "creationTime": "2022-12-10T10:41:17.513Z",
  "startedTime": "",
  "stoppedTime": "2022-12-10T10:43:14.344Z",
  "lastHeartbeat": "",
  "ideUrl": "https://jldec-teamwowproject-l9n8921gofu.ws-eu78.gitpod.io",
  "status_old": null,
  "workspaceImage": "eu.gcr.io/gitpod-dev/workspace-images:3537a65c39f3373206fe0e6bdf38ae4bc221068731c57ddce7a798aa4a91b15a",
  "region": "eu78",
  "deployedTime": "",
  "workspaceBaseImage": "",
  "_lastModified": "2022-12-10 10:43:14.349798 UTC",
  "status": "{\"repo\": {\"branch\": \"main\", \"latestCommit\": \"e7e873a35f6264ccbb27f0a929596f48d81b5e9c\", \"totalUntrackedFiles\": 0, \"totalUncommitedFiles\": 0, \"totalUnpushedCommits\": 0}, \"phase\": \"stopped\", \"nodeIp\": \"10.10.0.29\", \"message\": \"\", \"podName\": \"prebuild-26a24057-cd7b-4e03-bdcb-28190a69fa3c\", \"timeout\": \"30m0s\", \"version\": 109488963190786, \"nodeName\": \"headless-ws-eu78-pool-z4xg\", \"conditions\": {\"failed\": \"\", \"timeout\": \"\", \"deployed\": false, \"pullingImages\": false, \"stoppedByRequest\": false, \"headlessTaskFailed\": \"\"}, \"ownerToken\": \"xxx\", \"exposedPorts\": []}",
  "phase": "stopped",
  "deleted": "0",
  "phasePersisted": "stopped",
  "configuration": "{\"ideImage\":\"eu.gcr.io/gitpod-core-dev/build/ide/code:commit-8335b0de46d748b9d12119bc7cbdf8554a9e121c\",\"ideImageLayers\":[],\"supervisorImage\":\"eu.gcr.io/gitpod-core-dev/build/supervisor:commit-478a75e744a642d9b764de37cfae655bc8b29dd5\",\"ideConfig\":{\"useLatest\":false},\"featureFlags\":[\"workspace_psi\",\"workspace_class_limiting\"]}",
  "stoppingTime": "2022-12-10T10:43:11.505Z",
  "imageBuildInfo": null,
  "workspaceClass": "g1-standard",
  "usageAttributionId": "team:b3ddef51-43cf-4fb3-ad0b-3edbd4e57c96"
}
@jldec jldec added type: bug Something isn't working feature: prebuilds feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. labels Dec 10, 2022
@jldec jldec moved this to Scheduled in 🍎 WebApp Team Dec 10, 2022
@svenefftinge
Copy link
Member

Since the instance never actually started there is no usage.
We are filtering for instances by startedTime != ''

Repository owner moved this from Scheduled to In Validation in 🍎 WebApp Team Dec 12, 2022
@jldec jldec moved this from In Validation to Done in 🍎 WebApp Team Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: prebuilds feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. type: bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants