Skip to content
Snippets Groups Projects
  1. Nov 21, 2024
  2. Sep 09, 2024
  3. Aug 20, 2024
    • Ritesh Raj Sarraf's avatar
      Use individual token per qa-report-app instance · f9ee1e0e
      Ritesh Raj Sarraf authored
      
      With task T10606, we make each instance of qa-report-app have its own
      token. As such, these changes are needed to honor the new field
      
      Should fix below exception:
      
      ```
      Traceback (most recent call last):
        File "/app/./wait-for-db.py", line 27, in <module>
          main()
        File "/app/./wait-for-db.py", line 18, in main
          config.load_config_from_file(args.config)
        File "/app/config.py", line 817, in load_config_from_file
          self._instance = AppConfig.parse_obj(data)
        File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
        File "pydantic/env_settings.py", line 39, in pydantic.env_settings.BaseSettings.__init__
        File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
      pydantic.error_wrappers.ValidationError: 1 validation error for AppConfig
      qa-report-gitlab-token
        extra fields not permitted (type=value_error.extra)
      ```
      
      Signed-off-by: default avatarRitesh Raj Sarraf <ritesh.sarraf@collabora.com>
      f9ee1e0e
  4. Jul 05, 2024
    • Walter Lozano's avatar
      Handle missing test cases pages · cbd1803d
      Walter Lozano authored
      
      In case of requesting an non existent test case the following exception is
      triggered:
      
      Traceback (most recent call last):
        File "/usr/local/lib/python3.9/dist-packages/waitress/channel.py", line 428, in service
          task.service()
        File "/usr/local/lib/python3.9/dist-packages/waitress/task.py", line 168, in service
          self.execute()
        File "/usr/local/lib/python3.9/dist-packages/waitress/task.py", line 436, in execute
          app_iter = self.channel.server.application(environ, start_response)
        File "/usr/local/lib/python3.9/dist-packages/waitress/proxy_headers.py", line 64, in translate_proxy_headers
          return app(environ, start_response)
        File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1498, in __call__
          return self.wsgi_app(environ, start_response)
        File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1476, in wsgi_app
          response = self.handle_exception(e)
        File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1473, in wsgi_app
          response = self.full_dispatch_request()
        File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 882, in full_dispatch_request
          rv = self.handle_user_exception(e)
        File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 880, in full_dispatch_request
          rv = self.dispatch_request()
        File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 865, in dispatch_request
          return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
        File "/app/./webhook.py", line 292, in testcases_definition
          tc_file_data = testcases_table.get_tc_data(release, testcase + ".yaml")
        File "/app/data/testcases_table.py", line 184, in get_tc_data
          return self.get_index_files_data()[release][tc_file]
      KeyError: 'iptables-nmap.yaml'
      
      To avoid this type of messages handle gracefully the query for non existent
      test cases.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      cbd1803d
  5. Jul 03, 2024
  6. Feb 21, 2024
  7. Feb 20, 2024
  8. Feb 13, 2024
    • Pablo Vigo Mas's avatar
      Fix fsGroup in Helm Chart · f82152c4
      Pablo Vigo Mas authored
      
      The fsGroup value was improperly configured in the Helm Chart and consequently discarded during deployment.
      This adjustment now correctly assigns the `fsGroup` value in the appropriate section, ensuring proper configuration.
      
      Signed-off-by: default avatarPablo Vigo <pvigo@collabora.com>
      f82152c4
  9. Jan 23, 2024
  10. Jan 16, 2024
  11. Dec 18, 2023
  12. Oct 18, 2023
  13. Oct 10, 2023
    • Pablo Vigo Mas's avatar
      Ensure the pod restarts when the K8s secret with the config is updated · 45bed51a
      Pablo Vigo Mas authored and Emanuele Aina's avatar Emanuele Aina committed
      
      A new annotation was included adding the hash of the secret holding the
      app configuration.
      
      If the secret is updated, the hash will be different and the Pod will
      be restarted automatically.
      
      Signed-off-by: default avatarpvigo@collabora.com <pvigo@collabora.com>
      45bed51a
    • Emanuele Aina's avatar
      List deps one per line to make diff work better · f61c3733
      Emanuele Aina authored
      
      Tweaking the lists of dependencies to spread over multiple lines, with
      each entry on its own line, makes `git diff` work much better since
      you can now spot what has actually changed with a single glance.
      
      This commit does not otherwise introduce any functional change.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      f61c3733
    • Emanuele Aina's avatar
      Pin Flask/Werkzeug 2.3 · 88d5c4e0
      Emanuele Aina authored
      
      Avoid Flask 3.0/Werkzeug 3.0 for now as they cause the unit tests
      to fail:
      
          =================================== FAILURES ===================================
          ________________________ FunctionalTestCase.test_index _________________________
          self = <functional_test.FunctionalTestCase testMethod=test_index>
              def test_index(self):
                  client = self.app.test_client()
                  response = client.get('/')
                  assert response.status_code == 200
                  assert response.mimetype == 'text/html'
          >       assert response.charset == 'utf-8'
          E       AttributeError: 'WrapperTestResponse' object has no attribute 'charset'
          client     = <FlaskClient <Flask 'webhook'>>
          response   = <WrapperTestResponse streamed [200 OK]>
          self       = <functional_test.FunctionalTestCase testMethod=test_index>
          tests/functional_test.py:49: AttributeError
          ----------------------------- Captured stderr call -----------------------------
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      88d5c4e0
  14. Sep 26, 2023
  15. Sep 14, 2023
  16. Jul 19, 2023
    • Detlev Casanova's avatar
      pages: Adapt urls of tagged images · 499db654
      Detlev Casanova authored
      
      For tagged images, the URL to the image on images.apertis.org has to be
      adapted because the images are copied to another folder once they are
      tagged. This is necessary to keep them from being removed by the
      clean-up process.
      
      For releases, the version <DATE>.<TIME> is replaced by the release number
      <YEAR>.<RELEASE>. E.g.: 20230524.1145 is replaced by v2023.1 and the
      `daily` folder by the `release` folder.
      
      For weeklies, only the `daily` folder is replaced by the `weekly`
      folder.
      
      Signed-off-by: default avatarDetlev Casanova <detlev.casanova@collabora.com>
      499db654
  17. Jun 30, 2023
  18. May 25, 2023
  19. May 19, 2023
  20. Apr 13, 2023
  21. Mar 24, 2023
  22. Mar 02, 2023
Loading