~ignaloidas

~ignaloidas/public-inbox

Last active 3 months ago
View more

Recent activity

builds.sr.ht work distribution proposal 25 days ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev

Hey, I've been thinking about high level architecture for builds.sr.ht
work distribution that would schedule the tasks fairly and quickly, so
I'd like to share my ideas. This considers plans to have dedicated build
slots.

When users submit builds, they should first go into user queues,
specific for each user. Each general worker chooses an idle user queue
with a build via round-robin(taking randomly might also work) and takes
the fist build and marks the queue as busy. When the build is finished
the queue is marked back to idle. Dedicated workers take the builds from
queues of users they are dedicated to without caring about queue status.

This strategy should ensure that everyone's builds are executed as fast
as possible without the possibility of someone's build spam seriously

Re: GraphQL API security review a month ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev

On 2020-09-15 22:19, Drew DeVault wrote:

> The meta.sr.ht GraphQL schema now includes a number of @internal
> resolvers which are used to manage OAuth:
> 
> https://git.sr.ht/~sircmpwn/meta.sr.ht/tree/68b1c0414aa720553210453a93a660cb602a7136/api/graph/schema.graphqls

> Thoughts?
Is there any reason for adding an @internal onto
tokenRevocationStatus[0]? I don't see any real abuse potential here, and
having easy access to it helps non-internal OAuth apps to stop using the
token.

[0]:

[PATCH core.sr.ht] Remove anchor link animation depending on prefers-reduced-mortion media query a month ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev

---
 srht/scss/base.scss | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/srht/scss/base.scss b/srht/scss/base.scss
index 332fa02..c259017 100644
--- a/srht/scss/base.scss
+++ b/srht/scss/base.scss
@@ -314,6 +314,12 @@ code {
      left: -1rem;
    }

    @media(prefers-reduced-motion) {
      & > a:first-child {
[message trimmed]

Re: [PATCH scm.sr.ht v3 1/1] Add {GET,PUT,DELETE} /api/repos/:repo/readme, accepting HTML READMEs. Add Repository.readme a month ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev


On 2020-08-25 02:54, наб wrote:
> Ref: ~sircmpwn/git.sr.ht#205
> ---
>  scmsrht/blueprints/api/info.py | 43 +++++++++++++++++++++++++++++++++-
>  scmsrht/repos/repository.py    |  1 +
>  2 files changed, 43 insertions(+), 1 deletion(-)
> 
> diff --git a/scmsrht/blueprints/api/info.py b/scmsrht/blueprints/api/info.py
> index ca29e9d..95792ae 100644
> --- a/scmsrht/blueprints/api/info.py
> +++ b/scmsrht/blueprints/api/info.py
> +@info.route("/api/repos/<reponame>/readme", methods=["PUT"])

[PATCH] Fix links to log lines 3 months ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev

---
 buildsrht/blueprints/jobs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildsrht/blueprints/jobs.py b/buildsrht/blueprints/jobs.py
index f2ab617..d202cb4 100644
--- a/buildsrht/blueprints/jobs.py
@@ -330,7 +330,7 @@ def logify(text, task, log_url):
        linenos = Markup('<pre>')
    for no in range(1, nlines + 1):
        linenos += Markup(f'<a href="#{escape(task)}-{no-1}" '
                + f'id="#{escape(task)}-{no-1}">{no}</a>')
                + f'id="{escape(task)}-{no-1}">{no}</a>')
[message trimmed]

Re: [PATCH metrics.sr.ht v2] Add an alert for high rate of server errors 3 months ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev

Looks like this rule got lost somewhere during the deployment.

https://builds.sr.ht/~sircmpwn/job/242956##task-package-23

-- Email domain proudly hosted at https://migadu.com

[PATCH metrics.sr.ht v2] Add an alert for high rate of server errors 3 months ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev

---
 service_rules.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 service_rules.yml

diff --git a/service_rules.yml b/service_rules.yml
new file mode 100644
index 0000000..2a71244
--- /dev/null
+++ b/service_rules.yml
@@ -0,0 +1,11 @@
# vim: tw=2 sw=2 :
groups:
- name: service
[message trimmed]

[PATCH metrics.sr.ht] Add an alert for high rate of server errors 3 months ago

From Ignas Kiela to ~sircmpwn/sr.ht-dev

---
 service_rules.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 service_rules.yml

diff --git a/service_rules.yml b/service_rules.yml
new file mode 100644
index 0000000..26fedf0
--- /dev/null
+++ b/service_rules.yml
@@ -0,0 +1,11 @@
# vim: tw=2 sw=2 :
groups:
- name: service
[message trimmed]

Re: U2F Authentication 5 months ago

From Ignas Kiela to ~sircmpwn/sr.ht-discuss

Currently Webauthn implementation is blocked by requirement of
javascript. I have submitted a request[0] for this to Webauthn working
group, but it is scheduled for level 3 standard, which might or might
not happen.

[0]: https://github.com/w3c/webauthn/issues/1255

-- Email domain proudly hosted at https://migadu.com

Re: [PATCH forgeperf] Add NotABug testing 6 months ago

From Ignas Kiela to ~sircmpwn/public-inbox

> Out of curiosity, what do the results look like?

My internet is slow enough to influence these tests heavily, so I
launched a build job [0] which hasn't finished yet.

[0] https://builds.sr.ht/~ignaloidas/job/189848