Skip to content

Commit e8b4413

Browse files
committed
Test workflow changes: on from pull_request_target to pull_request
Signed-off-by: Theodor Mihalache <[email protected]>
1 parent f8e5935 commit e8b4413

File tree

15 files changed

+334
-338
lines changed

15 files changed

+334
-338
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
"ghcr.io/devcontainers-contrib/features/maven-sdkman:2": {
1818
"jdkVersion": "11.0.24-amzn"
1919
}
20-
},
20+
}
2121

2222
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2323
// "forwardPorts": [],
2424

2525
// Uncomment the next line to run commands after the container is created.
26-
"postCreateCommand": "make install-python-ci-dependencies-uv-venv"
26+
// "postCreateCommand": "make install-python-ci-dependencies-uv-venv"
2727

2828
// Configure tool-specific properties.
2929
// "customizations": {},

.github/workflows/java_pr.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if:
1414
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
1515
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
16-
github.repository == 'feast-dev/feast'
16+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
@@ -30,7 +30,7 @@ jobs:
3030
if:
3131
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
3232
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
33-
github.repository == 'feast-dev/feast'
33+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
3434
runs-on: ubuntu-latest
3535
needs: lint-java
3636
steps:
@@ -70,7 +70,7 @@ jobs:
7070
if:
7171
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
7272
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
73-
github.repository == 'feast-dev/feast'
73+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
7474
runs-on: ubuntu-latest
7575
strategy:
7676
matrix:
@@ -105,18 +105,17 @@ jobs:
105105
if:
106106
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
107107
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
108-
github.repository == 'feast-dev/feast'
108+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
109109
runs-on: ubuntu-latest
110110
needs: unit-test-java
111111
env:
112112
PYTHON: 3.11
113113
steps:
114114
- uses: actions/checkout@v4
115115
with:
116-
# pull_request runs the workflow in the context of the base repo
117-
# as such actions/checkout needs to be explicit configured to retrieve
118-
# code from the PR.
119-
ref: refs/pull/${{ github.event.pull_request.number }}/merge
116+
repository: ${{ github.event.repository.full_name }} # Uses the full repository name
117+
ref: ${{ github.ref }} # Uses the ref from the event
118+
token: ${{ secrets.GITHUB_TOKEN }} # Automatically provided token
120119
submodules: recursive
121120
- name: Set up JDK 11
122121
uses: actions/setup-java@v1

.github/workflows/lint_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
jobs:
1515
validate-title:
1616
if:
17-
github.repository == 'feast-dev/feast'
17+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
1818
name: Validate PR title
1919
runs-on: ubuntu-latest
2020
steps:

.github/workflows/pr_integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if:
1919
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
2020
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
21-
github.repository == 'feast-dev/feast'
21+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
2222
runs-on: ${{ matrix.os }}
2323
strategy:
2424
fail-fast: false

.github/workflows/pr_local_integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if:
1515
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
1616
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
17-
github.repository == 'feast-dev/feast'
17+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
fail-fast: false

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ dmypy.json
185185

186186
# Protos
187187
sdk/python/docs/html
188-
sdk/python/feast/protos/
189188
sdk/go/protos/
190189
go/protos/
191190

Makefile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,32 +37,31 @@ build: protos build-java build-docker
3737

3838
# Python SDK
3939

40+
install-python-dependencies-uv:
41+
uv pip sync --system sdk/python/requirements/py$(PYTHON_VERSION)-requirements.txt
42+
uv pip install --system --no-deps .
43+
44+
install-python-dependencies-uv-venv:
45+
uv pip sync sdk/python/requirements/py$(PYTHON_VERSION)-requirements.txt
46+
uv pip install --no-deps .
47+
4048
install-python-ci-dependencies:
4149
python -m piptools sync sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt
4250
pip install --no-deps -e .
43-
python setup.py build_python_protos --inplace
4451

4552
install-python-ci-dependencies-uv:
4653
uv pip sync --system sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt
4754
uv pip install --system --no-deps -e .
48-
python setup.py build_python_protos --inplace
4955

5056
install-python-ci-dependencies-uv-venv:
5157
uv pip sync sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt
5258
uv pip install --no-deps -e .
53-
python setup.py build_python_protos --inplace
54-
55-
install-protoc-dependencies:
56-
pip install "protobuf<5" "grpcio-tools>=1.56.2,<2" "mypy-protobuf>=3.1"
5759

5860
lock-python-ci-dependencies:
5961
uv pip compile --system --no-strip-extras setup.py --extra ci --output-file sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt
6062

61-
package-protos:
62-
cp -r ${ROOT_DIR}/protos ${ROOT_DIR}/sdk/python/feast/protos
63-
64-
compile-protos-python: install-protoc-dependencies
65-
python setup.py build_python_protos --inplace
63+
compile-protos-python:
64+
python infra/scripts/generate_protos.py
6665

6766
install-python:
6867
python -m piptools sync sdk/python/requirements/py$(PYTHON_VERSION)-requirements.txt
@@ -498,3 +497,6 @@ build-helm-docs:
498497
# Note: requires node and yarn to be installed
499498
build-ui:
500499
cd $(ROOT_DIR)/sdk/python/feast/ui && yarn upgrade @feast-dev/feast-ui --latest && yarn install && npm run build --omit=dev
500+
501+
my-it:
502+
IS_TEST=True FEAST_IS_LOCAL_TEST=True python -m pytest -s -n 1 --integration -k "test_push" --color=yes --durations=5 --timeout=1200 --timeout_method=thread sdk/python/tests/integration

docs/reference/alpha-web-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ReactDOM.render(
7070
);
7171
```
7272

73-
When you start the React app, it will look for `project-list.json` to find a list of your projects. The JSON should looks something like this.
73+
When you start the React app, it will look for `projects-list.json` to find a list of your projects. The JSON should look something like this.
7474

7575
```json
7676
{

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ require (
4646
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
4747
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
4848
gopkg.in/yaml.v2 v2.4.0 // indirect
49-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
49+
gopkg.in/yaml.v3 v3.0.0 // indirect
5050
)

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,8 +1854,9 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
18541854
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
18551855
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
18561856
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
1857-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
18581857
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
1858+
gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA=
1859+
gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
18591860
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
18601861
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
18611862
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=

0 commit comments

Comments
 (0)