snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled

This commit is contained in:
upstream-mirror
2026-09-15 15:05:30 +05:00
commit 64898b2c79
8999 changed files with 1757358 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
Facter.add(:container_memory_limit_mb) do
confine kernel: 'Linux'
setcode do
begin
memory_limit_mb = nil
# Check for cgroup v2
if File.exist?('/sys/fs/cgroup/memory.max')
val = File.read('/sys/fs/cgroup/memory.max').strip
memory_limit_mb = val.to_i / 1024 / 1024 unless val == 'max'
# Fallback to cgroup v1
elsif File.exist?('/sys/fs/cgroup/memory/memory.limit_in_bytes')
val = File.read('/sys/fs/cgroup/memory/memory.limit_in_bytes').strip.to_i
memory_limit_mb = val / 1024 / 1024 if val < 9223372036854771712
end
memory_limit_mb
rescue => e
Facter.debug("container_memory_limit_mb error: #{e}")
nil
end
end
end

View File

@@ -0,0 +1,16 @@
Facter.add(:io_uring_available) do
confine :kernel => 'Linux'
setcode do
# Syscall 425 is io_uring_setup
# https://www.chromium.org/chromium-os/developer-library/reference/linux-constants/syscalls/#x86_64_425
# https://manpages.debian.org/trixie/liburing-dev/io_uring_setup.2.en.html
#
# We get ENOSYS if the kernel doesn't have the syscall, or EPERM
# if it's disabled or restricted via seccomp (i.e. in Docker)
result = Facter::Core::Execution.execute(
"perl -MErrno=EPERM,ENOSYS -e 'syscall(425); exit((\$! != EPERM and \$! != ENOSYS) ? 0 : 1)'",
:on_fail => :failed
)
result != :failed && $?.success?
end
end

View File

@@ -0,0 +1,17 @@
require "open3"
Facter.add(:zulip_version) do
setcode do
Dir.chdir(File.expand_path("../../../../", __dir__)) do
output, stderr, status = Open3.capture3(
"python3", "-c", "import version; print(version.ZULIP_VERSION_WITHOUT_COMMIT)"
)
if not status.success?
Facter.debug("zulip_version error: #{stderr}")
nil
else
output.strip
end
end
end
end