From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4D80915815E for ; Sat, 3 Feb 2024 10:02:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B9B8E2B19; Sat, 3 Feb 2024 10:02:43 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22135E2B19 for ; Sat, 3 Feb 2024 10:02:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 51771343177 for ; Sat, 3 Feb 2024 10:02:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B6952AE3 for ; Sat, 3 Feb 2024 10:02:40 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1706953697.eaf908437029fb291b327db680d550fbe36c86df.zorry@gentoo> Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: buildbot_gentoo_ci/steps/ X-VCS-Repository: proj/tinderbox-cluster X-VCS-Files: buildbot_gentoo_ci/steps/minio.py X-VCS-Directories: buildbot_gentoo_ci/steps/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: eaf908437029fb291b327db680d550fbe36c86df X-VCS-Branch: master Date: Sat, 3 Feb 2024 10:02:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e879695d-1990-40dc-83b7-8cdf05a00e11 X-Archives-Hash: 04167ac69666180725ed18bf0ac5ecf8 commit: eaf908437029fb291b327db680d550fbe36c86df Author: Magnus Granberg gentoo org> AuthorDate: Sat Feb 3 09:48:17 2024 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Sat Feb 3 09:48:17 2024 +0000 URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=eaf90843 Remove minio Signed-off-by: Magnus Granberg gentoo.org> buildbot_gentoo_ci/steps/minio.py | 60 --------------------------------------- 1 file changed, 60 deletions(-) diff --git a/buildbot_gentoo_ci/steps/minio.py b/buildbot_gentoo_ci/steps/minio.py deleted file mode 100644 index ac9ac3d..0000000 --- a/buildbot_gentoo_ci/steps/minio.py +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -from minio import Minio -from minio.error import ResponseError, BucketAlreadyOwnedByYou, BucketAlreadyExists - -from twisted.internet import defer -from twisted.python import log - -from buildbot.process.buildstep import BuildStep -from buildbot.process.results import SUCCESS -from buildbot.process.results import FAILURE - -#FIXME: -# get url, user from config -# get password from secret -url = '' -user = '' -password = '' - -class putFileToMinio(BuildStep): - - name = 'putFileToMinio' - description = 'Running' - descriptionDone = 'Ran' - descriptionSuffix = None - haltOnFailure = False - flunkOnFailure = True - warnOnWarnings = True - - def __init__(self, filename, target, bucket, **kwargs): - self.filename = filename - self.bucket = bucket - self.target = target - super().__init__(**kwargs) - - def getMinioConnect(self, url, user, password): - minioclient = Minio( - url, - access_key = user, - secret_key = password, - secure = False - ) - return minioclient - - @defer.inlineCallbacks - def pushFileToMinio(self): - try: - yield self.minio_connect.fput_object(self.bucket, self.target, self.filename) - except ResponseError as err: - print(err) - return FAILURE - return True - - @defer.inlineCallbacks - def run(self): - self.gentooci = self.master.namedServices['services'].namedServices['gentooci'] - self.minio_connect = yield self.getMinioConnect(url, user, password) - success = yield self.pushFileToMinio() - return SUCCESS