-
Notifications
You must be signed in to change notification settings - Fork 4.5k
GA migration PreCommit Website #23405
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
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
03953d8
Migrate precommit website and typescript workflows from Jenkins to GA
benEng d0d9bc4
Set env var defaults and non-required envs in workflow
benEng 2863a91
Remove optional python environment for typescript workflow
benEng ffc52fd
Remove optional python environment for website gcs stage workflow
benEng 9678573
Remove submodules:recursive
benEng ee2c35f
Add TODO for renaming env vars
benEng 774a188
Add TODO for renaming env vars
benEng ba6f16b
Add dedicated user to have permissions on folder opt
benEng da806ac
Remove commented line for stopAndRemoveDockerContainer
benEng 763c9d0
Setup service account with action
benEng 3e434d8
Merge branch 'master' into ga-migration-website-postcommit
benEng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| # This workflow will run Typescript PreCommit. | ||
|
|
||
| name: Typescript | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 */6 * * *' | ||
| push: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| pull_request_target: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| paths: ['sdks/python/apache_beam/runners/interactive/extensions/**'] | ||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| typescript: | ||
| name: Typescript | ||
| runs-on: [self-hosted, ubuntu-20.04] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
| - name: Setup environment | ||
| uses: ./.github/actions/setup-self-hosted-action | ||
| with: | ||
| requires-go-18: false | ||
| - name: Run :typescriptPreCommit | ||
| uses: ./.github/actions/gradle-command-self-hosted-action | ||
| with: | ||
| gradle-command: :typescriptPreCommit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| # This workflow will run the Website in Stage GCS. | ||
|
|
||
| name: Website Stage GCS | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 */6 * * *' | ||
| push: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| pull_request_target: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| paths: ['website/**'] | ||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| website-stage-gcs: | ||
| name: Run Website Stage in GCS | ||
| runs-on: [self-hosted, ubuntu-20.04] | ||
| steps: | ||
| - name: Checking out composite to setup service account | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: master | ||
| - name: Setup service account | ||
| uses: ./.github/actions/activate-service-account | ||
| with: | ||
| GCP_SERVICE_ACCOUNT: ${{secrets.GCP_SELF_HOSTED_SA_KEY}} | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
| - name: Setup environment | ||
| uses: ./.github/actions/setup-self-hosted-action | ||
| with: | ||
| requires-go-18: false | ||
| - name: Run :website:stageWebsite | ||
| uses: ./.github/actions/gradle-command-self-hosted-action | ||
| env: # TODO(https://github.com/apache/beam/issues/23580) Rename ghprb env vars to a more GHA concept. | ||
| ghprbPullId: ${{github.event.pull_request.number}} | ||
| ghprbPullAuthorLogin: ${{github.actor}} | ||
| ghprbSourceBranch: ${{github.ref_name}} | ||
| ghBranch: ${{github.head_ref}} | ||
| repositoryUrl: ${{github.repository}} | ||
| with: | ||
| gradle-command: :website:stageWebsite | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| # This workflow will run Website PreCommit. | ||
|
|
||
| name: Website | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 */6 * * *' | ||
| push: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| pull_request_target: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| paths: ['website/**'] | ||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| website: | ||
| name: website | ||
| runs-on: [self-hosted, ubuntu-20.04] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
| - name: Setup environment | ||
| uses: ./.github/actions/setup-self-hosted-action | ||
| with: | ||
| requires-go-18: false | ||
| requires-py-37: false | ||
| requires-py-38: false | ||
| requires-py-39: false | ||
| - name: Run :websitePreCommit | ||
| uses: ./.github/actions/gradle-command-self-hosted-action | ||
| env: # TODO(https://github.com/apache/beam/issues/23580) Rename ghprb env vars to a more GHA concept. | ||
| ghprbPullId: ${{github.event.pull_request.number}} | ||
| ghprbPullAuthorLogin: ${{github.actor}} | ||
| ghprbSourceBranch: ${{github.ref_name}} | ||
| ghBranch: ${{github.head_ref}} | ||
| repositoryUrl: ${{github.repository}} | ||
| with: | ||
| gradle-command: :websitePreCommit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
.test-infra/jenkins/job_PreCommit_Website_Stage_GCS.groovy
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.