Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9141f5a
fix: use TEXEAR_HOME and default to current folder to find config
Yicong-Huang Oct 11, 2025
d327906
chore: move project definition to root
Yicong-Huang Oct 11, 2025
2c95aa8
debug
Yicong-Huang Oct 11, 2025
8edc3a2
fix: use correct jooq path
Yicong-Huang Oct 11, 2025
415eee0
fix: paths in tests
Yicong-Huang Oct 11, 2025
05dffc1
chore: move access-control-service
Yicong-Huang Oct 11, 2025
cc36068
chore: relocate workflow-compiling-service
Yicong-Huang Oct 11, 2025
ca41b78
Fix path for ComputingUnitManagingService project
Yicong-Huang Oct 12, 2025
537494b
fix: use TEXEAR_HOME and default to current folder to find config
Yicong-Huang Oct 12, 2025
f0e98ba
fix: relocate file-service
Yicong-Huang Oct 12, 2025
a806a0b
fix: relocate file-service
Yicong-Huang Oct 12, 2025
02c11fe
chore: relocate config-service
Yicong-Huang Oct 12, 2025
4385314
fix: remove configServicePath
Yicong-Huang Oct 12, 2025
0d60d61
chore: move `core/pyright-language-service` and rename to `pyright-la…
Yicong-Huang Oct 12, 2025
9322b09
chore: update scripts
Yicong-Huang Oct 12, 2025
086ea8d
chore: rename `core/scripts` to `bin`
Yicong-Huang Oct 12, 2025
2f9c66e
chore: update scripts
Yicong-Huang Oct 12, 2025
f2b04a4
Merge branch 'main' into chore/relocate-pyright-language-server
Yicong-Huang Oct 12, 2025
9524809
Merge branch 'chore/relocate-pyright-language-server' into chore/rena…
Yicong-Huang Oct 12, 2025
5056446
Merge branch 'main' into chore/rename-core-scripts-to-bin
Yicong-Huang Oct 12, 2025
3a37e97
fix: path in scripts
Yicong-Huang Oct 12, 2025
d47a22b
fix: update scripts
Yicong-Huang Oct 12, 2025
55d4ffc
fix: revert changes
Yicong-Huang Oct 12, 2025
4cd761a
chore: relocate amber
Yicong-Huang Oct 12, 2025
5174d44
fix: get rid of PathUtils
Yicong-Huang Oct 12, 2025
3714d17
fix: format
Yicong-Huang Oct 12, 2025
b5305dd
Merge branch 'main' into chore/relocate-amber
Yicong-Huang Oct 12, 2025
86c53a7
fix: path
Yicong-Huang Oct 12, 2025
c6c4732
fix: remove comment
Yicong-Huang Oct 12, 2025
f76cd6f
fix: revert change
Yicong-Huang Oct 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ service:
engine:
- changed-files:
- any-glob-to-any-file:
- 'core/amber/**'
- 'amber/**'

python:
- changed-files:
- any-glob-to-any-file:
- 'core/amber/src/main/python/**'
- 'amber/src/main/python/**'
- '**/*.py'

docs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/github-action-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f core/amber/requirements.txt ]; then pip install -r core/amber/requirements.txt; fi
if [ -f core/amber/operator-requirements.txt ]; then pip install -r core/amber/operator-requirements.txt; fi
if [ -f amber/requirements.txt ]; then pip install -r amber/requirements.txt; fi
if [ -f amber/operator-requirements.txt ]; then pip install -r amber/operator-requirements.txt; fi
- name: Install PostgreSQL
run: sudo apt-get update && sudo apt-get install -y postgresql
- name: Start PostgreSQL Service
Expand All @@ -151,7 +151,7 @@ jobs:
cd bin/sql && sudo -u postgres psql -f iceberg_postgres_catalog.sql
- name: Lint with flake8 and black
run: |
cd core/amber/src/main/python && flake8 && black . --check
cd amber/src/main/python && flake8 && black . --check
- name: Test with pytest
run: |
cd core/amber/src/main/python && pytest -sv --ignore=core/models/test_RTableExecutor.py
cd amber/src/main/python && pytest -sv --ignore=core/models/test_RTableExecutor.py
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ Do not include any of the following in your PR:
- To check format, under `core` run command `sbt scalafmtCheckAll`; to fix format, run `sbt scalafmtAll`.
- When you need to execute both, scalafmt is supposed to be executed after scalafix.
#### Testing the backend
1. The test framework is `scalatest`, for the amber engine, tests are located under `core/amber/src/test`; for `WorkflowCompilingService`, tests are located under `core/workflow-compiling-service`. You can find unit tests and e2e tests.
1. The test framework is `scalatest`, for the amber engine, tests are located under `amber/src/test`; for `WorkflowCompilingService`, tests are located under `core/workflow-compiling-service`. You can find unit tests and e2e tests.
2. To execute it, navigate to `core` directory in the command line and execute `sbt test`.
3. If using IntelliJ to execute the test cases please make sure to be at the correct working directory.
* For the amber engine's tests, the working directory should be `core/amber`
* For the amber engine's tests, the working directory should be `amber`
* For the other services' tests, the working directory should be `core`
#### Testing the frontend
Before merging your code to the master branch, you need to pass the existing unit tests first.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ import io.dropwizard.auth.AuthDynamicFeature
import io.dropwizard.core.Application
import io.dropwizard.core.setup.{Bootstrap, Environment}
import org.apache.amber.config.StorageConfig
import org.apache.amber.util.PathUtils.accessControlServicePath
import org.apache.texera.auth.{JwtAuthFilter, SessionUser}
import org.apache.texera.dao.SqlServer
import org.apache.texera.service.resource.{AccessControlResource, HealthCheckResource}
import org.eclipse.jetty.server.session.SessionHandler

import java.nio.file.Path

class AccessControlService extends Application[AccessControlServiceConfiguration] with LazyLogging {
override def initialize(bootstrap: Bootstrap[AccessControlServiceConfiguration]): Unit = {
// Register Scala module to Dropwizard default object mapper
Expand Down Expand Up @@ -65,7 +66,9 @@ class AccessControlService extends Application[AccessControlServiceConfiguration
}
object AccessControlService {
def main(args: Array[String]): Unit = {
val accessControlPath = accessControlServicePath
val accessControlPath = Path
.of(sys.env.getOrElse("TEXERA_HOME", "."))
.resolve("access-control-service")
.resolve("src")
.resolve("main")
.resolve("resources")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
postgres_username="texera",
postgres_password="password",
table_result_namespace="operator-port-result",
directory_path="../../../../../../core/amber/user-resources/workflow-results",
directory_path="../../../../../../amber/user-resources/workflow-results",
commit_batch_size=4096,
)

Expand Down
Loading
Loading