Skip to content

Commit

Permalink
Various vars
Browse files Browse the repository at this point in the history
  • Loading branch information
librarian committed Oct 16, 2024
1 parent e86e6d9 commit 5515f44
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/scripts/github-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ cryptography
packaging
rapidgzip
EOF
sudo pip3 install https://github.com/librarian/python-sdk/releases/download/v0.1.0/nebiusai-0.1.0-py3-none-any.whl
sudo pip3 install -r /tmp/requirements.txt
curl -L "https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-${OS_ARCH}.tar.xz" | sudo tar -xJ -C /usr/local/bin/ --strip-components=1 --no-same-owner "ccache-${CCACHE_VERSION}-linux-${OS_ARCH}/ccache"
sudo apt-get remove -y unattended-upgrades
Expand Down
3 changes: 1 addition & 2 deletions .github/scripts/nebius-manage-vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
from nebiusai import SDK, RetryInterceptor, backoff_linear_with_jitter
from nebiusai.operations import OperationError

SENSITIVE_DATA_VALUES = {
}
SENSITIVE_DATA_VALUES = {}
if os.environ.get("GITHUB_TOKEN"):
SENSITIVE_DATA_VALUES["github_token"] = os.environ.get("GITHUB_TOKEN")
if os.environ.get("VM_USER_PASSWD"):
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_and_test_on_demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ jobs:
repo: ${{ github.event.repository.name }}
service_account_key: ${{ secrets.NEW_NEBIUS_SA_JSON_CREDENTIALS }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
vm_parent_id: project-e00gg2f58gw75edn7x
vm_parent_id: ${{ vars.NEBIUS_PARENT_ID }}
vm_name: ${{ github.event.pull_request.number && format('pr-{0}{1}-{2}-{3}', github.event.pull_request.number, inputs.vm_name_suffix, github.run_id, github.run_attempt) || format('run-{0}-{1}', github.run_id, github.run_attempt) }}
vm_preset: ${{ vars.NEBIUS_VM_PRESET }}
vm_disk_type: ${{ inputs.disk_type || 'network-ssd-nonreplicated' }}
vm_disk_size: 1023
vm_subnet: vpcsubnet-e00a6jtgksfcn4m30m
vm_subnet: ${{ vars.NEBIUS_SUBNET_ID }}
vm_image: ${{ vars.NEBIUS_IMAGE_ID_2204 }}
vm_labels: ${{ github.event.pull_request.number && format('pr={0},run={1}-{2},repo={3},owner={4}', github.event.pull_request.number, github.run_id, github.run_attempt, github.event.repository.name, github.repository_owner) || format('run={0}-{1},repo={2},owner={3}', github.run_id, github.run_attempt, github.event.repository.name, github.repository_owner) }}
vm_user_passwd: ${{ secrets.VM_USER_PASSWD }}
Expand Down Expand Up @@ -294,5 +294,5 @@ jobs:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
repo_owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
vm_parent_id: project-e00gg2f58gw75edn7x
vm_parent_id: ${{ vars.NEBIUS_PARENT_ID }}
vm_id: ${{ needs.provide-runner.outputs.instance-id }}
6 changes: 3 additions & 3 deletions .github/workflows/build_and_test_on_demand_cmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ jobs:
repo: ${{ github.event.repository.name }}
service_account_key: ${{ secrets.NEW_NEBIUS_SA_JSON_CREDENTIALS }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
vm_parent_id: project-e00gg2f58gw75edn7x
vm_parent_id: ${{ vars.NEBIUS_PARENT_ID }}
vm_name: ${{ github.event.pull_request.number && format('pr-{0}-{1}-{2}', github.event.pull_request.number, github.run_id, github.run_attempt) || format('run-{0}-{1}', github.run_id, github.run_attempt) }}
vm_preset: ${{ vars.NEBIUS_VM_PRESET }}
vm_disk_type: ${{ inputs.disk_type || 'network-ssd-nonreplicated' }}
vm_disk_size: 1023
vm_subnet: vpcsubnet-e00a6jtgksfcn4m30m
vm_subnet: ${{ vars.NEBIUS_SUBNET_ID }}
vm_image: ${{ vars.NEBIUS_IMAGE_ID_2204 }}
vm_labels: ${{ github.event.pull_request.number && format('pr={0},run={1}-{2},repo={3},owner={4}', github.event.pull_request.number, github.run_id, github.run_attempt, github.event.repository.name, github.repository_owner) || format('run={0}-{1},repo={2},owner={3}', github.run_id, github.run_attempt, github.event.repository.name, github.repository_owner) }}
vm_user_passwd: ${{ secrets.VM_USER_PASSWD }}
Expand Down Expand Up @@ -207,5 +207,5 @@ jobs:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
repo_owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
vm_parent_id: project-e00gg2f58gw75edn7x
vm_parent_id: ${{ vars.NEBIUS_PARENT_ID }}
vm_id: ${{ needs.provide-runner.outputs.instance-id }}
6 changes: 3 additions & 3 deletions .github/workflows/create_and_delete_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ jobs:
repo: ${{ github.event.repository.name }}
service_account_key: ${{ secrets.NEW_NEBIUS_SA_JSON_CREDENTIALS }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
vm_parent_id: project-e00gg2f58gw75edn7x
vm_parent_id: ${{ vars.NEBIUS_PARENT_ID }}
vm_name: ${{ github.event.pull_request.number && format('pr-{0}{1}-{2}-{3}', github.event.pull_request.number, inputs.vm_name_suffix, github.run_id, github.run_attempt) || format('run-{0}-{1}', github.run_id, github.run_attempt) }}
vm_preset: "2vcpu-8gb"
vm_disk_type: ${{ inputs.disk_type || 'network-ssd-nonreplicated' }}
vm_disk_size: 1023
vm_subnet: vpcsubnet-e00a6jtgksfcn4m30m
vm_subnet: ${{ vars.NEBIUS_SUBNET_ID }}
vm_image: ${{ inputs.vm_image || vars.NEBIUS_IMAGE_ID_2204 }}
vm_labels: ${{ github.event.pull_request.number && format('pr={0},run={1}-{2},repo={3},owner={4}', github.event.pull_request.number, github.run_id, github.run_attempt, github.event.repository.name, github.repository_owner) || format('run={0}-{1},repo={2},owner={3}', github.run_id, github.run_attempt, github.event.repository.name, github.repository_owner) }}
vm_user_passwd: ${{ secrets.VM_USER_PASSWD }}
Expand Down Expand Up @@ -150,5 +150,5 @@ jobs:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
repo_owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
vm_parent_id: project-e00gg2f58gw75edn7x
vm_parent_id: ${{ vars.NEBIUS_PARENT_ID }}
vm_id: ${{ needs.provide-runner.outputs.instance-id }}

0 comments on commit 5515f44

Please sign in to comment.