Yelp/dumb-init

Hope to release the binary file of mips64el on github

zunley opened this issue · 3 comments

Hello, as the title says, we hope you guys can release the binary file of mips64el on github.

My current job is to perfect cncf ecology on mips64el. I found many software in cncf use dumb-init to start such as tidb, so if you can release dumb-init binary of mips64el, it will be very helpful to us.

I don't know what you guys did on mips, so i did some simple work on mips64el.

root@69ac7795c968:/wk/github.com/yelp/dumb-init# lscpu
Architecture:        mips64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Model name:          Loongson-3A R4 (Loongson-3A4000)
BogoMIPS:            3594.02
NUMA node0 CPU(s):   0-3

root@69ac7795c968:/wk/github.com/yelp/dumb-init# uname -r
4.19.90-2.lns7.1.mips64el

root@69ac7795c968:/wk/github.com/yelp/dumb-init# git branch
* (HEAD detached at v1.2.5)
  master

  1. Build binary on mips64el
root@69ac7795c968:/wk/github.com/yelp/dumb-init# make build
cc -std=gnu99 -static -s -Wall -Werror -O3 -o dumb-init dumb-init.c
root@69ac7795c968:/wk/github.com/yelp/dumb-init# file dumb-init
dumb-init: ELF 64-bit LSB executable, MIPS, MIPS64 rel2 version 1 (SYSV), statically linked, BuildID[sha1]=f824a6acce4d7574b40f0f7504449dd949c7f739, for GNU/Linux 3.2.0, stripped
  1. Run test
__________________________________________________________________________________________ summary ___________________________________________________________________________________________
  py37: commands succeeded
  gcov: commands succeeded
  congratulations :)
tox -e pre-commit
GLOB sdist-make: /wk/github.com/yelp/dumb-init/setup.py
pre-commit inst-nodeps: /wk/github.com/yelp/dumb-init/.tox/.tmp/package/1/dumb-init-1.2.5.zip
pre-commit installed: appdirs==1.4.4,attrs==20.3.0,cfgv==3.2.0,distlib==0.3.1,dumb-init @ file:///wk/github.com/yelp/dumb-init/.tox/.tmp/package/1/dumb-init-1.2.5.zip,filelock==3.0.12,identify==1.5.13,importlib-metadata==3.4.0,iniconfig==1.1.1,nodeenv==1.5.0,packaging==20.8,pkg-resources==0.0.0,pluggy==0.13.1,pre-commit==2.9.3,py==1.10.0,pyparsing==2.4.7,pytest==6.2.1,pytest-timeout==1.4.2,PyYAML==5.4.1,six==1.15.0,toml==0.10.2,typing-extensions==3.7.4.3,virtualenv==20.4.0,zipp==3.4.0
pre-commit run-test-pre: PYTHONHASHSEED='203011624'
pre-commit runtests: commands[0] | pre-commit run --all-files
Check for added large files..............................................Passed
Check docstring is first.................................................Passed
Check that executables have shebangs.....................................Passed
Check for merge conflicts................................................Passed
Check Yaml...............................................................Passed
Debug Statements (Python)................................................Passed
Detect Private Key.......................................................Passed
Fix double quoted strings................................................Passed
Fix End of Files.........................................................Passed
Flake8...................................................................Passed
Tests should end in _test.py.............................................Passed
Fix requirements.txt.....................................................Passed
Trim Trailing Whitespace.................................................Passed
Fix python encoding pragma...............................................Passed
autopep8.................................................................Passed
Reorder python imports...................................................Passed
Tabs remover.............................................................Passed
pyupgrade................................................................Passed
Add trailing commas......................................................Passed
__________________________________________________________________________________________ summary ___________________________________________________________________________________________
  pre-commit: commands succeeded
  congratulations :)

At the same time, the debian community also successfully built dumb-init debian.

If you guys have any questions, please contact me includeing the provision of mips machines.

@chriskuehl
Please take a look at this question if you have time, thanks!

Hi @shanjiantao, I'm happy to add binaries for this architecture but we would need some way to build it as part of our CI pipeline. We currently use Travis for all of our existing architectures, but as far as I can tell they don't support mips64el at the moment.

Do you have any suggestions on building for this architecture using CI?

Thank you for you reply! @chriskuehl

I am very sorry I am aware of this problem. Many open source projects use Travis CI for CI/CD which is the most elegant solution for maintainers, so currently i don't have a more suitable idea. I have communicated with Travis CI by email and talk about the feasibility of supporting this architecture. When all the dust settles, I will disturb you again.

When you see this reply, you can close this issue.