Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 496c0b9

Browse files
authored
Merge branch 'main' into nightly-combined
2 parents a0191c4 + e7a26f7 commit 496c0b9

File tree

15 files changed

+304
-71
lines changed

15 files changed

+304
-71
lines changed

.github/workflows/cut-release-candidate.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Cut a Release Candidate
1+
name: Release[1/2] Cut a Release Candidate
22

33
on:
44
workflow_dispatch:
@@ -11,6 +11,11 @@ on:
1111
description: 'Commit ID for "cut" (default: origin/main)'
1212
required: false
1313
type: string
14+
llama_stack_only:
15+
description: 'Only cut a llama-stack release candidate (default: false)'
16+
required: false
17+
type: boolean
18+
default: false
1419
# schedule:
1520
# - cron: "0 0 * * *" # Run every day at midnight
1621

@@ -27,12 +32,13 @@ jobs:
2732
with:
2833
version: ${{ inputs.version }}
2934
commit_id: ${{ inputs.commit_id }}
35+
llama_stack_only: ${{ inputs.llama_stack_only }}
3036
fireworks_api_key: ${{ secrets.FIREWORKS_API_KEY }}
3137
together_api_key: ${{ secrets.TOGETHER_API_KEY }}
3238
tavily_search_api_key: ${{ secrets.TAVILY_SEARCH_API_KEY }}
33-
# TODO: this will expire in 90 days; we should figure out a
39+
# TODO: this will expire in 90 days; we should figure out a
3440
# GitHub App setup that can be used instead
35-
github_token: ${{ secrets.LLAMA_REPOS_PAT }}
41+
github_token: ${{ secrets.LLAMA_REPOS_PAT }}
3642

3743
upload-packages-and-tag:
3844
needs:
@@ -48,9 +54,10 @@ jobs:
4854
- uses: ./actions/upload-packages-and-tag
4955
with:
5056
version: ${{ inputs.version }}
51-
# TODO: this will expire in 90 days; we should figure out a
57+
llama_stack_only: ${{ inputs.llama_stack_only }}
58+
# TODO: this will expire in 90 days; we should figure out a
5259
# GitHub App setup that can be used instead
53-
github_token: ${{ secrets.LLAMA_REPOS_PAT }}
60+
github_token: ${{ secrets.LLAMA_REPOS_PAT }}
5461

5562
test-published-package:
5663
needs:

.github/workflows/release-final-package.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release final package to PyPI
1+
name: Release[2/2] Release final package to PyPI
22

33
on:
44
workflow_dispatch: # Keep manual trigger
@@ -11,6 +11,11 @@ on:
1111
description: 'RC version which should be used as the base for this release (e.g. 0.1.1rc2)'
1212
required: true
1313
type: string
14+
llama_stack_only:
15+
description: 'Only release llama-stack (default: false)'
16+
required: false
17+
type: boolean
18+
default: false
1419

1520
jobs:
1621
publish-to-pypi:
@@ -26,9 +31,10 @@ jobs:
2631
with:
2732
release_version: ${{ inputs.release_version }}
2833
rc_version: ${{ inputs.rc_version }}
29-
# TODO: this will expire in 90 days; we should figure out a
34+
llama_stack_only: ${{ inputs.llama_stack_only }}
35+
# TODO: this will expire in 90 days; we should figure out a
3036
# GitHub App setup that can be used instead
31-
github_token: ${{ secrets.LLAMA_REPOS_PAT }}
37+
github_token: ${{ secrets.LLAMA_REPOS_PAT }}
3238

3339
test-published-package:
3440
needs:

.github/workflows/test-maybe-cut.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
description: 'Version (e.g. 0.1.1rc2); if optional, will not cut a branch'
1111
required: false
1212
type: string
13-
# schedule:
14-
# - cron: "0 0 * * *" # Run every day at midnight
13+
schedule:
14+
- cron: "0 0 * * *" # Run every day at midnight
1515

1616
jobs:
1717
test-and-maybe-cut:
@@ -22,25 +22,36 @@ jobs:
2222
contents: read
2323
steps:
2424
- uses: actions/checkout@v4
25+
- name: Set commit ID and version for scheduled runs
26+
id: inputs
27+
run: |
28+
if [[ "${{ github.event_name }}" == "schedule" ]]; then
29+
echo "commit_id=origin/main" >> $GITHUB_OUTPUT
30+
echo "version=" >> $GITHUB_OUTPUT
31+
else
32+
echo "commit_id=${{ inputs.commit_id }}" >> $GITHUB_OUTPUT
33+
echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT
34+
fi
35+
shell: bash
2536
- name: Set version if not provided
2637
id: version
2738
run: |
28-
if [ -z "${{ inputs.version }}" ]; then
39+
if [ -z "${{ steps.inputs.outputs.version }}" ]; then
2940
echo "value=0.0.0.dev$(date +%Y%m%d%H%M%S)" >> $GITHUB_OUTPUT
3041
echo "only_test=true" >> $GITHUB_OUTPUT
3142
else
32-
echo "value=${{ inputs.version }}" >> $GITHUB_OUTPUT
43+
echo "value=${{ steps.inputs.outputs.version }}" >> $GITHUB_OUTPUT
3344
echo "only_test=false" >> $GITHUB_OUTPUT
3445
fi
3546
shell: bash
3647
- uses: ./actions/test-and-cut
3748
with:
3849
version: ${{ steps.version.outputs.value }}
39-
commit_id: ${{ inputs.commit_id }}
50+
commit_id: ${{ steps.inputs.outputs.commit_id }}
4051
only_test_dont_cut: ${{ steps.version.outputs.only_test }}
4152
fireworks_api_key: ${{ secrets.FIREWORKS_API_KEY }}
4253
together_api_key: ${{ secrets.TOGETHER_API_KEY }}
4354
tavily_search_api_key: ${{ secrets.TAVILY_SEARCH_API_KEY }}
44-
# TODO: this will expire in 90 days; we should figure out a
55+
# TODO: this will expire in 90 days; we should figure out a
4556
# GitHub App setup that can be used instead
46-
github_token: ${{ secrets.LLAMA_REPOS_PAT }}
57+
github_token: ${{ secrets.LLAMA_REPOS_PAT }}

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ repos:
1010
- id: check-merge-conflict
1111
- id: check-added-large-files
1212
args: ['--maxkb=1000']
13+
- id: trailing-whitespace
14+
exclude: '\.py$' # Exclude Python files as Ruff already handles them
1315
- id: end-of-file-fixer
1416
exclude: '^(.*\.svg)$'
1517

CODE_OF_CONDUCT.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
This Code of Conduct also applies outside the project spaces when there is a
56+
reasonable belief that an individual's behavior may have a negative impact on
57+
the project or its community.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported by contacting the project team at <[email protected]>. All
63+
complaints will be reviewed and investigated and will result in a response that
64+
is deemed necessary and appropriate to the circumstances. The project team is
65+
obligated to maintain confidentiality with regard to the reporter of an incident.
66+
Further details of specific enforcement policies may be posted separately.
67+
68+
Project maintainers who do not follow or enforce the Code of Conduct in good
69+
faith may face temporary or permanent repercussions as determined by other
70+
members of the project's leadership.
71+
72+
## Attribution
73+
74+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
75+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
76+
77+
[homepage]: https://www.contributor-covenant.org
78+
79+
For answers to common questions about this code of conduct, see
80+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contributing to llama-stack-ops
2+
We want to make contributing to this project as easy and transparent as
3+
possible.
4+
5+
## Pull Requests
6+
We actively welcome your pull requests.
7+
8+
1. Fork the repo and create your branch from `main`.
9+
2. If you've added code that should be tested, add tests.
10+
3. If you've changed APIs, update the documentation.
11+
4. Ensure the test suite passes.
12+
5. Make sure your code lints.
13+
6. If you haven't already, complete the Contributor License Agreement ("CLA").
14+
15+
## Contributor License Agreement ("CLA")
16+
In order to accept your pull request, we need you to submit a CLA. You only need
17+
to do this once to work on any of Facebook's open source projects.
18+
19+
Complete your CLA here: <https://code.facebook.com/cla>
20+
21+
## Issues
22+
We use GitHub issues to track public bugs. Please ensure your description is
23+
clear and has sufficient instructions to be able to reproduce the issue.
24+
25+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
26+
disclosure of security bugs. In those cases, please go through the process
27+
outlined on that page and do not file a public issue.
28+
29+
## License
30+
By contributing to llama-stack-ops, you agree that your contributions will be licensed
31+
under the LICENSE file in the root directory of this source tree.

actions/publish-dockers/main.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ fi
1414

1515
set -euo pipefail
1616

17-
# Common setup for both scripts
1817
if [ "$IS_NIGHTLY" = true ]; then
1918
cd llama-stack
2019
fi

actions/release-final-package/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ inputs:
77
rc_version:
88
description: 'Release candidate version which will be used to build the final package'
99
required: true
10+
llama_stack_only:
11+
description: 'Only release llama-stack (default: false)'
12+
required: false
13+
default: 'false'
1014
github_token:
1115
description: 'GitHub token to use for the release'
1216
required: true
@@ -37,6 +41,7 @@ runs:
3741
env:
3842
RELEASE_VERSION: ${{ inputs.release_version }}
3943
RC_VERSION: ${{ inputs.rc_version }}
44+
LLAMA_STACK_ONLY: ${{ inputs.llama_stack_only }}
4045
GITHUB_TOKEN: ${{ inputs.github_token }}
4146
run: |
4247
chmod +x ${{ github.action_path }}/main.sh

0 commit comments

Comments
 (0)