Skip to content
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

replace format by f-strings #54

Merged
merged 1 commit into from
Jan 29, 2024
Merged

replace format by f-strings #54

merged 1 commit into from
Jan 29, 2024

Conversation

cpanse
Copy link
Collaborator

@cpanse cpanse commented Jan 25, 2024

Just some cosmetics. it is more of a test to practice the PR procedure.

@leoschwarz
Copy link
Collaborator

The PR looks good to me, but I don't understand why the functional test is failing currently.
Basically, the error message is "login or password missing".

@lbrink
Copy link
Collaborator

lbrink commented Jan 26, 2024

The PR looks good to me, but I don't understand why the functional test is failing currently. Basically, the error message is "login or password missing".

Seems unrelated.
Looks like in the generation for the .bfabric.py for the functional tests something went wrong.
Looks like the secrets for this test were read as empty values.
Logs show:
Run echo "_WEBBASE=\""$WEBBASE\" > ~/.bfabricrc.py echo "_WEBBASE=\""$WEBBASE\" > ~/.bfabricrc.py echo "_LOGIN=\""$LOGIN\" >> ~/.bfabricrc.py echo "_PASSWD=\""$PASSWD\" >> ~/.bfabricrc.py shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib WEBBASE: LOGIN: PASSWD:
For a passed test the output would be:
Run echo "_WEBBASE=\""$WEBBASE\" > ~/.bfabricrc.py echo "_WEBBASE=\""$WEBBASE\" > ~/.bfabricrc.py echo "_LOGIN=\""$LOGIN\" >> ~/.bfabricrc.py echo "_PASSWD=\""$PASSWD\" >> ~/.bfabricrc.py shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib WEBBASE: *** LOGIN: *** PASSWD: ***

@leoschwarz
Copy link
Collaborator

Hi @lbrink, thank you for your response and checking the cause.

The problem occurs because this PR originates from a fork of the repository and this behavior stated in the documentation:
With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.

i.e. we cannot perform the functional test unless the PR originates from a branch of this repository. For our workflow this means it's best to create a feature branch in this repository and delete it after it's merged. (In the future we might have a better solution for the CI.)

@cpanse cpanse merged commit 22ad120 into fgcz:bfabric12 Jan 29, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants