From nobody Mon Aug 8 10:29:06 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M1XVp3xPCz4YmDj for ; Mon, 8 Aug 2022 10:29:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M1XVp1zL0z3WX8 for ; Mon, 8 Aug 2022 10:29:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M1XVp0mFWzp97 for ; Mon, 8 Aug 2022 10:29:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 278AT6Bq063474 for ; Mon, 8 Aug 2022 10:29:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 278AT6mN063473 for ports-bugs@FreeBSD.org; Mon, 8 Aug 2022 10:29:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265708] Mk/Uses/go.mk: gomod-vendor hits enterprise API limits on AWS repos Date: Mon, 08 Aug 2022 10:29:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dch@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659954546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lyUbkBZrd4LEfflslBCKM48LN7ayotIWLXVZFg6iQWE=; b=aLUwF21ZN4z1/13TARux9biMFxgxmFf7N05a01pS6GgROPJjxMfmUiZffwXzVTaBspFFo2 geQTeCCq0AAsI0atHT4DiR+vhcq4JB+sOVzBLOUsabB9j13D+NB85PMJ1fFRC7OP2kpiO2 INDllZaqMzB8UlbQDahWVjigGqo/G69Nud6Ay654NQtDvWsN3bi9A/4ECIoL06vgjw3a/g qkMRmpc3qS7mbWckuO/FD0IXcWNUSmiY6r30jGlOpJ9DsuTT88WtAoCUPC0bDu3d/Jk3Js fZxFaC/BfT9LB9n19XW6e6qP98zWib9gHKsp8yr90U7TXUcn7A5tuLtlyIiYYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659954546; a=rsa-sha256; cv=none; b=Mug5kHrRuZ70lTLOXMU0Xtdxyri3NBrxlPIHnpcInXPJRFsQzpDKe9d/fI9JT3NX4Msyxi BNqCDRr/OPU3/AdOMzpQMWiqVgNGHg4GuB2hZbtq9si9cw0XJD7UkjxUrup2spyJ9aFkpm 7TWIZslJIEE2oSUOOpCYa16n6w0ZENwSMW0mhNcm/6UGbHdSlGRc8N3fuspaUJEowgpMwI BKivQdSVPZ8Hw2IrKCUSzuTpCH+u0NeZS9cKVh0WCqNvq4/yO7E8DrAkesGQ37kuV7XNuJ aUZkSaq5BUwMzWySsG0EmDwf7BeFG66s0SBXEhua2uwx/FpoA1ydxOrXd3Diaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265708 Bug ID: 265708 Summary: Mk/Uses/go.mk: gomod-vendor hits enterprise API limits on AWS repos Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: dch@freebsd.org CC: ports-bugs@FreeBSD.org Updating e.g. net/seaweedfs to 3.19 requires using the new `M2T_GITHUB` env var to fetch repos. However this is insufficient for some repos, for example aws/aws-sdk-go-v2 returns: getting refs for aws/aws-sdk-go-v2: apis.get https://api.github.com/repos/aws/aws-sdk-go-v2/git/refs/tags: 502, It appears to be a limit *on the requested repo* as all the prior calls wo= rk, just the AWS ones fail. Re-running these requests from a different IP, with= a different Github account's API key, hits the same limit. https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-lim= iting > For requests to resources that belong to an enterprise account on GitHub.= com, > GitHub Enterprise Cloud's rate limit applies, and the limit is 15,000 req= uests > per hour per repository. ... $ cd /usr/ports/net/seaweedfs $ sed -E -i '' -e 's/^PORTREV.*//' -e 's/2.81/3.19/' Makefile $ truncate -s 0 distinfo Makefile.deps $ make makesum $ env M2T_DEBUG=3D1 M2T_GITHUB=3D$YOU:TOKEN make gomod-vendor | tee Makefil= e.new=20=20 ... cznic:strutil:5f824aabbbe044946f35921791abccfe3b1eafe1:cznic_strutil/vendor= /modernc.org/strutil \ =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 cznic:token:46658f20d51b8d0b6c4c551c363c8510c30c2a72:cznic_token/vendor/mod= ernc.org/token # Errors found during processing: # error getting refs for aws/aws-sdk-go-v2: apis.get https://api.github.com/repos/aws/aws-sdk-go-v2/git/refs/tags: 502, body: { "message": "Server Error" } ... ``` Is this an issue with gomod-vendor, github api limits? I has asked github to clarify, will report back here. --=20 You are receiving this mail because: You are on the CC list for the bug.=