Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Release/v3.1.10 #1048

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

Merged
merged 61 commits into from
Feb 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1f1828f
Updated project version to 3.1.10
jgebal Nov 10, 2019
a33b53d
Updated project version after build [skip ci]
Nov 10, 2019
a2c0a58
Update link for utPLSQL download statistics
jgebal Nov 10, 2019
52794ac
Updated project version after build [skip ci]
Nov 10, 2019
b3973d0
Fixed test dependency on user running them.
jgebal Nov 29, 2019
39d144a
Changed how savepoint name is generated.
jgebal Nov 30, 2019
4bb7a95
Added a hash of owner to the generated savepoint name.
jgebal Nov 30, 2019
f7f9692
Merge pull request #1027 from utPLSQL/feature/minor_test_fixes
jgebal Nov 30, 2019
42053b4
Updated project version after build [skip ci]
Nov 30, 2019
d654ccc
Changed the target location for published documentation.
jgebal Dec 1, 2019
090b74c
Updated project version after build [skip ci]
Dec 1, 2019
e8f4532
Skip as many %endcontext as nested %context annotations
pesse Dec 19, 2019
8df3f7d
Refactoring: Extract function, add variables for readability
pesse Dec 19, 2019
a4d92de
Refactoring: Add clarifying comment
pesse Dec 19, 2019
4d1500f
Refactoring: Move responsibility to get context name completely to ge…
pesse Dec 19, 2019
3c547ec
Fix intendation
pesse Dec 20, 2019
b4c1d72
Refactoring: Use just one return to improve readability
pesse Dec 20, 2019
86185a8
Rewrite get_endcontext_position to be much easier to understand
pesse Dec 20, 2019
89df1dd
Clarify intention of end-position, make it more visible how it's defined
pesse Dec 20, 2019
c61abfa
Get rid of several `in out nocopy` params where `in` would be sufficient
pesse Dec 20, 2019
35acf14
Not necessary to check for IS NOT NULL
pesse Dec 20, 2019
3327fc3
Fix intendation
pesse Dec 20, 2019
587f966
Merge pull request #1035 from utPLSQL/bugfix/nested_context_mixup
jgebal Dec 20, 2019
cef109b
Updated project version after build [skip ci]
Dec 20, 2019
ad0f99d
Fixed repo for publishing github docs.
jgebal Dec 22, 2019
33f5152
Updated project version after build [skip ci]
Dec 22, 2019
8e43a08
Moved validation of `--%throws` annotation values.
jgebal Dec 29, 2019
d33bd80
Updated documentation for whitespace vs null compare.
jgebal Jan 2, 2020
5510555
Fixed documentation.
jgebal Jan 3, 2020
4dea559
Merge pull request #1038 from utPLSQL/bugfix/throws_exceptions_list_p…
jgebal Jan 3, 2020
d02ac94
Changed ordering of tests for suites with context
jgebal Dec 29, 2019
0a4edaf
Test name fix
jgebal Dec 29, 2019
326e055
Added documenting comments for ordering of data from suite_cache.
jgebal Jan 3, 2020
a25b8b7
Updated project version after build [skip ci]
Jan 3, 2020
d708443
Fixed documentation typos.
jgebal Jan 4, 2020
8f38487
Merge pull request #1039 from utPLSQL/feature/update_docs_for_whitesp…
jgebal Jan 4, 2020
d9077a1
Merge pull request #1037 from utPLSQL/feature/test_ordering
jgebal Jan 4, 2020
101bcbf
Updated project version after build [skip ci]
Jan 4, 2020
1b0b8f8
Refactored expectations on compound data
jgebal Feb 15, 2020
8eac19e
Changed maven repo url.
jgebal Feb 15, 2020
d84a684
Removing maven step for obtaining Oracle jdbc drivers - those are now…
jgebal Feb 15, 2020
02ba32b
Removing `/dev/pdbs` directory
jgebal Feb 15, 2020
7363daa
Merge pull request #1044 from utPLSQL/feature/fix_maven_url
jgebal Feb 15, 2020
15d24af
Updated project version after build [skip ci]
Feb 15, 2020
ba90abf
Cleanup and refactoring of annotation cache.
jgebal Aug 5, 2019
335e420
Fixed loophole in privilege check.
jgebal Nov 12, 2019
94f9c43
Merge remote-tracking branch 'origin/develop' into feature/unify_curs…
jgebal Feb 15, 2020
054c39f
Fixed issues with new cursor-results compare query on 11g
jgebal Feb 16, 2020
b39c5be
Added additional tests for annotation cache refresh with/without DDL …
jgebal Feb 17, 2020
5eab4aa
Fixed Teamcity reporting of errors
jgebal Feb 18, 2020
641b3b4
Update install.sh
jgebal Feb 18, 2020
67c4e78
Update test_teamcity_reporter.pkb
jgebal Feb 18, 2020
9c4333e
Merge pull request #1046 from utPLSQL/feature/teamcity_error_reportin…
jgebal Feb 18, 2020
3c0351f
Updated project version after build [skip ci]
Feb 18, 2020
4bed0c4
Merge pull request #1043 from utPLSQL/feature/unify_cursor_compare_be…
jgebal Feb 18, 2020
29b6db4
Updated project version after build [skip ci]
Feb 18, 2020
5d4c33c
Removed unneeded `is_annotated` column
jgebal Feb 22, 2020
62f3154
Merge pull request #986 from utPLSQL/feature/cache_fixes
jgebal Feb 23, 2020
8e54873
Updated project version after build [skip ci]
Feb 23, 2020
a2d1638
Update `releasing.md` file
jgebal Feb 23, 2020
9034250
Updated project version after build [skip ci]
Feb 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ env:
- CURRENT_BRANCH=${TRAVIS_BRANCH}
- UTPLSQL_REPO="utPLSQL/utPLSQL"
- UTPLSQL_BUILD_NO="${TRAVIS_BUILD_NUMBER:-0}"
- UTPLSQL_VERSION_PATTERN="v?([0-9]+\.){3}[0-9]+[^']*"
- UTPLSQL_VERSION=$(. .travis/get_project_version.sh)
- UTPLSQL_BUILD_VERSION=$(. .travis/get_project_build_version.sh)
- UTPLSQL_SOURCES_DIR='source'
Expand All @@ -51,10 +50,10 @@ env:
- MAVEN_CFG=$HOME/.m2
matrix:
- ORACLE_VERSION="${DOCKER_TAG_11G:-11g-r2-xe}" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
- ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_12C2:-12c-r2-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_18:-18c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_19:-19c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_12C2:-12c-r2-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_18:-18c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_19:-19c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'

cache:
pip: true
Expand All @@ -81,11 +80,7 @@ before_install:
install:
#- unzip utPLSQL.zip
- unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli
# Get ojdbc via maven
- bash .travis/maven_cfg.sh
- bash .travis/install_sqlcl.sh
- sudo mkdir -p /dev/pdbs
- sudo chmod -R 777 /dev/pdbs
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/start_db.sh; fi

before_script:
Expand Down Expand Up @@ -115,16 +110,15 @@ jobs:
- pip install mkdocs
before_script: skip
script:
- if [[ ($TRAVIS_BRANCH == develop) && ($TRAVIS_PULL_REQUEST == false) ]]; then bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN; fi
- #The update_project_version.sh needs to be done before pushing changes to develop branch
- bash .travis/update_project_version.sh
- git config --global user.email "[email protected]"
- git config --global user.name "${UTPLSQL_BUILD_USER_NAME}"
- git remote rm origin
- git remote add origin https://${github_api_token}@github.com/${UTPLSQL_REPO}
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/push_release_version.sh; fi
- bash .travis/push_docs_to_github_io.sh
- bash .travis/build_docs.sh
- bash .travis/push_docs_to_gh_pages.sh
- if [[ ($TRAVIS_BRANCH == develop) && ($TRAVIS_PULL_REQUEST == false) ]]; then bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN; fi
before_deploy:
- bash .travis/build_release_archive.sh
deploy:
Expand Down
33 changes: 27 additions & 6 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ PROMPT Creating $UT3_TESTER - Power-user for testing internal framework code
create user $UT3_TESTER identified by "$UT3_TESTER_PASSWORD" default tablespace $UT3_TABLESPACE quota unlimited on $UT3_TABLESPACE;
grant create session, create procedure, create type, create table to $UT3_TESTER;

PROMPT Additional grants for disabling DDL trigger and testing parser without trigger enabled/present

grant alter any trigger to $UT3_TESTER;
grant administer database trigger to $UT3_TESTER;
grant execute on dbms_lock to $UT3_TESTER;

PROMPT Granting $UT3_OWNER code to $UT3_TESTER
Expand All @@ -98,7 +94,7 @@ end;
PROMPT Granting $UT3_OWNER tables to $UT3_TESTER

begin
for i in ( select table_name from all_tables t where owner = 'UT3' and nested = 'NO' and IOT_NAME is NULL)
for i in ( select table_name from all_tables t where owner = 'UT3' and nested = 'NO' and iot_name is null)
loop
execute immediate 'grant select on UT3.'||i.table_name||' to UT3_TESTER';
end loop;
Expand All @@ -124,8 +120,33 @@ grant create public database link to $UT3_TESTER_HELPER;
grant drop public database link to $UT3_TESTER_HELPER;

PROMPT Grants for testing coverage outside of main UT3 schema.
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type, select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table, select any dictionary, create any synonym, drop any synonym to $UT3_TESTER_HELPER;
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type,
select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table,
select any dictionary, create any synonym, drop any synonym,
grant any object privilege, grant any privilege
to $UT3_TESTER_HELPER;

grant create job to $UT3_TESTER_HELPER;

PROMPT Additional grants for disabling DDL trigger and testing parser without trigger enabled/present

grant alter any trigger to $UT3_TESTER_HELPER;
grant administer database trigger to $UT3_TESTER_HELPER;
grant execute on dbms_lock to $UT3_TESTER_HELPER;

create user ut3_cache_test_owner identified by ut3;
grant create session, create procedure to ut3_cache_test_owner;

create user ut3_no_extra_priv_user identified by ut3;
grant create session, create procedure to ut3_no_extra_priv_user;

create user ut3_select_catalog_user identified by ut3;
grant create session, create procedure, select_catalog_role to ut3_select_catalog_user;

create user ut3_select_any_table_user identified by ut3;
grant create session, create procedure, select any table to ut3_select_any_table_user;

create user ut3_execute_any_proc_user identified by ut3;
grant create session, create procedure, execute any procedure to ut3_execute_any_proc_user;
exit
SQL
18 changes: 0 additions & 18 deletions .travis/maven_cfg.sh

This file was deleted.

62 changes: 0 additions & 62 deletions .travis/pom.xml

This file was deleted.

62 changes: 29 additions & 33 deletions .travis/push_docs_to_gh_pages.sh → .travis/push_docs_to_github_io.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Many aspects of this came from https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
# Based on `push_docs_to_gh_pages.sh`
# Significant alterations
# - Support for multiple copies of documentation,
# - only clearing out develop
Expand All @@ -13,59 +13,55 @@
# - File: "docs/index.md" with that contains develop docs

# Required ENV Variables
PAGES_TARGET_BRANCH="gh-pages"
LATEST_DOCS_BRANCH="develop"
GITHUB_IO_REPO='utPLSQL/utPLSQL.github.io'
GITHUB_IO_BRANCH='master'

# TRAVIS_* variables are set by travis directly and only need to be if testing externally

# We don't want a pull request automatically updating the repository
# We deploy only when building on develop branch or on TAG (release)
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && { [ "${CURRENT_BRANCH}" == "${LATEST_DOCS_BRANCH}" ] || [ -n "${TRAVIS_TAG}" ]; }; then

# ENV Variable checks are to help with configuration troubleshooting, they silently exit with unique message.
# Anyone one of them not set can be used to turn off this functionality.

# If a version of the project is not defined
[[ -n "${UTPLSQL_VERSION}" ]] || { echo "variable UTPLSQL_VERSION is not defines or missing value"; exit 0; }
[[ -n "${UTPLSQL_VERSION}" ]] || { echo "variable UTPLSQL_VERSION is not defines or missing value"; exit 1; }
# Fail if the markdown documentation is not present.
[[ -f ./docs/index.md ]] || { echo "file docs/index.md not found"; exit 1; }

# Save some useful information
# Store latest commit SHA to be used when committing and pushing to github.io repo
SHA=`git rev-parse --verify HEAD`

# clone the repository and switch to PAGES_TARGET_BRANCH branch
# clone the repository and switch to GITHUB_IO_BRANCH branch
mkdir pages
cd pages
git clone https://${github_api_token}@github.com/${UTPLSQL_REPO} .

PAGES_BRANCH_EXISTS=$(git ls-remote --heads origin ${PAGES_TARGET_BRANCH})
cd ./pages
git clone --depth 1 https://${github_api_token}@github.com/${GITHUB_IO_REPO} -b ${GITHUB_IO_BRANCH} .

if [ -n "$PAGES_BRANCH_EXISTS" ] ; then
echo "Pages Branch Found"
git checkout ${PAGES_TARGET_BRANCH}
else
echo "Creating Pages Branch"
git checkout --orphan ${PAGES_TARGET_BRANCH}
git rm -rf .
fi
mkdir -p utPLSQL
cd ./utPLSQL
#clear out develop documentation directory and copy docs contents to it.
echo "updating 'develop' directory"
mkdir -p develop
rm -rf develop/**./* || exit 0
cp -a ../docs/. ./develop
echo "updating 'develop' documentation directory"
mkdir -p ./develop
rm -rf ./develop/**./* || exit 0
cp -a ../../docs/. ./develop

# If a Tagged Build then copy to it's own directory as well and to the 'latest' release directory
if [ -n "$TRAVIS_TAG" ]; then
echo "Creating ${UTPLSQL_VERSION}"
mkdir -p ${UTPLSQL_VERSION}
rm -rf ${UTPLSQL_VERSION}/**./* || exit 0
cp -a ../docs/. ${UTPLSQL_VERSION}
echo "Populating 'latest' directory"
mkdir -p latest
rm -rf latest/**./* || exit 0
cp -a ../docs/. latest
echo "Creating directory ./${UTPLSQL_VERSION}"
mkdir -p ./${UTPLSQL_VERSION}
rm -rf ./${UTPLSQL_VERSION}/**./* || exit 0
cp -a ../../docs/. ./${UTPLSQL_VERSION}
echo "Populating 'latest' directory"
mkdir -p ./latest
rm -rf ./latest/**./* || exit 0
cp -a ../../docs/. ./latest
fi
# Stage changes for commit
git add .

#Check if there are doc changes, if none exit the script
if [[ -z `git diff HEAD --exit-code` ]] && [ -n "${PAGES_BRANCH_EXISTS}" ] ; then
if [[ -z `git diff HEAD --exit-code` ]]; then
echo "No changes to docs detected."
exit 0
fi
Expand All @@ -75,7 +71,7 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ] && { [ "${CURRENT_BRANCH}" == "${LATEST
echo "---" >>index.md
echo "layout: default" >>index.md
echo "---" >>index.md
echo "<!-- Auto generated from .travis/push_docs_to_gh_pages.sh -->" >>index.md
echo "<!-- Auto generated from .travis/push_docs_to_github_io.sh -->" >>index.md
echo "# Documentation versions" >>index.md
echo "" >>index.md
echo "" >>index.md #- 7th line - placeholder for latest release doc
Expand All @@ -96,6 +92,6 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ] && { [ "${CURRENT_BRANCH}" == "${LATEST
git add .
git commit -m "Deploy to gh-pages branch: base commit ${SHA}"
# Now that we're all set up, we can push.
git push --quiet origin HEAD:${PAGES_TARGET_BRANCH}
git push --quiet origin HEAD:${GITHUB_IO_BRANCH}
fi

51 changes: 0 additions & 51 deletions .travis/settings.xml

This file was deleted.

2 changes: 2 additions & 0 deletions .travis/update_project_version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

UTPLSQL_VERSION_PATTERN="v?([0-9]+\.){3}[0-9]+[^']*"

echo Current branch is "${CURRENT_BRANCH}"

echo Update version in project source files
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.1.9
v3.1.10
5 changes: 5 additions & 0 deletions development/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ drop user ${UT3_RELEASE_VERSION_SCHEMA} cascade;
drop user ${UT3_TESTER} cascade;
drop user ${UT3_TESTER_HELPER} cascade;
drop user ${UT3_USER} cascade;
drop user ut3_cache_test_owner cascade;
drop user ut3_no_extra_priv_user cascade;
drop user ut3_select_catalog_user cascade;
drop user ut3_select_any_table_user cascade;
drop user ut3_execute_any_proc_user cascade;

begin
for i in (
Expand Down
5 changes: 3 additions & 2 deletions development/releasing.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
The release process is semi-automated.
## Release process

With every build, the build process on Travis updates files with an appropriate version number before deployment into the database.
This step is performed, to confirm that the update of versions works properly.

To create a release:
## To create a release

- create release branch from development branch and make sure to name the release branch: `release/vX.Y.Z`
- update, commit and push at least one file change in the release branch, to kickoff a Travis build
- wait for th build to complete successfully
Expand Down
2 changes: 1 addition & 1 deletion docs/about/authors.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.9.3268-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.10.3347-blue.svg)

### utPLSQL v3 Major Contributors

Expand Down
Loading