File tree Expand file tree Collapse file tree 7 files changed +32
-29
lines changed
Expand file tree Collapse file tree 7 files changed +32
-29
lines changed Original file line number Diff line number Diff line change 11import argparse
22import asyncio
3+ import math
34import re
45import statistics
5- import math
6- import rich
7-
86from typing import *
97
8+ import rich
9+
1010from utils import forward
1111from utils .forward import *
12+ from utils .net import init
13+ from utils .schema import Build , Stage
14+ from utils .utils import init_log
1215
1316
1417def is_parallelizable (name : str , desc : str ) -> bool :
Original file line number Diff line number Diff line change 11import os
2- from sqlalchemy import create_engine
32
3+ from sqlalchemy import create_engine
44from sqlalchemy .dialects .postgresql import insert
55
66
Original file line number Diff line number Diff line change 11"""
22Scrape Jenkins, send build data to Loki and Postgres
33"""
4- import dataclasses
5- import aiohttp
4+ import argparse
65import asyncio
6+ import dataclasses
77import datetime
8- import sys
9- import os
10- import time
118import json
12- import argparse
9+ import logging
10+ import os
1311import subprocess
12+ import sys
13+ import time
1414from pathlib import Path
15+ from typing import *
1516
16- # from sqlalchemy import select
17- from .utils import *
17+ import aiohttp
18+
19+ from . import db , schema
1820from .net import *
19- from typing import *
2021
21- from . import db
22- from . import schema
23- import logging
22+ # from sqlalchemy import select
23+ from .utils import *
2424
2525SESSION = None
2626DEBUG = os .getenv ("DEBUG" , "0" ) == "1"
Original file line number Diff line number Diff line change 1- import requests
2- import subprocess
3- import os
41import logging
2+ import os
3+ import subprocess
54from pathlib import Path
65
6+ import requests
77
88CACHE_DIR = None
99DEBUG = os .getenv ("DEBUG" , "0" ) == "1"
Original file line number Diff line number Diff line change 1+ from typing import Any , Dict
2+
13import sqlalchemy
2- from sqlalchemy .orm import declarative_base
34from sqlalchemy import (
5+ JSON ,
6+ Boolean ,
47 Column ,
8+ DateTime ,
59 Integer ,
610 String ,
7- Boolean ,
8- DateTime ,
9- JSON ,
1011 Text ,
12+ column ,
13+ table ,
1114)
15+ from sqlalchemy .orm import declarative_base
1216from sqlalchemy .sql .sqltypes import Float
13- from sqlalchemy import table , column
1417
1518from . import db
16- from typing import Dict , Any
17-
1819
1920Base = declarative_base ()
2021
Original file line number Diff line number Diff line change 1- import json
2- import sys
31import asyncio
2+ import json
43import logging
4+ import sys
55from pathlib import Path
66
7-
87REPO_ROOT = Path (__file__ ).resolve ().parent
98
109
You can’t perform that action at this time.
0 commit comments