Your message dated Wed, 12 Mar 2025 20:16:11 +0100
with message-id <[email protected]>
and subject line Re: Bug#1100176: debci: How to deal with a ban when testing a 
remote API ?
has caused the Debian Bug report #1100176,
regarding debci: How to deal with a ban when testing a remote API ?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1100176: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100176
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debci
Severity: normal
X-Debbugs-Cc: [email protected]


Hello

I am trying to fix the autopkgtest of python-mp-api[1] .

It seems that the test are failling to a ban of our IP adresses.

183s ==================================== ERRORS 
====================================
183s ____________________ ERROR collecting tests/test_client.py 
_____________________
183s tests/test_client.py:45: in <module>
183s     mpr = MPRester()
183s         MPRester   = <class 'mp_api.client.mprester.MPRester'>
183s         ProvenanceRester = <class 
'mp_api.client.routes.materials.provenance.ProvenanceRester'>
183s         TaskRester = <class 
'mp_api.client.routes.materials.tasks.TaskRester'>
183s         __builtins__ = <builtins>
183s         __cached__ = 
'/tmp/autopkgtest-lxc.zonszi0g/downtmp/build.hVE/src/tests/__pycache__/test_client.cpython-313.pyc'
183s         __doc__    = None
183s         __file__   = 
'/tmp/autopkgtest-lxc.zonszi0g/downtmp/build.hVE/src/tests/test_client.py'
183s         __loader__ = <_pytest.assertion.rewrite.AssertionRewritingHook 
object at 0xffffae4316a0>
183s         __name__   = 'tests.test_client'
183s         __package__ = 'tests'
183s         __spec__   = ModuleSpec(name='tests.test_client', 
loader=<_pytest.assertion.rewrite.AssertionRewritingHook object at 
0xffffae4316a0>, 
origin='/tmp/autopkgtest-lxc.zonszi0g/downtmp/build.hVE/src/tests/test_client.py')
183s         ignore_generic = ['_user_settings', '_general_store', '_messages', 
'materials_xas', 'materials_elasticity', 'materials_fermi', ...]
183s         key_only_resters = {'doi': 'mp-149', 'materials_charge_density': 
'mp-1936745', 'materials_phonon': 'mp-11703', 'materials_provenance': 'mp-149', 
...}
183s         os         = <module 'os' (frozen)>
183s         pytest     = <module 'pytest' from 
'/usr/lib/python3/dist-packages/pytest/__init__.py'>
183s         search_only_resters = ['materials_grain_boundaries', 
'materials_electronic_structure_bandstructure', 
'materials_electronic_structure_dos', 'materials_substrates', 
'materials_synthesis']
183s         special_resters = ['materials_charge_density', 'doi']
183s         warnings   = <module 'warnings' from 
'/usr/lib/python3.13/warnings.py'>
183s /usr/lib/python3/dist-packages/mp_api/client/mprester.py:220: in __init__
183s     emmet_version = MPRester.get_emmet_version(self.endpoint)
183s         api_key    = None
183s         endpoint   = None
183s         headers    = None
183s         include_user_agent = True
183s         monty_decode = True
183s         mute_progress_bars = False
183s         notify_db_version = False
183s         self       = <mp_api.client.mprester.MPRester object at 
0xffff9975d6a0>
183s         session    = None
183s         use_document_model = True
183s /usr/lib/python3/dist-packages/mp_api/client/mprester.py:503: in 
get_emmet_version
183s     raise MPRestError(error)
183s E   mp_api.client.core.client.MPRestError: Your IP address or ASN has been 
(temporarily) blocked from accessing all MP services due to inefficient or 
abusive traffic. Please make yourself familiar with our terms, make sure to run 
the latest version of the mp-api client (https://pypi.org/project/mp-api/), 
read our documentation (particularly 
https://docs.materialsproject.org/downloading-data/using-the-api/tips-for-large-downloads),
 and consult our forum (https://matsci.org/materials-project). Afterwards, 
reach out to us per email to [email protected] if you think your use 
case is legitimate.
183s         endpoint   = 'https://api.materialsproject.org/'
183s         error      = 'Your IP address or ASN has been (temporarily) 
blocked from accessing all MP services due to inefficient or abusive 
tr...ject). Afterwards, reach out to us per email to 
[email protected] if you think your use case is legitimate.'
183s         response   = {'error': 'Your IP address or ASN has been 
(temporarily) blocked from accessing all MP services due to inefficient or ...h 
out to us per email to [email protected] if you think your use case 
is legitimate.', 'version': 'blocked'}


So my question is how do we solve this with our help.

thanks

Frederic




[1]https://ci.debian.net/packages/p/python-mp-api/ 



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.17-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debci depends on:
ii  adduser                     3.145
pn  amqp-tools                  <none>
ii  curl                        8.12.1-3
ii  dctrl-tools                 2.24-3+b1
ii  debian-archive-keyring      2023.4
ii  debootstrap                 1.0.140
ii  distro-info                 1.13
ii  fonts-font-awesome          5.0.10+really4.7.0~dfsg-4.1
pn  inotify-tools               <none>
ii  jq                          1.7.1-3+b1
ii  libjs-bootstrap             3.4.1+dfsg-3
ii  libjs-jquery                3.6.1+dfsg+~3.5.14-1
ii  libjs-jquery-flot           4.2.1+dfsg-6
ii  moreutils                   0.69-1
ii  patchutils                  0.4.2-1
ii  retry                       1.0.5-3
ii  rsync                       3.4.1+ds1-3
ii  ruby                        1:3.3+b1
pn  ruby-activerecord           <none>
pn  ruby-ansi                   <none>
pn  ruby-bunny                  <none>
pn  ruby-erubi                  <none>
pn  ruby-kaminari-activerecord  <none>
pn  ruby-omniauth-gitlab        <none>
pn  ruby-pg                     <none>
pn  ruby-sinatra                <none>
pn  ruby-sinatra-contrib        <none>
pn  ruby-sqlite3                <none>
pn  ruby-table-print            <none>
pn  ruby-thor                   <none>
ii  sudo                        1.9.16p2-1

Versions of packages debci recommends:
ii  systemd-timesyncd [time-daemon]  257.4-1

Versions of packages debci suggests:
ii  apt-cacher-ng   3.7.5-1
pn  auto-apt-proxy  <none>

--- End Message ---
--- Begin Message ---
Hi Frederic,

On 12-03-2025 11:07, Picca Frédéric-Emmanuel wrote:
Package: debci


This is not an issue with the debci package, but with the ci.d.n infrastructure. We don't have a pseudo-package for that, so it would be better to just e-mail [email protected] in the future (to which list this bug also forwards as the list is the maintainer of debci).

So my question is how do we solve this with our help.


Our IP's are public and can be found in the files here: https://salsa.debian.org/ci-team/debian-ci-config/-/tree/master/config/production/nodes.d?ref_type=heads

Looking at the error message, I guess you can request to get our IP's listed for your tests.

Paul

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to