Skip to content

Instantly share code, notes, and snippets.

View greggdonovan's full-sized avatar

Gregg Donovan greggdonovan

View GitHub Profile
#!/usr/bin/env python3
import hashlib
import json
import os
import shlex
import shutil
import subprocess
import sys
from typing import Optional
@greggdonovan
greggdonovan / prolist_campaign_embedding_indexer.mmd
Last active January 26, 2026 16:30
Prolist campaign embedding indexer diagram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@greggdonovan
greggdonovan / tire_bazel8_93mpdWKNEG9G5gXv83XK.json
Created January 12, 2026 00:12
TIRE Analysis Framework - Bazel 8 Migration Validation Results
{
"replay_id": "93mpdWKNEG9G5gXv83XK",
"segment": "tag=all",
"captured_at": "2026-01-11T18:51:21.377974",
"source": "bazel8 TIRE UI (ggg/bazel8 branch)",
"metrics": {
"performance": {
"latency": {
"data_by_variants": [
{
public static void addLexicalMatchQuery(
String query, Query vespaQuery, ListingSearchOptions options, int size, int offset) {
...
vespaQuery
.getModel()
.setDefaultIndex(ListingSchema.FieldSets.Default(options.getTaxonomyHash()));
var queryType =
new QueryType(
Query.Type.LINGUISTICS,
/* When using Vespa with Lucene linguistics, the query-time analysis happens automatically when you use the YQL
query language, but in our Java API example, we need to explicitly apply the same analysis chain that's used
during indexing.
Here's the updated Java API searcher that properly applies Lucene analysis:
*/
import com.yahoo.component.chain.Chain;
import com.yahoo.language.Linguistics;
import com.yahoo.language.process.StemMode;
import com.yahoo.language.process.Token;
// Desired output:
// livenessProbe:
// httpGet:
// path: /
// port: http
// initialDelaySeconds: 10
local k = import 'k.libsonnet';
root@f1aadf850968:~/airflow/dags# ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -100
3.8 12.3 2695408 9 mysqld
3.2 11.6 176216 25755 /usr/bin/python /usr/local/bin/airflow run ggg_test sleep_12 2017-10-23T21:24:52.031249 --job_id 32 --raw -sd DAGS_FOLDER/ggg_test.py
3.2 11.5 176212 25767 /usr/bin/python /usr/local/bin/airflow run ggg_test sleep_13 2017-10-23T21:24:52.031249 --job_id 36 --raw -sd DAGS_FOLDER/ggg_test.py
3.2 11.1 176216 25750 /usr/bin/python /usr/local/bin/airflow run ggg_test sleep_11 2017-10-23T21:24:52.031249 --job_id 33 --raw -sd DAGS_FOLDER/ggg_test.py
3.2 10.8 176216 25764 /usr/bin/python /usr/local/bin/airflow run ggg_test sleep_2 2017-10-23T21:24:52.031249 --job_id 35 --raw -sd DAGS_FOLDER/ggg_test.py
3.2 10.7 176216 25757 /usr/bin/python /usr/local/bin/airflow run ggg_test sleep_15 2017-10-23T21:24:52.031249 --job_id 34 --raw -sd DAGS_FOLDER/ggg_test.py
3.2 10.4 176212 25741 /usr/bin/python /usr/local/bin/airflow run ggg_test sleep_22 2017-10-23T21:24:52.031249 --job_
@greggdonovan
greggdonovan / intellij_integration_via_manual_clone.diff
Last active October 16, 2017 14:58
Integrate intellij scala aspect integration testing into rules_scala by manually cloning intellij. This is opposed to using a submodule.
diff --git a/.travis.yml b/.travis.yml
index e4cf4ff..46f5bdc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -38,6 +38,7 @@ before_install:
./install.sh --user
rm -f install.sh
- cat .bazelrc.travis >> .bazelrc
+ - git clone git@github.com:bazelbuild/intellij.git
diff --git a/test_run.sh b/test_run.sh
index e5bc24f..06cafa6 100755
--- a/test_run.sh
+++ b/test_run.sh
@@ -525,12 +525,34 @@ revert_change() {
mv $1/$2.bak $1/$2
}
+test_intellij_aspect() {
+ # Verify that any changes to rules_scala work with the IntelliJ aspect
#!/bin/bash
cd ../intellij
bazel test --incompatible_disallow_set_constructor=false --override_repository io_bazel_rules_scala=/Users/gdonovan/development/rules_scala //aspect/testing/tests/src/com/google/idea/blaze/aspect/scala/...