Skip to content
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

Sync #1

Open
wants to merge 2,674 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2674 commits
Select commit Hold shift + click to select a range
cadb984
bump_release.sh: Allow setting next version
didib Aug 18, 2022
39af8cb
bump_release.sh: Allow using after branching
didib Aug 18, 2022
79c53cd
build: Do not patch .copr/Makefile for releases
didib Aug 18, 2022
f999802
Fix build on system using a language other than English.
yasalos Aug 21, 2022
0b425e1
Allow running CI on master and any ovirt-engine-4.5* branch
mwperina Aug 19, 2022
2641ec2
build: .copr/Makefile: Fix setting release_suffix
didib Aug 22, 2022
27dc8ee
core: skip disk profiles validation on memory disk
liranr23 Aug 17, 2022
be73877
packaging: setup: Filter from logs secrets from otopi answer files
didib Apr 27, 2022
826b8e3
core: Remove image if CreateSnapshotFromTemplateCommand failed
smelamud Aug 23, 2022
ffedbdd
Move lifecycle-mapping plugin into Eclipse specific profile
mwperina Aug 25, 2022
a952c95
core: skip thresholds validation for remove snapshot
barpavel Aug 24, 2022
3bf2ed5
core: fail unomonitored backups
bennyz Aug 24, 2022
1658c0f
Update backend/manager/modules/dal/src/main/resources/bundles/AuditLo…
ahadas Aug 25, 2022
8d580cb
core: add missing execution job message for ReduceImage
ahadas Aug 28, 2022
5edf0d4
webadmin: Set Incremental Backup to uncheckable when ISO is provided
ArtiomDivak Aug 24, 2022
b782927
webadmin: Change error for using resize policy with dedicated CPUs
smelamud Aug 29, 2022
4697324
webadmin: remove the validation for a new template
ljelinkova Aug 30, 2022
d318da2
setup: Put unique name to remote engine cleanup event
mwperina Aug 30, 2022
7906d9e
core: Support virtio ISO from data domain in VM import
smelamud Aug 3, 2022
0dabcf4
core: Allow RunOnce for single non-bootable disk
smelamud Aug 23, 2022
6b0cdc3
Finish moving lifecycle-mapping plugin into Eclipse specific profile
mwperina Sep 1, 2022
d6b61fd
Clean up dependencies and plugins versions
mwperina Aug 26, 2022
5161adf
Clean up backend/manager/dependencies/common/pom.xml
mwperina Aug 26, 2022
d1d06d4
Clean up backend/manager/modules/aaa/pom.xml
mwperina Aug 26, 2022
b46ea79
Clean up backend/manager/modules/auth-plugin/pom.xml
mwperina Aug 26, 2022
eb1f5c2
Clean up backend/manager/modules/common/pom.xml
mwperina Aug 26, 2022
0abfe2a
Clean up backend/manager/modules/dal/pom.xml
mwperina Aug 26, 2022
a5c762a
Clean up backend/manager/modules/restapi/interface/definition/pom.xml
mwperina Aug 26, 2022
208e7cc
Clean up backend/manager/modules/restapi/pom.xml
mwperina Aug 26, 2022
b1ea1d0
Clean up backend/manager/modules/vdsbroker/pom.xml
mwperina Aug 26, 2022
624540b
Clean up backend/pom.xml
mwperina Aug 26, 2022
93293ed
Clean up ear/pom.xml
mwperina Aug 26, 2022
d295ce0
Clean up frontend/brands/ovirt-brand/pom.xml
mwperina Aug 26, 2022
ad65931
Clean up frontend/webadmin/modules/gwt-common/pom.xml
mwperina Aug 26, 2022
1ca2c43
Clean up frontend/webadmin/modules/pom.xml
mwperina Aug 27, 2022
81422ee
Remove specific dependencies/plugins versioning
mwperina Aug 26, 2022
ac0f1ec
Replaced the usage of AppConfig & KeysConfig classes with storing the…
dangel101 Aug 16, 2022
2ad9636
webadmin: Deprecate export domain for import
ljelinkova Sep 6, 2022
0831be4
Use symbolic values for parallel migration type discrimination
mz-pdm Sep 1, 2022
2554965
core: Add support for zero-copy migrations
mz-pdm Aug 17, 2022
a24d208
Bump maven-dependencies-plugin to 3.3.0
mwperina Sep 5, 2022
ede0628
Bump dbunit to 2.7.3
mwperina Sep 5, 2022
8d97953
Bumpe maven-surefire-plugin to 3.0.0-M7
mwperina Sep 7, 2022
07de26a
Bump maven-ear-plugin to 3.2.0
mwperina Sep 7, 2022
34194d0
Bump maven plugin versions
mwperina Sep 7, 2022
50f9c13
webadmin: Add IDs to main events view table
ljelinkova Aug 23, 2022
153e96f
core: do not use DeserializationFeature.READ_ENUMS_USING_TO_STRING
bennyz Sep 1, 2022
aa64b26
webadmin: fix error when changing cluster of diskless vms
ahadas Sep 5, 2022
41851f2
Use rpm instead of auto in package_facts ansible module
dangel101 Sep 11, 2022
389eadc
core: remove duplicate "setStoragePoolId()" call
barpavel Sep 13, 2022
622567a
core: validate transfer phase
bennyz Feb 21, 2022
5cdce04
packaging: spec: Conflict with ansible-core >= 2.13
didib Sep 14, 2022
f3525c0
packaging: setup: remote_engine: manual_files: Read as binary
didib Sep 8, 2022
7fc4231
core: vm will be down when active snapshot does not have memory
ahadas Sep 13, 2022
df63bc6
restapi: Use additional fields from template
smelamud Sep 13, 2022
acf962e
build: ovirt-engine-4.5.3
mwperina Sep 15, 2022
714d559
build: post ovirt-engine-4.5.3
mwperina Sep 15, 2022
bbc8b58
core: add a source Storage Domain ID support in "MoveOrCopyImageGroup…
barpavel Aug 30, 2022
875f702
core: add a destination Storage Domain ID support in "MoveOrCopyImage…
barpavel Aug 30, 2022
41afbed
core: final renamings for consistency
barpavel Sep 12, 2022
97483d0
restapi: incorrect href for parent href
ArtiomDivak Jul 24, 2022
be1087d
packaging: spec: Conflict with dwh < 4.5.6
didib Sep 19, 2022
d7adf05
packaging: setup: remote_engine: Fix for FIPS
didib Sep 13, 2022
89a8939
core: Refresh ISO cache when new guest agent installed
smelamud Sep 6, 2022
886e15c
restapi: fix GetDiskSnapshotByImageIdQuery to be more null-safe
barpavel Sep 21, 2022
315f18d
core: fix checking if an active snapshot is set with memory for resto…
sgratch Sep 21, 2022
c7e2b80
core: handle absent of lease SD when starting ha vm
ahadas Sep 20, 2022
2de7297
core: VDS Maintenance will wait for all disk transfers to happen and …
ArtiomDivak Aug 31, 2022
7843d9a
core: create "MultipleStorageDomainsValidator" depending on the flow
barpavel Aug 31, 2022
4655358
core: Modify free space validation on destination Storage Domain in L…
barpavel Sep 14, 2022
a95002c
core: make register-vm a sync operation
ahadas Sep 14, 2022
0b92d02
core: RemoveImage: handle failure in VDS command
mkemel Aug 22, 2022
0455a66
core: LSM: fix locking on restart
mkemel Sep 22, 2022
335a0e2
Fix RPM build warnings around cinderlib
mwperina Sep 14, 2022
ee9710c
Use oVirt buildcontainer image
mwperina Feb 1, 2022
95295cf
Enable EL9 builds
mwperina Sep 14, 2022
70f00b4
Use offline maven build
mwperina Sep 9, 2022
de301ef
Install maven metadata without xmvn
mwperina Sep 9, 2022
1f8b4d0
adjust bump_release.sh
michalskrivanek Sep 20, 2022
d91ae7e
webadmin: Add validation to new template
ljelinkova Sep 23, 2022
edc4231
Optimize RHV parts of spec file
mwperina Sep 26, 2022
ce8b692
Do not use offline build in dev env
mwperina Sep 26, 2022
793e184
core: use fips-compatible padding for provider passwords (#677)
tinez Sep 27, 2022
2bb4ce2
core: trigger OvfDataUpdater when detaching a storage domain
ahadas Sep 26, 2022
dbd75bf
core: fix SD detach flow ("unregistered_ovf_of_entities" DB table)
barpavel Sep 27, 2022
891d72b
Fix padding issue when decrypting OVN provider password (#683)
mwperina Sep 27, 2022
6f3f56a
keycloak: cache refresh_token
michalskrivanek Sep 27, 2022
ff14c88
engine: Fix update cluster with numa VMs
ljelinkova Sep 20, 2022
c25c3f3
Optimize RHV Manager build options in spec file
mwperina Sep 29, 2022
869b795
bump model (4.5.12), metamodel (1.3.10)
Sep 29, 2022
9fdad8b
Change Bugzilla mentions to GitHub issues
Sep 27, 2022
d46b501
Limit GWT resources to pass the build on CBS
mwperina Sep 30, 2022
0376fe4
build: ovirt-engine-4.5.3.1
mwperina Sep 30, 2022
a74f43e
build: post ovirt-engine-4.5.3.1
mwperina Sep 30, 2022
0cfd22e
Fix limiting GWT resources during RPM build
mwperina Sep 30, 2022
21f0d27
Bump version to 4.5.4-SNAPSHOT
mwperina Sep 30, 2022
d858e85
Skip validation of build environment
mwperina Oct 4, 2022
7b26899
Increase GWT localWorkers to 2
mwperina Oct 5, 2022
b24d914
keycloak: do not invalidate session without refresh_token
michalskrivanek Oct 5, 2022
ab34b77
Add additional cols to Compute-Cluster-VMs view
antonios-f Oct 12, 2022
37c3dc5
core: Add SecretValue class
mz-pdm Sep 6, 2022
6c48645
core: Use SecretValue to protect TPM and secure boot data
mz-pdm Sep 8, 2022
4000755
core: Replace cloud-init password in debug logs
mz-pdm Sep 8, 2022
7a65853
core: Fix NullPointerException in ExtractOvaCommand
mz-pdm Oct 14, 2022
3e306ff
Remove apache-commons-jxpath dependency
mwperina Oct 21, 2022
936a8fc
core: Fix IDE warnings
smelamud Aug 24, 2022
8fc9203
core: add callback to RemoveDiskCommand
mkemel Oct 24, 2022
8563f3a
core: remove redundant null-assignment
ahadas Oct 26, 2022
50682d7
webadmin: add missing non operational messages
ljelinkova Oct 5, 2022
7724fe1
ansible lint formal changes
dangel101 Sep 20, 2022
a18e08e
fix ansible lint: risky file permissions:
dangel101 Sep 21, 2022
14cc9f8
fix ansible lint: risky-shell-pipe:
dangel101 Sep 21, 2022
aba36ce
fix ansible lints: naming
dangel101 Sep 21, 2022
874c9c0
fix ansible lint: package-latest: Package installs should not use latest
dangel101 Sep 22, 2022
6029719
fix ansible lint: no-changed-when:
dangel101 Sep 22, 2022
e552ad2
fix ansible lints: using command
dangel101 Sep 28, 2022
fa25888
fix ansible lint: ignore-errors:
dangel101 Sep 28, 2022
19cff3a
fix ansible lint: no-handler:
dangel101 Sep 28, 2022
6b6bf1f
adding ansible-lint tests to CI (oVirt#484)
dangel101 Sep 28, 2022
529888c
fix ansible lint: add spacing
dangel101 Sep 29, 2022
c0aa4cc
fix ansible lint: template-instead-of-copy:
dangel101 Sep 29, 2022
f4fadb0
use argv with command instead of quoting inside the command
dangel101 Oct 6, 2022
cccd7a9
fix ansible lint: use FQCN
dangel101 Oct 19, 2022
0a578cb
fix ansible lint: ignore risky-shell-pipe
dangel101 Oct 24, 2022
5374bab
limit ansible-lint version to 6.8.3
dangel101 Oct 27, 2022
f759f54
Restrict user profile write acces to owner and super user
rszwajko Sep 29, 2022
9f2c09f
webadmin: display toast notifications via Frontend
rszwajko Mar 7, 2022
3aaa274
webadmin: add Account Settings sub-tab
rszwajko Mar 4, 2022
f28f68f
webadmin: confirm removing user profile properties
rszwajko Jul 14, 2022
f11dcff
core: Add missing items in VmManagementParametersBase copy constructor
mz-pdm Oct 6, 2022
69be664
frontend: Add TPM parameter when cloning a VM from a snapshot
mz-pdm Oct 6, 2022
7e40ad3
core: Update TPM device in parameters
mz-pdm Oct 25, 2022
7336046
add sudo for non-root automation builds
michalskrivanek Nov 2, 2022
d6a99eb
add information about the failed task on host upgrade
dangel101 Aug 1, 2022
ae817da
core: fail storage domain attach if getImagesList fails
bennyz Nov 2, 2022
c7b51e3
core: fix monitoring of RemoveVm
ahadas Nov 2, 2022
f3065d5
build: fix rpm release names for snapshot builds
michalskrivanek Nov 8, 2022
d5d7d42
build: fix return code when SUFFIX is empty
michalskrivanek Nov 9, 2022
3fe7dfb
core: Imported VM missing in OVFSTORE
ArtiomDivak Nov 9, 2022
3be6b47
core: prevent duplicate audit logs for ReduceImage
ahadas Nov 9, 2022
9f6d043
Bump apache-sshd to 2.9.2
mwperina Nov 16, 2022
dd90a20
Switch to ansible-core 2.13
mwperina Nov 21, 2022
1bd390c
Fix pip version for ansible-lint
mwperina Nov 22, 2022
172379b
Bump model to 4.6.0
mwperina Nov 24, 2022
23aa972
github: switch upload-rpms-action to main
michalskrivanek Nov 24, 2022
d7fb849
build: ovirt-engine-4.5.4
mwperina Nov 30, 2022
5f169dc
build: post ovirt-engine-4.5.4
mwperina Nov 30, 2022
0b75478
Revert "packaging: move selinux from ovirt-engine-common to ovirt-eng…
didib Nov 30, 2022
9493182
core: look for InstanceID as well when reading internal ovfs
shubhaOracle Nov 18, 2022
92ca1be
Search correctly entities with user role (#766)
emesika Dec 5, 2022
f103f08
core, webadmin: set new templates with specified vm-init
ahadas Nov 27, 2022
12ae067
core: fix execution of RemoveImage
ahadas Dec 4, 2022
5871414
core: fix async task-less execution of remove-image
ahadas Dec 4, 2022
34baab7
Fix NPE during ova import
shubhaOracle Dec 6, 2022
d1ade47
Title: EDIT template NAME length check is incorrect
shubhaOracle Dec 5, 2022
e7af087
fix #779: propagate backup mode to template disks
ahadas Dec 15, 2022
03c7975
add debug logging to AnsibleRunnerCleanUpService
dangel101 Dec 19, 2022
a8d9cfe
Fix EL9 build complaining about git unsafe directory
mwperina Jan 5, 2023
c9ffda3
fix setting value to engine config properties
dangel101 Jan 4, 2023
68e5a98
executing ansible runner artifacts clean up with fixed delay
dangel101 Jan 1, 2023
b47529c
Fix wrong indentation in Ansible playbooks/roles
mwperina Jan 12, 2023
221eab0
Bump postgresql-jdbc to 42.2.27
mwperina Jan 12, 2023
7620cfd
Fix double quote issue when creating gluster brick
mwperina Jan 23, 2023
52cdc7b
Use system crypto policy for OVN encrypted connections
erav Jan 18, 2023
e2f9104
Bump OvS to 2.17 and OVN to 2.19 on EL9
mwperina Jan 24, 2023
41fad7e
add debug info
dangel101 Feb 7, 2023
9a03ec7
Don't stop clean up when a file cannot be removed
mwperina Feb 8, 2023
7b38239
Add templates for issues and PRs
sandrobonazzola Feb 10, 2023
5916775
Upgrade snakeyaml to 1.33
mwperina Feb 10, 2023
eb47cc3
Bump jackson to 2.12.7
mwperina Feb 13, 2023
f78c60f
Drop python-netaddr dependency
michalskrivanek Mar 23, 2023
31c8256
webadmin: avoid NPE on null rx, tx drops
erav Apr 16, 2023
78bdb2c
engine: Remove taa-no from Secure Skylake Server
ljelinkova Apr 20, 2023
72468d0
Add glibc-langpack-en requirement
sandrobonazzola Apr 20, 2023
d37b4f7
ovirt-engine-setup database checks: being member of the database owner
fhamme Apr 24, 2023
0f82182
core: fix NPE when picking host for transfer-image
ahadas May 20, 2023
5c0a616
build: disable ansible-lint
ahadas May 21, 2023
54e1397
Avoid NPE on refreshlun call without plugged VMs
lszomor May 19, 2023
15392d5
core: simplify SyncDirectLunsCommand#getPluggedVms
ahadas May 21, 2023
1511d64
Fix ansible-lint issues
mwperina May 22, 2023
2ac2559
Bump SpringFramework to 5.3.27
mwperina Jun 1, 2023
db8041a
Bump jackson-databind to 2.12.7.1
mwperina Jun 1, 2023
193cfcc
Notification emails merging and localization
sermakov-orion Jan 12, 2023
07e865d
noVNC: don't use removed files
dupondje Jun 2, 2023
c4fe7d6
core: do not change qcow+preallocated volumes when moving disks
ahadas Jul 18, 2023
c5da78e
Fix creation of ova with encoded ovf
ahadas Sep 10, 2023
0e668ce
engine: Add amt_ws fence agent support
mmartinv Aug 24, 2023
504baab
update VdsFenceType with amt_ws in all cluster versions
ahadas Sep 27, 2023
d48b5f1
Force LC_ALL=C before running df -l command on pki-enroll-request
nkovacne Nov 14, 2023
941319a
test import vm from a different configuration
ahadas Nov 26, 2023
3c34351
Make the OvfOvirtReader disk read more robust
liranr23 Nov 13, 2023
f62a440
packaging: setup: Add keycloak_utils
didib Sep 21, 2022
9fa9d7d
Fix unexpected exception on assigning labels on host networks
sermakov-orion Nov 21, 2023
f797221
core: Fail when getVolumeInfo fails during OVF read
bennyz Nov 26, 2023
fa43359
spec: fix el9 build on CBS
sandrobonazzola Nov 30, 2023
2a620c7
build: ovirt-engine-4.5.5
sandrobonazzola Nov 29, 2023
12af746
build: post ovirt-engine-4.5.5
sandrobonazzola Nov 29, 2023
8d47cd7
fix: remove unneeded quotes when updating kernel cmdline
mmartinv Dec 13, 2023
d1b378c
Restore grafana.db selinux context after engine-restore
mwperina Jan 30, 2024
08daf9d
Disable execution of CreateUserSession from GWT code
mwperina Jan 26, 2024
eb315a9
build: ovirt-engine-4.5.6
sandrobonazzola Feb 9, 2024
af1e3c1
build: post ovirt-engine-4.5.6
sandrobonazzola Feb 9, 2024
421a6fd
Skip chmod of ENGINE_EXTERNAL_PROVIDERS_TRUST_STORE in DEVELOPER_MODE
dupondje Mar 6, 2024
14bca05
Fix CA generation as non-root user due to .rnd error
dupondje Mar 5, 2024
188290f
Change save/restore nvram data logic
antonios-f Sep 11, 2023
616b8d9
Update SaveVmExternalDataCommand.java
antonios-f Mar 26, 2024
f2a4e18
Added a warning window about clearing NVRAM when changing Bios type a…
B4N4N41C Dec 27, 2023
046bcb6
Rewrite code to correspond with general oVirt style
Feb 9, 2024
c80dbdd
Simplification of conditions
Mar 26, 2024
e66373a
Fix checkstyle violations in VmListModel.java
antonios-f Mar 26, 2024
943a244
Fix comparision in VmListModel.java
antonios-f Mar 26, 2024
7238a37
db: cleanup: Remove crumbs after materialized views deletion
0ffer Apr 12, 2024
0d006fa
Handle situation when empty groups not come from the keycloak (and he…
0ffer Apr 11, 2024
b94007b
engine: add scope 'openid' for compatibility with new versions of the…
0ffer Mar 11, 2024
8b75156
packaging: fix error when enabling KeyCloak
dupondje May 3, 2024
0a1ba82
During VM import from SD, exclude shared disk when iterating over dis…
shubhaOracle Dec 13, 2023
ed023e5
Create VmBackup earlier in HybridBackupCommand
dupondje Apr 19, 2024
80d6b0f
automation: drop el8 after centos stream 8 eol
sandrobonazzola Jun 3, 2024
40a9a01
engine: Fix duplicate VM backup entry error when creating incremental…
BrooklynDewolf Jun 6, 2024
90e688b
Add support for DC/cluster level 4.8
BrooklynDewolf Apr 30, 2024
142d791
Added discard-no-unref support to CL 4.8
BrooklynDewolf Apr 30, 2024
a48bad9
Bump machine type for cluster level 4.8
BrooklynDewolf May 16, 2024
1043c13
engine: Check concrete disk permissions firstly on TransferImageStatu…
0ffer May 23, 2024
f039053
Adding host to a new cluster failed
shubhaOracle Jun 27, 2024
44b4a85
Included all the essential files to setup a Dev Container with Docker…
BrooklynDewolf Feb 22, 2024
f7faa00
CODEOWNERS: removed people who left the project
sandrobonazzola Jul 12, 2024
7d868bf
Added "Allocated Space column" + application constants
Mar 14, 2024
9f917da
replace deprecated Ansible include with import_tasks
xorpaul Sep 27, 2024
e0e4b37
Correct Data Center for the "Upload Image" dialog
sermakov-orion Feb 19, 2024
075b17c
"secure boot" not getting enabled for Chipset/Firmware Type "Q35 Chip…
saksham-oracle Jan 11, 2024
5698f31
Update dev environment
gocallag Sep 29, 2024
1e10b6e
Update to use postgres:13
gocallag Oct 4, 2024
ff9d113
engine: Add button to remove all direct user permissions (#967)
0ffer Oct 16, 2024
4ad9306
Fix the potential vulnerability of password showcase of external prov…
saksham-oracle Oct 17, 2024
15bc8eb
ISO images by default are uploaded as Raw/Thin Provision. And if you …
sermakov-orion Sep 25, 2024
58c74a4
packaging: enable engine when it was enabled in answer file
dupondje Oct 22, 2024
632e59c
Checkstyle errors clean up
JasperB-TeamBlue Oct 29, 2024
4f0cf78
Updated Checkstyle version
JasperB-TeamBlue Oct 29, 2024
4a49a79
Updated checkstyle resources
JasperB-TeamBlue Oct 29, 2024
0a00f28
bll/storage: don't check source domain space on lsm
dupondje Oct 11, 2024
12f39f9
webadmin: show free space on target storage domain when moving multip…
JasperB-TeamBlue Nov 25, 2024
f453110
core: only try to unlock vm if vm present
JasperB-TeamBlue Oct 30, 2024
89b2cd1
webadmin: Intermittent UI exception while opening the Import Virtual …
shubhaOracle Dec 16, 2024
ac3f218
checkstyle: update code for parenpad and indentation validation
JasperB-TeamBlue Dec 17, 2024
f094a8e
checkstyle: add Indentation and Parenpad checks
JasperB-TeamBlue Dec 17, 2024
472ed34
core: ability to sort on more space parameters for storage domains
JasperB-TeamBlue Nov 8, 2024
9cd7eb8
engine: update jsass to 5.11.1 (#981)
0ffer Jan 9, 2025
36a3073
core: make SecretValue Serializable + snapshot overview NPE fixes (Fi…
sermakov-orion Jan 9, 2025
8628509
core: Fix name typo for database function GetRoleByid
0ffer Jan 14, 2025
5f765e7
core: Remove unused maven property with dozer version
0ffer Jan 16, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 26 additions & 0 deletions .automation/build-rpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash -xe

source $(dirname "$(readlink -f "$0")")/build-srpm.sh

# Install build dependencies
$([ "$EUID" -eq 0 ] || echo /usr/bin/sudo) dnf builddep -y rpmbuild/SRPMS/*src.rpm

# Perform reasonable quick build with unit tests execution
BUILD_UT=1
BUILD_ALL_USER_AGENTS=0
BUILD_LOCALES=0

# Build binary package
rpmbuild \
-D "_topmdir rpmbuild" \
-D "_rpmdir rpmbuild" \
${SUFFIX:+-D "release_suffix ${SUFFIX}"} \
-D "ovirt_build_ut ${BUILD_UT}" \
-D "ovirt_build_all_user_agents ${BUILD_ALL_USER_AGENTS}" \
-D "ovirt_build_locales ${BUILD_LOCALES}" \
-D "ovirt_build_extra_flags ${EXTRA_BUILD_FLAGS}" \
--rebuild rpmbuild/SRPMS/*src.rpm

# Move RPMs to exported artifacts
[[ -d $ARTIFACTS_DIR ]] || mkdir -p $ARTIFACTS_DIR
find rpmbuild -iname \*rpm | xargs mv -t $ARTIFACTS_DIR
39 changes: 39 additions & 0 deletions .automation/build-srpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash -xe

# Mark current directory as safe for git to be able to parse git hash
git config --global --add safe.directory $(pwd)

# git hash of current commit passed from GitHub or HEAD
GIT_HASH=$(git rev-parse --short ${GITHUB_SHA:-HEAD})
SUFFIX=$(grep -E "<version" pom.xml | head -n1 | awk -F '[<>]' '/version/{print $3}' | grep -q -- -SNAPSHOT && echo .git${GIT_HASH} || :)

# Directory, where build artifacts will be stored, should be passed as the 1st parameter
ARTIFACTS_DIR=${1:-exported-artifacts}

# GH RPM builds will be used only for OST so Firefox and Chrome are enough
# GWT build memory needs to be limited
EXTRA_BUILD_FLAGS=""
EXTRA_BUILD_FLAGS="${EXTRA_BUILD_FLAGS} --no-transfer-progress"
EXTRA_BUILD_FLAGS="${EXTRA_BUILD_FLAGS} -Dgwt.userAgent=gecko1_8,safari"
EXTRA_BUILD_FLAGS="${EXTRA_BUILD_FLAGS} -Dgwt.compiler.localWorkers=1"
EXTRA_BUILD_FLAGS="${EXTRA_BUILD_FLAGS} -Dgwt.jvmArgs='-Xms1G -Xmx3G'"

export MAVEN_OPTS="-Xms1G -Xmx2G"

# Set the location of the JDK that will be used for compilation:
export JAVA_HOME="${JAVA_HOME:=/usr/lib/jvm/java-11}"

[ -d ${ARTIFACTS_DIR} ] || mkdir -p ${ARTIFACTS_DIR}
[ -d rpmbuild/SOURCES ] || mkdir -p rpmbuild/SOURCES

make validations

# Get the tarball
make dist
mv *.tar.gz rpmbuild/SOURCES

# create the src.rpm
rpmbuild \
-D "_topdir rpmbuild" \
${SUFFIX:+-D "release_suffix ${SUFFIX}"} \
-ts rpmbuild/SOURCES/*.gz
15 changes: 15 additions & 0 deletions .automation/init-db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -e

# Execute SQL commands
psql -v ON_ERROR_STOP=1 --username "postgres" <<-EOSQL
CREATE USER ovirt PASSWORD 'ovirt';
DROP DATABASE IF EXISTS engine;
CREATE DATABASE engine OWNER ovirt TEMPLATE template0 ENCODING 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8';
EOSQL

psql -v ON_ERROR_STOP=1 --username "postgres" -d engine <<-EOSQL
CREATE EXTENSION "uuid-ossp";
EOSQL

echo "oVirt PostgreSQL database has been setup!"
File renamed without changes.
Loading