This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new c8c7485131 GH-38307: [CI] Remove gemfury_clean.rb (#38308)
c8c7485131 is described below

commit c8c74851313a322ac668dda4d51b274d6a40dbd1
Author: Raúl Cumplido <[email protected]>
AuthorDate: Tue Oct 24 04:51:22 2023 +0200

    GH-38307: [CI] Remove gemfury_clean.rb (#38308)
    
    ### Rationale for this change
    
    wheel-clean nightly job is currently failing. As seen on ADBC: 
https://github.com/apache/arrow-adbc/issues/1085 gemfury seems to have stopped 
supporting removing via API.
    
    ### What changes are included in this PR?
    
    Do not remove old wheels on gemfury anymore. If we reach quota related 
issues we can re-create the package on pyarrow as suggested on the comments: 
https://github.com/apache/arrow/pull/38308#issuecomment-1769767770
    
    ### Are these changes tested?
    
    No, we are deleting the CI job that fails.
    
    ### Are there any user-facing changes?
    
    No
    * Closes: #38307
    
    Authored-by: Raúl Cumplido <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 ci/scripts/gemfury_clean.rb              | 42 --------------------------------
 dev/tasks/python-wheels/github.clean.yml | 35 --------------------------
 dev/tasks/tasks.yml                      |  4 ---
 3 files changed, 81 deletions(-)

diff --git a/ci/scripts/gemfury_clean.rb b/ci/scripts/gemfury_clean.rb
deleted file mode 100644
index d14891e66e..0000000000
--- a/ci/scripts/gemfury_clean.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env ruby
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Clean old releases from Gemfury.
-
-require "gemfury"
-
-client = Gemfury::Client.new(user_api_key: ENV["GEMFURY_API_TOKEN"])
-
-client.list.each do |artifact|
-  puts artifact["name"]
-  versions = client.versions(artifact["name"])
-  versions.sort_by! { |v| v["created_at"] }
-
-  # Keep all versions uploaded within 90 days of the last uploaded version
-  cutoff = DateTime.parse(versions.last['created_at']) - 90.0
-
-  versions.each do |version|
-    time = DateTime.parse(version['created_at'])
-    if time < cutoff
-      client.yank_version(artifact["name"], version["version"])
-      puts "Yanked #{artifact['name']} #{version['version']} (created 
#{version['created_at']})"
-    else
-      puts "Kept #{artifact['name']} #{version['version']} (created 
#{version['created_at']})"
-    end
-  end
-end
diff --git a/dev/tasks/python-wheels/github.clean.yml 
b/dev/tasks/python-wheels/github.clean.yml
deleted file mode 100644
index eae9510ec0..0000000000
--- a/dev/tasks/python-wheels/github.clean.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-{% import 'macros.jinja' as macros with context %}
-
-{{ macros.github_header() }}
-
-jobs:
-  build:
-    name: "Clean old wheels"
-    runs-on: ubuntu-latest
-    steps:
-      {{ macros.github_checkout_arrow()|indent }}
-
-      - name: Clean old wheels
-        env:
-          GEMFURY_API_TOKEN: {{ '${{ secrets.CROSSBOW_GEMFURY_API_TOKEN }}' }}
-        shell: bash
-        run: |
-          gem install --user-install gemfury
-          ruby arrow/ci/scripts/gemfury_clean.rb
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 326c94558a..33050c1de5 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -460,10 +460,6 @@ tasks:
       - pyarrow-{no_rc_version}-py310(h[a-z0-9]+)_0_cuda.conda
       - pyarrow-{no_rc_version}-py311(h[a-z0-9]+)_0_cuda.conda
 
-  wheel-clean:
-    ci: github
-    template: python-wheels/github.clean.yml
-
 {% for python_version, python_tag, abi_tag in [("3.8", "cp38", "cp38"),
                                                ("3.9", "cp39", "cp39"),
                                                ("3.10", "cp310", "cp310"),

Reply via email to