on master help sign in
Merge pull request #2405 from dalf/no-emojis
35feb00Alexandre Flament
.github/workflows/integration.yml+21βˆ’21
@@ -11,26 +11,26 @@ jobs:
11 os: [ubuntu-latest]
11 os: [ubuntu-latest]
12 python-version: [3.5, 3.6, 3.7, 3.8]
12 python-version: [3.5, 3.6, 3.7, 3.8]
13 steps:
13 steps:
14βˆ’ - name: Checkout πŸ›ŽοΈ
14+ - name: Checkout
15 uses: actions/checkout@v2
15 uses: actions/checkout@v2
16βˆ’ - name: Install Ubuntu packages 🧰
16+ - name: Install Ubuntu packages
17 run: |
17 run: |
18 sudo ./utils/searx.sh install packages
18 sudo ./utils/searx.sh install packages
19 sudo apt install firefox
19 sudo apt install firefox
20βˆ’ - name: Set up Python 🧰
20+ - name: Set up Python
21 uses: actions/setup-python@v2
21 uses: actions/setup-python@v2
22 with:
22 with:
23 python-version: ${{ matrix.python-version }}
23 python-version: ${{ matrix.python-version }}
24 architecture: 'x64'
24 architecture: 'x64'
25βˆ’ - name: Install Python dependencies 🧰
25+ - name: Install Python dependencies
26 run: |
26 run: |
27 make V=1 install
27 make V=1 install
28 make V=1 gecko.driver
28 make V=1 gecko.driver
29βˆ’ - name: Run tests πŸ—οΈ
29+ - name: Run tests
30 run: make V=1 test
30 run: make V=1 test
31βˆ’ - name: Test coverage πŸ—ΊοΈ
31+ - name: Test coverage
32 run: make V=1 test.coverage
32 run: make V=1 test.coverage
33βˆ’ - name: Store coverage result πŸ—ΊοΈ
33+ - name: Store coverage result
34 uses: actions/upload-artifact@v2
34 uses: actions/upload-artifact@v2
35 with:
35 with:
36 name: coverage-${{ matrix.python-version }}
36 name: coverage-${{ matrix.python-version }}
@@ -41,33 +41,33 @@ jobs:
41 name: Themes
41 name: Themes
42 runs-on: ubuntu-latest
42 runs-on: ubuntu-latest
43 steps:
43 steps:
44βˆ’ - name: Checkout πŸ›ŽοΈ
44+ - name: Checkout
45 uses: actions/checkout@v2
45 uses: actions/checkout@v2
46βˆ’ - name: Install Ubuntu packages 🧰
46+ - name: Install Ubuntu packages
47 run: sudo ./utils/searx.sh install packages
47 run: sudo ./utils/searx.sh install packages
48βˆ’ - name: Install node dependencies 🧰
48+ - name: Install node dependencies
49 run: make V=1 node.env
49 run: make V=1 node.env
50βˆ’ - name: Build themes πŸ—οΈ
50+ - name: Build themes
51 run: make V=1 themes
51 run: make V=1 themes
52
52
53 documentation:
53 documentation:
54 name: Documentation
54 name: Documentation
55 runs-on: ubuntu-latest
55 runs-on: ubuntu-latest
56 steps:
56 steps:
57βˆ’ - name: Checkout πŸ›ŽοΈ
57+ - name: Checkout
58 uses: actions/checkout@v2
58 uses: actions/checkout@v2
59 with:
59 with:
60 persist-credentials: false
60 persist-credentials: false
61βˆ’ - name: Install Ubuntu packages 🧰
61+ - name: Install Ubuntu packages
62 run: sudo ./utils/searx.sh install buildhost
62 run: sudo ./utils/searx.sh install buildhost
63βˆ’ - name: Set up Python 🧰
63+ - name: Set up Python
64 uses: actions/setup-python@v2
64 uses: actions/setup-python@v2
65 with:
65 with:
66 python-version: '3.9'
66 python-version: '3.9'
67 architecture: 'x64'
67 architecture: 'x64'
68βˆ’ - name: Build documentation πŸ—οΈ
68+ - name: Build documentation
69 run: SEARX_DEBUG=1 make V=1 travis-gh-pages
69 run: SEARX_DEBUG=1 make V=1 travis-gh-pages
70βˆ’ - name: Deploy πŸš€
70+ - name: Deploy
71 if: github.ref == 'refs/heads/master'
71 if: github.ref == 'refs/heads/master'
72 uses: JamesIves/github-pages-deploy-action@3.7.1
72 uses: JamesIves/github-pages-deploy-action@3.7.1
73 with:
73 with:
@@ -87,24 +87,24 @@ jobs:
87 DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
87 DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
88 runs-on: ubuntu-latest
88 runs-on: ubuntu-latest
89 steps:
89 steps:
90βˆ’ - name: Checkout πŸ›ŽοΈ
90+ - name: Checkout
91 if: env.DOCKERHUB_USERNAME != null
91 if: env.DOCKERHUB_USERNAME != null
92 uses: actions/checkout@v2
92 uses: actions/checkout@v2
93 with:
93 with:
94 # make sure "make docker.push" can get the git history
94 # make sure "make docker.push" can get the git history
95 fetch-depth: '0'
95 fetch-depth: '0'
96βˆ’ - name: Set up QEMU 🧰
96+ - name: Set up QEMU
97 if: env.DOCKERHUB_USERNAME != null
97 if: env.DOCKERHUB_USERNAME != null
98 uses: docker/setup-qemu-action@v1
98 uses: docker/setup-qemu-action@v1
99βˆ’ - name: Set up Docker Buildx 🧰
99+ - name: Set up Docker Buildx
100 if: env.DOCKERHUB_USERNAME != null
100 if: env.DOCKERHUB_USERNAME != null
101 uses: docker/setup-buildx-action@v1
101 uses: docker/setup-buildx-action@v1
102βˆ’ - name: Login to DockerHub πŸ”’
102+ - name: Login to DockerHub
103 if: env.DOCKERHUB_USERNAME != null
103 if: env.DOCKERHUB_USERNAME != null
104 uses: docker/login-action@v1
104 uses: docker/login-action@v1
105 with:
105 with:
106 username: ${{ secrets.DOCKERHUB_USERNAME }}
106 username: ${{ secrets.DOCKERHUB_USERNAME }}
107 password: ${{ secrets.DOCKERHUB_TOKEN }}
107 password: ${{ secrets.DOCKERHUB_TOKEN }}
108βˆ’ - name: Build and push 🐳
108+ - name: Build and push
109 if: env.DOCKERHUB_USERNAME != null
109 if: env.DOCKERHUB_USERNAME != null
110 run: make -e GIT_URL=$(git remote get-url origin) docker.push
110 run: make -e GIT_URL=$(git remote get-url origin) docker.push
searx/metrology/error_recorder.py+1βˆ’1
@@ -47,7 +47,7 @@ class ErrorContext:
47def add_error_context(engine_name: str, error_context: ErrorContext) -> None:
47def add_error_context(engine_name: str, error_context: ErrorContext) -> None:
48 errors_for_engine = errors_per_engines.setdefault(engine_name, {})
48 errors_for_engine = errors_per_engines.setdefault(engine_name, {})
49 errors_for_engine[error_context] = errors_for_engine.get(error_context, 0) + 1
49 errors_for_engine[error_context] = errors_for_engine.get(error_context, 0) + 1
50βˆ’ logger.debug('⚠️ %s: %s', engine_name, str(error_context))
50+ logger.debug('%s: %s', engine_name, str(error_context))
51
51
52
52
53def get_trace(traces):
53def get_trace(traces):