Code Monkey home page Code Monkey logo

docker-etl's Issues

Process unclassified reports that were missed in broken_site_report_ml job

I've noticed some occasional unclassified reports that were missed by the broken_site_report_ml job.

Currently we select reports for classification based on a condition where reported_at is after the last successful classification run:

def get_reports_since_last_run(client, last_run_time):
query = f"""
SELECT
uuid,
comments as body,
url as title
FROM `moz-fx-data-shared-prod.org_mozilla_broken_site_report.user_reports`
WHERE comments != "" AND reported_at > "{last_run_time}"
ORDER BY reported_at
"""
query_job = client.query(query)
return list(query_job.result())

Thinking this could have happened because at the time of running the job, the missed reports were not in BQ table, and got inserted with a delay. So to fix this, we could look for reports don't have a label and with reported_at before the last successful classification run.

Mau Dau dashboard fails to build because of missing service account

https://app.circleci.com/pipelines/github/mozilla/docker-etl/92/workflows/6717bfcd-03d2-4cfc-9ce5-f68e9f7906db/jobs/257

#!/bin/bash -eo pipefail
# Store service account
echo $MAU_DASHBOARDS_KEY > ${HOME}/gcloud-service-key.json

# Initialize gcloud CLI
gcloud auth activate-service-account --key-file=${HOME}/gcloud-service-key.json
gcloud --quiet config set project $MAU_DASHBOARDS_PROJECT
gcloud --quiet config set compute/zone $GOOGLE_COMPUTE_ZONE

ERROR: (gcloud.auth.activate-service-account) There was a problem refreshing your current auth tokens: invalid_grant: Invalid grant: account not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.