Commit Graph

8 Commits

Author SHA1 Message Date
Davide Girardi 5c487b4305 Remove Docker push for PRs 2023-11-09 14:07:18 +01:00
Eric Eastwood 5d444d5044
Rename project from "Matrix Public Archive" to "Matrix Viewer" (#280)
Mentioned in the recent blog post:

The canonical `` instance is not live yet but this is pre-requisite work for that to happen.
2023-07-14 15:52:35 -05:00
Eric Eastwood 9078abf4f1
Timeout requests and stop processing further (#204)

 - Apply timeout middleware to all room directory and room routes
 - Stop messing with the response after we timeout. Fix
    - This also involves cancelling any `async/await` things like requests in the routes so we throw an abort error instead of continuing on. Fix
 - Also abort the route if we see that the user closed the request before we could respond to them
 - Bumps minimum supported Node.js version to v18 because we're now using the built-in native `fetch` in Node.js vs `node-fetch`. This gives us the custom `signal.reason` that we aborted with instead of a generic `AbortError`.
    - This also means we had to add some instrumentation for `fetch` which uses `undici` under the hood. Settled on some unofficial instrumentation: [`opentelemetry-instrumentation-fetch-node`](
2023-05-02 00:39:01 -05:00
Eric Eastwood b39d7caf31
Add linting to CI (#74)
- Prettier
 - ESLint
2022-09-27 22:21:00 -05:00
Eric Eastwood 127d416e6a
Room directory landing page v1 (#61)
Part of
2022-09-08 01:30:04 -05:00
Eric Eastwood bd5c14242e
Make sure container is able to start up (#23)
Follow-up to
2022-06-15 17:12:44 -05:00
Eric Eastwood 780600e3dd
Containerize app (make a Docker image for `matrix-public-archive`) (#22)
Containerize app (make a Docker image for `matrix-public-archive`)


... with a variety of tags!

Packages viewable on
2022-06-15 02:28:18 -05:00
Eric Eastwood cda2d98df0
Add testing to CI (#20)
1. Build test homeserver Docker images which can federate with each other
 2. Run end-to-end (e2e) tests

#### Dev notes

Sharing variables across jobs when the `services` field can't access the `env` context,
  FOO: bar

      var: ${{ steps.save_var.outputs.var }}
      - id: save_var
         run: echo "::set-output name=var::${{ env.FOO }}"
    needs: set_env
      image: ...whatever_you_need_here...${{ needs.set_env.outputs.var }}
2022-06-15 00:59:41 -05:00