Skip to content

Instantly share code, notes, and snippets.

View armenzg's full-sized avatar

Armen Zambrano G. armenzg

View GitHub Profile
@armenzg
armenzg / pyenv-big-sur.md
Created November 20, 2020 20:17
Pyenv installation issues on Big Sur

Even trying with latest pyenv (pyenv 1.2.21-1-g943015eb).

Clang version:

armenzg@Armens-MacBook-Pro sentry % clang --version
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
@armenzg
armenzg / schedule.py
Created June 22, 2020 18:26
Code to create a task from another one
# I have tried to use create_task_from_def, however, the create.py module
# use of sessions is optimized to work within the context of a task
def create_task_from_definition(task, task_group_id):
'''This is a helper function to call create_task_from_def'''
root_url = get_root_url(os.environ.get('TASKCLUSTER_PROXY_URL', False))
queue = Queue({
'rootUrl': root_url,
'credentials': optionsFromEnvironment().get('credentials', {}),
})
@armenzg
armenzg / log.txt
Created May 28, 2020 18:38
Output
app/worker_log_parser.1 [2020-05-28 18:37:10,468] DEBUG [treeherder.log_parser.tasks:43] parser_task for 491423495
app/worker_log_parser.1 [2020-05-28 18:37:10,468: DEBUG/ForkPoolWorker-4] parser_task for 491423495
app/worker_log_parser.1 [2020-05-28 18:37:10,478] DEBUG [treeherder.log_parser.tasks:97] Running parse_unstructured_log for job 303150990
app/worker_log_parser.1 [2020-05-28 18:37:10,478: DEBUG/ForkPoolWorker-4] Running parse_unstructured_log for job 303150990
app/worker_log_parser.1 [2020-05-28 18:37:10,699] DEBUG [treeherder.log_parser.tasks:136] Stored artifact for try 303151471
app/worker_log_parser.1 [2020-05-28 18:37:10,699: DEBUG/ForkPoolWorker-1] Stored artifact for try 303151471
app/worker_log_parser.1 [2020-05-28 18:37:10,800] DEBUG [treeherder.log_parser.tasks:43] parser_task for 491417858
app/worker_log_parser.1 [2020-05-28 18:37:10,800: DEBUG/ForkPoolWorker-1] parser_task for 491417858
app/worker_log_parser.1 [2020-05-28 18:37:10,800] INFO [treeherder.log_parser.tasks:47] Ski
@armenzg
armenzg / 1.diff
Last active May 5, 2020 18:50
Tasks without AD data
diff --git a/mozci/push.py b/mozci/push.py
index 49d59cc..9a5073a 100644
--- a/mozci/push.py
+++ b/mozci/push.py
@@ -377,6 +377,12 @@ class Push:
def gather_missing_results(self, tasks: list) -> list:
""" It gathers errors/results from Taskcluster if missing."""
+ # Let's gather all collected data from AD
+ for t in tasks:
provisionerId: proj-cia
workerType: ci
schedulerId: '-'
scopes:
- 'assume:hook-id:project-cia/hello-world'
payload:
image: 'ubuntu:latest'
command:
- /bin/bash
- '-c'
const contents = gzip(
JSON.stringify({
'layout/reftests/list-item/reftest.list': [
'bullet-intrinsic-isize-1.html',
'bullet-intrinsic-isize-2.html',
'bullet-justify-1.html',
],
'toolkit/mozapps/extensions/test/mochitest/mochitest.ini': [
'test_bug887098.html',
],
@armenzg
armenzg / GSOC 2020 readme.md
Created January 29, 2020 19:09
GSOC 2020 potential candidates please read

If you are reading this Gist is because you're likely interested on becoming a GSOC 2020 candidate and to be selected for the Treeherder proposal.

First of all, we're honored that you have interest in the project and we're grateful that you would like to help further Mozilla's mission of a better internet for all users.

For now, I don't know if Mozilla will be approved as a GSOC sponsor or if the Treeherder proposal will make it to the end. I don't want to discourage from contributing but you need to put a lot of work working independently and having initiative if you want to distinguish yourself from other students. I have handful of contributors reaching out every week. It is also important to be aware that the project is rather mature and

@armenzg
armenzg / active_data.json
Created September 6, 2019 18:30
ActiveData query for a testpath
{
"data":[{
"action.duration":1061.746000051498,
"action.end_time":1566387205.907,
"action.start_time":1566386144.161,
"build.branch":"mozilla-central",
"build.date":1566381254,
"build.platform":"macosx1014-64-shippable",
"build.revision":"8e1e5dbe95dc0f451aa812b86c98ddfeb35fcfbc",
"build.revision12":"8e1e5dbe95dc",
[2019-07-11 20:56:46,840] INFO [treeherder.etl.management.commands.ingest_push_and_tasks:44] Loading into DB: cSOCHn1pRJulJyjP83UvGg/0
[2019-07-11 20:56:46,942] INFO [treeherder.etl.management.commands.ingest_push_and_tasks:44] Loading into DB: cbY7V4e9SIi8UpJdFEXdbw/0
Traceback (most recent call last):
File "./manage.py", line 34, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
@armenzg
armenzg / keybase.md
Created March 26, 2019 17:59
keybase.md

Keybase proof

I hereby claim:

  • I am armenzg on github.
  • I am armenzg (https://keybase.io/armenzg) on keybase.
  • I have a public key ASDb37_aiRC3egW4eioDIoFTH0lrkQkY2jjVHPMX1ABLAQo

To claim this, I am signing this object: