-
Notifications
You must be signed in to change notification settings - Fork 81
fix #3461 #3474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #3461 #3474
Changes from all commits
4f0cc3b
bbf071b
f04e968
19ea205
8a2fa90
d4a22d6
111cda0
cfd1e5c
0862476
a6877d1
5dff10a
29f1ba0
7da9fe4
0343b9e
5168b98
2b35660
3c2df9e
73f972e
7d5a758
906f70a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
branches: [dev] | ||
pull_request: | ||
|
||
jobs: | ||
|
@@ -45,7 +45,7 @@ jobs: | |
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: '3.9' | ||
python-version: "3.9" | ||
|
||
- name: Basic dependencies install | ||
env: | ||
|
@@ -169,17 +169,20 @@ jobs: | |
conda deactivate | ||
|
||
echo "8. Setting up SSH" | ||
ssh-keygen -t rsa -b 4096 -N '' -f $PWD/qiita_ware/test/test_data/test_key | ||
ssh-keygen -t ed25519 -a 200 -N '' -f $PWD/qiita_ware/test/test_data/test_key | ||
mkdir ~/.ssh/ | ||
cp $PWD/qiita_ware/test/test_data/test_key* ~/.ssh/ | ||
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys | ||
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys2 | ||
chmod 600 $PWD/qiita_ware/test/test_data/test_key* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should help: https://serverfault.com/a/116193. Similarly to the previous change, it's just to be sure that we have all the possible things to make this work. |
||
chmod 600 ~/.ssh/* | ||
chmod 700 ~/.ssh/ | ||
echo "Connecting as $USER@localhost" | ||
# this line (and the -o StrictHostKeyChecking=no) is so the server | ||
# is added to the list of known servers | ||
scp -O -o StrictHostKeyChecking=no -i $PWD/qiita_ware/test/test_data/test_key $USER@localhost:/home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key /home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key_copy_1 | ||
|
||
# 05/22/25: commenting this line out as github actions is not allowing this step | ||
# scp -O -o StrictHostKeyChecking=no -i $PWD/qiita_ware/test/test_data/test_key $USER@localhost:/home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key /home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key_copy_1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the effect of commenting this out? I see the comment above that says "this line is so the server is added to the list of known servers", so I assume that now it isn't added to the list of known servers :) ... but what effect does that have on behavior? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the main culprit of the failings tests as it sets all the internal parameters for SCP to work by doing a single file scp; however, in all the builds it failed. |
||
|
||
- name: Main tests | ||
shell: bash -l {0} | ||
|
@@ -239,24 +242,24 @@ jobs: | |
needs: main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel-finished: true | ||
- name: Coveralls Finished | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel-finished: true | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: flake8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- name: install dependencies | ||
run: python -m pip install --upgrade pip | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: lint | ||
run: | | ||
pip install -q flake8 | ||
flake8 qiita_* setup.py scripts/qiita* notebooks/*/*.py | ||
- name: flake8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: install dependencies | ||
run: python -m pip install --upgrade pip | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: lint | ||
run: | | ||
pip install -q flake8 | ||
flake8 qiita_* setup.py scripts/qiita* notebooks/*/*.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious: why was this switch necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading online they say that ed25519 vs rsa (just different encoding and in theory more secure) is necessary for github actions, which it wasn't in the past; thus decided to change it as part of the many trials to make it work. My thought was to leave it as this as it supposed to be the newer way